[03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:08:41]OFD Sender: No OFD packet to send [03:08:46]OFD Sender: No OFD packet to send [03:08:51]OFD Sender: No OFD packet to send [03:08:56]OFD Sender: No OFD packet to send [03:09:01]OFD Sender: No OFD packet to send [03:09:06]OFD Sender: No OFD packet to send [03:09:11]OFD Sender: No OFD packet to send [03:09:16]OFD Sender: No OFD packet to send [03:09:21]OFD Sender: No OFD packet to send [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]OFD Sender: No OFD packet to send [03:27:27]OFD Sender: No OFD packet to send [03:27:32]OFD Sender: No OFD packet to send [03:27:37]OFD Sender: No OFD packet to send [03:27:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:07]OFD Sender: No OFD packet to send [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:24]accept exits with 9 [04:09:24]New connection [04:09:24]New thread 3066813796 created [04:09:24]Thread 3066957156 joined [04:09:24]Waiting for new connection... [04:09:24] Sock 9.Parse request [04:09:24]Sock 9.Check first char [04:09:24]Sock 9.First char is OK [04:09:24]request: POST /json_proto HTTP/1.0 [04:09:24]Method: POST [04:09:24]URL: /json_proto [04:09:24]Method is POST - this is cgi request [04:09:24]url: /json_proto [04:09:24]query_string will be loaded in cgi processing [04:09:24]execute_cgi json_proto POST (null) [04:09:24]execute_cgi path=json_proto method=POST [04:09:24]POST find Content-Length [04:09:24]Host: 172.17.62.67:8080 [04:09:24]Content-Length: 682 [04:09:24]Content-Type: application/json [04:09:24] [04:09:24]POST finish read [04:09:24]Found Content-Length = 682 [04:09:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:09:24]execute_script... [04:09: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)196038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:09:24]POST & json_proto [04:09:24]process_json_proto [04:09:24]json parsed OK: [04:09:24]protocol is kg_v1.0 [04:09:24]action value=close_receipt [04:09:24]process_action close_receipt [04:09:24]cmd_close_receipt [04:09:24]MH_GetDate [04:09:24]Write to MH i2c: F0 00 00 63 17 69 [04:09:24]Write i2c OK [04:09:24]MH_I2C_Read... [04:09:24]Read from MH i2c: F0 [04:09:24]MH_I2C_Read... [04:09:24]Read from MH i2c: F0 05 00 [04:09:24]MH_I2C_Read... [04:09:24]Read from MH i2c: F0 05 00 63 17 00 77 D5 EF 65 0E [04:09:24]GetLastDocTimeStamp 1710208702 [04:09:24]current date 1710216567 [04:09:24]FM_GetShiftState [04:09:24]SAM_PROTO_GetShiftState [04:09:24]wFMCommunicate request_size=4 [04:09:24]MH_SAM_APDU [04:09:24]CAPDU: 80 13 01 00 [04:09:24]Write to MH i2c: E2 08 00 64 17 80 13 01 00 00 00 00 00 F8 [04:09:24]Write i2c OK [04:09:24]MH_I2C_Read... [04:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:09:24]Read from MH i2c: E2 [04:09:24]MH_I2C_Read... [04:09:24]Read from MH i2c: E2 0E 00 [04:09:24]MH_I2C_Read... [04:09:24]Read from MH i2c: E2 0E 00 64 17 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 6C [04:09:24]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [04:09:24]wFMCommunicate OK [04:09:24]SAM_PROTO_GetShiftState done [04:09:24]FM_GetShiftState done [04:09:24]opened in 1710201976 [04:09:24]opened+sec_in_day 1710288376 [04:09:24]quantity*price = 100011 [04:09:24]sum+1 = 100012 [04:09:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 12 12.03.2024 04:09 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95082 ФПД: 266578006894511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T040927&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95082&fm=266578006894511&tin=02508201610067®Number=0000000000090555&sum=100000 [04:09:25]StoreToDocumentArchive [04:09:25]shift 327 fd 95082 [04:09:25]save to /storage/0327/doc_00095082 [04:09:25]save last doc name /storage/0327/doc_00095082 to /storage/kkm_last_doc_name [04:09:25]save OK [04:09:25]Clear old archive folders... [04:09:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:09:25]tlvbuf is 01A34170 [04:09:25]SAM_PROTO_ClearQueue [04:09:25]wFMCommunicate request_size=4 [04:09:25]MH_SAM_APDU [04:09:25]CAPDU: 80 09 00 00 [04:09:25]Write to MH i2c: E2 08 00 71 17 80 09 00 00 00 00 00 00 FA [04:09:25]Write i2c OK [04:09:25]MH_I2C_Read... [04:09:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:09:25]Read from MH i2c: E2 [04:09:25]MH_I2C_Read... [04:09:25]Read from MH i2c: E2 03 00 [04:09:25]MH_I2C_Read... [04:09:25]Read from MH i2c: E2 03 00 71 17 00 90 00 FC [04:09:25]RAPDU: 90 00 [04:09:25]wFMCommunicate OK [04:09:25]SAM_PROTO_ClearQueue done [04:09:25]KKMCreateOFDPacket [04:09:25]OFDProtocolAddRootSTLVToBuf [04:09:25]FM_MakeSignedData [04:09:25]FM_MakeSignedData [04:09:25]SAM_PROTO_SignData [04:09:25]wFMCommunicate request_size=4 [04:09:25]MH_SAM_APDU [04:09:25]CAPDU: 80 0D 01 02 [04:09:25]Write to MH i2c: E2 08 00 72 17 80 0D 01 02 00 00 00 00 02 [04:09:25]Write i2c OK [04:09:25]MH_I2C_Read... [04:09:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:09:25]Read from MH i2c: E2 [04:09:25]MH_I2C_Read... [04:09:25]Read from MH i2c: E2 03 00 [04:09:25]MH_I2C_Read... [04:09:25]Read from MH i2c: E2 03 00 72 17 00 90 00 FD [04:09:25]RAPDU: 90 00 [04:09:25]wFMCommunicate OK [04:09:25]wFMCommunicate request_size=255 [04:09:25]MH_SAM_APDU [04:09:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 77 D5 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6A 73 01 00 35 04 06 00 F2 [04:09:25]Write to MH i2c: E2 02 01 73 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 77 D5 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6A 73 01 00 35 04 06 00 F2 00 00 6E [04:09:25]Write i2c OK [04:09:25]MH_I2C_Read... [04:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:09:26]Read from MH i2c: E2 [04:09:26]MH_I2C_Read... [04:09:26]Read from MH i2c: E2 03 00 [04:09:26]MH_I2C_Read... [04:09:26]Read from MH i2c: E2 03 00 73 17 00 90 00 FE [04:09:26]RAPDU: 90 00 [04:09:26]wFMCommunicate OK [04:09:26]wFMCommunicate request_size=10 [04:09:26]MH_SAM_APDU [04:09:26]CAPDU: 80 0D 02 02 05 73 87 67 E7 AF [04:09:26]Write to MH i2c: E2 0D 00 74 17 80 0D 02 02 05 00 73 87 67 E7 AF 00 00 06 [04:09:26]Write i2c OK [04:09:26]MH_I2C_Read... [04:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:09:26]Read from MH i2c: E2 [04:09:26]MH_I2C_Read... [04:09:26]Read from MH i2c: E2 03 00 [04:09:26]MH_I2C_Read... [04:09:26]Read from MH i2c: E2 03 00 74 17 00 90 00 FF [04:09:26]RAPDU: 90 00 [04:09:26]wFMCommunicate OK [04:09:26]wFMCommunicate request_size=4 [04:09:26]MH_SAM_APDU [04:09:26]CAPDU: 80 0D 03 02 [04:09:26]Write to MH i2c: E2 08 00 75 17 80 0D 03 02 00 00 00 00 07 [04:09:26]Write i2c OK [04:09:26]MH_I2C_Read... [04:09:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:09:26]Read from MH i2c: E2 [04:09:26]MH_I2C_Read... [04:09:26]Read from MH i2c: E2 0B 00 [04:09:26]MH_I2C_Read... [04:09:26]Read from MH i2c: E2 0B 00 75 17 00 E3 D4 3F 3F 33 C2 6D C4 90 00 63 [04:09:26]RAPDU: E3 D4 3F 3F 33 C2 6D C4 90 00 [04:09:26]wFMCommunicate OK [04:09:26]SAM_PROTO_SignData done [04:09:26]FM_MakeSignedData done [04:09:26]CreateOFDProtocolMessage [04:09:26]wFMCommunicate request_size=4 [04:09:26]MH_SAM_APDU [04:09:26]CAPDU: 80 11 00 00 [04:09:26]Write to MH i2c: E2 08 00 76 17 80 11 00 00 00 00 00 00 07 [04:09:26]Write i2c OK [04:09:26]MH_I2C_Read... [04:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:09:26]Read from MH i2c: E2 [04:09:26]MH_I2C_Read... [04:09:26]Read from MH i2c: E2 17 00 [04:09:26]MH_I2C_Read... [04:09:26]Read from MH i2c: E2 17 00 76 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 57 [04:09:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [04:09:26]wFMCommunicate OK [04:09:26]CreateOFDProtocolMessage done [04:09:26]OFDSenderStorePacket 95082 [04:09:26]StoreOFDPacket docnum=95082 [04:09:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 ED 2E 07 01 4B AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 77 D5 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6A 73 01 00 35 04 06 00 F2 73 87 67 E7 AF E3 D4 3F 3F 33 C2 6D C4 [04:09:26]CheckFolder [04:09:26]dirname=/storage/ofd_packets [04:09:26]CheckFolder done [04:09:26]ProducePacketName [04:09:26]name=ofd_packets/00095082 [04:09:26]NVStorageSaveData ofd_packets/00095082 [04:09:26]File name is /storage/ofd_packets/00095082 [04:09:26]Write 301 bytes [04:09:26]NVStorageSaveData done [04:09:26]OFDSenderStorePacket done [04:09:26]KKMCreateOFDPacket done [04:09:26]NVStorageSaveData kkm_last_timestamp [04:09:26]File name is /storage/kkm_last_timestamp [04:09:26]Write 4 bytes [04:09:26]NVStorageSaveData done [04:09:26]ExternCall_PrintAddStr [04:09:26]wPrintStart [04:09:26]Write to MH i2c: 01 00 00 77 17 8E [04:09:26]OFD Sender: Processing packet 95082 [packets to send 30, broken 29] [04:09:26]ProducePacketName [04:09:26]name=ofd_packets/00095082 [04:09:26]OFD Sender: To server: pG, [04:09:26]CommunicateWithHost lk.salyk.kg:30040 [04:09:26]ConnectInit lk.salyk.kg [04:09:26]Write i2c OK [04:09:26]MH_I2C_Read... [04:09:26]Read from MH i2c: 01 [04:09:26]MH_I2C_Read... [04:09:26]Read from MH i2c: 01 07 00 [04:09:26]MH_I2C_Read... [04:09:26]Read from MH i2c: 01 07 00 77 17 00 80 00 00 00 FF 0F 23 [04:09:26]RasterBufferAndPrint [04:09:26]line Счет N : (1)196038 [04:09:26]line ИНН: 02508201610067 [04:09:26]line Контрольно-Кассовый Чек [04:09:26]line ПРОДАЖА [04:09:26]line ТРК (МРК, ГНК) : 12 [04:09:26]line Товар: 2710124130 [04:09:26]line Аи-92-К-5 [04:09:26]line 15.900 * 62.90 [04:09:26]line = 1000.11 [04:09:26]line НДС 12% НСП 1% [04:09:26]line > о реализуемом товаре [04:09:26]line ОКРУГЛЕНИЕ: -0.11 [04:09:26]line ИТОГО: 1000.00 [04:09:26]line Внесено: 1000.00 [04:09:26]line СДАЧА: 0.00 [04:09:26]line НСП 1% : 8.85 [04:09:26]line НДС 12% : 106.21 [04:09:26]line Наличными: 1000.00 [04:09:26]line Безнал.: 0.00 [04:09:26]line Место: АЗС № 6 "Партнер Нефть" [04:09:26]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [04:09:26]line СНО: Общий режим [04:09:26]line Чек 12 12.03.2024 04:09 [04:09:26]line Смена: 327 ФФД: 1.0 [04:09:26]line ЗНМ: 0300000009 [04:09:26]line РНМ: 0000000000090555 [04:09:26]line Версия ККМ: 001 [04:09:26]line ФМ: 0000000000874811 [04:09:26]line ФД: 95082 [04:09:26]line ФПД: 266578006894511 [04:09:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T040927&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95082&fm=266578006894511&tin=02508201610067®Number=0000000000090555&sum=100000 [04:09:26]Connected sock=10 [04:09:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 ED 2E 07 01 4B AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 77 D5 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6A 73 01 00 35 04 06 00 F2 73 87 67 E7 AF E3 D4 3F 3F 33 C2 6D C4 [04:09:26]written 0, free lines is 4095 [04:09:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 2C 4F 47 00 52 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6A 73 01 00 F4 03 04 00 CF 80 EF 65 B6 04 01 00 00 64 DA 32 38 0F 88 AB 22 [04:09:26]CommunicateWithHost err = 0 [04:09:26]CheckOFDResponse [04:09:26]1017 (14) - 77093643461234 [04:09:26]1041 (16) - 0000000000874811 [04:09:26]1040 (4) - 95082 [04:09:26]1012 (4) - 11.03.2024 22:08 [04:09:26]1206 (1) - 0 [04:09:26]OFD Sender: Remove packet 95082 [04:09:26]ProducePacketName [04:09:26]name=ofd_packets/00095082 [04:09:26]NVStorageDeleteData [04:09:27]Write to MH i2c: 01 00 00 A2 17 B9 [04:09:27]Write i2c OK [04:09:27]MH_I2C_Read... [04:09:27]Read from MH i2c: 01 [04:09:27]MH_I2C_Read... [04:09:27]Read from MH i2c: 01 07 00 [04:09:27]MH_I2C_Read... [04:09:27]Read from MH i2c: 01 07 00 A2 17 00 80 00 00 00 55 0D A2 [04:09:27]RasterBufferAndPrint [04:09:27]line [04:09:27]line [04:09:27]line [04:09:27]line [04:09:27]line [04:09:27]written 0, free lines is 3419 [04:09:27]process_action close_receipt done [04:09:27]requested_data is exist [04:09:27]produce_requested_data [04:09:27]requested_item fm.sn is exist - process it [04:09:27]wFMCommunicate request_size=4 [04:09:27]MH_SAM_APDU [04:09:27]CAPDU: 80 11 00 00 [04:09:27]Write to MH i2c: E2 08 00 A9 17 80 11 00 00 00 00 00 00 3A [04:09:27]Write i2c OK [04:09:27]MH_I2C_Read... [04:09:27]Read from MH i2c: E2 [04:09:27]MH_I2C_Read... [04:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:09:27]Read from MH i2c: E2 17 00 [04:09:27]MH_I2C_Read... [04:09:27]Read from MH i2c: E2 17 00 A9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8A [04:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [04:09:27]wFMCommunicate OK [04:09:27]requested_item fd.num is exist - process it [04:09:27]SAM_PROTO_GetFieldsCounters [04:09:27]wFMCommunicate request_size=4 [04:09:27]MH_SAM_APDU [04:09:27]CAPDU: 80 13 00 00 [04:09:27]Write to MH i2c: E2 08 00 AA 17 80 13 00 00 00 00 00 00 3D [04:09:27]Write i2c OK [04:09:27]MH_I2C_Read... [04:09:27]OFD Sender: No OFD packet to send [04:09:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:09:27]Read from MH i2c: E2 [04:09:27]MH_I2C_Read... [04:09:27]Read from MH i2c: E2 62 00 [04:09:27]MH_I2C_Read... [04:09:27]Read from MH i2c: E2 62 00 AA 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6A 73 01 00 0E 04 04 00 47 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 A4 [04:09:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6A 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:09:27]wFMCommunicate OK [04:09:27]SAM_PROTO_GetFieldsCounters done [04:09:27]requested_item shift.num is exist - process it [04:09:27]requested_item shift.opened is exist - process it [04:09:27]req_shift_opened [04:09:27]FM_GetShiftState [04:09:27]SAM_PROTO_GetShiftState [04:09:27]wFMCommunicate request_size=4 [04:09:27]MH_SAM_APDU [04:09:27]CAPDU: 80 13 01 00 [04:09:27]Write to MH i2c: E2 08 00 AB 17 80 13 01 00 00 00 00 00 3F [04:09:27]Write i2c OK [04:09:27]MH_I2C_Read... [04:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:09:27]Read from MH i2c: E2 [04:09:27]MH_I2C_Read... [04:09:27]Read from MH i2c: E2 0E 00 [04:09:27]MH_I2C_Read... [04:09:27]Read from MH i2c: E2 0E 00 AB 17 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B3 [04:09:27]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [04:09:27]wFMCommunicate OK [04:09:27]SAM_PROTO_GetShiftState done [04:09:27]FM_GetShiftState done [04:09:27]req_shift_opened done [04:09:27]requested_item shift.open_date is exist - process it [04:09:27]req_shift_open_date [04:09:27]req_shift_open_date done [04:09:27]produce_requested_data done [04:09:27]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95082,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [04:09:27]process_action_free close_receipt [04:09:27]json_value_free [04:09:27]json_value_free done [04:09:27]process_json_proto returns [04:09:27]Send response to host [04:09:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95082,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [04:09:27]free response buf [04:09:27]execute_script done [04:09:27]execute_script returns [04:09:27]free content buf [04:09:27]Sock 9.Close socket [04:09:27]Sock 9.Thread stoped [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:20:59]accept exits with 8 [04:20:59]New connection [04:20:59]New thread 3066957156 created [04:20:59]Thread 3066813796 joined [04:20:59]Waiting for new connection... [04:20:59] Sock 8.Parse request [04:20:59]Sock 8.Check first char [04:20:59]Sock 8.First char is OK [04:20:59]request: POST /json_proto HTTP/1.0 [04:20:59]Method: POST [04:20:59]URL: /json_proto [04:20:59]Method is POST - this is cgi request [04:20:59]url: /json_proto [04:20:59]query_string will be loaded in cgi processing [04:20:59]execute_cgi json_proto POST (null) [04:20:59]execute_cgi path=json_proto method=POST [04:20:59]POST find Content-Length [04:20:59]Host: 172.17.62.67:8080 [04:20:59]Content-Length: 677 [04:20:59]Content-Type: application/json [04:20:59] [04:20:59]POST finish read [04:20:59]Found Content-Length = 677 [04:20:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.570, "sum" : 350.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:20:59]execute_script... [04:20:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.570, "sum" : 350.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:20:59]POST & json_proto [04:20:59]process_json_proto [04:20:59]json parsed OK: [04:20:59]protocol is kg_v1.0 [04:20:59]action value=close_receipt [04:20:59]process_action close_receipt [04:20:59]cmd_close_receipt [04:20:59]MH_GetDate [04:20:59]Write to MH i2c: F0 00 00 AC 17 B2 [04:20:59]Write i2c OK [04:20:59]MH_I2C_Read... [04:20:59]Read from MH i2c: F0 [04:20:59]MH_I2C_Read... [04:20:59]Read from MH i2c: F0 05 00 [04:20:59]MH_I2C_Read... [04:20:59]Read from MH i2c: F0 05 00 AC 17 00 2E D8 EF 65 11 [04:20:59]GetLastDocTimeStamp 1710216567 [04:20:59]current date 1710217262 [04:20:59]FM_GetShiftState [04:20:59]SAM_PROTO_GetShiftState [04:20:59]wFMCommunicate request_size=4 [04:20:59]MH_SAM_APDU [04:20:59]CAPDU: 80 13 01 00 [04:20:59]Write to MH i2c: E2 08 00 AD 17 80 13 01 00 00 00 00 00 41 [04:20:59]Write i2c OK [04:20:59]MH_I2C_Read... [04:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:20:59]Read from MH i2c: E2 [04:20:59]MH_I2C_Read... [04:20:59]Read from MH i2c: E2 0E 00 [04:20:59]MH_I2C_Read... [04:20:59]Read from MH i2c: E2 0E 00 AD 17 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B5 [04:20:59]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [04:20:59]wFMCommunicate OK [04:20:59]SAM_PROTO_GetShiftState done [04:20:59]FM_GetShiftState done [04:20:59]opened in 1710201976 [04:20:59]opened+sec_in_day 1710288376 [04:20:59]quantity*price = 35035 [04:20:59]sum+1 = 35036 [04:20:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.20 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 13 12.03.2024 04:21 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95083 ФПД: 131806419860685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T042102&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95083&fm=131806419860685&tin=02508201610067®Number=0000000000090555&sum=35000 [04:21:00]StoreToDocumentArchive [04:21:00]shift 327 fd 95083 [04:21:00]save to /storage/0327/doc_00095083 [04:21:00]save last doc name /storage/0327/doc_00095083 to /storage/kkm_last_doc_name [04:21:00]save OK [04:21:00]Clear old archive folders... [04:21:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:21:00]tlvbuf is 01A6D190 [04:21:00]SAM_PROTO_ClearQueue [04:21:00]wFMCommunicate request_size=4 [04:21:00]MH_SAM_APDU [04:21:00]CAPDU: 80 09 00 00 [04:21:00]Write to MH i2c: E2 08 00 BA 17 80 09 00 00 00 00 00 00 43 [04:21:00]Write i2c OK [04:21:00]MH_I2C_Read... [04:21:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:21:00]Read from MH i2c: E2 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: E2 03 00 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: E2 03 00 BA 17 00 90 00 45 [04:21:00]RAPDU: 90 00 [04:21:00]wFMCommunicate OK [04:21:00]SAM_PROTO_ClearQueue done [04:21:00]KKMCreateOFDPacket [04:21:00]OFDProtocolAddRootSTLVToBuf [04:21:00]FM_MakeSignedData [04:21:00]FM_MakeSignedData [04:21:00]SAM_PROTO_SignData [04:21:00]wFMCommunicate request_size=4 [04:21:00]MH_SAM_APDU [04:21:00]CAPDU: 80 0D 01 02 [04:21:00]Write to MH i2c: E2 08 00 BB 17 80 0D 01 02 00 00 00 00 4B [04:21:00]Write i2c OK [04:21:00]MH_I2C_Read... [04:21:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:21:00]Read from MH i2c: E2 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: E2 03 00 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: E2 03 00 BB 17 00 90 00 46 [04:21:00]RAPDU: 90 00 [04:21:00]wFMCommunicate OK [04:21:00]wFMCommunicate request_size=255 [04:21:00]MH_SAM_APDU [04:21:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 2E D8 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6B 73 01 00 35 04 06 00 77 [04:21:00]Write to MH i2c: E2 02 01 BC 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 2E D8 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6B 73 01 00 35 04 06 00 77 00 00 87 [04:21:00]Write i2c OK [04:21:00]MH_I2C_Read... [04:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:21:00]Read from MH i2c: E2 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: E2 03 00 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: E2 03 00 BC 17 00 90 00 47 [04:21:00]RAPDU: 90 00 [04:21:00]wFMCommunicate OK [04:21:00]wFMCommunicate request_size=10 [04:21:00]MH_SAM_APDU [04:21:00]CAPDU: 80 0D 02 02 05 E0 92 D5 BC CD [04:21:00]Write to MH i2c: E2 0D 00 BD 17 80 0D 02 02 05 00 E0 92 D5 BC CD 00 00 28 [04:21:00]Write i2c OK [04:21:00]MH_I2C_Read... [04:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:21:00]Read from MH i2c: E2 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: E2 03 00 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: E2 03 00 BD 17 00 90 00 48 [04:21:00]RAPDU: 90 00 [04:21:00]wFMCommunicate OK [04:21:00]wFMCommunicate request_size=4 [04:21:00]MH_SAM_APDU [04:21:00]CAPDU: 80 0D 03 02 [04:21:00]Write to MH i2c: E2 08 00 BE 17 80 0D 03 02 00 00 00 00 50 [04:21:00]Write i2c OK [04:21:00]MH_I2C_Read... [04:21:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:21:00]Read from MH i2c: E2 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: E2 0B 00 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: E2 0B 00 BE 17 00 BC F5 E8 E5 4B DE 9E 2A 90 00 C0 [04:21:00]RAPDU: BC F5 E8 E5 4B DE 9E 2A 90 00 [04:21:00]wFMCommunicate OK [04:21:00]SAM_PROTO_SignData done [04:21:00]FM_MakeSignedData done [04:21:00]CreateOFDProtocolMessage [04:21:00]wFMCommunicate request_size=4 [04:21:00]MH_SAM_APDU [04:21:00]CAPDU: 80 11 00 00 [04:21:00]Write to MH i2c: E2 08 00 BF 17 80 11 00 00 00 00 00 00 50 [04:21:00]Write i2c OK [04:21:00]MH_I2C_Read... [04:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:00]Read from MH i2c: E2 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: E2 17 00 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: E2 17 00 BF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A0 [04:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [04:21:00]wFMCommunicate OK [04:21:00]CreateOFDProtocolMessage done [04:21:00]OFDSenderStorePacket 95083 [04:21:00]StoreOFDPacket docnum=95083 [04:21:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 6C 22 07 01 2A 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 2E D8 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6B 73 01 00 35 04 06 00 77 E0 92 D5 BC CD BC F5 E8 E5 4B DE 9E 2A [04:21:00]CheckFolder [04:21:00]dirname=/storage/ofd_packets [04:21:00]CheckFolder done [04:21:00]ProducePacketName [04:21:00]name=ofd_packets/00095083 [04:21:00]NVStorageSaveData ofd_packets/00095083 [04:21:00]File name is /storage/ofd_packets/00095083 [04:21:00]Write 301 bytes [04:21:00]NVStorageSaveData done [04:21:00]OFDSenderStorePacket done [04:21:00]KKMCreateOFDPacket done [04:21:00]NVStorageSaveData kkm_last_timestamp [04:21:00]File name is /storage/kkm_last_timestamp [04:21:00]Write 4 bytes [04:21:00]NVStorageSaveData done [04:21:00]ExternCall_PrintAddStr [04:21:00]wPrintStart [04:21:00]Write to MH i2c: 01 00 00 C0 17 D7 [04:21:00]Write i2c OK [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: 01 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: 01 07 00 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: 01 07 00 C0 17 00 80 00 00 00 FF 0F 6C [04:21:00]RasterBufferAndPrint [04:21:00]line Счет N : (1)196039 [04:21:00]line ИНН: 02508201610067 [04:21:00]line Контрольно-Кассовый Чек [04:21:00]line ПРОДАЖА [04:21:00]line ТРК (МРК, ГНК) : 12 [04:21:00]line Товар: 2710124130 [04:21:00]line Аи-92-К-5 [04:21:00]line 5.570 * 62.90 [04:21:00]line = 350.35 [04:21:00]line НДС 12% НСП 1% [04:21:00]line > о реализуемом товаре [04:21:00]line ОКРУГЛЕНИЕ: -0.35 [04:21:00]line ИТОГО: 350.00 [04:21:00]line Внесено: 350.00 [04:21:00]line СДАЧА: 0.00 [04:21:00]line НСП 1% : 3.10 [04:21:00]line НДС 12% : 37.20 [04:21:00]line Наличными: 350.00 [04:21:00]line Безнал.: 0.00 [04:21:00]line Место: АЗС № 6 "Партнер Нефть" [04:21:00]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [04:21:00]line СНО: Общий режим [04:21:00]line Чек 13 12.03.2024 04:21 [04:21:00]line Смена: 327 ФФД: 1.0 [04:21:00]line ЗНМ: 0300000009 [04:21:01]line РНМ: 0000000000090555 [04:21:01]line Версия ККМ: 001 [04:21:01]line ФМ: 0000000000874811 [04:21:01]line ФД: 95083 [04:21:01]line ФПД: 131806419860685 [04:21:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T042102&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95083&fm=131806419860685&tin=02508201610067®Number=0000000000090555&sum=35000 [04:21:01]OFD Sender: Processing packet 95083 [packets to send 30, broken 29] [04:21:01]ProducePacketName [04:21:01]name=ofd_packets/00095083 [04:21:01]OFD Sender: To server: pG, [04:21:01]CommunicateWithHost lk.salyk.kg:30040 [04:21:01]ConnectInit lk.salyk.kg [04:21:01]written 0, free lines is 4095 [04:21:01]Connected sock=11 [04:21:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 6C 22 07 01 2A 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 2E D8 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6B 73 01 00 35 04 06 00 77 E0 92 D5 BC CD BC F5 E8 E5 4B DE 9E 2A [04:21:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D6 16 47 00 1D D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6B 73 01 00 F4 03 04 00 85 83 EF 65 B6 04 01 00 00 7F 42 B1 20 98 42 5B 88 [04:21:01]CommunicateWithHost err = 0 [04:21:01]CheckOFDResponse [04:21:01]1017 (14) - 77093643461234 [04:21:01]1041 (16) - 0000000000874811 [04:21:01]1040 (4) - 95083 [04:21:01]1012 (4) - 11.03.2024 22:19 [04:21:01]1206 (1) - 0 [04:21:01]OFD Sender: Remove packet 95083 [04:21:01]ProducePacketName [04:21:01]name=ofd_packets/00095083 [04:21:01]NVStorageDeleteData [04:21:01]Write to MH i2c: 01 00 00 EB 17 02 [04:21:01]Write i2c OK [04:21:01]MH_I2C_Read... [04:21:01]Read from MH i2c: 01 [04:21:01]MH_I2C_Read... [04:21:01]Read from MH i2c: 01 07 00 [04:21:01]MH_I2C_Read... [04:21:01]Read from MH i2c: 01 07 00 EB 17 00 80 00 00 00 4C 0D E2 [04:21:01]RasterBufferAndPrint [04:21:01]line [04:21:01]line [04:21:01]line [04:21:01]line [04:21:01]line [04:21:01]written 0, free lines is 3410 [04:21:01]process_action close_receipt done [04:21:01]requested_data is exist [04:21:01]produce_requested_data [04:21:01]requested_item fm.sn is exist - process it [04:21:01]wFMCommunicate request_size=4 [04:21:01]MH_SAM_APDU [04:21:01]CAPDU: 80 11 00 00 [04:21:01]Write to MH i2c: E2 08 00 F2 17 80 11 00 00 00 00 00 00 83 [04:21:01]Write i2c OK [04:21:01]MH_I2C_Read... [04:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:01]Read from MH i2c: E2 [04:21:01]MH_I2C_Read... [04:21:01]Read from MH i2c: E2 17 00 [04:21:01]MH_I2C_Read... [04:21:01]Read from MH i2c: E2 17 00 F2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D3 [04:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [04:21:01]wFMCommunicate OK [04:21:01]requested_item fd.num is exist - process it [04:21:01]SAM_PROTO_GetFieldsCounters [04:21:01]wFMCommunicate request_size=4 [04:21:01]MH_SAM_APDU [04:21:01]CAPDU: 80 13 00 00 [04:21:01]Write to MH i2c: E2 08 00 F3 17 80 13 00 00 00 00 00 00 86 [04:21:01]Write i2c OK [04:21:01]MH_I2C_Read... [04:21:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:21:01]Read from MH i2c: E2 [04:21:01]MH_I2C_Read... [04:21:01]Read from MH i2c: E2 62 00 [04:21:01]MH_I2C_Read... [04:21:01]Read from MH i2c: E2 62 00 F3 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6B 73 01 00 0E 04 04 00 47 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 F1 [04:21:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6B 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:21:01]wFMCommunicate OK [04:21:01]SAM_PROTO_GetFieldsCounters done [04:21:01]requested_item shift.num is exist - process it [04:21:01]requested_item shift.opened is exist - process it [04:21:01]req_shift_opened [04:21:01]FM_GetShiftState [04:21:01]SAM_PROTO_GetShiftState [04:21:01]wFMCommunicate request_size=4 [04:21:01]MH_SAM_APDU [04:21:01]CAPDU: 80 13 01 00 [04:21:01]Write to MH i2c: E2 08 00 F4 17 80 13 01 00 00 00 00 00 88 [04:21:01]Write i2c OK [04:21:01]MH_I2C_Read... [04:21:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:21:02]Read from MH i2c: E2 [04:21:02]MH_I2C_Read... [04:21:02]Read from MH i2c: E2 0E 00 [04:21:02]MH_I2C_Read... [04:21:02]Read from MH i2c: E2 0E 00 F4 17 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 FC [04:21:02]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [04:21:02]wFMCommunicate OK [04:21:02]SAM_PROTO_GetShiftState done [04:21:02]FM_GetShiftState done [04:21:02]req_shift_opened done [04:21:02]requested_item shift.open_date is exist - process it [04:21:02]req_shift_open_date [04:21:02]req_shift_open_date done [04:21:02]produce_requested_data done [04:21:02]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95083,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [04:21:02]process_action_free close_receipt [04:21:02]json_value_free [04:21:02]json_value_free done [04:21:02]process_json_proto returns [04:21:02]Send response to host [04:21:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95083,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [04:21:02]free response buf [04:21:02]execute_script done [04:21:02]execute_script returns [04:21:02]free content buf [04:21:02]Sock 8.Close socket [04:21:02]Sock 8.Thread stoped [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:42]accept exits with 9 [05:37:42]New connection [05:37:42]New thread 3066813796 created [05:37:42]Thread 3066957156 joined [05:37:42]Waiting for new connection... [05:37:42] Sock 9.Parse request [05:37:42]Sock 9.Check first char [05:37:42]Sock 9.First char is OK [05:37:42]request: POST /json_proto HTTP/1.0 [05:37:42]Method: POST [05:37:42]URL: /json_proto [05:37:42]Method is POST - this is cgi request [05:37:42]url: /json_proto [05:37:42]query_string will be loaded in cgi processing [05:37:42]execute_cgi json_proto POST (null) [05:37:42]execute_cgi path=json_proto method=POST [05:37:42]POST find Content-Length [05:37:42]Host: 172.17.62.67:8080 [05:37:42]Content-Length: 1376 [05:37:42]Content-Type: application/json [05:37:42] [05:37:42]POST finish read [05:37:42]Found Content-Length = 1376 [05:37:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11531", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 78.00, "quantity" : 1.000, "sum" : 78.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 57.00, "quantity" : 1.000, "sum" : 57.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:37:42]execute_script... [05:37: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 : (3)11531", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 78.00, "quantity" : 1.000, "sum" : 78.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 57.00, "quantity" : 1.000, "sum" : 57.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:37:42]POST & json_proto [05:37:42]process_json_proto [05:37:42]json parsed OK: [05:37:42]protocol is kg_v1.0 [05:37:42]action value=close_receipt [05:37:42]process_action close_receipt [05:37:42]cmd_close_receipt [05:37:42]MH_GetDate [05:37:42]Write to MH i2c: F0 00 00 F5 17 FB [05:37:42]Write i2c OK [05:37:42]MH_I2C_Read... [05:37:42]Read from MH i2c: F0 [05:37:42]MH_I2C_Read... [05:37:42]Read from MH i2c: F0 05 00 [05:37:42]MH_I2C_Read... [05:37:42]Read from MH i2c: F0 05 00 F5 17 00 2A EA EF 65 68 [05:37:42]GetLastDocTimeStamp 1710217262 [05:37:42]current date 1710221866 [05:37:42]FM_GetShiftState [05:37:42]SAM_PROTO_GetShiftState [05:37:42]wFMCommunicate request_size=4 [05:37:42]MH_SAM_APDU [05:37:42]CAPDU: 80 13 01 00 [05:37:42]Write to MH i2c: E2 08 00 F6 17 80 13 01 00 00 00 00 00 8A [05:37:42]Write i2c OK [05:37:42]MH_I2C_Read... [05:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:37:42]Read from MH i2c: E2 [05:37:42]MH_I2C_Read... [05:37:42]Read from MH i2c: E2 0E 00 [05:37:42]MH_I2C_Read... [05:37:42]Read from MH i2c: E2 0E 00 F6 17 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 FE [05:37:42]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [05:37:42]wFMCommunicate OK [05:37:42]SAM_PROTO_GetShiftState done [05:37:42]FM_GetShiftState done [05:37:42]opened in 1710201976 [05:37:42]opened+sec_in_day 1710288376 [05:37:42]quantity*price = 3500 [05:37:42]sum+1 = 3501 [05:37:43]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571030 Вода ASU пит н.газ клубн,киви ПЭТ 1л 1.000 * 78.00 = 78.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 40822938 Напиток Фанта 0,5л 1.000 * 57.00 = 57.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 0.00 Безнал.: 170.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 14 12.03.2024 05:37 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95084 ФПД: 135471217766260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T053746&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95084&fm=135471217766260&tin=02508201610067®Number=0000000000090555&sum=17000 0 [05:37:44]StoreToDocumentArchive [05:37:44]shift 327 fd 95084 [05:37:44]save to /storage/0327/doc_00095084 [05:37:44]save last doc name /storage/0327/doc_00095084 to /storage/kkm_last_doc_name [05:37:44]save OK [05:37:44]Clear old archive folders... [05:37:44]ProcessDocumentItem done err = 0, tmpTLVsize=501 [05:37:44]tlvbuf is 01A7D160 [05:37:44]SAM_PROTO_ClearQueue [05:37:44]wFMCommunicate request_size=4 [05:37:44]MH_SAM_APDU [05:37:44]CAPDU: 80 09 00 00 [05:37:44]Write to MH i2c: E2 08 00 03 18 80 09 00 00 00 00 00 00 8D [05:37:44]Write i2c OK [05:37:44]MH_I2C_Read... [05:37:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:37:44]Read from MH i2c: E2 [05:37:44]MH_I2C_Read... [05:37:44]Read from MH i2c: E2 03 00 [05:37:44]MH_I2C_Read... [05:37:44]Read from MH i2c: E2 03 00 03 18 00 90 00 8F [05:37:44]RAPDU: 90 00 [05:37:44]wFMCommunicate OK [05:37:44]SAM_PROTO_ClearQueue done [05:37:44]KKMCreateOFDPacket [05:37:44]OFDProtocolAddRootSTLVToBuf [05:37:44]FM_MakeSignedData [05:37:44]FM_MakeSignedData [05:37:44]SAM_PROTO_SignData [05:37:44]wFMCommunicate request_size=4 [05:37:44]MH_SAM_APDU [05:37:44]CAPDU: 80 0D 01 02 [05:37:44]Write to MH i2c: E2 08 00 04 18 80 0D 01 02 00 00 00 00 95 [05:37:44]Write i2c OK [05:37:44]MH_I2C_Read... [05:37:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:37:44]Read from MH i2c: E2 [05:37:44]MH_I2C_Read... [05:37:44]Read from MH i2c: E2 03 00 [05:37:44]MH_I2C_Read... [05:37:44]Read from MH i2c: E2 03 00 04 18 00 90 00 90 [05:37:44]RAPDU: 90 00 [05:37:44]wFMCommunicate OK [05:37:44]wFMCommunicate request_size=255 [05:37:44]MH_SAM_APDU [05:37:44]CAPDU: 80 0D 02 02 FA 03 00 F5 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 1E 00 00 00 00 13 04 06 00 78 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 [05:37:44]Write to MH i2c: E2 02 01 05 18 80 0D 02 02 FA 00 03 00 F5 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 1E 00 00 00 00 13 04 06 00 78 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 00 00 60 [05:37:44]Write i2c OK [05:37:44]MH_I2C_Read... [05:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:37:44]Read from MH i2c: E2 [05:37:44]MH_I2C_Read... [05:37:44]Read from MH i2c: E2 03 00 [05:37:44]MH_I2C_Read... [05:37:44]Read from MH i2c: E2 03 00 05 18 00 90 00 91 [05:37:44]RAPDU: 90 00 [05:37:44]wFMCommunicate OK [05:37:44]wFMCommunicate request_size=255 [05:37:44]MH_SAM_APDU [05:37:44]CAPDU: 80 0D 02 02 FA 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 16 00 00 00 00 13 04 06 00 44 16 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2A EA EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6C 73 01 00 35 04 06 00 7B [05:37:44]Write to MH i2c: E2 02 01 06 18 80 0D 02 02 FA 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 16 00 00 00 00 13 04 06 00 44 16 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2A EA EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6C 73 01 00 35 04 06 00 7B 00 00 8C [05:37:44]Write i2c OK [05:37:44]MH_I2C_Read... [05:37:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:37:45]Read from MH i2c: E2 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: E2 03 00 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: E2 03 00 06 18 00 90 00 92 [05:37:45]RAPDU: 90 00 [05:37:45]wFMCommunicate OK [05:37:45]wFMCommunicate request_size=10 [05:37:45]MH_SAM_APDU [05:37:45]CAPDU: 80 0D 02 02 05 35 D9 CF EF 74 [05:37:45]Write to MH i2c: E2 0D 00 07 18 80 0D 02 02 05 00 35 D9 CF EF 74 00 00 E3 [05:37:45]Write i2c OK [05:37:45]MH_I2C_Read... [05:37:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:37:45]Read from MH i2c: E2 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: E2 03 00 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: E2 03 00 07 18 00 90 00 93 [05:37:45]RAPDU: 90 00 [05:37:45]wFMCommunicate OK [05:37:45]wFMCommunicate request_size=4 [05:37:45]MH_SAM_APDU [05:37:45]CAPDU: 80 0D 03 02 [05:37:45]Write to MH i2c: E2 08 00 08 18 80 0D 03 02 00 00 00 00 9B [05:37:45]Write i2c OK [05:37:45]MH_I2C_Read... [05:37:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:37:45]Read from MH i2c: E2 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: E2 0B 00 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: E2 0B 00 08 18 00 77 97 8C 36 FF A7 C5 D6 90 00 AD [05:37:45]RAPDU: 77 97 8C 36 FF A7 C5 D6 90 00 [05:37:45]wFMCommunicate OK [05:37:45]SAM_PROTO_SignData done [05:37:45]FM_MakeSignedData done [05:37:45]CreateOFDProtocolMessage [05:37:45]wFMCommunicate request_size=4 [05:37:45]MH_SAM_APDU [05:37:45]CAPDU: 80 11 00 00 [05:37:45]Write to MH i2c: E2 08 00 09 18 80 11 00 00 00 00 00 00 9B [05:37:45]Write i2c OK [05:37:45]MH_I2C_Read... [05:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:37:45]Read from MH i2c: E2 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: E2 17 00 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: E2 17 00 09 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EB [05:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [05:37:45]wFMCommunicate OK [05:37:45]CreateOFDProtocolMessage done [05:37:45]OFDSenderStorePacket 95084 [05:37:45]StoreOFDPacket docnum=95084 [05:37:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 09 02 00 00 A2 01 01 02 CE 12 5A 03 01 00 03 00 F5 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 1E 00 00 00 00 13 04 06 00 78 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 16 00 00 00 00 13 04 06 00 44 16 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2A EA EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6C 73 01 00 35 04 06 00 7B 35 D9 CF EF 74 77 97 8C 36 FF A7 C5 D6 [05:37:45]CheckFolder [05:37:45]dirname=/storage/ofd_packets [05:37:45]CheckFolder done [05:37:45]ProducePacketName [05:37:45]name=ofd_packets/00095084 [05:37:45]NVStorageSaveData ofd_packets/00095084 [05:37:45]File name is /storage/ofd_packets/00095084 [05:37:45]Write 551 bytes [05:37:45]NVStorageSaveData done [05:37:45]OFDSenderStorePacket done [05:37:45]KKMCreateOFDPacket done [05:37:45]NVStorageSaveData kkm_last_timestamp [05:37:45]File name is /storage/kkm_last_timestamp [05:37:45]Write 4 bytes [05:37:45]NVStorageSaveData done [05:37:45]ExternCall_PrintAddStr [05:37:45]wPrintStart [05:37:45]Write to MH i2c: 01 00 00 0A 18 22 [05:37:45]Write i2c OK [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: 01 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: 01 07 00 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: 01 07 00 0A 18 00 80 00 00 00 FF 0F B7 [05:37:45]RasterBufferAndPrint [05:37:45]line Счет N : (3)11531 [05:37:45]line ИНН: 02508201610067 [05:37:45]line Контрольно-Кассовый Чек [05:37:45]line ПРОДАЖА [05:37:45]line Товар: 4700000160211 [05:37:45]line Вода Легенда 0,5л [05:37:45]line 1.000 * 35.00 [05:37:45]line = 35.00 [05:37:45]line НДС 12% НСП 1% [05:37:45]line > о реализуемом товаре [05:37:45]line Товар: 4870001571030 [05:37:45]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [05:37:45]line 1.000 * 78.00 [05:37:45]line = 78.00 [05:37:45]line НДС 12% НСП 1% [05:37:45]line > о реализуемом товаре [05:37:45]line Товар: 40822938 [05:37:45]line Напиток Фанта 0,5л [05:37:45]line 1.000 * 57.00 [05:37:45]line = 57.00 [05:37:45]line НДС 12% НСП 1% [05:37:45]line > о реализуемом товаре [05:37:45]line ИТОГО: 170.00 [05:37:45]line НСП 1% : 1.50 [05:37:45]line НДС 12% : 18.05 [05:37:45]line Наличными: 0.00 [05:37:45]line Безнал.: 170.00 [05:37:45]line Место: АЗС № 6 "Партнер Нефть" [05:37:45]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [05:37:45]line СНО: Общий режим [05:37:45]line Чек 14 12.03.2024 05:37 [05:37:45]line Смена: 327 ФФД: 1.0 [05:37:45]line ЗНМ: 0300000009 [05:37:45]line РНМ: 0000000000090555 [05:37:45]line Версия ККМ: 001 [05:37:45]line Платежная система: О! деньги [05:37:45]line ФМ: 0000000000874811 [05:37:45]line ФД: 95084 [05:37:45]line ФПД: 135471217766260 [05:37:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T053746&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95084&fm=135471217766260&tin=02508201610067®Number=0000000000090555&sum=17000 [05:37:45]line 0 [05:37:45]written 0, free lines is 4095 [05:37:45]OFD Sender: Processing packet 95084 [packets to send 30, broken 29] [05:37:45]ProducePacketName [05:37:45]name=ofd_packets/00095084 [05:37:45]OFD Sender: To server: pG, [05:37:45]CommunicateWithHost lk.salyk.kg:30040 [05:37:45]ConnectInit lk.salyk.kg [05:37:45]Connected sock=10 [05:37:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 09 02 00 00 A2 01 01 02 CE 12 5A 03 01 00 03 00 F5 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 1E 00 00 00 00 13 04 06 00 78 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 16 00 00 00 00 13 04 06 00 44 16 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2A EA EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6C 73 01 00 35 04 06 00 7B 35 D9 CF EF 74 77 97 8C 36 FF A7 C5 D6 [05:37:45]Write to MH i2c: 01 00 00 41 18 59 [05:37:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 42 CF 47 00 99 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6C 73 01 00 F4 03 04 00 82 95 EF 65 B6 04 01 00 00 67 BC EC 1C 6D 54 B9 67 [05:37:45]CommunicateWithHost err = 0 [05:37:45]CheckOFDResponse [05:37:45]1017 (14) - 77093643461234 [05:37:45]1041 (16) - 0000000000874811 [05:37:45]1040 (4) - 95084 [05:37:45]1012 (4) - 11.03.2024 23:36 [05:37:45]1206 (1) - 0 [05:37:45]OFD Sender: Remove packet 95084 [05:37:45]ProducePacketName [05:37:45]name=ofd_packets/00095084 [05:37:45]NVStorageDeleteData [05:37:45]Write i2c OK [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: 01 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: 01 07 00 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: 01 07 00 41 18 00 80 00 00 00 BE 0C AA [05:37:45]RasterBufferAndPrint [05:37:45]line [05:37:45]line [05:37:45]line [05:37:45]line [05:37:45]line [05:37:45]written 0, free lines is 3298 [05:37:45]process_action close_receipt done [05:37:45]requested_data is exist [05:37:45]produce_requested_data [05:37:45]requested_item fm.sn is exist - process it [05:37:45]wFMCommunicate request_size=4 [05:37:45]MH_SAM_APDU [05:37:45]CAPDU: 80 11 00 00 [05:37:45]Write to MH i2c: E2 08 00 48 18 80 11 00 00 00 00 00 00 DA [05:37:45]Write i2c OK [05:37:45]MH_I2C_Read... [05:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:37:45]Read from MH i2c: E2 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: E2 17 00 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: E2 17 00 48 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2A [05:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [05:37:45]wFMCommunicate OK [05:37:45]requested_item fd.num is exist - process it [05:37:45]SAM_PROTO_GetFieldsCounters [05:37:45]wFMCommunicate request_size=4 [05:37:45]MH_SAM_APDU [05:37:45]CAPDU: 80 13 00 00 [05:37:45]Write to MH i2c: E2 08 00 49 18 80 13 00 00 00 00 00 00 DD [05:37:45]Write i2c OK [05:37:45]MH_I2C_Read... [05:37:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:37:46]Read from MH i2c: E2 [05:37:46]MH_I2C_Read... [05:37:46]Read from MH i2c: E2 62 00 [05:37:46]MH_I2C_Read... [05:37:46]Read from MH i2c: E2 62 00 49 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6C 73 01 00 0E 04 04 00 47 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 4C [05:37:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6C 73 01 00 0E 04 04 00 47 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 [05:37:46]wFMCommunicate OK [05:37:46]SAM_PROTO_GetFieldsCounters done [05:37:46]requested_item shift.num is exist - process it [05:37:46]requested_item shift.opened is exist - process it [05:37:46]req_shift_opened [05:37:46]FM_GetShiftState [05:37:46]SAM_PROTO_GetShiftState [05:37:46]wFMCommunicate request_size=4 [05:37:46]MH_SAM_APDU [05:37:46]CAPDU: 80 13 01 00 [05:37:46]Write to MH i2c: E2 08 00 4A 18 80 13 01 00 00 00 00 00 DF [05:37:46]Write i2c OK [05:37:46]MH_I2C_Read... [05:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:37:46]Read from MH i2c: E2 [05:37:46]MH_I2C_Read... [05:37:46]Read from MH i2c: E2 0E 00 [05:37:46]MH_I2C_Read... [05:37:46]Read from MH i2c: E2 0E 00 4A 18 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 53 [05:37:46]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [05:37:46]wFMCommunicate OK [05:37:46]SAM_PROTO_GetShiftState done [05:37:46]FM_GetShiftState done [05:37:46]req_shift_opened done [05:37:46]requested_item shift.open_date is exist - process it [05:37:46]req_shift_open_date [05:37:46]req_shift_open_date done [05:37:46]produce_requested_data done [05:37:46]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95084,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [05:37:46]process_action_free close_receipt [05:37:46]json_value_free [05:37:46]json_value_free done [05:37:46]process_json_proto returns [05:37:46]Send response to host [05:37:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95084,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [05:37:46]free response buf [05:37:46]execute_script done [05:37:46]execute_script returns [05:37:46]free content buf [05:37:46]Sock 9.Close socket [05:37:46]Sock 9.Thread stoped [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:40]accept exits with 8 [06:20:40]New connection [06:20:40]New thread 3066957156 created [06:20:40]Thread 3066813796 joined [06:20:40]Waiting for new connection... [06:20:40] Sock 8.Parse request [06:20:40]Sock 8.Check first char [06:20:40]Sock 8.First char is OK [06:20:40]request: POST /json_proto HTTP/1.0 [06:20:40]Method: POST [06:20:40]URL: /json_proto [06:20:40]Method is POST - this is cgi request [06:20:40]url: /json_proto [06:20:40]query_string will be loaded in cgi processing [06:20:40]execute_cgi json_proto POST (null) [06:20:40]execute_cgi path=json_proto method=POST [06:20:40]POST find Content-Length [06:20:40]Host: 172.17.62.67:8080 [06:20:40]Content-Length: 677 [06:20:40]Content-Type: application/json [06:20:40] [06:20:40]POST finish read [06:20:40]Found Content-Length = 677 [06:20:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:20:40]execute_script... [06:20: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)196040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:20:40]POST & json_proto [06:20:40]process_json_proto [06:20:40]json parsed OK: [06:20:40]protocol is kg_v1.0 [06:20:40]action value=close_receipt [06:20:40]process_action close_receipt [06:20:40]cmd_close_receipt [06:20:40]MH_GetDate [06:20:40]Write to MH i2c: F0 00 00 4B 18 52 [06:20:40]Write i2c OK [06:20:40]MH_I2C_Read... [06:20:40]Read from MH i2c: F0 [06:20:40]MH_I2C_Read... [06:20:40]Read from MH i2c: F0 05 00 [06:20:40]MH_I2C_Read... [06:20:40]Read from MH i2c: F0 05 00 4B 18 00 3C F4 EF 65 DB [06:20:40]GetLastDocTimeStamp 1710221866 [06:20:40]current date 1710224444 [06:20:40]FM_GetShiftState [06:20:40]SAM_PROTO_GetShiftState [06:20:40]wFMCommunicate request_size=4 [06:20:40]MH_SAM_APDU [06:20:40]CAPDU: 80 13 01 00 [06:20:40]Write to MH i2c: E2 08 00 4C 18 80 13 01 00 00 00 00 00 E1 [06:20:40]Write i2c OK [06:20:40]MH_I2C_Read... [06:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:20:40]Read from MH i2c: E2 [06:20:40]MH_I2C_Read... [06:20:40]Read from MH i2c: E2 0E 00 [06:20:40]MH_I2C_Read... [06:20:40]Read from MH i2c: E2 0E 00 4C 18 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 55 [06:20:40]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [06:20:40]wFMCommunicate OK [06:20:40]SAM_PROTO_GetShiftState done [06:20:40]FM_GetShiftState done [06:20:40]opened in 1710201976 [06:20:40]opened+sec_in_day 1710288376 [06:20:40]quantity*price = 50005 [06:20:40]sum+1 = 50007 [06:20:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 15 12.03.2024 06:20 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95085 ФПД: 87649459078974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T062044&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95085&fm=87649459078974&tin=02508201610067®Number=0000000000090555&sum=50000 [06:20:41]StoreToDocumentArchive [06:20:41]shift 327 fd 95085 [06:20:41]save to /storage/0327/doc_00095085 [06:20:41]save last doc name /storage/0327/doc_00095085 to /storage/kkm_last_doc_name [06:20:41]save OK [06:20:41]Clear old archive folders... [06:20:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:20:41]tlvbuf is 01A6CAE0 [06:20:41]SAM_PROTO_ClearQueue [06:20:41]wFMCommunicate request_size=4 [06:20:41]MH_SAM_APDU [06:20:41]CAPDU: 80 09 00 00 [06:20:41]Write to MH i2c: E2 08 00 59 18 80 09 00 00 00 00 00 00 E3 [06:20:41]Write i2c OK [06:20:41]MH_I2C_Read... [06:20:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:20:41]Read from MH i2c: E2 [06:20:41]MH_I2C_Read... [06:20:41]Read from MH i2c: E2 03 00 [06:20:41]MH_I2C_Read... [06:20:41]Read from MH i2c: E2 03 00 59 18 00 90 00 E5 [06:20:41]RAPDU: 90 00 [06:20:41]wFMCommunicate OK [06:20:41]SAM_PROTO_ClearQueue done [06:20:41]KKMCreateOFDPacket [06:20:41]OFDProtocolAddRootSTLVToBuf [06:20:41]FM_MakeSignedData [06:20:41]FM_MakeSignedData [06:20:41]SAM_PROTO_SignData [06:20:41]wFMCommunicate request_size=4 [06:20:41]MH_SAM_APDU [06:20:41]CAPDU: 80 0D 01 02 [06:20:41]Write to MH i2c: E2 08 00 5A 18 80 0D 01 02 00 00 00 00 EB [06:20:41]Write i2c OK [06:20:41]MH_I2C_Read... [06:20:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:20:41]Read from MH i2c: E2 [06:20:41]MH_I2C_Read... [06:20:41]Read from MH i2c: E2 03 00 [06:20:41]MH_I2C_Read... [06:20:41]Read from MH i2c: E2 03 00 5A 18 00 90 00 E6 [06:20:41]RAPDU: 90 00 [06:20:41]wFMCommunicate OK [06:20:41]wFMCommunicate request_size=255 [06:20:41]MH_SAM_APDU [06:20:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 3C F4 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6D 73 01 00 35 04 06 00 4F [06:20:41]Write to MH i2c: E2 02 01 5B 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 3C F4 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6D 73 01 00 35 04 06 00 4F 00 00 9F [06:20:41]Write i2c OK [06:20:41]MH_I2C_Read... [06:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:20:42]Read from MH i2c: E2 [06:20:42]MH_I2C_Read... [06:20:42]Read from MH i2c: E2 03 00 [06:20:42]MH_I2C_Read... [06:20:42]Read from MH i2c: E2 03 00 5B 18 00 90 00 E7 [06:20:42]RAPDU: 90 00 [06:20:42]wFMCommunicate OK [06:20:42]wFMCommunicate request_size=10 [06:20:42]MH_SAM_APDU [06:20:42]CAPDU: 80 0D 02 02 05 B7 7A DF 87 3E [06:20:42]Write to MH i2c: E2 0D 00 5C 18 80 0D 02 02 05 00 B7 7A DF 87 3E 00 00 CD [06:20:42]Write i2c OK [06:20:42]MH_I2C_Read... [06:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:20:42]Read from MH i2c: E2 [06:20:42]MH_I2C_Read... [06:20:42]Read from MH i2c: E2 03 00 [06:20:42]MH_I2C_Read... [06:20:42]Read from MH i2c: E2 03 00 5C 18 00 90 00 E8 [06:20:42]RAPDU: 90 00 [06:20:42]wFMCommunicate OK [06:20:42]wFMCommunicate request_size=4 [06:20:42]MH_SAM_APDU [06:20:42]CAPDU: 80 0D 03 02 [06:20:42]Write to MH i2c: E2 08 00 5D 18 80 0D 03 02 00 00 00 00 F0 [06:20:42]Write i2c OK [06:20:42]MH_I2C_Read... [06:20:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:20:42]Read from MH i2c: E2 [06:20:42]MH_I2C_Read... [06:20:42]Read from MH i2c: E2 0B 00 [06:20:42]MH_I2C_Read... [06:20:42]Read from MH i2c: E2 0B 00 5D 18 00 6F 9D A3 FE C1 E8 33 D6 90 00 50 [06:20:42]RAPDU: 6F 9D A3 FE C1 E8 33 D6 90 00 [06:20:42]wFMCommunicate OK [06:20:42]SAM_PROTO_SignData done [06:20:42]FM_MakeSignedData done [06:20:42]CreateOFDProtocolMessage [06:20:42]wFMCommunicate request_size=4 [06:20:42]MH_SAM_APDU [06:20:42]CAPDU: 80 11 00 00 [06:20:42]Write to MH i2c: E2 08 00 5E 18 80 11 00 00 00 00 00 00 F0 [06:20:42]Write i2c OK [06:20:42]MH_I2C_Read... [06:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:20:42]Read from MH i2c: E2 [06:20:42]MH_I2C_Read... [06:20:42]Read from MH i2c: E2 17 00 [06:20:42]MH_I2C_Read... [06:20:42]Read from MH i2c: E2 17 00 5E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 40 [06:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [06:20:42]wFMCommunicate OK [06:20:42]CreateOFDProtocolMessage done [06:20:42]OFDSenderStorePacket 95085 [06:20:42]StoreOFDPacket docnum=95085 [06:20:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C8 F7 07 01 A1 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 3C F4 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6D 73 01 00 35 04 06 00 4F B7 7A DF 87 3E 6F 9D A3 FE C1 E8 33 D6 [06:20:42]CheckFolder [06:20:42]dirname=/storage/ofd_packets [06:20:42]CheckFolder done [06:20:42]ProducePacketName [06:20:42]name=ofd_packets/00095085 [06:20:42]NVStorageSaveData ofd_packets/00095085 [06:20:42]File name is /storage/ofd_packets/00095085 [06:20:42]Write 301 bytes [06:20:42]NVStorageSaveData done [06:20:42]OFDSenderStorePacket done [06:20:42]KKMCreateOFDPacket done [06:20:42]NVStorageSaveData kkm_last_timestamp [06:20:42]File name is /storage/kkm_last_timestamp [06:20:42]Write 4 bytes [06:20:42]NVStorageSaveData done [06:20:42]ExternCall_PrintAddStr [06:20:42]wPrintStart [06:20:42]Write to MH i2c: 01 00 00 5F 18 77 [06:20:42]Write i2c OK [06:20:42]MH_I2C_Read... [06:20:42]Read from MH i2c: 01 [06:20:42]MH_I2C_Read... [06:20:42]Read from MH i2c: 01 07 00 [06:20:42]MH_I2C_Read... [06:20:42]Read from MH i2c: 01 07 00 5F 18 00 80 00 00 00 FF 0F 0C [06:20:42]RasterBufferAndPrint [06:20:42]line Счет N : (1)196040 [06:20:42]line ИНН: 02508201610067 [06:20:42]line Контрольно-Кассовый Чек [06:20:42]line ПРОДАЖА [06:20:42]line ТРК (МРК, ГНК) : 32 [06:20:42]line Товар: 2710124130 [06:20:42]line Аи-92-К-5 [06:20:42]line 7.950 * 62.90 [06:20:42]line = 500.06 [06:20:42]line НДС 12% НСП 1% [06:20:42]line > о реализуемом товаре [06:20:42]line ОКРУГЛЕНИЕ: -0.06 [06:20:42]line ИТОГО: 500.00 [06:20:42]line Внесено: 500.00 [06:20:42]line СДАЧА: 0.00 [06:20:42]line НСП 1% : 4.42 [06:20:42]line НДС 12% : 53.10 [06:20:42]line Наличными: 500.00 [06:20:42]line Безнал.: 0.00 [06:20:42]line Место: АЗС № 6 "Партнер Нефть" [06:20:42]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [06:20:42]line СНО: Общий режим [06:20:42]line Чек 15 12.03.2024 06:20 [06:20:42]line Смена: 327 ФФД: 1.0 [06:20:42]line ЗНМ: 0300000009 [06:20:42]line РНМ: 0000000000090555 [06:20:42]line Версия ККМ: 001 [06:20:42]line ФМ: 0000000000874811 [06:20:42]line ФД: 95085 [06:20:42]line ФПД: 87649459078974 [06:20:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T062044&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95085&fm=87649459078974&tin=02508201610067®Number=0000000000090555&sum=50000 [06:20:42]OFD Sender: Processing packet 95085 [packets to send 30, broken 29] [06:20:42]ProducePacketName [06:20:42]name=ofd_packets/00095085 [06:20:42]OFD Sender: To server: pG, [06:20:42]CommunicateWithHost lk.salyk.kg:30040 [06:20:42]ConnectInit lk.salyk.kg [06:20:42]written 0, free lines is 4095 [06:20:42]Connected sock=10 [06:20:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C8 F7 07 01 A1 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 3C F4 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6D 73 01 00 35 04 06 00 4F B7 7A DF 87 3E 6F 9D A3 FE C1 E8 33 D6 [06:20:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 3A E2 47 00 A8 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6D 73 01 00 F4 03 04 00 93 9F EF 65 B6 04 01 00 00 D6 15 86 C6 31 B3 DC 43 [06:20:42]CommunicateWithHost err = 0 [06:20:42]CheckOFDResponse [06:20:42]1017 (14) - 77093643461234 [06:20:42]1041 (16) - 0000000000874811 [06:20:42]1040 (4) - 95085 [06:20:42]1012 (4) - 12.03.2024 00:19 [06:20:42]1206 (1) - 0 [06:20:42]OFD Sender: Remove packet 95085 [06:20:42]ProducePacketName [06:20:42]name=ofd_packets/00095085 [06:20:42]NVStorageDeleteData [06:20:43]Write to MH i2c: 01 00 00 8A 18 A2 [06:20:43]Write i2c OK [06:20:43]MH_I2C_Read... [06:20:43]Read from MH i2c: 01 [06:20:43]MH_I2C_Read... [06:20:43]Read from MH i2c: 01 07 00 [06:20:43]MH_I2C_Read... [06:20:43]Read from MH i2c: 01 07 00 8A 18 00 80 00 00 00 54 0D 8A [06:20:43]RasterBufferAndPrint [06:20:43]line [06:20:43]line [06:20:43]line [06:20:43]line [06:20:43]line [06:20:43]written 0, free lines is 3418 [06:20:43]process_action close_receipt done [06:20:43]requested_data is exist [06:20:43]produce_requested_data [06:20:43]requested_item fm.sn is exist - process it [06:20:43]wFMCommunicate request_size=4 [06:20:43]MH_SAM_APDU [06:20:43]CAPDU: 80 11 00 00 [06:20:43]Write to MH i2c: E2 08 00 91 18 80 11 00 00 00 00 00 00 23 [06:20:43]Write i2c OK [06:20:43]MH_I2C_Read... [06:20:43]Read from MH i2c: E2 [06:20:43]MH_I2C_Read... [06:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:20:43]Read from MH i2c: E2 17 00 [06:20:43]MH_I2C_Read... [06:20:43]Read from MH i2c: E2 17 00 91 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 73 [06:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [06:20:43]wFMCommunicate OK [06:20:43]requested_item fd.num is exist - process it [06:20:43]SAM_PROTO_GetFieldsCounters [06:20:43]wFMCommunicate request_size=4 [06:20:43]MH_SAM_APDU [06:20:43]CAPDU: 80 13 00 00 [06:20:43]Write to MH i2c: E2 08 00 92 18 80 13 00 00 00 00 00 00 26 [06:20:43]Write i2c OK [06:20:43]MH_I2C_Read... [06:20:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:20:43]Read from MH i2c: E2 [06:20:43]MH_I2C_Read... [06:20:43]Read from MH i2c: E2 62 00 [06:20:43]MH_I2C_Read... [06:20:43]Read from MH i2c: E2 62 00 92 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6D 73 01 00 0E 04 04 00 47 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 99 [06:20:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6D 73 01 00 0E 04 04 00 47 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 [06:20:43]wFMCommunicate OK [06:20:43]SAM_PROTO_GetFieldsCounters done [06:20:43]requested_item shift.num is exist - process it [06:20:43]requested_item shift.opened is exist - process it [06:20:43]req_shift_opened [06:20:43]FM_GetShiftState [06:20:43]SAM_PROTO_GetShiftState [06:20:43]wFMCommunicate request_size=4 [06:20:43]MH_SAM_APDU [06:20:43]CAPDU: 80 13 01 00 [06:20:43]Write to MH i2c: E2 08 00 93 18 80 13 01 00 00 00 00 00 28 [06:20:43]Write i2c OK [06:20:43]MH_I2C_Read... [06:20:43]OFD Sender: No OFD packet to send [06:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:20:43]Read from MH i2c: E2 [06:20:43]MH_I2C_Read... [06:20:43]Read from MH i2c: E2 0E 00 [06:20:43]MH_I2C_Read... [06:20:43]Read from MH i2c: E2 0E 00 93 18 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 9C [06:20:43]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [06:20:43]wFMCommunicate OK [06:20:43]SAM_PROTO_GetShiftState done [06:20:43]FM_GetShiftState done [06:20:43]req_shift_opened done [06:20:43]requested_item shift.open_date is exist - process it [06:20:43]req_shift_open_date [06:20:43]req_shift_open_date done [06:20:43]produce_requested_data done [06:20:43]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95085,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [06:20:43]process_action_free close_receipt [06:20:43]json_value_free [06:20:43]json_value_free done [06:20:43]process_json_proto returns [06:20:43]Send response to host [06:20:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95085,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [06:20:43]free response buf [06:20:43]execute_script done [06:20:43]execute_script returns [06:20:43]free content buf [06:20:43]Sock 8.Close socket [06:20:43]Sock 8.Thread stoped [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50: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:29]accept exits with 9 [06:58:29]New connection [06:58:29]New thread 3066813796 created [06:58:29]Thread 3066957156 joined [06:58:29]Waiting for new connection... [06:58:29] Sock 9.Parse request [06:58:29]Sock 9.Check first char [06:58:29]Sock 9.First char is OK [06:58:29]request: POST /json_proto HTTP/1.0 [06:58:29]Method: POST [06:58:29]URL: /json_proto [06:58:29]Method is POST - this is cgi request [06:58:29]url: /json_proto [06:58:29]query_string will be loaded in cgi processing [06:58:29]execute_cgi json_proto POST (null) [06:58:29]execute_cgi path=json_proto method=POST [06:58:29]POST find Content-Length [06:58:29]Host: 172.17.62.67:8080 [06:58:29]Content-Length: 1211 [06:58:29]Content-Type: application/json [06:58:29] [06:58:29]POST finish read [06:58:29]Found Content-Length = 1211 [06:58: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196041\u000A12.03.2024 06:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.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\u000A81786\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:29]execute_script... [06:58: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196041\u000A12.03.2024 06:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.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\u000A81786\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:29]POST & json_proto [06:58:29]process_json_proto [06:58:29]json parsed OK: [06:58:29]protocol is kg_v1.0 [06:58:29]action value=print_text [06:58:29]process_action print_text [06:58:29]cmd_print_text [06:58:29]ExternCall_PrintAddStr [06:58:29]wPrintStart [06:58:29]Write to MH i2c: 01 00 00 94 18 AC [06:58:29]Write i2c OK [06:58:29]MH_I2C_Read... [06:58:29]Read from MH i2c: 01 [06:58:29]MH_I2C_Read... [06:58:29]Read from MH i2c: 01 07 00 [06:58:29]MH_I2C_Read... [06:58:29]Read from MH i2c: 01 07 00 94 18 00 80 00 00 00 FF 0F 41 [06:58:29]RasterBufferAndPrint [06:58:29]line *****ТОВАРНЫЙ ЧЕК***** [06:58:29]line АЗС 6 [06:58:29]line Партнер нефть [06:58:29]line 02508201610067 [06:58:29]line Кассир : Мыктыбекова И. [06:58:29]line Счет N : (1)196041 [06:58:29]line 12.03.2024 06:52 [06:58:29]line ПРОДАЖА [06:58:29]line ТРК (МРК, ГНК): 22 [06:58:29]line Вид ГСМ : 2710124130 [06:58:29]line Аи-92-К-5 [06:58:29]line 30.000 x 62.90 [06:58:29]line ИТОГ: 1887.00 [06:58:29]line Тип оплаты: Талоны: Топливная Карта [06:58:29]line 81786 [06:58:29]line ______________________ [06:58:29]line (подпись) [06:58:29]written 0, free lines is 4095 [06:58:29]Write to MH i2c: 01 00 00 A8 18 C0 [06:58:29]Write i2c OK [06:58:29]MH_I2C_Read... [06:58:29]Read from MH i2c: 01 [06:58:29]MH_I2C_Read... [06:58:29]Read from MH i2c: 01 07 00 [06:58:29]MH_I2C_Read... [06:58:29]Read from MH i2c: 01 07 00 A8 18 00 80 00 00 00 67 0E BC [06:58:29]RasterBufferAndPrint [06:58:29]line [06:58:29]line [06:58:29]line [06:58:29]line [06:58:29]line [06:58:29]written 0, free lines is 3691 [06:58:29]process_action print_text done [06:58:29]requested_data is exist [06:58:29]produce_requested_data [06:58:29]requested_item fm.sn is exist - process it [06:58:29]wFMCommunicate request_size=4 [06:58:29]MH_SAM_APDU [06:58:29]CAPDU: 80 11 00 00 [06:58:29]Write to MH i2c: E2 08 00 AF 18 80 11 00 00 00 00 00 00 41 [06:58:29]Write i2c OK [06:58:29]MH_I2C_Read... [06:58:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:29]Read from MH i2c: E2 [06:58:29]MH_I2C_Read... [06:58:29]Read from MH i2c: E2 17 00 [06:58:29]MH_I2C_Read... [06:58:29]Read from MH i2c: E2 17 00 AF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 91 [06:58:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [06:58:29]wFMCommunicate OK [06:58:29]requested_item fd.num is exist - process it [06:58:29]SAM_PROTO_GetFieldsCounters [06:58:29]wFMCommunicate request_size=4 [06:58:29]MH_SAM_APDU [06:58:29]CAPDU: 80 13 00 00 [06:58:29]Write to MH i2c: E2 08 00 B0 18 80 13 00 00 00 00 00 00 44 [06:58:29]Write i2c OK [06:58:29]MH_I2C_Read... [06:58:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:58:29]Read from MH i2c: E2 [06:58:29]MH_I2C_Read... [06:58:29]Read from MH i2c: E2 62 00 [06:58:29]MH_I2C_Read... [06:58:29]Read from MH i2c: E2 62 00 B0 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6D 73 01 00 0E 04 04 00 47 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 B7 [06:58:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6D 73 01 00 0E 04 04 00 47 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 [06:58:29]wFMCommunicate OK [06:58:29]SAM_PROTO_GetFieldsCounters done [06:58:29]requested_item shift.num is exist - process it [06:58:29]requested_item shift.opened is exist - process it [06:58:29]req_shift_opened [06:58:29]FM_GetShiftState [06:58:29]SAM_PROTO_GetShiftState [06:58:29]wFMCommunicate request_size=4 [06:58:29]MH_SAM_APDU [06:58:29]CAPDU: 80 13 01 00 [06:58:29]Write to MH i2c: E2 08 00 B1 18 80 13 01 00 00 00 00 00 46 [06:58:29]Write i2c OK [06:58:29]MH_I2C_Read... [06:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:29]Read from MH i2c: E2 [06:58:29]MH_I2C_Read... [06:58:29]Read from MH i2c: E2 0E 00 [06:58:29]MH_I2C_Read... [06:58:29]Read from MH i2c: E2 0E 00 B1 18 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 BA [06:58:29]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [06:58:29]wFMCommunicate OK [06:58:29]SAM_PROTO_GetShiftState done [06:58:29]FM_GetShiftState done [06:58:29]req_shift_opened done [06:58:29]requested_item shift.open_date is exist - process it [06:58:29]req_shift_open_date [06:58:29]req_shift_open_date done [06:58:29]produce_requested_data done [06:58:29]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95085,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [06:58:29]process_action_free print_text [06:58:29]json_value_free [06:58:29]json_value_free done [06:58:29]process_json_proto returns [06:58:29]Send response to host [06:58:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95085,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [06:58:29]free response buf [06:58:29]execute_script done [06:58:29]execute_script returns [06:58:29]free content buf [06:58:29]Sock 9.Close socket [06:58:29]Sock 9.Thread stoped [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02: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:32]accept exits with 8 [07:03:32]New connection [07:03:32]New thread 3066957156 created [07:03:32]Thread 3066813796 joined [07:03:32]Waiting for new connection... [07:03:32] Sock 8.Parse request [07:03:32]Sock 8.Check first char [07:03:32]Sock 8.First char is OK [07:03:32]request: POST /json_proto HTTP/1.0 [07:03:32]Method: POST [07:03:32]URL: /json_proto [07:03:32]Method is POST - this is cgi request [07:03:32]url: /json_proto [07:03:32]query_string will be loaded in cgi processing [07:03:32]execute_cgi json_proto POST (null) [07:03:32]execute_cgi path=json_proto method=POST [07:03:32]POST find Content-Length [07:03:32]Host: 172.17.62.67:8080 [07:03:32]Content-Length: 805 [07:03:32]Content-Type: application/json [07:03:32] [07:03:32]POST finish read [07:03:32]Found Content-Length = 805 [07:03:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.570, "sum" : 350.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 350.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:03:32]execute_script... [07:03:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.570, "sum" : 350.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 350.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:03:32]POST & json_proto [07:03:32]process_json_proto [07:03:32]json parsed OK: [07:03:32]protocol is kg_v1.0 [07:03:32]action value=close_receipt [07:03:32]process_action close_receipt [07:03:32]cmd_close_receipt [07:03:32]MH_GetDate [07:03:32]Write to MH i2c: F0 00 00 B2 18 B9 [07:03:32]Write i2c OK [07:03:32]MH_I2C_Read... [07:03:32]Read from MH i2c: F0 [07:03:32]MH_I2C_Read... [07:03:32]Read from MH i2c: F0 05 00 [07:03:32]MH_I2C_Read... [07:03:32]Read from MH i2c: F0 05 00 B2 18 00 48 FE EF 65 58 [07:03:32]GetLastDocTimeStamp 1710224444 [07:03:32]current date 1710227016 [07:03:32]FM_GetShiftState [07:03:32]SAM_PROTO_GetShiftState [07:03:32]wFMCommunicate request_size=4 [07:03:32]MH_SAM_APDU [07:03:32]CAPDU: 80 13 01 00 [07:03:32]Write to MH i2c: E2 08 00 B3 18 80 13 01 00 00 00 00 00 48 [07:03:32]Write i2c OK [07:03:32]MH_I2C_Read... [07:03:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:32]Read from MH i2c: E2 [07:03:32]MH_I2C_Read... [07:03:32]Read from MH i2c: E2 0E 00 [07:03:32]MH_I2C_Read... [07:03:32]Read from MH i2c: E2 0E 00 B3 18 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 BC [07:03:32]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [07:03:32]wFMCommunicate OK [07:03:32]SAM_PROTO_GetShiftState done [07:03:32]FM_GetShiftState done [07:03:32]opened in 1710201976 [07:03:32]opened+sec_in_day 1710288376 [07:03:32]quantity*price = 35035 [07:03:32]sum+1 = 35036 [07:03:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.35 НСП 1% : 3.10 НДС 12% : 37.20 Наличными: 0.00 Безнал.: 350.35 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 16 12.03.2024 07:03 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95086 ФПД: 191497722775363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T070336&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95086&fm=191497722775363&tin=02508201610067®Number=0000000000090555&sum=35035 [07:03:33]StoreToDocumentArchive [07:03:33]shift 327 fd 95086 [07:03:33]save to /storage/0327/doc_00095086 [07:03:33]save last doc name /storage/0327/doc_00095086 to /storage/kkm_last_doc_name [07:03:33]save OK [07:03:33]Clear old archive folders... [07:03:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:03:33]tlvbuf is 01A6CE20 [07:03:33]SAM_PROTO_ClearQueue [07:03:33]wFMCommunicate request_size=4 [07:03:33]MH_SAM_APDU [07:03:33]CAPDU: 80 09 00 00 [07:03:33]Write to MH i2c: E2 08 00 C0 18 80 09 00 00 00 00 00 00 4A [07:03:33]Write i2c OK [07:03:33]MH_I2C_Read... [07:03:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:03:33]Read from MH i2c: E2 [07:03:33]MH_I2C_Read... [07:03:33]Read from MH i2c: E2 03 00 [07:03:33]MH_I2C_Read... [07:03:33]Read from MH i2c: E2 03 00 C0 18 00 90 00 4C [07:03:33]RAPDU: 90 00 [07:03:33]wFMCommunicate OK [07:03:33]SAM_PROTO_ClearQueue done [07:03:33]KKMCreateOFDPacket [07:03:33]OFDProtocolAddRootSTLVToBuf [07:03:33]FM_MakeSignedData [07:03:33]FM_MakeSignedData [07:03:33]SAM_PROTO_SignData [07:03:33]wFMCommunicate request_size=4 [07:03:33]MH_SAM_APDU [07:03:33]CAPDU: 80 0D 01 02 [07:03:33]Write to MH i2c: E2 08 00 C1 18 80 0D 01 02 00 00 00 00 52 [07:03:33]Write i2c OK [07:03:33]MH_I2C_Read... [07:03:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:03:33]Read from MH i2c: E2 [07:03:33]MH_I2C_Read... [07:03:33]Read from MH i2c: E2 03 00 [07:03:33]MH_I2C_Read... [07:03:33]Read from MH i2c: E2 03 00 C1 18 00 90 00 4D [07:03:33]RAPDU: 90 00 [07:03:33]wFMCommunicate OK [07:03:33]wFMCommunicate request_size=255 [07:03:33]MH_SAM_APDU [07:03:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 48 FE EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6E 73 01 00 35 04 06 00 AE [07:03:33]Write to MH i2c: E2 02 01 C2 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 48 FE EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6E 73 01 00 35 04 06 00 AE 00 00 51 [07:03:33]Write i2c OK [07:03:33]MH_I2C_Read... [07:03:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:33]Read from MH i2c: E2 [07:03:33]MH_I2C_Read... [07:03:33]Read from MH i2c: E2 03 00 [07:03:33]MH_I2C_Read... [07:03:33]Read from MH i2c: E2 03 00 C2 18 00 90 00 4E [07:03:33]RAPDU: 90 00 [07:03:33]wFMCommunicate OK [07:03:33]wFMCommunicate request_size=10 [07:03:33]MH_SAM_APDU [07:03:33]CAPDU: 80 0D 02 02 05 2A 89 BD C7 43 [07:03:33]Write to MH i2c: E2 0D 00 C3 18 80 0D 02 02 05 00 2A 89 BD C7 43 00 00 D9 [07:03:33]Write i2c OK [07:03:33]MH_I2C_Read... [07:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:34]Read from MH i2c: E2 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: E2 03 00 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: E2 03 00 C3 18 00 90 00 4F [07:03:34]RAPDU: 90 00 [07:03:34]wFMCommunicate OK [07:03:34]wFMCommunicate request_size=4 [07:03:34]MH_SAM_APDU [07:03:34]CAPDU: 80 0D 03 02 [07:03:34]Write to MH i2c: E2 08 00 C4 18 80 0D 03 02 00 00 00 00 57 [07:03:34]Write i2c OK [07:03:34]MH_I2C_Read... [07:03:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:03:34]Read from MH i2c: E2 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: E2 0B 00 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: E2 0B 00 C4 18 00 45 10 EE 21 80 30 0B 36 90 00 AD [07:03:34]RAPDU: 45 10 EE 21 80 30 0B 36 90 00 [07:03:34]wFMCommunicate OK [07:03:34]SAM_PROTO_SignData done [07:03:34]FM_MakeSignedData done [07:03:34]CreateOFDProtocolMessage [07:03:34]wFMCommunicate request_size=4 [07:03:34]MH_SAM_APDU [07:03:34]CAPDU: 80 11 00 00 [07:03:34]Write to MH i2c: E2 08 00 C5 18 80 11 00 00 00 00 00 00 57 [07:03:34]Write i2c OK [07:03:34]MH_I2C_Read... [07:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:34]Read from MH i2c: E2 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: E2 17 00 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: E2 17 00 C5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A7 [07:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:03:34]wFMCommunicate OK [07:03:34]CreateOFDProtocolMessage done [07:03:34]OFDSenderStorePacket 95086 [07:03:34]StoreOFDPacket docnum=95086 [07:03:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BC 57 07 01 FE DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 48 FE EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6E 73 01 00 35 04 06 00 AE 2A 89 BD C7 43 45 10 EE 21 80 30 0B 36 [07:03:34]CheckFolder [07:03:34]dirname=/storage/ofd_packets [07:03:34]CheckFolder done [07:03:34]ProducePacketName [07:03:34]name=ofd_packets/00095086 [07:03:34]NVStorageSaveData ofd_packets/00095086 [07:03:34]File name is /storage/ofd_packets/00095086 [07:03:34]Write 301 bytes [07:03:34]NVStorageSaveData done [07:03:34]OFDSenderStorePacket done [07:03:34]KKMCreateOFDPacket done [07:03:34]NVStorageSaveData kkm_last_timestamp [07:03:34]File name is /storage/kkm_last_timestamp [07:03:34]Write 4 bytes [07:03:34]NVStorageSaveData done [07:03:34]ExternCall_PrintAddStr [07:03:34]wPrintStart [07:03:34]Write to MH i2c: 01 00 00 C6 18 DE [07:03:34]Write i2c OK [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: 01 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: 01 07 00 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: 01 07 00 C6 18 00 80 00 00 00 FF 0F 73 [07:03:34]RasterBufferAndPrint [07:03:34]line Счет N : (1)196042 [07:03:34]line ИНН: 02508201610067 [07:03:34]line Контрольно-Кассовый Чек [07:03:34]line ПРОДАЖА [07:03:34]line ТРК (МРК, ГНК) : 12 [07:03:34]line Товар: 2710124130 [07:03:34]line Аи-92-К-5 [07:03:34]line 5.570 * 62.90 [07:03:34]line = 350.35 [07:03:34]line НДС 12% НСП 1% [07:03:34]line > о реализуемом товаре [07:03:34]line ИТОГО: 350.35 [07:03:34]line НСП 1% : 3.10 [07:03:34]line НДС 12% : 37.20 [07:03:34]line Наличными: 0.00 [07:03:34]line Безнал.: 350.35 [07:03:34]line Место: АЗС № 6 "Партнер Нефть" [07:03:34]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [07:03:34]line СНО: Общий режим [07:03:34]line Чек 16 12.03.2024 07:03 [07:03:34]line Смена: 327 ФФД: 1.0 [07:03:34]line ЗНМ: 0300000009 [07:03:34]line РНМ: 0000000000090555 [07:03:34]line Версия ККМ: 001 [07:03:34]line Платежная система: О! деньги [07:03:34]line ФМ: 0000000000874811 [07:03:34]line ФД: 95086 [07:03:34]line ФПД: 191497722775363 [07:03:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T070336&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95086&fm=191497722775363&tin=02508201610067®Number=0000000000090555&sum=35035 [07:03:34]OFD Sender: Processing packet 95086 [packets to send 30, broken 29] [07:03:34]ProducePacketName [07:03:34]name=ofd_packets/00095086 [07:03:34]OFD Sender: To server: pG, [07:03:34]CommunicateWithHost lk.salyk.kg:30040 [07:03:34]ConnectInit lk.salyk.kg [07:03:34]written 0, free lines is 4095 [07:03:34]Connected sock=10 [07:03:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BC 57 07 01 FE DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 48 FE EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6E 73 01 00 35 04 06 00 AE 2A 89 BD C7 43 45 10 EE 21 80 30 0B 36 [07:03:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E1 DD 47 00 5B 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6E 73 01 00 F4 03 04 00 9F A9 EF 65 B6 04 01 00 00 87 57 A7 A0 0F EC 86 40 [07:03:34]CommunicateWithHost err = 0 [07:03:34]CheckOFDResponse [07:03:34]1017 (14) - 77093643461234 [07:03:34]1041 (16) - 0000000000874811 [07:03:34]1040 (4) - 95086 [07:03:34]1012 (4) - 12.03.2024 01:02 [07:03:34]1206 (1) - 0 [07:03:34]OFD Sender: Remove packet 95086 [07:03:34]ProducePacketName [07:03:34]name=ofd_packets/00095086 [07:03:34]NVStorageDeleteData [07:03:34]Write to MH i2c: 01 00 00 F0 18 08 [07:03:34]Write i2c OK [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: 01 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: 01 07 00 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: 01 07 00 F0 18 00 80 00 00 00 6B 0D 07 [07:03:34]RasterBufferAndPrint [07:03:34]line [07:03:34]line [07:03:34]line [07:03:34]line [07:03:34]line [07:03:34]written 0, free lines is 3441 [07:03:34]process_action close_receipt done [07:03:34]requested_data is exist [07:03:34]produce_requested_data [07:03:34]requested_item fm.sn is exist - process it [07:03:34]wFMCommunicate request_size=4 [07:03:34]MH_SAM_APDU [07:03:34]CAPDU: 80 11 00 00 [07:03:34]Write to MH i2c: E2 08 00 F7 18 80 11 00 00 00 00 00 00 89 [07:03:34]Write i2c OK [07:03:34]MH_I2C_Read... [07:03:35]Read from MH i2c: E2 [07:03:35]MH_I2C_Read... [07:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:35]Read from MH i2c: E2 17 00 [07:03:35]MH_I2C_Read... [07:03:35]Read from MH i2c: E2 17 00 F7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D9 [07:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:03:35]wFMCommunicate OK [07:03:35]requested_item fd.num is exist - process it [07:03:35]SAM_PROTO_GetFieldsCounters [07:03:35]wFMCommunicate request_size=4 [07:03:35]MH_SAM_APDU [07:03:35]CAPDU: 80 13 00 00 [07:03:35]Write to MH i2c: E2 08 00 F8 18 80 13 00 00 00 00 00 00 8C [07:03:35]Write i2c OK [07:03:35]MH_I2C_Read... [07:03:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:03:35]Read from MH i2c: E2 [07:03:35]MH_I2C_Read... [07:03:35]Read from MH i2c: E2 62 00 [07:03:35]MH_I2C_Read... [07:03:35]Read from MH i2c: E2 62 00 F8 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6E 73 01 00 0E 04 04 00 47 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 03 [07:03:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6E 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:03:35]wFMCommunicate OK [07:03:35]SAM_PROTO_GetFieldsCounters done [07:03:35]requested_item shift.num is exist - process it [07:03:35]requested_item shift.opened is exist - process it [07:03:35]req_shift_opened [07:03:35]FM_GetShiftState [07:03:35]SAM_PROTO_GetShiftState [07:03:35]wFMCommunicate request_size=4 [07:03:35]MH_SAM_APDU [07:03:35]CAPDU: 80 13 01 00 [07:03:35]Write to MH i2c: E2 08 00 F9 18 80 13 01 00 00 00 00 00 8E [07:03:35]Write i2c OK [07:03:35]MH_I2C_Read... [07:03:35]OFD Sender: No OFD packet to send [07:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:35]Read from MH i2c: E2 [07:03:35]MH_I2C_Read... [07:03:35]Read from MH i2c: E2 0E 00 [07:03:35]MH_I2C_Read... [07:03:35]Read from MH i2c: E2 0E 00 F9 18 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 02 [07:03:35]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [07:03:35]wFMCommunicate OK [07:03:35]SAM_PROTO_GetShiftState done [07:03:35]FM_GetShiftState done [07:03:35]req_shift_opened done [07:03:35]requested_item shift.open_date is exist - process it [07:03:35]req_shift_open_date [07:03:35]req_shift_open_date done [07:03:35]produce_requested_data done [07:03:35]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95086,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [07:03:35]process_action_free close_receipt [07:03:35]json_value_free [07:03:35]json_value_free done [07:03:35]process_json_proto returns [07:03:35]Send response to host [07:03:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95086,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [07:03:35]free response buf [07:03:35]execute_script done [07:03:35]execute_script returns [07:03:35]free content buf [07:03:35]Sock 8.Close socket [07:03:35]Sock 8.Thread stoped [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:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:14]accept exits with 9 [07:09:14]New connection [07:09:14]New thread 3066813796 created [07:09:14]Thread 3066957156 joined [07:09:14]Waiting for new connection... [07:09:14] Sock 9.Parse request [07:09:14]Sock 9.Check first char [07:09:14]Sock 9.First char is OK [07:09:14]request: POST /json_proto HTTP/1.0 [07:09:14]Method: POST [07:09:14]URL: /json_proto [07:09:14]Method is POST - this is cgi request [07:09:14]url: /json_proto [07:09:14]query_string will be loaded in cgi processing [07:09:14]execute_cgi json_proto POST (null) [07:09:14]execute_cgi path=json_proto method=POST [07:09:14]POST find Content-Length [07:09:14]Host: 172.17.62.67:8080 [07:09:14]Content-Length: 678 [07:09:14]Content-Type: application/json [07:09:14] [07:09:14]POST finish read [07:09:14]Found Content-Length = 678 [07:09:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:14]execute_script... [07: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)196043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:14]POST & json_proto [07:09:14]process_json_proto [07:09:14]json parsed OK: [07:09:14]protocol is kg_v1.0 [07:09:14]action value=close_receipt [07:09:14]process_action close_receipt [07:09:14]cmd_close_receipt [07:09:14]MH_GetDate [07:09:14]Write to MH i2c: F0 00 00 FA 18 01 [07:09:14]Write i2c OK [07:09:14]MH_I2C_Read... [07:09:14]Read from MH i2c: F0 [07:09:14]MH_I2C_Read... [07:09:14]Read from MH i2c: F0 05 00 [07:09:14]MH_I2C_Read... [07:09:14]Read from MH i2c: F0 05 00 FA 18 00 9E FF EF 65 F7 [07:09:14]GetLastDocTimeStamp 1710227016 [07:09:14]current date 1710227358 [07:09:14]FM_GetShiftState [07:09:14]SAM_PROTO_GetShiftState [07:09:14]wFMCommunicate request_size=4 [07:09:14]MH_SAM_APDU [07:09:14]CAPDU: 80 13 01 00 [07:09:14]Write to MH i2c: E2 08 00 FB 18 80 13 01 00 00 00 00 00 90 [07:09:14]Write i2c OK [07:09:14]MH_I2C_Read... [07:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:14]Read from MH i2c: E2 [07:09:14]MH_I2C_Read... [07:09:14]Read from MH i2c: E2 0E 00 [07:09:14]MH_I2C_Read... [07:09:14]Read from MH i2c: E2 0E 00 FB 18 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 04 [07:09:14]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [07:09:14]wFMCommunicate OK [07:09:14]SAM_PROTO_GetShiftState done [07:09:14]FM_GetShiftState done [07:09:14]opened in 1710201976 [07:09:14]opened+sec_in_day 1710288376 [07:09:14]quantity*price = 70007 [07:09:14]sum+1 = 70009 [07:09:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 17 12.03.2024 07:09 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95087 ФПД: 6590662536264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T070918&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95087&fm=6590662536264&tin=02508201610067®Number=0000000000090555&sum=70000 [07:09:16]StoreToDocumentArchive [07:09:16]shift 327 fd 95087 [07:09:16]save to /storage/0327/doc_00095087 [07:09:16]save last doc name /storage/0327/doc_00095087 to /storage/kkm_last_doc_name [07:09:16]save OK [07:09:16]Clear old archive folders... [07:09:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:09:16]tlvbuf is 01A5FC50 [07:09:16]SAM_PROTO_ClearQueue [07:09:16]wFMCommunicate request_size=4 [07:09:16]MH_SAM_APDU [07:09:16]CAPDU: 80 09 00 00 [07:09:16]Write to MH i2c: E2 08 00 08 19 80 09 00 00 00 00 00 00 93 [07:09:16]Write i2c OK [07:09:16]MH_I2C_Read... [07:09:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:09:16]Read from MH i2c: E2 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: E2 03 00 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: E2 03 00 08 19 00 90 00 95 [07:09:16]RAPDU: 90 00 [07:09:16]wFMCommunicate OK [07:09:16]SAM_PROTO_ClearQueue done [07:09:16]KKMCreateOFDPacket [07:09:16]OFDProtocolAddRootSTLVToBuf [07:09:16]FM_MakeSignedData [07:09:16]FM_MakeSignedData [07:09:16]SAM_PROTO_SignData [07:09:16]wFMCommunicate request_size=4 [07:09:16]MH_SAM_APDU [07:09:16]CAPDU: 80 0D 01 02 [07:09:16]Write to MH i2c: E2 08 00 09 19 80 0D 01 02 00 00 00 00 9B [07:09:16]Write i2c OK [07:09:16]MH_I2C_Read... [07:09:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:09:16]Read from MH i2c: E2 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: E2 03 00 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: E2 03 00 09 19 00 90 00 96 [07:09:16]RAPDU: 90 00 [07:09:16]wFMCommunicate OK [07:09:16]wFMCommunicate request_size=255 [07:09:16]MH_SAM_APDU [07:09:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 11 00 00 00 F4 03 04 00 9E FF EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6F 73 01 00 35 04 06 00 05 [07:09:16]Write to MH i2c: E2 02 01 0A 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 11 00 00 00 F4 03 04 00 9E FF EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6F 73 01 00 35 04 06 00 05 00 00 44 [07:09:16]Write i2c OK [07:09:16]MH_I2C_Read... [07:09:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:16]Read from MH i2c: E2 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: E2 03 00 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: E2 03 00 0A 19 00 90 00 97 [07:09:16]RAPDU: 90 00 [07:09:16]wFMCommunicate OK [07:09:16]wFMCommunicate request_size=10 [07:09:16]MH_SAM_APDU [07:09:16]CAPDU: 80 0D 02 02 05 FE 82 19 6C 48 [07:09:16]Write to MH i2c: E2 0D 00 0B 19 80 0D 02 02 05 00 FE 82 19 6C 48 00 00 F5 [07:09:16]Write i2c OK [07:09:16]MH_I2C_Read... [07:09:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:16]Read from MH i2c: E2 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: E2 03 00 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: E2 03 00 0B 19 00 90 00 98 [07:09:16]RAPDU: 90 00 [07:09:16]wFMCommunicate OK [07:09:16]wFMCommunicate request_size=4 [07:09:16]MH_SAM_APDU [07:09:16]CAPDU: 80 0D 03 02 [07:09:16]Write to MH i2c: E2 08 00 0C 19 80 0D 03 02 00 00 00 00 A0 [07:09:16]Write i2c OK [07:09:16]MH_I2C_Read... [07:09:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:09:16]Read from MH i2c: E2 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: E2 0B 00 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: E2 0B 00 0C 19 00 3D CD 66 32 B2 B8 DF 49 90 00 D5 [07:09:16]RAPDU: 3D CD 66 32 B2 B8 DF 49 90 00 [07:09:16]wFMCommunicate OK [07:09:16]SAM_PROTO_SignData done [07:09:16]FM_MakeSignedData done [07:09:16]CreateOFDProtocolMessage [07:09:16]wFMCommunicate request_size=4 [07:09:16]MH_SAM_APDU [07:09:16]CAPDU: 80 11 00 00 [07:09:16]Write to MH i2c: E2 08 00 0D 19 80 11 00 00 00 00 00 00 A0 [07:09:16]Write i2c OK [07:09:16]MH_I2C_Read... [07:09:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:16]Read from MH i2c: E2 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: E2 17 00 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: E2 17 00 0D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F0 [07:09:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:09:16]wFMCommunicate OK [07:09:16]CreateOFDProtocolMessage done [07:09:16]OFDSenderStorePacket 95087 [07:09:16]StoreOFDPacket docnum=95087 [07:09:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 5D 04 07 01 46 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 11 00 00 00 F4 03 04 00 9E FF EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6F 73 01 00 35 04 06 00 05 FE 82 19 6C 48 3D CD 66 32 B2 B8 DF 49 [07:09:16]CheckFolder [07:09:16]dirname=/storage/ofd_packets [07:09:16]CheckFolder done [07:09:16]ProducePacketName [07:09:16]name=ofd_packets/00095087 [07:09:16]NVStorageSaveData ofd_packets/00095087 [07:09:16]File name is /storage/ofd_packets/00095087 [07:09:16]Write 301 bytes [07:09:16]NVStorageSaveData done [07:09:16]OFDSenderStorePacket done [07:09:16]KKMCreateOFDPacket done [07:09:16]NVStorageSaveData kkm_last_timestamp [07:09:16]File name is /storage/kkm_last_timestamp [07:09:16]Write 4 bytes [07:09:16]NVStorageSaveData done [07:09:16]ExternCall_PrintAddStr [07:09:16]wPrintStart [07:09:16]Write to MH i2c: 01 00 00 0E 19 27 [07:09:16]Write i2c OK [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: 01 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: 01 07 00 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: 01 07 00 0E 19 00 80 00 00 00 FF 0F BC [07:09:16]RasterBufferAndPrint [07:09:16]line Счет N : (1)196043 [07:09:16]line ИНН: 02508201610067 [07:09:16]line Контрольно-Кассовый Чек [07:09:16]line ПРОДАЖА [07:09:16]line ТРК (МРК, ГНК) : 32 [07:09:16]line Товар: 2710124130 [07:09:16]line Аи-92-К-5 [07:09:16]line 11.130 * 62.90 [07:09:16]line = 700.08 [07:09:16]line НДС 12% НСП 1% [07:09:16]line > о реализуемом товаре [07:09:16]line ОКРУГЛЕНИЕ: -0.08 [07:09:16]line ИТОГО: 700.00 [07:09:16]line Внесено: 700.00 [07:09:16]line СДАЧА: 0.00 [07:09:16]line НСП 1% : 6.19 [07:09:16]line НДС 12% : 74.34 [07:09:16]line Наличными: 700.00 [07:09:16]line Безнал.: 0.00 [07:09:16]line Место: АЗС № 6 "Партнер Нефть" [07:09:16]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [07:09:16]line СНО: Общий режим [07:09:16]line Чек 17 12.03.2024 07:09 [07:09:16]line Смена: 327 ФФД: 1.0 [07:09:16]line ЗНМ: 0300000009 [07:09:16]line РНМ: 0000000000090555 [07:09:16]line Версия ККМ: 001 [07:09:16]line ФМ: 0000000000874811 [07:09:16]line ФД: 95087 [07:09:16]line ФПД: 6590662536264 [07:09:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T070918&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95087&fm=6590662536264&tin=02508201610067®Number=0000000000090555&sum=70000 [07:09:16]written 0, free lines is 4095 [07:09:16]OFD Sender: Processing packet 95087 [packets to send 30, broken 29] [07:09:16]ProducePacketName [07:09:16]name=ofd_packets/00095087 [07:09:16]OFD Sender: To server: pG, [07:09:16]CommunicateWithHost lk.salyk.kg:30040 [07:09:16]ConnectInit lk.salyk.kg [07:09:16]Connected sock=11 [07:09:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 5D 04 07 01 46 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 11 00 00 00 F4 03 04 00 9E FF EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6F 73 01 00 35 04 06 00 05 FE 82 19 6C 48 3D CD 66 32 B2 B8 DF 49 [07:09:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 CB 38 47 00 EC B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6F 73 01 00 F4 03 04 00 F5 AA EF 65 B6 04 01 00 00 AA 1F 30 87 C6 EB 2F 9C [07:09:16]CommunicateWithHost err = 0 [07:09:16]CheckOFDResponse [07:09:16]1017 (14) - 77093643461234 [07:09:16]1041 (16) - 0000000000874811 [07:09:16]1040 (4) - 95087 [07:09:16]1012 (4) - 12.03.2024 01:08 [07:09:16]1206 (1) - 0 [07:09:16]OFD Sender: Remove packet 95087 [07:09:16]ProducePacketName [07:09:16]name=ofd_packets/00095087 [07:09:16]NVStorageDeleteData [07:09:17]Write to MH i2c: 01 00 00 39 19 52 [07:09:17]Write i2c OK [07:09:17]MH_I2C_Read... [07:09:17]Read from MH i2c: 01 [07:09:17]MH_I2C_Read... [07:09:17]Read from MH i2c: 01 07 00 [07:09:17]MH_I2C_Read... [07:09:17]Read from MH i2c: 01 07 00 39 19 00 80 00 00 00 54 0D 3A [07:09:17]RasterBufferAndPrint [07:09:17]line [07:09:17]line [07:09:17]line [07:09:17]line [07:09:17]line [07:09:17]written 0, free lines is 3417 [07:09:17]process_action close_receipt done [07:09:17]requested_data is exist [07:09:17]produce_requested_data [07:09:17]requested_item fm.sn is exist - process it [07:09:17]wFMCommunicate request_size=4 [07:09:17]MH_SAM_APDU [07:09:17]CAPDU: 80 11 00 00 [07:09:17]Write to MH i2c: E2 08 00 40 19 80 11 00 00 00 00 00 00 D3 [07:09:17]Write i2c OK [07:09:17]MH_I2C_Read... [07:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:17]Read from MH i2c: E2 [07:09:17]MH_I2C_Read... [07:09:17]Read from MH i2c: E2 17 00 [07:09:17]MH_I2C_Read... [07:09:17]Read from MH i2c: E2 17 00 40 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 23 [07:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:09:17]wFMCommunicate OK [07:09:17]requested_item fd.num is exist - process it [07:09:17]SAM_PROTO_GetFieldsCounters [07:09:17]wFMCommunicate request_size=4 [07:09:17]MH_SAM_APDU [07:09:17]CAPDU: 80 13 00 00 [07:09:17]Write to MH i2c: E2 08 00 41 19 80 13 00 00 00 00 00 00 D6 [07:09:17]Write i2c OK [07:09:17]MH_I2C_Read... [07:09:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:09:17]Read from MH i2c: E2 [07:09:17]MH_I2C_Read... [07:09:17]Read from MH i2c: E2 62 00 [07:09:17]MH_I2C_Read... [07:09:17]Read from MH i2c: E2 62 00 41 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6F 73 01 00 0E 04 04 00 47 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 51 [07:09:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6F 73 01 00 0E 04 04 00 47 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 [07:09:17]wFMCommunicate OK [07:09:17]SAM_PROTO_GetFieldsCounters done [07:09:17]requested_item shift.num is exist - process it [07:09:17]requested_item shift.opened is exist - process it [07:09:17]req_shift_opened [07:09:17]FM_GetShiftState [07:09:17]SAM_PROTO_GetShiftState [07:09:17]wFMCommunicate request_size=4 [07:09:17]MH_SAM_APDU [07:09:17]CAPDU: 80 13 01 00 [07:09:17]Write to MH i2c: E2 08 00 42 19 80 13 01 00 00 00 00 00 D8 [07:09:17]Write i2c OK [07:09:17]MH_I2C_Read... [07:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:17]Read from MH i2c: E2 [07:09:17]MH_I2C_Read... [07:09:17]Read from MH i2c: E2 0E 00 [07:09:17]MH_I2C_Read... [07:09:17]Read from MH i2c: E2 0E 00 42 19 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 4C [07:09:17]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [07:09:17]wFMCommunicate OK [07:09:17]SAM_PROTO_GetShiftState done [07:09:17]FM_GetShiftState done [07:09:17]req_shift_opened done [07:09:17]requested_item shift.open_date is exist - process it [07:09:17]req_shift_open_date [07:09:17]req_shift_open_date done [07:09:17]produce_requested_data done [07:09:17]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95087,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [07:09:17]process_action_free close_receipt [07:09:17]json_value_free [07:09:17]json_value_free done [07:09:17]process_json_proto returns [07:09:17]Send response to host [07:09:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95087,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [07:09:17]free response buf [07:09:17]execute_script done [07:09:17]execute_script returns [07:09:17]free content buf [07:09:17]Sock 9.Close socket [07:09:17]Sock 9.Thread stoped [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]accept exits with 8 [07:14:37]New connection [07:14:37]New thread 3066957156 created [07:14:37]Thread 3066813796 joined [07:14:37]Waiting for new connection... [07:14:37] Sock 8.Parse request [07:14:37]Sock 8.Check first char [07:14:37]Sock 8.First char is OK [07:14:37]request: POST /json_proto HTTP/1.0 [07:14:37]Method: POST [07:14:37]URL: /json_proto [07:14:37]Method is POST - this is cgi request [07:14:37]url: /json_proto [07:14:37]query_string will be loaded in cgi processing [07:14:37]execute_cgi json_proto POST (null) [07:14:37]execute_cgi path=json_proto method=POST [07:14:37]POST find Content-Length [07:14:37]Host: 172.17.62.67:8080 [07:14:37]Content-Length: 682 [07:14:37]Content-Type: application/json [07:14:37] [07:14:37]POST finish read [07:14:37]Found Content-Length = 682 [07:14:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:37]execute_script... [07:14: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)196044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:37]POST & json_proto [07:14:37]process_json_proto [07:14:37]json parsed OK: [07:14:37]protocol is kg_v1.0 [07:14:37]action value=close_receipt [07:14:37]process_action close_receipt [07:14:37]cmd_close_receipt [07:14:37]MH_GetDate [07:14:37]Write to MH i2c: F0 00 00 43 19 4B [07:14:37]Write i2c OK [07:14:37]MH_I2C_Read... [07:14:37]Read from MH i2c: F0 [07:14:37]MH_I2C_Read... [07:14:37]Read from MH i2c: F0 05 00 [07:14:37]MH_I2C_Read... [07:14:37]Read from MH i2c: F0 05 00 43 19 00 E1 00 F0 65 86 [07:14:37]GetLastDocTimeStamp 1710227358 [07:14:37]current date 1710227681 [07:14:37]FM_GetShiftState [07:14:37]SAM_PROTO_GetShiftState [07:14:37]wFMCommunicate request_size=4 [07:14:37]MH_SAM_APDU [07:14:37]CAPDU: 80 13 01 00 [07:14:37]Write to MH i2c: E2 08 00 44 19 80 13 01 00 00 00 00 00 DA [07:14:37]Write i2c OK [07:14:37]MH_I2C_Read... [07:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:37]Read from MH i2c: E2 [07:14:37]MH_I2C_Read... [07:14:37]Read from MH i2c: E2 0E 00 [07:14:37]MH_I2C_Read... [07:14:37]Read from MH i2c: E2 0E 00 44 19 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 4E [07:14:37]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [07:14:37]wFMCommunicate OK [07:14:37]SAM_PROTO_GetShiftState done [07:14:37]FM_GetShiftState done [07:14:37]opened in 1710201976 [07:14:37]opened+sec_in_day 1710288376 [07:14:37]quantity*price = 100010 [07:14:37]sum+1 = 100012 [07:14:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 18 12.03.2024 07:14 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95088 ФПД: 227587351649748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T071441&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95088&fm=227587351649748&tin=02508201610067®Number=0000000000090555&sum=100000 [07:14:38]StoreToDocumentArchive [07:14:38]shift 327 fd 95088 [07:14:38]save to /storage/0327/doc_00095088 [07:14:38]save last doc name /storage/0327/doc_00095088 to /storage/kkm_last_doc_name [07:14:38]save OK [07:14:38]Clear old archive folders... [07:14:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:14:38]tlvbuf is 01A06540 [07:14:38]SAM_PROTO_ClearQueue [07:14:38]wFMCommunicate request_size=4 [07:14:38]MH_SAM_APDU [07:14:38]CAPDU: 80 09 00 00 [07:14:38]Write to MH i2c: E2 08 00 51 19 80 09 00 00 00 00 00 00 DC [07:14:38]Write i2c OK [07:14:38]MH_I2C_Read... [07:14:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:14:38]Read from MH i2c: E2 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: E2 03 00 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: E2 03 00 51 19 00 90 00 DE [07:14:38]RAPDU: 90 00 [07:14:38]wFMCommunicate OK [07:14:38]SAM_PROTO_ClearQueue done [07:14:38]KKMCreateOFDPacket [07:14:38]OFDProtocolAddRootSTLVToBuf [07:14:38]FM_MakeSignedData [07:14:38]FM_MakeSignedData [07:14:38]SAM_PROTO_SignData [07:14:38]wFMCommunicate request_size=4 [07:14:38]MH_SAM_APDU [07:14:38]CAPDU: 80 0D 01 02 [07:14:38]Write to MH i2c: E2 08 00 52 19 80 0D 01 02 00 00 00 00 E4 [07:14:38]Write i2c OK [07:14:38]MH_I2C_Read... [07:14:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:14:38]Read from MH i2c: E2 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: E2 03 00 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: E2 03 00 52 19 00 90 00 DF [07:14:38]RAPDU: 90 00 [07:14:38]wFMCommunicate OK [07:14:38]wFMCommunicate request_size=255 [07:14:38]MH_SAM_APDU [07:14: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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 E1 00 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 70 73 01 00 35 04 06 00 CE [07:14:38]Write to MH i2c: E2 02 01 53 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 E1 00 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 70 73 01 00 35 04 06 00 CE 00 00 7D [07:14:38]Write i2c OK [07:14:38]MH_I2C_Read... [07:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:38]Read from MH i2c: E2 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: E2 03 00 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: E2 03 00 53 19 00 90 00 E0 [07:14:38]RAPDU: 90 00 [07:14:38]wFMCommunicate OK [07:14:38]wFMCommunicate request_size=10 [07:14:38]MH_SAM_APDU [07:14:38]CAPDU: 80 0D 02 02 05 FD 4F 40 1D D4 [07:14:38]Write to MH i2c: E2 0D 00 54 19 80 0D 02 02 05 00 FD 4F 40 1D D4 00 00 6E [07:14:38]Write i2c OK [07:14:38]MH_I2C_Read... [07:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:38]Read from MH i2c: E2 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: E2 03 00 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: E2 03 00 54 19 00 90 00 E1 [07:14:38]RAPDU: 90 00 [07:14:38]wFMCommunicate OK [07:14:38]wFMCommunicate request_size=4 [07:14:38]MH_SAM_APDU [07:14:38]CAPDU: 80 0D 03 02 [07:14:38]Write to MH i2c: E2 08 00 55 19 80 0D 03 02 00 00 00 00 E9 [07:14:38]Write i2c OK [07:14:38]MH_I2C_Read... [07:14:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:14:39]Read from MH i2c: E2 [07:14:39]MH_I2C_Read... [07:14:39]Read from MH i2c: E2 0B 00 [07:14:39]MH_I2C_Read... [07:14:39]Read from MH i2c: E2 0B 00 55 19 00 93 0E AC 8B 56 11 D2 63 90 00 5E [07:14:39]RAPDU: 93 0E AC 8B 56 11 D2 63 90 00 [07:14:39]wFMCommunicate OK [07:14:39]SAM_PROTO_SignData done [07:14:39]FM_MakeSignedData done [07:14:39]CreateOFDProtocolMessage [07:14:39]wFMCommunicate request_size=4 [07:14:39]MH_SAM_APDU [07:14:39]CAPDU: 80 11 00 00 [07:14:39]Write to MH i2c: E2 08 00 56 19 80 11 00 00 00 00 00 00 E9 [07:14:39]Write i2c OK [07:14:39]MH_I2C_Read... [07:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:39]Read from MH i2c: E2 [07:14:39]MH_I2C_Read... [07:14:39]Read from MH i2c: E2 17 00 [07:14:39]MH_I2C_Read... [07:14:39]Read from MH i2c: E2 17 00 56 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 39 [07:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:14:39]wFMCommunicate OK [07:14:39]CreateOFDProtocolMessage done [07:14:39]OFDSenderStorePacket 95088 [07:14:39]StoreOFDPacket docnum=95088 [07:14:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 EF 26 07 01 7B CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 E1 00 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 70 73 01 00 35 04 06 00 CE FD 4F 40 1D D4 93 0E AC 8B 56 11 D2 63 [07:14:39]CheckFolder [07:14:39]dirname=/storage/ofd_packets [07:14:39]CheckFolder done [07:14:39]ProducePacketName [07:14:39]name=ofd_packets/00095088 [07:14:39]NVStorageSaveData ofd_packets/00095088 [07:14:39]File name is /storage/ofd_packets/00095088 [07:14:39]Write 301 bytes [07:14:39]NVStorageSaveData done [07:14:39]OFDSenderStorePacket done [07:14:39]KKMCreateOFDPacket done [07:14:39]NVStorageSaveData kkm_last_timestamp [07:14:39]File name is /storage/kkm_last_timestamp [07:14:39]Write 4 bytes [07:14:39]NVStorageSaveData done [07:14:39]ExternCall_PrintAddStr [07:14:39]wPrintStart [07:14:39]Write to MH i2c: 01 00 00 57 19 70 [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 57 19 00 80 00 00 00 FF 0F 05 [07:14:39]RasterBufferAndPrint [07:14:39]line Счет N : (1)196044 [07:14:39]line ИНН: 02508201610067 [07:14:39]line Контрольно-Кассовый Чек [07:14:39]line ПРОДАЖА [07:14:39]line ТРК (МРК, ГНК) : 41 [07:14:39]line Товар: 2710124500 [07:14:39]line Аи-95-К-5 [07:14:39]line 14.390 * 69.50 [07:14:39]line = 1000.11 [07:14:39]line НДС 12% НСП 1% [07:14:39]line > о реализуемом товаре [07:14:39]line ОКРУГЛЕНИЕ: -0.11 [07:14:39]line ИТОГО: 1000.00 [07:14:39]line Внесено: 1000.00 [07:14:39]line СДАЧА: 0.00 [07:14:39]line НСП 1% : 8.85 [07:14:39]line НДС 12% : 106.21 [07:14:39]line Наличными: 1000.00 [07:14:39]line Безнал.: 0.00 [07:14:39]line Место: АЗС № 6 "Партнер Нефть" [07:14:39]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [07:14:39]line СНО: Общий режим [07:14:39]line Чек 18 12.03.2024 07:14 [07:14:39]line Смена: 327 ФФД: 1.0 [07:14:39]line ЗНМ: 0300000009 [07:14:39]line РНМ: 0000000000090555 [07:14:39]line Версия ККМ: 001 [07:14:39]line ФМ: 0000000000874811 [07:14:39]line ФД: 95088 [07:14:39]line ФПД: 227587351649748 [07:14:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T071441&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95088&fm=227587351649748&tin=02508201610067®Number=0000000000090555&sum=100000 [07:14:39]OFD Sender: Processing packet 95088 [packets to send 30, broken 29] [07:14:39]ProducePacketName [07:14:39]name=ofd_packets/00095088 [07:14:39]OFD Sender: To server: pG, [07:14:39]CommunicateWithHost lk.salyk.kg:30040 [07:14:39]ConnectInit lk.salyk.kg [07:14:39]written 0, free lines is 4095 [07:14:39]Connected sock=10 [07:14:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 EF 26 07 01 7B CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 E1 00 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 70 73 01 00 35 04 06 00 CE FD 4F 40 1D D4 93 0E AC 8B 56 11 D2 63 [07:14:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 03 05 47 00 AD 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 70 73 01 00 F4 03 04 00 38 AC EF 65 B6 04 01 00 00 C2 B4 09 84 14 F1 B3 65 [07:14:39]CommunicateWithHost err = 0 [07:14:39]CheckOFDResponse [07:14:39]1017 (14) - 77093643461234 [07:14:39]1041 (16) - 0000000000874811 [07:14:39]1040 (4) - 95088 [07:14:39]1012 (4) - 12.03.2024 01:13 [07:14:39]1206 (1) - 0 [07:14:39]OFD Sender: Remove packet 95088 [07:14:39]ProducePacketName [07:14:39]name=ofd_packets/00095088 [07:14:39]NVStorageDeleteData [07:14:39]Write to MH i2c: 01 00 00 82 19 9B [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 82 19 00 80 00 00 00 51 0D 80 [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 3415 [07:14:39]process_action close_receipt done [07:14:39]requested_data is exist [07:14:39]produce_requested_data [07:14:39]requested_item fm.sn is exist - process it [07:14:39]wFMCommunicate request_size=4 [07:14:39]MH_SAM_APDU [07:14:39]CAPDU: 80 11 00 00 [07:14:39]Write to MH i2c: E2 08 00 89 19 80 11 00 00 00 00 00 00 1C [07:14:39]Write i2c OK [07:14:39]MH_I2C_Read... [07:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:39]Read from MH i2c: E2 [07:14:39]MH_I2C_Read... [07:14:39]Read from MH i2c: E2 17 00 [07:14:39]MH_I2C_Read... [07:14:39]Read from MH i2c: E2 17 00 89 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6C [07:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:14:39]wFMCommunicate OK [07:14:39]requested_item fd.num is exist - process it [07:14:39]SAM_PROTO_GetFieldsCounters [07:14:39]wFMCommunicate request_size=4 [07:14:39]MH_SAM_APDU [07:14:39]CAPDU: 80 13 00 00 [07:14:39]Write to MH i2c: E2 08 00 8A 19 80 13 00 00 00 00 00 00 1F [07:14:39]Write i2c OK [07:14:39]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 8A 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 70 73 01 00 0E 04 04 00 47 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 9E [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 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 70 73 01 00 0E 04 04 00 47 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 [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 8B 19 80 13 01 00 00 00 00 00 21 [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 8B 19 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 95 [07:14:40]RAPDU: 09 00 01 78 9C EF 65 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":"0000000000874811","fd.num":95088,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [07:14:40]process_action_free close_receipt [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":"0000000000874811","fd.num":95088,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [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 8.Close socket [07:14:40]Sock 8.Thread stoped [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:10]OFD Sender: No OFD packet to send [07:19:15]OFD Sender: No OFD packet to send [07:19:20]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:55]OFD Sender: No OFD packet to send [07:20:00]OFD Sender: No OFD packet to send [07:20:05]OFD Sender: No OFD packet to send [07:20:10]OFD Sender: No OFD packet to send [07:20:15]OFD Sender: No OFD packet to send [07:20:20]OFD Sender: No OFD packet to send [07:20:25]OFD Sender: No OFD packet to send [07:20:30]OFD Sender: No OFD packet to send [07:20:35]OFD Sender: No OFD packet to send [07:20:40]OFD Sender: No OFD packet to send [07:20:45]OFD Sender: No OFD packet to send [07:20:50]OFD Sender: No OFD packet to send [07:20:55]OFD Sender: No OFD packet to send [07:21:00]OFD Sender: No OFD packet to send [07:21:05]OFD Sender: No OFD packet to send [07:21:10]OFD Sender: No OFD packet to send [07:21:15]OFD Sender: No OFD packet to send [07:21:20]OFD Sender: No OFD packet to send [07:21: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:16]accept exits with 9 [07:25:16]New connection [07:25:16]New thread 3066813796 created [07:25:16]Thread 3066957156 joined [07:25:16]Waiting for new connection... [07:25:16] Sock 9.Parse request [07:25:16]Sock 9.Check first char [07:25:16]Sock 9.First char is OK [07:25:16]request: POST /json_proto HTTP/1.0 [07:25:16]Method: POST [07:25:16]URL: /json_proto [07:25:16]Method is POST - this is cgi request [07:25:16]url: /json_proto [07:25:16]query_string will be loaded in cgi processing [07:25:16]execute_cgi json_proto POST (null) [07:25:16]execute_cgi path=json_proto method=POST [07:25:16]POST find Content-Length [07:25:16]Host: 172.17.62.67:8080 [07:25:16]Content-Length: 819 [07:25:16]Content-Type: application/json [07:25:16] [07:25:16]POST finish read [07:25:16]Found Content-Length = 819 [07:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:25:16]execute_script... [07:25: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)196045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:25:16]POST & json_proto [07:25:16]process_json_proto [07:25:16]json parsed OK: [07:25:16]protocol is kg_v1.0 [07:25:16]action value=close_receipt [07:25:16]process_action close_receipt [07:25:16]cmd_close_receipt [07:25:16]MH_GetDate [07:25:16]Write to MH i2c: F0 00 00 8C 19 94 [07:25:16]Write i2c OK [07:25:16]MH_I2C_Read... [07:25:16]Read from MH i2c: F0 [07:25:16]MH_I2C_Read... [07:25:16]Read from MH i2c: F0 05 00 [07:25:16]MH_I2C_Read... [07:25:16]Read from MH i2c: F0 05 00 8C 19 00 60 03 F0 65 51 [07:25:16]GetLastDocTimeStamp 1710227681 [07:25:16]current date 1710228320 [07:25:16]FM_GetShiftState [07:25:16]SAM_PROTO_GetShiftState [07:25:16]wFMCommunicate request_size=4 [07:25:16]MH_SAM_APDU [07:25:16]CAPDU: 80 13 01 00 [07:25:16]Write to MH i2c: E2 08 00 8D 19 80 13 01 00 00 00 00 00 23 [07:25:16]Write i2c OK [07:25:16]MH_I2C_Read... [07:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:16]Read from MH i2c: E2 [07:25:16]MH_I2C_Read... [07:25:16]Read from MH i2c: E2 0E 00 [07:25:16]MH_I2C_Read... [07:25:16]Read from MH i2c: E2 0E 00 8D 19 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 97 [07:25:16]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [07:25:16]wFMCommunicate OK [07:25:16]SAM_PROTO_GetShiftState done [07:25:16]FM_GetShiftState done [07:25:16]opened in 1710201976 [07:25:16]opened+sec_in_day 1710288376 [07:25:16]quantity*price = 100011 [07:25:16]sum+1 = 100012 [07:25:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 19 12.03.2024 07:25 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95089 ФПД: 237631697177437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T072520&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95089&fm=237631697177437&tin=02508201610067®Number=0000000000090555&sum=100011 [07:25:17]StoreToDocumentArchive [07:25:17]shift 327 fd 95089 [07:25:17]save to /storage/0327/doc_00095089 [07:25:17]save last doc name /storage/0327/doc_00095089 to /storage/kkm_last_doc_name [07:25:17]save OK [07:25:17]Clear old archive folders... [07:25:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:25:17]tlvbuf is 01A05A40 [07:25:17]SAM_PROTO_ClearQueue [07:25:17]wFMCommunicate request_size=4 [07:25:17]MH_SAM_APDU [07:25:17]CAPDU: 80 09 00 00 [07:25:17]Write to MH i2c: E2 08 00 9A 19 80 09 00 00 00 00 00 00 25 [07:25:17]Write i2c OK [07:25:17]MH_I2C_Read... [07:25:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:25:17]Read from MH i2c: E2 [07:25:17]MH_I2C_Read... [07:25:17]Read from MH i2c: E2 03 00 [07:25:17]MH_I2C_Read... [07:25:17]Read from MH i2c: E2 03 00 9A 19 00 90 00 27 [07:25:17]RAPDU: 90 00 [07:25:17]wFMCommunicate OK [07:25:17]SAM_PROTO_ClearQueue done [07:25:17]KKMCreateOFDPacket [07:25:17]OFDProtocolAddRootSTLVToBuf [07:25:17]FM_MakeSignedData [07:25:17]FM_MakeSignedData [07:25:17]SAM_PROTO_SignData [07:25:17]wFMCommunicate request_size=4 [07:25:17]MH_SAM_APDU [07:25:17]CAPDU: 80 0D 01 02 [07:25:17]Write to MH i2c: E2 08 00 9B 19 80 0D 01 02 00 00 00 00 2D [07:25:17]Write i2c OK [07:25:17]MH_I2C_Read... [07:25:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:25:17]Read from MH i2c: E2 [07:25:17]MH_I2C_Read... [07:25:17]Read from MH i2c: E2 03 00 [07:25:17]MH_I2C_Read... [07:25:17]Read from MH i2c: E2 03 00 9B 19 00 90 00 28 [07:25:17]RAPDU: 90 00 [07:25:17]wFMCommunicate OK [07:25:17]wFMCommunicate request_size=255 [07:25:17]MH_SAM_APDU [07:25:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 60 03 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 71 73 01 00 35 04 06 00 D8 [07:25:17]Write to MH i2c: E2 02 01 9C 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 60 03 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 71 73 01 00 35 04 06 00 D8 00 00 BB [07:25:17]Write i2c OK [07:25:17]MH_I2C_Read... [07:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:17]Read from MH i2c: E2 [07:25:17]MH_I2C_Read... [07:25:17]Read from MH i2c: E2 03 00 [07:25:17]MH_I2C_Read... [07:25:17]Read from MH i2c: E2 03 00 9C 19 00 90 00 29 [07:25:17]RAPDU: 90 00 [07:25:17]wFMCommunicate OK [07:25:17]wFMCommunicate request_size=10 [07:25:17]MH_SAM_APDU [07:25:17]CAPDU: 80 0D 02 02 05 1F F0 E5 CB 5D [07:25:17]Write to MH i2c: E2 0D 00 9D 19 80 0D 02 02 05 00 1F F0 E5 CB 5D 00 00 56 [07:25:17]Write i2c OK [07:25:17]MH_I2C_Read... [07:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:17]Read from MH i2c: E2 [07:25:17]MH_I2C_Read... [07:25:17]Read from MH i2c: E2 03 00 [07:25:17]MH_I2C_Read... [07:25:17]Read from MH i2c: E2 03 00 9D 19 00 90 00 2A [07:25:17]RAPDU: 90 00 [07:25:17]wFMCommunicate OK [07:25:17]wFMCommunicate request_size=4 [07:25:17]MH_SAM_APDU [07:25:17]CAPDU: 80 0D 03 02 [07:25:17]Write to MH i2c: E2 08 00 9E 19 80 0D 03 02 00 00 00 00 32 [07:25:17]Write i2c OK [07:25:17]MH_I2C_Read... [07:25:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:25:17]Read from MH i2c: E2 [07:25:17]MH_I2C_Read... [07:25:17]Read from MH i2c: E2 0B 00 [07:25:17]MH_I2C_Read... [07:25:17]Read from MH i2c: E2 0B 00 9E 19 00 BE 38 CA CB 8C CD C9 66 90 00 46 [07:25:17]RAPDU: BE 38 CA CB 8C CD C9 66 90 00 [07:25:17]wFMCommunicate OK [07:25:17]SAM_PROTO_SignData done [07:25:17]FM_MakeSignedData done [07:25:17]CreateOFDProtocolMessage [07:25:17]wFMCommunicate request_size=4 [07:25:17]MH_SAM_APDU [07:25:17]CAPDU: 80 11 00 00 [07:25:17]Write to MH i2c: E2 08 00 9F 19 80 11 00 00 00 00 00 00 32 [07:25:17]Write i2c OK [07:25:17]MH_I2C_Read... [07:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:17]Read from MH i2c: E2 [07:25:17]MH_I2C_Read... [07:25:17]Read from MH i2c: E2 17 00 [07:25:17]MH_I2C_Read... [07:25:17]Read from MH i2c: E2 17 00 9F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 82 [07:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:25:17]wFMCommunicate OK [07:25:17]CreateOFDProtocolMessage done [07:25:17]OFDSenderStorePacket 95089 [07:25:17]StoreOFDPacket docnum=95089 [07:25:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 49 51 07 01 D2 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 60 03 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 71 73 01 00 35 04 06 00 D8 1F F0 E5 CB 5D BE 38 CA CB 8C CD C9 66 [07:25:17]CheckFolder [07:25:17]dirname=/storage/ofd_packets [07:25:17]CheckFolder done [07:25:17]ProducePacketName [07:25:17]name=ofd_packets/00095089 [07:25:17]NVStorageSaveData ofd_packets/00095089 [07:25:17]File name is /storage/ofd_packets/00095089 [07:25:17]Write 301 bytes [07:25:17]NVStorageSaveData done [07:25:17]OFDSenderStorePacket done [07:25:17]KKMCreateOFDPacket done [07:25:17]NVStorageSaveData kkm_last_timestamp [07:25:17]File name is /storage/kkm_last_timestamp [07:25:17]Write 4 bytes [07:25:17]NVStorageSaveData done [07:25:17]ExternCall_PrintAddStr [07:25:17]wPrintStart [07:25:17]Write to MH i2c: 01 00 00 A0 19 B9 [07:25:17]Write i2c OK [07:25:17]MH_I2C_Read... [07:25:17]Read from MH i2c: 01 [07:25:17]MH_I2C_Read... [07:25:17]Read from MH i2c: 01 07 00 [07:25:17]MH_I2C_Read... [07:25:17]Read from MH i2c: 01 07 00 A0 19 00 80 00 00 00 FF 0F 4E [07:25:17]RasterBufferAndPrint [07:25:17]line Счет N : (1)196045 [07:25:17]line ИНН: 02508201610067 [07:25:17]line Контрольно-Кассовый Чек [07:25:17]line ПРОДАЖА [07:25:17]line ТРК (МРК, ГНК) : 12 [07:25:17]line Товар: 2710124130 [07:25:17]line Аи-92-К-5 [07:25:17]line 15.900 * 62.90 [07:25:17]line = 1000.11 [07:25:17]line НДС 12% НСП 1% [07:25:17]line > о реализуемом товаре [07:25:17]line ИТОГО: 1000.11 [07:25:17]line НСП 1% : 8.85 [07:25:17]line НДС 12% : 106.21 [07:25:17]line Наличными: 0.00 [07:25:17]line Безнал.: 1000.11 [07:25:17]line Место: АЗС № 6 "Партнер Нефть" [07:25:17]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [07:25:17]line СНО: Общий режим [07:25:17]line Чек 19 12.03.2024 07:25 [07:25:17]line Смена: 327 ФФД: 1.0 [07:25:17]line ЗНМ: 0300000009 [07:25:17]line РНМ: 0000000000090555 [07:25:17]line Версия ККМ: 001 [07:25:17]line Платежная система: Бакай Банк [07:25:17]line ФМ: 0000000000874811 [07:25:17]line ФД: 95089 [07:25:17]line ФПД: 237631697177437 [07:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T072520&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95089&fm=237631697177437&tin=02508201610067®Number=0000000000090555&sum=100011 [07:25:18]OFD Sender: Processing packet 95089 [packets to send 30, broken 29] [07:25:18]ProducePacketName [07:25:18]name=ofd_packets/00095089 [07:25:18]OFD Sender: To server: pG, [07:25:18]CommunicateWithHost lk.salyk.kg:30040 [07:25:18]ConnectInit lk.salyk.kg [07:25:18]written 0, free lines is 4095 [07:25:18]Connected sock=10 [07:25:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 49 51 07 01 D2 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 60 03 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 71 73 01 00 35 04 06 00 D8 1F F0 E5 CB 5D BE 38 CA CB 8C CD C9 66 [07:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B5 34 47 00 C8 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 71 73 01 00 F4 03 04 00 B6 AE EF 65 B6 04 01 00 00 AF 9D F8 D6 0C 00 8C 2B [07:25:18]CommunicateWithHost err = 0 [07:25:18]CheckOFDResponse [07:25:18]1017 (14) - 77093643461234 [07:25:18]1041 (16) - 0000000000874811 [07:25:18]1040 (4) - 95089 [07:25:18]1012 (4) - 12.03.2024 01:24 [07:25:18]1206 (1) - 0 [07:25:18]OFD Sender: Remove packet 95089 [07:25:18]ProducePacketName [07:25:18]name=ofd_packets/00095089 [07:25:18]NVStorageDeleteData [07:25:18]Write to MH i2c: 01 00 00 CA 19 E3 [07:25:18]Write i2c OK [07:25:18]MH_I2C_Read... [07:25:18]Read from MH i2c: 01 [07:25:18]MH_I2C_Read... [07:25:18]Read from MH i2c: 01 07 00 [07:25:18]MH_I2C_Read... [07:25:18]Read from MH i2c: 01 07 00 CA 19 00 80 00 00 00 67 0D DE [07:25:18]RasterBufferAndPrint [07:25:18]line [07:25:18]line [07:25:18]line [07:25:18]line [07:25:18]line [07:25:18]written 0, free lines is 3437 [07:25:18]process_action close_receipt done [07:25:18]requested_data is exist [07:25:18]produce_requested_data [07:25:18]requested_item fm.sn is exist - process it [07:25:18]wFMCommunicate request_size=4 [07:25:18]MH_SAM_APDU [07:25:18]CAPDU: 80 11 00 00 [07:25:18]Write to MH i2c: E2 08 00 D1 19 80 11 00 00 00 00 00 00 64 [07:25:18]Write i2c OK [07:25:18]MH_I2C_Read... [07:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:18]Read from MH i2c: E2 [07:25:18]MH_I2C_Read... [07:25:18]Read from MH i2c: E2 17 00 [07:25:18]MH_I2C_Read... [07:25:18]Read from MH i2c: E2 17 00 D1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B4 [07:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:25:18]wFMCommunicate OK [07:25:18]requested_item fd.num is exist - process it [07:25:18]SAM_PROTO_GetFieldsCounters [07:25:18]wFMCommunicate request_size=4 [07:25:18]MH_SAM_APDU [07:25:18]CAPDU: 80 13 00 00 [07:25:18]Write to MH i2c: E2 08 00 D2 19 80 13 00 00 00 00 00 00 67 [07:25:18]Write i2c OK [07:25:18]MH_I2C_Read... [07:25:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:25:18]Read from MH i2c: E2 [07:25:18]MH_I2C_Read... [07:25:18]Read from MH i2c: E2 62 00 [07:25:18]MH_I2C_Read... [07:25:18]Read from MH i2c: E2 62 00 D2 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 71 73 01 00 0E 04 04 00 47 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 EA [07:25:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 71 73 01 00 0E 04 04 00 47 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 [07:25:18]wFMCommunicate OK [07:25:18]SAM_PROTO_GetFieldsCounters done [07:25:18]requested_item shift.num is exist - process it [07:25:18]requested_item shift.opened is exist - process it [07:25:18]req_shift_opened [07:25:18]FM_GetShiftState [07:25:18]SAM_PROTO_GetShiftState [07:25:18]wFMCommunicate request_size=4 [07:25:18]MH_SAM_APDU [07:25:18]CAPDU: 80 13 01 00 [07:25:18]Write to MH i2c: E2 08 00 D3 19 80 13 01 00 00 00 00 00 69 [07:25:18]Write i2c OK [07:25:18]MH_I2C_Read... [07:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:18]Read from MH i2c: E2 [07:25:18]MH_I2C_Read... [07:25:18]Read from MH i2c: E2 0E 00 [07:25:18]MH_I2C_Read... [07:25:18]Read from MH i2c: E2 0E 00 D3 19 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 DD [07:25:18]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [07:25:18]wFMCommunicate OK [07:25:18]SAM_PROTO_GetShiftState done [07:25:18]FM_GetShiftState done [07:25:18]req_shift_opened done [07:25:18]requested_item shift.open_date is exist - process it [07:25:18]req_shift_open_date [07:25:18]req_shift_open_date done [07:25:18]produce_requested_data done [07:25:18]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95089,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [07:25:18]process_action_free close_receipt [07:25:18]json_value_free [07:25:18]json_value_free done [07:25:18]process_json_proto returns [07:25:18]Send response to host [07:25:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95089,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [07:25:18]free response buf [07:25:18]execute_script done [07:25:18]execute_script returns [07:25:18]free content buf [07:25:18]Sock 9.Close socket [07:25:18]Sock 9.Thread stoped [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:25]accept exits with 8 [07:33:25]New connection [07:33:25]New thread 3066957156 created [07:33:25]Thread 3066813796 joined [07:33:25]Waiting for new connection... [07:33:25] Sock 8.Parse request [07:33:25]Sock 8.Check first char [07:33:25]Sock 8.First char is OK [07:33:25]request: POST /json_proto HTTP/1.0 [07:33:25]Method: POST [07:33:25]URL: /json_proto [07:33:25]Method is POST - this is cgi request [07:33:25]url: /json_proto [07:33:25]query_string will be loaded in cgi processing [07:33:25]execute_cgi json_proto POST (null) [07:33:25]execute_cgi path=json_proto method=POST [07:33:25]POST find Content-Length [07:33:25]Host: 172.17.62.67:8080 [07:33:25]Content-Length: 670 [07:33:25]Content-Type: application/json [07:33:25] [07:33:25]POST finish read [07:33:25]Found Content-Length = 670 [07:33:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 7.830, "sum" : 500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:25]execute_script... [07:33: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)196047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 7.830, "sum" : 500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:25]POST & json_proto [07:33:25]process_json_proto [07:33:25]json parsed OK: [07:33:25]protocol is kg_v1.0 [07:33:25]action value=close_receipt [07:33:25]process_action close_receipt [07:33:25]cmd_close_receipt [07:33:25]MH_GetDate [07:33:25]Write to MH i2c: F0 00 00 D4 19 DC [07:33:25]Write i2c OK [07:33:25]MH_I2C_Read... [07:33:25]Read from MH i2c: F0 [07:33:25]MH_I2C_Read... [07:33:25]Read from MH i2c: F0 05 00 [07:33:25]MH_I2C_Read... [07:33:25]Read from MH i2c: F0 05 00 D4 19 00 49 05 F0 65 84 [07:33:25]GetLastDocTimeStamp 1710228320 [07:33:25]current date 1710228809 [07:33:25]FM_GetShiftState [07:33:25]SAM_PROTO_GetShiftState [07:33:25]wFMCommunicate request_size=4 [07:33:25]MH_SAM_APDU [07:33:25]CAPDU: 80 13 01 00 [07:33:25]Write to MH i2c: E2 08 00 D5 19 80 13 01 00 00 00 00 00 6B [07:33:25]Write i2c OK [07:33:25]MH_I2C_Read... [07:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:26]Read from MH i2c: E2 [07:33:26]MH_I2C_Read... [07:33:26]Read from MH i2c: E2 0E 00 [07:33:26]MH_I2C_Read... [07:33:26]Read from MH i2c: E2 0E 00 D5 19 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 DF [07:33:26]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [07:33:26]wFMCommunicate OK [07:33:26]SAM_PROTO_GetShiftState done [07:33:26]FM_GetShiftState done [07:33:26]opened in 1710201976 [07:33:26]opened+sec_in_day 1710288376 [07:33:26]quantity*price = 50033 [07:33:26]sum+1 = 50035 [07:33:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 20 12.03.2024 07:33 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95090 ФПД: 124120754549617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T073330&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95090&fm=124120754549617&tin=02508201610067®Number=0000000000090555&sum=50000 [07:33:27]StoreToDocumentArchive [07:33:27]shift 327 fd 95090 [07:33:27]save to /storage/0327/doc_00095090 [07:33:27]save last doc name /storage/0327/doc_00095090 to /storage/kkm_last_doc_name [07:33:27]save OK [07:33:27]Clear old archive folders... [07:33:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:33:27]tlvbuf is 01A74490 [07:33:27]SAM_PROTO_ClearQueue [07:33:27]wFMCommunicate request_size=4 [07:33:27]MH_SAM_APDU [07:33:27]CAPDU: 80 09 00 00 [07:33:27]Write to MH i2c: E2 08 00 E2 19 80 09 00 00 00 00 00 00 6D [07:33:27]Write i2c OK [07:33:27]MH_I2C_Read... [07:33:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:33:27]Read from MH i2c: E2 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: E2 03 00 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: E2 03 00 E2 19 00 90 00 6F [07:33:27]RAPDU: 90 00 [07:33:27]wFMCommunicate OK [07:33:27]SAM_PROTO_ClearQueue done [07:33:27]KKMCreateOFDPacket [07:33:27]OFDProtocolAddRootSTLVToBuf [07:33:27]FM_MakeSignedData [07:33:27]FM_MakeSignedData [07:33:27]SAM_PROTO_SignData [07:33:27]wFMCommunicate request_size=4 [07:33:27]MH_SAM_APDU [07:33:27]CAPDU: 80 0D 01 02 [07:33:27]Write to MH i2c: E2 08 00 E3 19 80 0D 01 02 00 00 00 00 75 [07:33:27]Write i2c OK [07:33:27]MH_I2C_Read... [07:33:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:33:27]Read from MH i2c: E2 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: E2 03 00 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: E2 03 00 E3 19 00 90 00 70 [07:33:27]RAPDU: 90 00 [07:33:27]wFMCommunicate OK [07:33:27]wFMCommunicate request_size=255 [07:33:27]MH_SAM_APDU [07:33:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 14 00 00 00 F4 03 04 00 4A 05 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 72 73 01 00 35 04 06 00 [07:33:27]Write to MH i2c: E2 02 01 E4 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 14 00 00 00 F4 03 04 00 4A 05 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 72 73 01 00 35 04 06 00 00 00 AC [07:33:27]Write i2c OK [07:33:27]MH_I2C_Read... [07:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:27]Read from MH i2c: E2 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: E2 03 00 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: E2 03 00 E4 19 00 90 00 71 [07:33:27]RAPDU: 90 00 [07:33:27]wFMCommunicate OK [07:33:27]wFMCommunicate request_size=11 [07:33:27]MH_SAM_APDU [07:33:27]CAPDU: 80 0D 02 02 06 70 E3 1D 7B F3 71 [07:33:27]Write to MH i2c: E2 0E 00 E5 19 80 0D 02 02 06 00 70 E3 1D 7B F3 71 00 00 D3 [07:33:27]Write i2c OK [07:33:27]MH_I2C_Read... [07:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:27]Read from MH i2c: E2 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: E2 03 00 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: E2 03 00 E5 19 00 90 00 72 [07:33:27]RAPDU: 90 00 [07:33:27]wFMCommunicate OK [07:33:27]wFMCommunicate request_size=4 [07:33:27]MH_SAM_APDU [07:33:27]CAPDU: 80 0D 03 02 [07:33:27]Write to MH i2c: E2 08 00 E6 19 80 0D 03 02 00 00 00 00 7A [07:33:27]Write i2c OK [07:33:27]MH_I2C_Read... [07:33:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:33:27]Read from MH i2c: E2 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: E2 0B 00 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: E2 0B 00 E6 19 00 27 19 1D 7A 41 09 63 DA 90 00 D9 [07:33:27]RAPDU: 27 19 1D 7A 41 09 63 DA 90 00 [07:33:27]wFMCommunicate OK [07:33:27]SAM_PROTO_SignData done [07:33:27]FM_MakeSignedData done [07:33:27]CreateOFDProtocolMessage [07:33:27]wFMCommunicate request_size=4 [07:33:27]MH_SAM_APDU [07:33:27]CAPDU: 80 11 00 00 [07:33:27]Write to MH i2c: E2 08 00 E7 19 80 11 00 00 00 00 00 00 7A [07:33:27]Write i2c OK [07:33:27]MH_I2C_Read... [07:33:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:27]Read from MH i2c: E2 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: E2 17 00 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: E2 17 00 E7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CA [07:33:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:33:27]wFMCommunicate OK [07:33:27]CreateOFDProtocolMessage done [07:33:27]OFDSenderStorePacket 95090 [07:33:27]StoreOFDPacket docnum=95090 [07:33:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 29 69 08 01 D7 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 14 00 00 00 F4 03 04 00 4A 05 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 72 73 01 00 35 04 06 00 70 E3 1D 7B F3 71 27 19 1D 7A 41 09 63 DA [07:33:27]CheckFolder [07:33:27]dirname=/storage/ofd_packets [07:33:27]CheckFolder done [07:33:27]ProducePacketName [07:33:27]name=ofd_packets/00095090 [07:33:27]NVStorageSaveData ofd_packets/00095090 [07:33:27]File name is /storage/ofd_packets/00095090 [07:33:27]Write 302 bytes [07:33:27]NVStorageSaveData done [07:33:27]OFDSenderStorePacket done [07:33:27]KKMCreateOFDPacket done [07:33:27]NVStorageSaveData kkm_last_timestamp [07:33:27]File name is /storage/kkm_last_timestamp [07:33:27]Write 4 bytes [07:33:27]NVStorageSaveData done [07:33:27]ExternCall_PrintAddStr [07:33:27]wPrintStart [07:33:27]Write to MH i2c: 01 00 00 E8 19 01 [07:33:27]OFD Sender: Processing packet 95090 [packets to send 30, broken 29] [07:33:27]ProducePacketName [07:33:27]name=ofd_packets/00095090 [07:33:27]OFD Sender: To server: pG, [07:33:27]CommunicateWithHost lk.salyk.kg:30040 [07:33:27]ConnectInit lk.salyk.kg [07:33:27]Write i2c OK [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: 01 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: 01 07 00 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: 01 07 00 E8 19 00 80 00 00 00 FF 0F 96 [07:33:27]RasterBufferAndPrint [07:33:27]line Счет N : (1)196047 [07:33:27]line ИНН: 02508201610067 [07:33:27]line Контрольно-Кассовый Чек [07:33:27]line ПРОДАЖА [07:33:27]line ТРК (МРК, ГНК) : 13 [07:33:27]line Товар: 2710124130 [07:33:27]line SUPER 92-К-5 [07:33:27]line 7.830 * 63.90 [07:33:27]line = 500.34 [07:33:27]line НДС 12% НСП 1% [07:33:27]line > о реализуемом товаре [07:33:27]line ОКРУГЛЕНИЕ: -0.34 [07:33:27]line ИТОГО: 500.00 [07:33:27]line Внесено: 500.00 [07:33:27]line СДАЧА: 0.00 [07:33:27]line НСП 1% : 4.43 [07:33:27]line НДС 12% : 53.13 [07:33:27]line Наличными: 500.00 [07:33:27]line Безнал.: 0.00 [07:33:27]line Место: АЗС № 6 "Партнер Нефть" [07:33:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [07:33:27]line СНО: Общий режим [07:33:27]line Чек 20 12.03.2024 07:33 [07:33:27]line Смена: 327 ФФД: 1.0 [07:33:27]line ЗНМ: 0300000009 [07:33:28]line РНМ: 0000000000090555 [07:33:28]line Версия ККМ: 001 [07:33:28]line ФМ: 0000000000874811 [07:33:28]line ФД: 95090 [07:33:28]line ФПД: 124120754549617 [07:33:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T073330&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95090&fm=124120754549617&tin=02508201610067®Number=0000000000090555&sum=50000 [07:33:28]Connected sock=10 [07:33:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 29 69 08 01 D7 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 14 00 00 00 F4 03 04 00 4A 05 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 72 73 01 00 35 04 06 00 70 E3 1D 7B F3 71 27 19 1D 7A 41 09 63 DA [07:33:28]written 0, free lines is 4095 [07:33:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 11 FC 47 00 46 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 72 73 01 00 F4 03 04 00 A0 B0 EF 65 B6 04 01 00 00 D5 7E 43 DE 88 2E 8E F3 [07:33:28]CommunicateWithHost err = 0 [07:33:28]CheckOFDResponse [07:33:28]1017 (14) - 77093643461234 [07:33:28]1041 (16) - 0000000000874811 [07:33:28]1040 (4) - 95090 [07:33:28]1012 (4) - 12.03.2024 01:32 [07:33:28]1206 (1) - 0 [07:33:28]OFD Sender: Remove packet 95090 [07:33:28]ProducePacketName [07:33:28]name=ofd_packets/00095090 [07:33:28]NVStorageDeleteData [07:33:28]Write to MH i2c: 01 00 00 13 1A 2D [07:33:28]Write i2c OK [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: 01 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: 01 07 00 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: 01 07 00 13 1A 00 80 00 00 00 52 0D 13 [07:33:28]RasterBufferAndPrint [07:33:28]line [07:33:28]line [07:33:28]line [07:33:28]line [07:33:28]line [07:33:28]written 0, free lines is 3416 [07:33:28]process_action close_receipt done [07:33:28]requested_data is exist [07:33:28]produce_requested_data [07:33:28]requested_item fm.sn is exist - process it [07:33:28]wFMCommunicate request_size=4 [07:33:28]MH_SAM_APDU [07:33:28]CAPDU: 80 11 00 00 [07:33:28]Write to MH i2c: E2 08 00 1A 1A 80 11 00 00 00 00 00 00 AE [07:33:28]Write i2c OK [07:33:28]MH_I2C_Read... [07:33:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:28]Read from MH i2c: E2 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 17 00 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 17 00 1A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FE [07:33:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:33:28]wFMCommunicate OK [07:33:28]requested_item fd.num is exist - process it [07:33:28]SAM_PROTO_GetFieldsCounters [07:33:28]wFMCommunicate request_size=4 [07:33:28]MH_SAM_APDU [07:33:28]CAPDU: 80 13 00 00 [07:33:28]Write to MH i2c: E2 08 00 1B 1A 80 13 00 00 00 00 00 00 B1 [07:33:28]Write i2c OK [07:33:28]MH_I2C_Read... [07:33:28]OFD Sender: No OFD packet to send [07:33:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:28]Read from MH i2c: E2 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 62 00 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 62 00 1B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 72 73 01 00 0E 04 04 00 47 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 38 [07:33:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 72 73 01 00 0E 04 04 00 47 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 [07:33:28]wFMCommunicate OK [07:33:28]SAM_PROTO_GetFieldsCounters done [07:33:28]requested_item shift.num is exist - process it [07:33:28]requested_item shift.opened is exist - process it [07:33:28]req_shift_opened [07:33:28]FM_GetShiftState [07:33:28]SAM_PROTO_GetShiftState [07:33:28]wFMCommunicate request_size=4 [07:33:28]MH_SAM_APDU [07:33:28]CAPDU: 80 13 01 00 [07:33:28]Write to MH i2c: E2 08 00 1C 1A 80 13 01 00 00 00 00 00 B3 [07:33:28]Write i2c OK [07:33:28]MH_I2C_Read... [07:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:28]Read from MH i2c: E2 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 0E 00 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 0E 00 1C 1A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 27 [07:33:28]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [07:33:28]wFMCommunicate OK [07:33:28]SAM_PROTO_GetShiftState done [07:33:28]FM_GetShiftState done [07:33:28]req_shift_opened done [07:33:28]requested_item shift.open_date is exist - process it [07:33:28]req_shift_open_date [07:33:28]req_shift_open_date done [07:33:28]produce_requested_data done [07:33:28]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95090,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [07:33:28]process_action_free close_receipt [07:33:28]json_value_free [07:33:28]json_value_free done [07:33:28]process_json_proto returns [07:33:28]Send response to host [07:33:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95090,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [07:33:28]free response buf [07:33:28]execute_script done [07:33:28]execute_script returns [07:33:28]free content buf [07:33:28]Sock 8.Close socket [07:33:28]Sock 8.Thread stoped [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]accept exits with 9 [07:33:48]New connection [07:33:48]New thread 3066813796 created [07:33:48]Thread 3066957156 joined [07:33:48]Waiting for new connection... [07:33:48] Sock 9.Parse request [07:33:48]Sock 9.Check first char [07:33:48]Sock 9.First char is OK [07:33:48]request: POST /json_proto HTTP/1.0 [07:33:48]Method: POST [07:33:48]URL: /json_proto [07:33:48]Method is POST - this is cgi request [07:33:48]url: /json_proto [07:33:48]query_string will be loaded in cgi processing [07:33:48]execute_cgi json_proto POST (null) [07:33:48]execute_cgi path=json_proto method=POST [07:33:48]POST find Content-Length [07:33:48]Host: 172.17.62.67:8080 [07:33:48]Content-Length: 1204 [07:33:48]Content-Type: application/json [07:33:48] [07:33:48]POST finish read [07:33:48]Found Content-Length = 1204 [07:33:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196046\u000A12.03.2024 07:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.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\u000A3581459;31\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:48]execute_script... [07:33:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196046\u000A12.03.2024 07:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.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\u000A3581459;31\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:48]POST & json_proto [07:33:48]process_json_proto [07:33:48]json parsed OK: [07:33:48]protocol is kg_v1.0 [07:33:48]action value=print_text [07:33:48]process_action print_text [07:33:48]cmd_print_text [07:33:48]ExternCall_PrintAddStr [07:33:48]wPrintStart [07:33:48]Write to MH i2c: 01 00 00 1D 1A 37 [07:33:48]Write i2c OK [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: 01 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: 01 07 00 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: 01 07 00 1D 1A 00 80 00 00 00 FF 0F CC [07:33:48]RasterBufferAndPrint [07:33:48]line *****ТОВАРНЫЙ ЧЕК***** [07:33:48]line АЗС 6 [07:33:48]line Партнер нефть [07:33:48]line 02508201610067 [07:33:48]line Кассир : Мыктыбекова И. [07:33:48]line Счет N : (1)196046 [07:33:48]line 12.03.2024 07:27 [07:33:48]line ПРОДАЖА [07:33:48]line ТРК (МРК, ГНК): 22 [07:33:48]line Вид ГСМ : 2710124130 [07:33:48]line Аи-92-К-5 [07:33:48]line 30.000 x 62.90 [07:33:48]line ИТОГ: 1887.00 [07:33:48]line Тип оплаты: Талоны: Партнер нефть [07:33:48]line 3581459;31 [07:33:48]line ______________________ [07:33:48]line (подпись) [07:33:48]written 0, free lines is 4095 [07:33:48]OFD Sender: No OFD packet to send [07:33:48]Write to MH i2c: 01 00 00 31 1A 4B [07:33:48]Write i2c OK [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: 01 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: 01 07 00 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: 01 07 00 31 1A 00 80 00 00 00 6E 0E 4E [07:33:48]RasterBufferAndPrint [07:33:48]line [07:33:48]line [07:33:48]line [07:33:48]line [07:33:48]line [07:33:48]written 0, free lines is 3696 [07:33:48]process_action print_text done [07:33:48]requested_data is exist [07:33:48]produce_requested_data [07:33:48]requested_item fm.sn is exist - process it [07:33:48]wFMCommunicate request_size=4 [07:33:48]MH_SAM_APDU [07:33:48]CAPDU: 80 11 00 00 [07:33:48]Write to MH i2c: E2 08 00 38 1A 80 11 00 00 00 00 00 00 CC [07:33:48]Write i2c OK [07:33:48]MH_I2C_Read... [07:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:48]Read from MH i2c: E2 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: E2 17 00 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: E2 17 00 38 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1C [07:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:33:48]wFMCommunicate OK [07:33:48]requested_item fd.num is exist - process it [07:33:48]SAM_PROTO_GetFieldsCounters [07:33:48]wFMCommunicate request_size=4 [07:33:48]MH_SAM_APDU [07:33:48]CAPDU: 80 13 00 00 [07:33:48]Write to MH i2c: E2 08 00 39 1A 80 13 00 00 00 00 00 00 CF [07:33:48]Write i2c OK [07:33:48]MH_I2C_Read... [07:33:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:48]Read from MH i2c: E2 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: E2 62 00 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: E2 62 00 39 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 72 73 01 00 0E 04 04 00 47 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 56 [07:33:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 72 73 01 00 0E 04 04 00 47 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 [07:33:48]wFMCommunicate OK [07:33:48]SAM_PROTO_GetFieldsCounters done [07:33:48]requested_item shift.num is exist - process it [07:33:48]requested_item shift.opened is exist - process it [07:33:48]req_shift_opened [07:33:48]FM_GetShiftState [07:33:48]SAM_PROTO_GetShiftState [07:33:48]wFMCommunicate request_size=4 [07:33:48]MH_SAM_APDU [07:33:48]CAPDU: 80 13 01 00 [07:33:48]Write to MH i2c: E2 08 00 3A 1A 80 13 01 00 00 00 00 00 D1 [07:33:48]Write i2c OK [07:33:48]MH_I2C_Read... [07:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:48]Read from MH i2c: E2 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: E2 0E 00 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: E2 0E 00 3A 1A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 45 [07:33:48]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [07:33:48]wFMCommunicate OK [07:33:48]SAM_PROTO_GetShiftState done [07:33:48]FM_GetShiftState done [07:33:48]req_shift_opened done [07:33:48]requested_item shift.open_date is exist - process it [07:33:48]req_shift_open_date [07:33:48]req_shift_open_date done [07:33:48]produce_requested_data done [07:33:48]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95090,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [07:33:48]process_action_free print_text [07:33:48]json_value_free [07:33:48]json_value_free done [07:33:48]process_json_proto returns [07:33:48]Send response to host [07:33:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95090,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [07:33:48]free response buf [07:33:48]execute_script done [07:33:48]execute_script returns [07:33:48]free content buf [07:33:48]Sock 9.Close socket [07:33:48]Sock 9.Thread stoped [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]accept exits with 10 [07:48:49]New connection [07:48:49]New thread 3066957156 created [07:48:49]Thread 3066813796 joined [07:48:49]Waiting for new connection... [07:48:49] Sock 10.Parse request [07:48:49]Sock 10.Check first char [07:48:49]Sock 10.First char is OK [07:48:49]request: POST /json_proto HTTP/1.0 [07:48:49]Method: POST [07:48:49]URL: /json_proto [07:48:49]Method is POST - this is cgi request [07:48:49]url: /json_proto [07:48:49]query_string will be loaded in cgi processing [07:48:49]execute_cgi json_proto POST (null) [07:48:49]execute_cgi path=json_proto method=POST [07:48:49]POST find Content-Length [07:48:49]Host: 172.17.62.67:8080 [07:48:49]Content-Length: 677 [07:48:49]Content-Type: application/json [07:48:49] [07:48:49]POST finish read [07:48:49]Found Content-Length = 677 [07:48:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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:48:49]execute_script... [07:48: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)196048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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:48:49]POST & json_proto [07:48:49]process_json_proto [07:48:49]json parsed OK: [07:48:49]protocol is kg_v1.0 [07:48:49]action value=close_receipt [07:48:49]process_action close_receipt [07:48:49]cmd_close_receipt [07:48:49]MH_GetDate [07:48:49]Write to MH i2c: F0 00 00 3B 1A 44 [07:48:49]Write i2c OK [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: F0 [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: F0 05 00 [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: F0 05 00 3B 1A 00 E5 08 F0 65 8B [07:48:49]GetLastDocTimeStamp 1710228810 [07:48:49]current date 1710229733 [07:48:49]FM_GetShiftState [07:48:49]SAM_PROTO_GetShiftState [07:48:49]wFMCommunicate request_size=4 [07:48:49]MH_SAM_APDU [07:48:49]CAPDU: 80 13 01 00 [07:48:49]Write to MH i2c: E2 08 00 3C 1A 80 13 01 00 00 00 00 00 D3 [07:48:49]Write i2c OK [07:48:49]MH_I2C_Read... [07:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:49]Read from MH i2c: E2 [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: E2 0E 00 [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: E2 0E 00 3C 1A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 47 [07:48:49]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [07:48:49]wFMCommunicate OK [07:48:49]SAM_PROTO_GetShiftState done [07:48:49]FM_GetShiftState done [07:48:49]opened in 1710201976 [07:48:49]opened+sec_in_day 1710288376 [07:48:49]quantity*price = 30003 [07:48:49]sum+1 = 30004 [07:48:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 21 12.03.2024 07:48 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95091 ФПД: 6381410867783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T074853&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95091&fm=6381410867783&tin=02508201610067®Number=0000000000090555&sum=30000 [07:48:50]StoreToDocumentArchive [07:48:50]shift 327 fd 95091 [07:48:50]save to /storage/0327/doc_00095091 [07:48:50]save last doc name /storage/0327/doc_00095091 to /storage/kkm_last_doc_name [07:48:50]save OK [07:48:50]Clear old archive folders... [07:48:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:50]tlvbuf is 01A5F940 [07:48:50]SAM_PROTO_ClearQueue [07:48:50]wFMCommunicate request_size=4 [07:48:50]MH_SAM_APDU [07:48:50]CAPDU: 80 09 00 00 [07:48:50]Write to MH i2c: E2 08 00 49 1A 80 09 00 00 00 00 00 00 D5 [07:48:50]Write i2c OK [07:48:50]MH_I2C_Read... [07:48:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:50]Read from MH i2c: E2 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 03 00 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 03 00 49 1A 00 90 00 D7 [07:48:50]RAPDU: 90 00 [07:48:50]wFMCommunicate OK [07:48:50]SAM_PROTO_ClearQueue done [07:48:50]KKMCreateOFDPacket [07:48:50]OFDProtocolAddRootSTLVToBuf [07:48:50]FM_MakeSignedData [07:48:50]FM_MakeSignedData [07:48:50]SAM_PROTO_SignData [07:48:50]wFMCommunicate request_size=4 [07:48:50]MH_SAM_APDU [07:48:50]CAPDU: 80 0D 01 02 [07:48:50]Write to MH i2c: E2 08 00 4A 1A 80 0D 01 02 00 00 00 00 DD [07:48:50]Write i2c OK [07:48:50]MH_I2C_Read... [07:48:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:50]Read from MH i2c: E2 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 03 00 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 03 00 4A 1A 00 90 00 D8 [07:48:50]RAPDU: 90 00 [07:48:50]wFMCommunicate OK [07:48:50]wFMCommunicate request_size=255 [07:48:50]MH_SAM_APDU [07:48:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 15 00 00 00 F4 03 04 00 E5 08 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 73 73 01 00 35 04 06 00 05 [07:48:50]Write to MH i2c: E2 02 01 4B 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 15 00 00 00 F4 03 04 00 E5 08 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 73 73 01 00 35 04 06 00 05 00 00 46 [07:48:50]Write i2c OK [07:48:50]MH_I2C_Read... [07:48:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:50]Read from MH i2c: E2 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 03 00 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 03 00 4B 1A 00 90 00 D9 [07:48:50]RAPDU: 90 00 [07:48:50]wFMCommunicate OK [07:48:50]wFMCommunicate request_size=10 [07:48:50]MH_SAM_APDU [07:48:50]CAPDU: 80 0D 02 02 05 CD C9 BA 5A 47 [07:48:50]Write to MH i2c: E2 0D 00 4C 1A 80 0D 02 02 05 00 CD C9 BA 5A 47 00 00 DB [07:48:50]Write i2c OK [07:48:50]MH_I2C_Read... [07:48:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:50]Read from MH i2c: E2 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 03 00 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 03 00 4C 1A 00 90 00 DA [07:48:50]RAPDU: 90 00 [07:48:50]wFMCommunicate OK [07:48:50]wFMCommunicate request_size=4 [07:48:50]MH_SAM_APDU [07:48:50]CAPDU: 80 0D 03 02 [07:48:50]Write to MH i2c: E2 08 00 4D 1A 80 0D 03 02 00 00 00 00 E2 [07:48:50]Write i2c OK [07:48:50]MH_I2C_Read... [07:48:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:50]Read from MH i2c: E2 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 0B 00 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 0B 00 4D 1A 00 C7 9D 47 24 78 6E 04 04 90 00 A0 [07:48:50]RAPDU: C7 9D 47 24 78 6E 04 04 90 00 [07:48:50]wFMCommunicate OK [07:48:50]SAM_PROTO_SignData done [07:48:50]FM_MakeSignedData done [07:48:50]CreateOFDProtocolMessage [07:48:50]wFMCommunicate request_size=4 [07:48:50]MH_SAM_APDU [07:48:50]CAPDU: 80 11 00 00 [07:48:50]Write to MH i2c: E2 08 00 4E 1A 80 11 00 00 00 00 00 00 E2 [07:48:50]Write i2c OK [07:48:50]MH_I2C_Read... [07:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:50]Read from MH i2c: E2 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 17 00 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 17 00 4E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 32 [07:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:48:50]wFMCommunicate OK [07:48:50]CreateOFDProtocolMessage done [07:48:50]OFDSenderStorePacket 95091 [07:48:50]StoreOFDPacket docnum=95091 [07:48:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F0 99 07 01 22 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 15 00 00 00 F4 03 04 00 E5 08 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 73 73 01 00 35 04 06 00 05 CD C9 BA 5A 47 C7 9D 47 24 78 6E 04 04 [07:48:50]CheckFolder [07:48:50]dirname=/storage/ofd_packets [07:48:50]CheckFolder done [07:48:50]ProducePacketName [07:48:50]name=ofd_packets/00095091 [07:48:50]NVStorageSaveData ofd_packets/00095091 [07:48:50]File name is /storage/ofd_packets/00095091 [07:48:50]Write 301 bytes [07:48:50]NVStorageSaveData done [07:48:50]OFDSenderStorePacket done [07:48:50]KKMCreateOFDPacket done [07:48:50]NVStorageSaveData kkm_last_timestamp [07:48:50]File name is /storage/kkm_last_timestamp [07:48:50]Write 4 bytes [07:48:50]NVStorageSaveData done [07:48:50]ExternCall_PrintAddStr [07:48:50]wPrintStart [07:48:50]Write to MH i2c: 01 00 00 4F 1A 69 [07:48:50]Write i2c OK [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: 01 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: 01 07 00 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: 01 07 00 4F 1A 00 80 00 00 00 FF 0F FE [07:48:50]RasterBufferAndPrint [07:48:50]line Счет N : (1)196048 [07:48:50]line ИНН: 02508201610067 [07:48:50]line Контрольно-Кассовый Чек [07:48:50]line ПРОДАЖА [07:48:50]line ТРК (МРК, ГНК) : 22 [07:48:50]line Товар: 2710124130 [07:48:50]line Аи-92-К-5 [07:48:50]line 4.770 * 62.90 [07:48:50]line = 300.03 [07:48:50]line НДС 12% НСП 1% [07:48:50]line > о реализуемом товаре [07:48:50]line ОКРУГЛЕНИЕ: -0.03 [07:48:50]line ИТОГО: 300.00 [07:48:50]line Внесено: 300.00 [07:48:50]line СДАЧА: 0.00 [07:48:50]line НСП 1% : 2.65 [07:48:50]line НДС 12% : 31.86 [07:48:50]line Наличными: 300.00 [07:48:50]line Безнал.: 0.00 [07:48:50]line Место: АЗС № 6 "Партнер Нефть" [07:48:50]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [07:48:50]line СНО: Общий режим [07:48:50]line Чек 21 12.03.2024 07:48 [07:48:50]line Смена: 327 ФФД: 1.0 [07:48:50]line ЗНМ: 0300000009 [07:48:50]line РНМ: 0000000000090555 [07:48:50]line Версия ККМ: 001 [07:48:50]line ФМ: 0000000000874811 [07:48:50]line ФД: 95091 [07:48:50]line ФПД: 6381410867783 [07:48:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T074853&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95091&fm=6381410867783&tin=02508201610067®Number=0000000000090555&sum=30000 [07:48:51]OFD Sender: Processing packet 95091 [packets to send 30, broken 29] [07:48:51]ProducePacketName [07:48:51]name=ofd_packets/00095091 [07:48:51]OFD Sender: To server: pG, [07:48:51]CommunicateWithHost lk.salyk.kg:30040 [07:48:51]ConnectInit lk.salyk.kg [07:48:51]written 0, free lines is 4095 [07:48:51]Connected sock=9 [07:48:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F0 99 07 01 22 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 15 00 00 00 F4 03 04 00 E5 08 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 73 73 01 00 35 04 06 00 05 CD C9 BA 5A 47 C7 9D 47 24 78 6E 04 04 [07:48:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 41 B8 47 00 3C 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 73 73 01 00 F4 03 04 00 3B B4 EF 65 B6 04 01 00 00 BF 4E EB F8 4B E9 E5 CE [07:48:51]CommunicateWithHost err = 0 [07:48:51]CheckOFDResponse [07:48:51]1017 (14) - 77093643461234 [07:48:51]1041 (16) - 0000000000874811 [07:48:51]1040 (4) - 95091 [07:48:51]1012 (4) - 12.03.2024 01:47 [07:48:51]1206 (1) - 0 [07:48:51]OFD Sender: Remove packet 95091 [07:48:51]ProducePacketName [07:48:51]name=ofd_packets/00095091 [07:48:51]NVStorageDeleteData [07:48:51]Write to MH i2c: 01 00 00 7A 1A 94 [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: 01 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: 01 07 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: 01 07 00 7A 1A 00 80 00 00 00 58 0D 80 [07:48:51]RasterBufferAndPrint [07:48:51]line [07:48:51]line [07:48:51]line [07:48:51]line [07:48:51]line [07:48:51]written 0, free lines is 3422 [07:48:51]process_action close_receipt done [07:48:51]requested_data is exist [07:48:51]produce_requested_data [07:48:51]requested_item fm.sn is exist - process it [07:48:51]wFMCommunicate request_size=4 [07:48:51]MH_SAM_APDU [07:48:51]CAPDU: 80 11 00 00 [07:48:51]Write to MH i2c: E2 08 00 81 1A 80 11 00 00 00 00 00 00 15 [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 [07:48:51]MH_I2C_Read... [07:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:51]Read from MH i2c: E2 17 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 17 00 81 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 65 [07:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:48:51]wFMCommunicate OK [07:48:51]requested_item fd.num is exist - process it [07:48:51]SAM_PROTO_GetFieldsCounters [07:48:51]wFMCommunicate request_size=4 [07:48:51]MH_SAM_APDU [07:48:51]CAPDU: 80 13 00 00 [07:48:51]Write to MH i2c: E2 08 00 82 1A 80 13 00 00 00 00 00 00 18 [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:51]Read from MH i2c: E2 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 62 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 62 00 82 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 73 73 01 00 0E 04 04 00 47 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 A3 [07:48:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 73 73 01 00 0E 04 04 00 47 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 [07:48:51]wFMCommunicate OK [07:48:51]SAM_PROTO_GetFieldsCounters done [07:48:51]requested_item shift.num is exist - process it [07:48:51]requested_item shift.opened is exist - process it [07:48:51]req_shift_opened [07:48:51]FM_GetShiftState [07:48:51]SAM_PROTO_GetShiftState [07:48:51]wFMCommunicate request_size=4 [07:48:51]MH_SAM_APDU [07:48:51]CAPDU: 80 13 01 00 [07:48:51]Write to MH i2c: E2 08 00 83 1A 80 13 01 00 00 00 00 00 1A [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]OFD Sender: No OFD packet to send [07:48:51]Read from MH i2c: E2 [07:48:51]MH_I2C_Read... [07:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:51]Read from MH i2c: E2 0E 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 0E 00 83 1A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 8E [07:48:51]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [07:48:51]wFMCommunicate OK [07:48:51]SAM_PROTO_GetShiftState done [07:48:51]FM_GetShiftState done [07:48:51]req_shift_opened done [07:48:51]requested_item shift.open_date is exist - process it [07:48:51]req_shift_open_date [07:48:51]req_shift_open_date done [07:48:51]produce_requested_data done [07:48:51]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95091,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [07:48:51]process_action_free close_receipt [07:48:51]json_value_free [07:48:51]json_value_free done [07:48:51]process_json_proto returns [07:48:51]Send response to host [07:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95091,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [07:48:51]free response buf [07:48:51]execute_script done [07:48:51]execute_script returns [07:48:51]free content buf [07:48:51]Sock 10.Close socket [07:48:51]Sock 10.Thread stoped [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52: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]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:20]accept exits with 8 [08:11:20]New connection [08:11:20]New thread 3066813796 created [08:11:20]Thread 3066957156 joined [08:11:20]Waiting for new connection... [08:11:20] Sock 8.Parse request [08:11:20]Sock 8.Check first char [08:11:20]Sock 8.First char is OK [08:11:20]request: POST /json_proto HTTP/1.0 [08:11:20]Method: POST [08:11:20]URL: /json_proto [08:11:20]Method is POST - this is cgi request [08:11:20]url: /json_proto [08:11:20]query_string will be loaded in cgi processing [08:11:20]execute_cgi json_proto POST (null) [08:11:20]execute_cgi path=json_proto method=POST [08:11:20]POST find Content-Length [08:11:20]Host: 172.17.62.67:8080 [08:11:20]Content-Length: 682 [08:11:20]Content-Type: application/json [08:11:20] [08:11:20]POST finish read [08:11:20]Found Content-Length = 682 [08:11:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:11:20]execute_script... [08:11: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)196049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:11:20]POST & json_proto [08:11:20]process_json_proto [08:11:20]json parsed OK: [08:11:20]protocol is kg_v1.0 [08:11:20]action value=close_receipt [08:11:20]process_action close_receipt [08:11:20]cmd_close_receipt [08:11:20]MH_GetDate [08:11:20]Write to MH i2c: F0 00 00 84 1A 8D [08:11:20]Write i2c OK [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: F0 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: F0 05 00 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: F0 05 00 84 1A 00 2C 0E F0 65 21 [08:11:20]GetLastDocTimeStamp 1710229733 [08:11:20]current date 1710231084 [08:11:20]FM_GetShiftState [08:11:20]SAM_PROTO_GetShiftState [08:11:20]wFMCommunicate request_size=4 [08:11:20]MH_SAM_APDU [08:11:20]CAPDU: 80 13 01 00 [08:11:20]Write to MH i2c: E2 08 00 85 1A 80 13 01 00 00 00 00 00 1C [08:11:20]Write i2c OK [08:11:20]MH_I2C_Read... [08:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:20]Read from MH i2c: E2 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: E2 0E 00 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: E2 0E 00 85 1A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 90 [08:11:20]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:11:20]wFMCommunicate OK [08:11:20]SAM_PROTO_GetShiftState done [08:11:20]FM_GetShiftState done [08:11:20]opened in 1710201976 [08:11:20]opened+sec_in_day 1710288376 [08:11:20]quantity*price = 100011 [08:11:20]sum+1 = 100012 [08:11:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 22 12.03.2024 08:11 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95092 ФПД: 242892615665733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T081124&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95092&fm=242892615665733&tin=02508201610067®Number=0000000000090555&sum=100000 [08:11:21]StoreToDocumentArchive [08:11:21]shift 327 fd 95092 [08:11:21]save to /storage/0327/doc_00095092 [08:11:21]save last doc name /storage/0327/doc_00095092 to /storage/kkm_last_doc_name [08:11:21]save OK [08:11:21]Clear old archive folders... [08:11:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:11:21]tlvbuf is 01A8DB10 [08:11:21]SAM_PROTO_ClearQueue [08:11:21]wFMCommunicate request_size=4 [08:11:21]MH_SAM_APDU [08:11:21]CAPDU: 80 09 00 00 [08:11:21]Write to MH i2c: E2 08 00 92 1A 80 09 00 00 00 00 00 00 1E [08:11:21]Write i2c OK [08:11:21]MH_I2C_Read... [08:11:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:21]Read from MH i2c: E2 [08:11:21]MH_I2C_Read... [08:11:21]Read from MH i2c: E2 03 00 [08:11:21]MH_I2C_Read... [08:11:21]Read from MH i2c: E2 03 00 92 1A 00 90 00 20 [08:11:21]RAPDU: 90 00 [08:11:21]wFMCommunicate OK [08:11:21]SAM_PROTO_ClearQueue done [08:11:21]KKMCreateOFDPacket [08:11:21]OFDProtocolAddRootSTLVToBuf [08:11:21]FM_MakeSignedData [08:11:21]FM_MakeSignedData [08:11:21]SAM_PROTO_SignData [08:11:21]wFMCommunicate request_size=4 [08:11:21]MH_SAM_APDU [08:11:21]CAPDU: 80 0D 01 02 [08:11:21]Write to MH i2c: E2 08 00 93 1A 80 0D 01 02 00 00 00 00 26 [08:11:21]Write i2c OK [08:11:21]MH_I2C_Read... [08:11:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:21]Read from MH i2c: E2 [08:11:21]MH_I2C_Read... [08:11:21]Read from MH i2c: E2 03 00 [08:11:21]MH_I2C_Read... [08:11:21]Read from MH i2c: E2 03 00 93 1A 00 90 00 21 [08:11:21]RAPDU: 90 00 [08:11:21]wFMCommunicate OK [08:11:21]wFMCommunicate request_size=255 [08:11:21]MH_SAM_APDU [08:11:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 2C 0E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 74 73 01 00 35 04 06 00 DC [08:11:21]Write to MH i2c: E2 02 01 94 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 2C 0E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 74 73 01 00 35 04 06 00 DC 00 00 7F [08:11:21]Write i2c OK [08:11:21]MH_I2C_Read... [08:11:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:21]Read from MH i2c: E2 [08:11:21]MH_I2C_Read... [08:11:21]Read from MH i2c: E2 03 00 [08:11:21]MH_I2C_Read... [08:11:21]Read from MH i2c: E2 03 00 94 1A 00 90 00 22 [08:11:21]RAPDU: 90 00 [08:11:21]wFMCommunicate OK [08:11:21]wFMCommunicate request_size=10 [08:11:21]MH_SAM_APDU [08:11:21]CAPDU: 80 0D 02 02 05 E8 D8 13 48 45 [08:11:21]Write to MH i2c: E2 0D 00 95 1A 80 0D 02 02 05 00 E8 D8 13 48 45 00 00 93 [08:11:21]Write i2c OK [08:11:21]MH_I2C_Read... [08:11:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:21]Read from MH i2c: E2 [08:11:21]MH_I2C_Read... [08:11:21]Read from MH i2c: E2 03 00 [08:11:21]MH_I2C_Read... [08:11:21]Read from MH i2c: E2 03 00 95 1A 00 90 00 23 [08:11:21]RAPDU: 90 00 [08:11:21]wFMCommunicate OK [08:11:21]wFMCommunicate request_size=4 [08:11:21]MH_SAM_APDU [08:11:21]CAPDU: 80 0D 03 02 [08:11:21]Write to MH i2c: E2 08 00 96 1A 80 0D 03 02 00 00 00 00 2B [08:11:21]Write i2c OK [08:11:21]MH_I2C_Read... [08:11:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:21]Read from MH i2c: E2 [08:11:21]MH_I2C_Read... [08:11:21]Read from MH i2c: E2 0B 00 [08:11:21]MH_I2C_Read... [08:11:21]Read from MH i2c: E2 0B 00 96 1A 00 A2 D2 54 F7 16 5A 27 38 90 00 BA [08:11:21]RAPDU: A2 D2 54 F7 16 5A 27 38 90 00 [08:11:21]wFMCommunicate OK [08:11:21]SAM_PROTO_SignData done [08:11:21]FM_MakeSignedData done [08:11:21]CreateOFDProtocolMessage [08:11:21]wFMCommunicate request_size=4 [08:11:21]MH_SAM_APDU [08:11:21]CAPDU: 80 11 00 00 [08:11:21]Write to MH i2c: E2 08 00 97 1A 80 11 00 00 00 00 00 00 2B [08:11:21]Write i2c OK [08:11:21]MH_I2C_Read... [08:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:21]Read from MH i2c: E2 [08:11:21]MH_I2C_Read... [08:11:21]Read from MH i2c: E2 17 00 [08:11:21]MH_I2C_Read... [08:11:21]Read from MH i2c: E2 17 00 97 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7B [08:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:11:21]wFMCommunicate OK [08:11:21]CreateOFDProtocolMessage done [08:11:21]OFDSenderStorePacket 95092 [08:11:21]StoreOFDPacket docnum=95092 [08:11:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C5 90 07 01 91 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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 2C 0E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 74 73 01 00 35 04 06 00 DC E8 D8 13 48 45 A2 D2 54 F7 16 5A 27 38 [08:11:21]CheckFolder [08:11:21]dirname=/storage/ofd_packets [08:11:21]CheckFolder done [08:11:21]ProducePacketName [08:11:21]name=ofd_packets/00095092 [08:11:21]NVStorageSaveData ofd_packets/00095092 [08:11:21]File name is /storage/ofd_packets/00095092 [08:11:21]Write 301 bytes [08:11:21]NVStorageSaveData done [08:11:21]OFDSenderStorePacket done [08:11:21]KKMCreateOFDPacket done [08:11:21]NVStorageSaveData kkm_last_timestamp [08:11:21]File name is /storage/kkm_last_timestamp [08:11:21]Write 4 bytes [08:11:21]NVStorageSaveData done [08:11:21]ExternCall_PrintAddStr [08:11:21]wPrintStart [08:11:21]Write to MH i2c: 01 00 00 98 1A B2 [08:11:21]Write i2c OK [08:11:21]MH_I2C_Read... [08:11:21]Read from MH i2c: 01 [08:11:21]MH_I2C_Read... [08:11:21]Read from MH i2c: 01 07 00 [08:11:21]MH_I2C_Read... [08:11:21]Read from MH i2c: 01 07 00 98 1A 00 80 00 00 00 FF 0F 47 [08:11:21]RasterBufferAndPrint [08:11:21]line Счет N : (1)196049 [08:11:21]line ИНН: 02508201610067 [08:11:21]line Контрольно-Кассовый Чек [08:11:21]line ПРОДАЖА [08:11:21]line ТРК (МРК, ГНК) : 12 [08:11:21]line Товар: 2710124130 [08:11:21]line Аи-92-К-5 [08:11:21]line 15.900 * 62.90 [08:11:21]line = 1000.11 [08:11:21]line НДС 12% НСП 1% [08:11:21]line > о реализуемом товаре [08:11:21]line ОКРУГЛЕНИЕ: -0.11 [08:11:21]line ИТОГО: 1000.00 [08:11:21]line Внесено: 1000.00 [08:11:21]line СДАЧА: 0.00 [08:11:21]line НСП 1% : 8.85 [08:11:21]line НДС 12% : 106.21 [08:11:21]line Наличными: 1000.00 [08:11:21]line Безнал.: 0.00 [08:11:21]line Место: АЗС № 6 "Партнер Нефть" [08:11:21]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:11:21]line СНО: Общий режим [08:11:21]line Чек 22 12.03.2024 08:11 [08:11:21]line Смена: 327 ФФД: 1.0 [08:11:21]line ЗНМ: 0300000009 [08:11:21]line РНМ: 0000000000090555 [08:11:21]line Версия ККМ: 001 [08:11:21]line ФМ: 0000000000874811 [08:11:21]line ФД: 95092 [08:11:21]line ФПД: 242892615665733 [08:11:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T081124&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95092&fm=242892615665733&tin=02508201610067®Number=0000000000090555&sum=100000 [08:11:22]OFD Sender: Processing packet 95092 [packets to send 30, broken 29] [08:11:22]ProducePacketName [08:11:22]name=ofd_packets/00095092 [08:11:22]OFD Sender: To server: pG, [08:11:22]CommunicateWithHost lk.salyk.kg:30040 [08:11:22]ConnectInit lk.salyk.kg [08:11:22]written 0, free lines is 4095 [08:11:22]Connected sock=10 [08:11:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C5 90 07 01 91 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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 2C 0E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 74 73 01 00 35 04 06 00 DC E8 D8 13 48 45 A2 D2 54 F7 16 5A 27 38 [08:11:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 6E 91 47 00 CC FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 74 73 01 00 F4 03 04 00 83 B9 EF 65 B6 04 01 00 00 AA ED 30 99 54 92 74 67 [08:11:22]CommunicateWithHost err = 0 [08:11:22]CheckOFDResponse [08:11:22]1017 (14) - 77093643461234 [08:11:22]1041 (16) - 0000000000874811 [08:11:22]1040 (4) - 95092 [08:11:22]1012 (4) - 12.03.2024 02:10 [08:11:22]1206 (1) - 0 [08:11:22]OFD Sender: Remove packet 95092 [08:11:22]ProducePacketName [08:11:22]name=ofd_packets/00095092 [08:11:22]NVStorageDeleteData [08:11:22]Write to MH i2c: 01 00 00 C3 1A DD [08:11:22]Write i2c OK [08:11:22]MH_I2C_Read... [08:11:22]Read from MH i2c: 01 [08:11:22]MH_I2C_Read... [08:11:22]Read from MH i2c: 01 07 00 [08:11:22]MH_I2C_Read... [08:11:22]Read from MH i2c: 01 07 00 C3 1A 00 80 00 00 00 59 0D CA [08:11:22]RasterBufferAndPrint [08:11:22]line [08:11:22]line [08:11:22]line [08:11:22]line [08:11:22]line [08:11:22]written 0, free lines is 3423 [08:11:22]process_action close_receipt done [08:11:22]requested_data is exist [08:11:22]produce_requested_data [08:11:22]requested_item fm.sn is exist - process it [08:11:22]wFMCommunicate request_size=4 [08:11:22]MH_SAM_APDU [08:11:22]CAPDU: 80 11 00 00 [08:11:22]Write to MH i2c: E2 08 00 CA 1A 80 11 00 00 00 00 00 00 5E [08:11:22]Write i2c OK [08:11:22]MH_I2C_Read... [08:11:22]Read from MH i2c: E2 [08:11:22]MH_I2C_Read... [08:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:22]Read from MH i2c: E2 17 00 [08:11:22]MH_I2C_Read... [08:11:22]Read from MH i2c: E2 17 00 CA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AE [08:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:11:22]wFMCommunicate OK [08:11:22]requested_item fd.num is exist - process it [08:11:22]SAM_PROTO_GetFieldsCounters [08:11:22]wFMCommunicate request_size=4 [08:11:22]MH_SAM_APDU [08:11:22]CAPDU: 80 13 00 00 [08:11:22]Write to MH i2c: E2 08 00 CB 1A 80 13 00 00 00 00 00 00 61 [08:11:22]Write i2c OK [08:11:22]MH_I2C_Read... [08:11:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:22]Read from MH i2c: E2 [08:11:22]MH_I2C_Read... [08:11:22]Read from MH i2c: E2 62 00 [08:11:22]MH_I2C_Read... [08:11:22]Read from MH i2c: E2 62 00 CB 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 74 73 01 00 0E 04 04 00 47 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 F0 [08:11:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 74 73 01 00 0E 04 04 00 47 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 [08:11:22]wFMCommunicate OK [08:11:22]SAM_PROTO_GetFieldsCounters done [08:11:22]requested_item shift.num is exist - process it [08:11:22]requested_item shift.opened is exist - process it [08:11:22]req_shift_opened [08:11:22]FM_GetShiftState [08:11:22]SAM_PROTO_GetShiftState [08:11:22]wFMCommunicate request_size=4 [08:11:22]MH_SAM_APDU [08:11:22]CAPDU: 80 13 01 00 [08:11:22]Write to MH i2c: E2 08 00 CC 1A 80 13 01 00 00 00 00 00 63 [08:11:22]Write i2c OK [08:11:22]MH_I2C_Read... [08:11:22]OFD Sender: No OFD packet to send [08:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:22]Read from MH i2c: E2 [08:11:22]MH_I2C_Read... [08:11:22]Read from MH i2c: E2 0E 00 [08:11:22]MH_I2C_Read... [08:11:22]Read from MH i2c: E2 0E 00 CC 1A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D7 [08:11:22]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:11:22]wFMCommunicate OK [08:11:22]SAM_PROTO_GetShiftState done [08:11:22]FM_GetShiftState done [08:11:22]req_shift_opened done [08:11:22]requested_item shift.open_date is exist - process it [08:11:22]req_shift_open_date [08:11:22]req_shift_open_date done [08:11:22]produce_requested_data done [08:11:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95092,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [08:11:22]process_action_free close_receipt [08:11:22]json_value_free [08:11:22]json_value_free done [08:11:22]process_json_proto returns [08:11:22]Send response to host [08:11:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95092,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [08:11:22]free response buf [08:11:22]execute_script done [08:11:22]execute_script returns [08:11:22]free content buf [08:11:22]Sock 8.Close socket [08:11:22]Sock 8.Thread stoped [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:50]accept exits with 9 [08:13:50]New connection [08:13:50]New thread 3066957156 created [08:13:50]Thread 3066813796 joined [08:13:50]Waiting for new connection... [08:13:50] Sock 9.Parse request [08:13:50]Sock 9.Check first char [08:13:50]Sock 9.First char is OK [08:13:50]request: POST /json_proto HTTP/1.0 [08:13:50]Method: POST [08:13:50]URL: /json_proto [08:13:50]Method is POST - this is cgi request [08:13:50]url: /json_proto [08:13:50]query_string will be loaded in cgi processing [08:13:50]execute_cgi json_proto POST (null) [08:13:50]execute_cgi path=json_proto method=POST [08:13:50]POST find Content-Length [08:13:50]Host: 172.17.62.67:8080 [08:13:50]Content-Length: 805 [08:13:50]Content-Type: application/json [08:13:50] [08:13:50]POST finish read [08:13:50]Found Content-Length = 805 [08:13:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:50]execute_script... [08:13: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)196050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:50]POST & json_proto [08:13:50]process_json_proto [08:13:50]json parsed OK: [08:13:50]protocol is kg_v1.0 [08:13:50]action value=close_receipt [08:13:50]process_action close_receipt [08:13:50]cmd_close_receipt [08:13:50]MH_GetDate [08:13:50]Write to MH i2c: F0 00 00 CD 1A D6 [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: F0 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: F0 05 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: F0 05 00 CD 1A 00 C2 0E F0 65 00 [08:13:50]GetLastDocTimeStamp 1710231084 [08:13:50]current date 1710231234 [08:13:50]FM_GetShiftState [08:13:50]SAM_PROTO_GetShiftState [08:13:50]wFMCommunicate request_size=4 [08:13:50]MH_SAM_APDU [08:13:50]CAPDU: 80 13 01 00 [08:13:50]Write to MH i2c: E2 08 00 CE 1A 80 13 01 00 00 00 00 00 65 [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:50]Read from MH i2c: E2 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 0E 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 0E 00 CE 1A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D9 [08:13:50]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:13:50]wFMCommunicate OK [08:13:50]SAM_PROTO_GetShiftState done [08:13:50]FM_GetShiftState done [08:13:50]opened in 1710201976 [08:13:50]opened+sec_in_day 1710288376 [08:13:50]quantity*price = 60006 [08:13:50]sum+1 = 60008 [08:13:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.07 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.07 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 23 12.03.2024 08:13 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95093 ФПД: 36150373127016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T081354&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95093&fm=36150373127016&tin=02508201610067®Number=0000000000090555&sum=60007 [08:13:51]StoreToDocumentArchive [08:13:51]shift 327 fd 95093 [08:13:51]save to /storage/0327/doc_00095093 [08:13:51]save last doc name /storage/0327/doc_00095093 to /storage/kkm_last_doc_name [08:13:51]save OK [08:13:51]Clear old archive folders... [08:13:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:13:51]tlvbuf is 01A9B490 [08:13:51]SAM_PROTO_ClearQueue [08:13:51]wFMCommunicate request_size=4 [08:13:51]MH_SAM_APDU [08:13:51]CAPDU: 80 09 00 00 [08:13:51]Write to MH i2c: E2 08 00 DB 1A 80 09 00 00 00 00 00 00 67 [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:51]Read from MH i2c: E2 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 03 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 03 00 DB 1A 00 90 00 69 [08:13:51]RAPDU: 90 00 [08:13:51]wFMCommunicate OK [08:13:51]SAM_PROTO_ClearQueue done [08:13:51]KKMCreateOFDPacket [08:13:51]OFDProtocolAddRootSTLVToBuf [08:13:51]FM_MakeSignedData [08:13:51]FM_MakeSignedData [08:13:51]SAM_PROTO_SignData [08:13:51]wFMCommunicate request_size=4 [08:13:51]MH_SAM_APDU [08:13:51]CAPDU: 80 0D 01 02 [08:13:51]Write to MH i2c: E2 08 00 DC 1A 80 0D 01 02 00 00 00 00 6F [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:51]Read from MH i2c: E2 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 03 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 03 00 DC 1A 00 90 00 6A [08:13:51]RAPDU: 90 00 [08:13:51]wFMCommunicate OK [08:13:51]wFMCommunicate request_size=255 [08:13:51]MH_SAM_APDU [08:13:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C2 0E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 75 73 01 00 35 04 06 00 20 [08:13:51]Write to MH i2c: E2 02 01 DD 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C2 0E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 75 73 01 00 35 04 06 00 20 00 00 19 [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:51]Read from MH i2c: E2 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 03 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 03 00 DD 1A 00 90 00 6B [08:13:51]RAPDU: 90 00 [08:13:51]wFMCommunicate OK [08:13:51]wFMCommunicate request_size=10 [08:13:51]MH_SAM_APDU [08:13:51]CAPDU: 80 0D 02 02 05 E0 EA 26 13 68 [08:13:51]Write to MH i2c: E2 0D 00 DE 1A 80 0D 02 02 05 00 E0 EA 26 13 68 00 00 E7 [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:51]Read from MH i2c: E2 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 03 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 03 00 DE 1A 00 90 00 6C [08:13:51]RAPDU: 90 00 [08:13:51]wFMCommunicate OK [08:13:51]wFMCommunicate request_size=4 [08:13:51]MH_SAM_APDU [08:13:51]CAPDU: 80 0D 03 02 [08:13:51]Write to MH i2c: E2 08 00 DF 1A 80 0D 03 02 00 00 00 00 74 [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:51]Read from MH i2c: E2 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 0B 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 0B 00 DF 1A 00 FC 31 26 C7 AD 0C 15 FA 90 00 57 [08:13:51]RAPDU: FC 31 26 C7 AD 0C 15 FA 90 00 [08:13:51]wFMCommunicate OK [08:13:51]SAM_PROTO_SignData done [08:13:51]FM_MakeSignedData done [08:13:51]CreateOFDProtocolMessage [08:13:51]wFMCommunicate request_size=4 [08:13:51]MH_SAM_APDU [08:13:51]CAPDU: 80 11 00 00 [08:13:51]Write to MH i2c: E2 08 00 E0 1A 80 11 00 00 00 00 00 00 74 [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:52]Read from MH i2c: E2 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 17 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 17 00 E0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C4 [08:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:13:52]wFMCommunicate OK [08:13:52]CreateOFDProtocolMessage done [08:13:52]OFDSenderStorePacket 95093 [08:13:52]StoreOFDPacket docnum=95093 [08:13:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 34 43 07 01 CA F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C2 0E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 75 73 01 00 35 04 06 00 20 E0 EA 26 13 68 FC 31 26 C7 AD 0C 15 FA [08:13:52]CheckFolder [08:13:52]dirname=/storage/ofd_packets [08:13:52]CheckFolder done [08:13:52]ProducePacketName [08:13:52]name=ofd_packets/00095093 [08:13:52]NVStorageSaveData ofd_packets/00095093 [08:13:52]File name is /storage/ofd_packets/00095093 [08:13:52]Write 301 bytes [08:13:52]NVStorageSaveData done [08:13:52]OFDSenderStorePacket done [08:13:52]KKMCreateOFDPacket done [08:13:52]NVStorageSaveData kkm_last_timestamp [08:13:52]File name is /storage/kkm_last_timestamp [08:13:52]Write 4 bytes [08:13:52]NVStorageSaveData done [08:13:52]ExternCall_PrintAddStr [08:13:52]wPrintStart [08:13:52]Write to MH i2c: 01 00 00 E1 1A FB [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: 01 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: 01 07 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: 01 07 00 E1 1A 00 80 00 00 00 FF 0F 90 [08:13:52]RasterBufferAndPrint [08:13:52]line Счет N : (1)196050 [08:13:52]line ИНН: 02508201610067 [08:13:52]line Контрольно-Кассовый Чек [08:13:52]line ПРОДАЖА [08:13:52]line ТРК (МРК, ГНК) : 32 [08:13:52]line Товар: 2710124130 [08:13:52]line Аи-92-К-5 [08:13:52]line 9.540 * 62.90 [08:13:52]line = 600.07 [08:13:52]line НДС 12% НСП 1% [08:13:52]line > о реализуемом товаре [08:13:52]line ИТОГО: 600.07 [08:13:52]line НСП 1% : 5.31 [08:13:52]line НДС 12% : 63.72 [08:13:52]line Наличными: 0.00 [08:13:52]line Безнал.: 600.07 [08:13:52]line Место: АЗС № 6 "Партнер Нефть" [08:13:52]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:13:52]line СНО: Общий режим [08:13:52]line Чек 23 12.03.2024 08:13 [08:13:52]line Смена: 327 ФФД: 1.0 [08:13:52]line ЗНМ: 0300000009 [08:13:52]line РНМ: 0000000000090555 [08:13:52]line Версия ККМ: 001 [08:13:52]line Платежная система: О! деньги [08:13:52]line ФМ: 0000000000874811 [08:13:52]line ФД: 95093 [08:13:52]line ФПД: 36150373127016 [08:13:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T081354&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95093&fm=36150373127016&tin=02508201610067®Number=0000000000090555&sum=60007 [08:13:52]OFD Sender: Processing packet 95093 [packets to send 30, broken 29] [08:13:52]ProducePacketName [08:13:52]name=ofd_packets/00095093 [08:13:52]OFD Sender: To server: pG, [08:13:52]CommunicateWithHost lk.salyk.kg:30040 [08:13:52]ConnectInit lk.salyk.kg [08:13:52]written 0, free lines is 4095 [08:13:52]Connected sock=10 [08:13:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 34 43 07 01 CA F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C2 0E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 75 73 01 00 35 04 06 00 20 E0 EA 26 13 68 FC 31 26 C7 AD 0C 15 FA [08:13:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 43 B5 47 00 B3 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 75 73 01 00 F4 03 04 00 19 BA EF 65 B6 04 01 00 00 B9 FF F2 19 19 C3 B4 30 [08:13:52]CommunicateWithHost err = 0 [08:13:52]CheckOFDResponse [08:13:52]1017 (14) - 77093643461234 [08:13:52]1041 (16) - 0000000000874811 [08:13:52]1040 (4) - 95093 [08:13:52]1012 (4) - 12.03.2024 02:12 [08:13:52]1206 (1) - 0 [08:13:52]OFD Sender: Remove packet 95093 [08:13:52]ProducePacketName [08:13:52]name=ofd_packets/00095093 [08:13:52]NVStorageDeleteData [08:13:52]Write to MH i2c: 01 00 00 0B 1B 26 [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: 01 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: 01 07 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: 01 07 00 0B 1B 00 80 00 00 00 60 0D 1A [08:13:52]RasterBufferAndPrint [08:13:52]line [08:13:52]line [08:13:52]line [08:13:52]line [08:13:52]line [08:13:52]written 0, free lines is 3430 [08:13:52]process_action close_receipt done [08:13:52]requested_data is exist [08:13:52]produce_requested_data [08:13:52]requested_item fm.sn is exist - process it [08:13:52]wFMCommunicate request_size=4 [08:13:52]MH_SAM_APDU [08:13:52]CAPDU: 80 11 00 00 [08:13:52]Write to MH i2c: E2 08 00 12 1B 80 11 00 00 00 00 00 00 A7 [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:52]Read from MH i2c: E2 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 17 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 17 00 12 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F7 [08:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:13:52]wFMCommunicate OK [08:13:52]requested_item fd.num is exist - process it [08:13:52]SAM_PROTO_GetFieldsCounters [08:13:52]wFMCommunicate request_size=4 [08:13:52]MH_SAM_APDU [08:13:52]CAPDU: 80 13 00 00 [08:13:52]Write to MH i2c: E2 08 00 13 1B 80 13 00 00 00 00 00 00 AA [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 62 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 62 00 13 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 75 73 01 00 0E 04 04 00 47 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 3D [08:13:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 75 73 01 00 0E 04 04 00 47 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 [08:13:53]wFMCommunicate OK [08:13:53]SAM_PROTO_GetFieldsCounters done [08:13:53]requested_item shift.num is exist - process it [08:13:53]requested_item shift.opened is exist - process it [08:13:53]req_shift_opened [08:13:53]FM_GetShiftState [08:13:53]SAM_PROTO_GetShiftState [08:13:53]wFMCommunicate request_size=4 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 13 01 00 [08:13:53]Write to MH i2c: E2 08 00 14 1B 80 13 01 00 00 00 00 00 AC [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 0E 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 0E 00 14 1B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 20 [08:13:53]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:13:53]wFMCommunicate OK [08:13:53]SAM_PROTO_GetShiftState done [08:13:53]FM_GetShiftState done [08:13:53]req_shift_opened done [08:13:53]requested_item shift.open_date is exist - process it [08:13:53]req_shift_open_date [08:13:53]req_shift_open_date done [08:13:53]produce_requested_data done [08:13:53]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95093,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [08:13:53]process_action_free close_receipt [08:13:53]json_value_free [08:13:53]json_value_free done [08:13:53]process_json_proto returns [08:13:53]Send response to host [08:13:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95093,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [08:13:53]free response buf [08:13:53]execute_script done [08:13:53]execute_script returns [08:13:53]free content buf [08:13:53]Sock 9.Close socket [08:13:53]Sock 9.Thread stoped [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]accept exits with 8 [08:24:43]New connection [08:24:43]New thread 3066813796 created [08:24:43]Thread 3066957156 joined [08:24:43]Waiting for new connection... [08:24:43] Sock 8.Parse request [08:24:43]Sock 8.Check first char [08:24:43]Sock 8.First char is OK [08:24:43]request: POST /json_proto HTTP/1.0 [08:24:43]Method: POST [08:24:43]URL: /json_proto [08:24:43]Method is POST - this is cgi request [08:24:43]url: /json_proto [08:24:43]query_string will be loaded in cgi processing [08:24:43]execute_cgi json_proto POST (null) [08:24:43]execute_cgi path=json_proto method=POST [08:24:43]POST find Content-Length [08:24:43]Host: 172.17.62.67:8080 [08:24:43]Content-Length: 677 [08:24:43]Content-Type: application/json [08:24:43] [08:24:43]POST finish read [08:24:43]Found Content-Length = 677 [08:24:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:43]execute_script... [08:24: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)196051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:43]POST & json_proto [08:24:43]process_json_proto [08:24:43]json parsed OK: [08:24:43]protocol is kg_v1.0 [08:24:43]action value=close_receipt [08:24:43]process_action close_receipt [08:24:43]cmd_close_receipt [08:24:43]MH_GetDate [08:24:43]Write to MH i2c: F0 00 00 15 1B 1F [08:24:43]Write i2c OK [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: F0 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: F0 05 00 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: F0 05 00 15 1B 00 4F 11 F0 65 D9 [08:24:43]GetLastDocTimeStamp 1710231234 [08:24:43]current date 1710231887 [08:24:43]FM_GetShiftState [08:24:43]SAM_PROTO_GetShiftState [08:24:43]wFMCommunicate request_size=4 [08:24:43]MH_SAM_APDU [08:24:43]CAPDU: 80 13 01 00 [08:24:43]Write to MH i2c: E2 08 00 16 1B 80 13 01 00 00 00 00 00 AE [08:24:43]Write i2c OK [08:24:43]MH_I2C_Read... [08:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:43]Read from MH i2c: E2 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 0E 00 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 0E 00 16 1B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 22 [08:24:43]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:24:43]wFMCommunicate OK [08:24:43]SAM_PROTO_GetShiftState done [08:24:43]FM_GetShiftState done [08:24:43]opened in 1710201976 [08:24:43]opened+sec_in_day 1710288376 [08:24:43]quantity*price = 50005 [08:24:43]sum+1 = 50007 [08:24:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 24 12.03.2024 08:24 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95094 ФПД: 132321575977037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T082447&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95094&fm=132321575977037&tin=02508201610067®Number=0000000000090555&sum=50000 [08:24:44]StoreToDocumentArchive [08:24:44]shift 327 fd 95094 [08:24:44]save to /storage/0327/doc_00095094 [08:24:44]save last doc name /storage/0327/doc_00095094 to /storage/kkm_last_doc_name [08:24:44]save OK [08:24:44]Clear old archive folders... [08:24:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:24:44]tlvbuf is 01A8DF00 [08:24:44]SAM_PROTO_ClearQueue [08:24:44]wFMCommunicate request_size=4 [08:24:44]MH_SAM_APDU [08:24:44]CAPDU: 80 09 00 00 [08:24:44]Write to MH i2c: E2 08 00 23 1B 80 09 00 00 00 00 00 00 B0 [08:24:44]Write i2c OK [08:24:44]MH_I2C_Read... [08:24:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:44]Read from MH i2c: E2 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: E2 03 00 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: E2 03 00 23 1B 00 90 00 B2 [08:24:44]RAPDU: 90 00 [08:24:44]wFMCommunicate OK [08:24:44]SAM_PROTO_ClearQueue done [08:24:44]KKMCreateOFDPacket [08:24:44]OFDProtocolAddRootSTLVToBuf [08:24:44]FM_MakeSignedData [08:24:44]FM_MakeSignedData [08:24:44]SAM_PROTO_SignData [08:24:44]wFMCommunicate request_size=4 [08:24:44]MH_SAM_APDU [08:24:44]CAPDU: 80 0D 01 02 [08:24:44]Write to MH i2c: E2 08 00 24 1B 80 0D 01 02 00 00 00 00 B8 [08:24:44]Write i2c OK [08:24:44]MH_I2C_Read... [08:24:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:44]Read from MH i2c: E2 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: E2 03 00 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: E2 03 00 24 1B 00 90 00 B3 [08:24:44]RAPDU: 90 00 [08:24:44]wFMCommunicate OK [08:24:44]wFMCommunicate request_size=255 [08:24:44]MH_SAM_APDU [08:24:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 4F 11 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 76 73 01 00 35 04 06 00 78 [08:24:44]Write to MH i2c: E2 02 01 25 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 4F 11 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 76 73 01 00 35 04 06 00 78 00 00 D8 [08:24:44]Write i2c OK [08:24:44]MH_I2C_Read... [08:24:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:44]Read from MH i2c: E2 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: E2 03 00 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: E2 03 00 25 1B 00 90 00 B4 [08:24:44]RAPDU: 90 00 [08:24:44]wFMCommunicate OK [08:24:44]wFMCommunicate request_size=10 [08:24:44]MH_SAM_APDU [08:24:44]CAPDU: 80 0D 02 02 05 58 84 88 40 4D [08:24:44]Write to MH i2c: E2 0D 00 26 1B 80 0D 02 02 05 00 58 84 88 40 4D 00 00 B6 [08:24:44]Write i2c OK [08:24:44]MH_I2C_Read... [08:24:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:44]Read from MH i2c: E2 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: E2 03 00 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: E2 03 00 26 1B 00 90 00 B5 [08:24:44]RAPDU: 90 00 [08:24:44]wFMCommunicate OK [08:24:44]wFMCommunicate request_size=4 [08:24:44]MH_SAM_APDU [08:24:44]CAPDU: 80 0D 03 02 [08:24:44]Write to MH i2c: E2 08 00 27 1B 80 0D 03 02 00 00 00 00 BD [08:24:44]Write i2c OK [08:24:44]MH_I2C_Read... [08:24:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:44]Read from MH i2c: E2 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: E2 0B 00 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: E2 0B 00 27 1B 00 7C 1A 89 52 14 DB 4B 2E 90 00 97 [08:24:44]RAPDU: 7C 1A 89 52 14 DB 4B 2E 90 00 [08:24:44]wFMCommunicate OK [08:24:44]SAM_PROTO_SignData done [08:24:44]FM_MakeSignedData done [08:24:44]CreateOFDProtocolMessage [08:24:44]wFMCommunicate request_size=4 [08:24:44]MH_SAM_APDU [08:24:44]CAPDU: 80 11 00 00 [08:24:44]Write to MH i2c: E2 08 00 28 1B 80 11 00 00 00 00 00 00 BD [08:24:44]Write i2c OK [08:24:44]MH_I2C_Read... [08:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:44]Read from MH i2c: E2 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: E2 17 00 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: E2 17 00 28 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0D [08:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:24:44]wFMCommunicate OK [08:24:44]CreateOFDProtocolMessage done [08:24:44]OFDSenderStorePacket 95094 [08:24:44]StoreOFDPacket docnum=95094 [08:24:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E8 27 07 01 3E 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 4F 11 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 76 73 01 00 35 04 06 00 78 58 84 88 40 4D 7C 1A 89 52 14 DB 4B 2E [08:24:44]CheckFolder [08:24:44]dirname=/storage/ofd_packets [08:24:44]CheckFolder done [08:24:44]ProducePacketName [08:24:44]name=ofd_packets/00095094 [08:24:44]NVStorageSaveData ofd_packets/00095094 [08:24:44]File name is /storage/ofd_packets/00095094 [08:24:44]Write 301 bytes [08:24:44]NVStorageSaveData done [08:24:44]OFDSenderStorePacket done [08:24:44]KKMCreateOFDPacket done [08:24:44]NVStorageSaveData kkm_last_timestamp [08:24:44]File name is /storage/kkm_last_timestamp [08:24:44]Write 4 bytes [08:24:44]NVStorageSaveData done [08:24:44]ExternCall_PrintAddStr [08:24:44]wPrintStart [08:24:44]Write to MH i2c: 01 00 00 29 1B 44 [08:24:44]Write i2c OK [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: 01 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: 01 07 00 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: 01 07 00 29 1B 00 80 00 00 00 FF 0F D9 [08:24:44]RasterBufferAndPrint [08:24:44]line Счет N : (1)196051 [08:24:44]line ИНН: 02508201610067 [08:24:44]line Контрольно-Кассовый Чек [08:24:44]line ПРОДАЖА [08:24:44]line ТРК (МРК, ГНК) : 22 [08:24:44]line Товар: 2710124130 [08:24:44]line Аи-92-К-5 [08:24:44]line 7.950 * 62.90 [08:24:44]line = 500.06 [08:24:44]line НДС 12% НСП 1% [08:24:44]line > о реализуемом товаре [08:24:44]line ОКРУГЛЕНИЕ: -0.06 [08:24:44]line ИТОГО: 500.00 [08:24:44]line Внесено: 500.00 [08:24:44]line СДАЧА: 0.00 [08:24:44]line НСП 1% : 4.42 [08:24:44]line НДС 12% : 53.10 [08:24:44]line Наличными: 500.00 [08:24:44]line Безнал.: 0.00 [08:24:44]line Место: АЗС № 6 "Партнер Нефть" [08:24:44]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:24:44]line СНО: Общий режим [08:24:44]line Чек 24 12.03.2024 08:24 [08:24:44]line Смена: 327 ФФД: 1.0 [08:24:44]line ЗНМ: 0300000009 [08:24:44]line РНМ: 0000000000090555 [08:24:44]line Версия ККМ: 001 [08:24:44]line ФМ: 0000000000874811 [08:24:44]line ФД: 95094 [08:24:44]line ФПД: 132321575977037 [08:24:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T082447&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95094&fm=132321575977037&tin=02508201610067®Number=0000000000090555&sum=50000 [08:24:45]OFD Sender: Processing packet 95094 [packets to send 30, broken 29] [08:24:45]ProducePacketName [08:24:45]name=ofd_packets/00095094 [08:24:45]OFD Sender: To server: pG, [08:24:45]CommunicateWithHost lk.salyk.kg:30040 [08:24:45]ConnectInit lk.salyk.kg [08:24:45]written 0, free lines is 4095 [08:24:45]Connected sock=10 [08:24:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E8 27 07 01 3E 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 4F 11 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 76 73 01 00 35 04 06 00 78 58 84 88 40 4D 7C 1A 89 52 14 DB 4B 2E [08:24:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 C5 D1 47 00 20 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 76 73 01 00 F4 03 04 00 A6 BC EF 65 B6 04 01 00 00 C0 6B 8A CC 18 C3 1F 08 [08:24:45]CommunicateWithHost err = 0 [08:24:45]CheckOFDResponse [08:24:45]1017 (14) - 77093643461234 [08:24:45]1041 (16) - 0000000000874811 [08:24:45]1040 (4) - 95094 [08:24:45]1012 (4) - 12.03.2024 02:23 [08:24:45]1206 (1) - 0 [08:24:45]OFD Sender: Remove packet 95094 [08:24:45]ProducePacketName [08:24:45]name=ofd_packets/00095094 [08:24:45]NVStorageDeleteData [08:24:45]Write to MH i2c: 01 00 00 54 1B 6F [08:24:45]Write i2c OK [08:24:45]MH_I2C_Read... [08:24:45]Read from MH i2c: 01 [08:24:45]MH_I2C_Read... [08:24:45]Read from MH i2c: 01 07 00 [08:24:45]MH_I2C_Read... [08:24:45]Read from MH i2c: 01 07 00 54 1B 00 80 00 00 00 51 0D 54 [08:24:45]RasterBufferAndPrint [08:24:45]line [08:24:45]line [08:24:45]line [08:24:45]line [08:24:45]line [08:24:45]written 0, free lines is 3415 [08:24:45]process_action close_receipt done [08:24:45]requested_data is exist [08:24:45]produce_requested_data [08:24:45]requested_item fm.sn is exist - process it [08:24:45]wFMCommunicate request_size=4 [08:24:45]MH_SAM_APDU [08:24:45]CAPDU: 80 11 00 00 [08:24:45]Write to MH i2c: E2 08 00 5B 1B 80 11 00 00 00 00 00 00 F0 [08:24:45]Write i2c OK [08:24:45]MH_I2C_Read... [08:24:45]Read from MH i2c: E2 [08:24:45]MH_I2C_Read... [08:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:45]Read from MH i2c: E2 17 00 [08:24:45]MH_I2C_Read... [08:24:45]Read from MH i2c: E2 17 00 5B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 40 [08:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:24:45]wFMCommunicate OK [08:24:45]requested_item fd.num is exist - process it [08:24:45]SAM_PROTO_GetFieldsCounters [08:24:45]wFMCommunicate request_size=4 [08:24:45]MH_SAM_APDU [08:24:45]CAPDU: 80 13 00 00 [08:24:45]Write to MH i2c: E2 08 00 5C 1B 80 13 00 00 00 00 00 00 F3 [08:24:45]Write i2c OK [08:24:45]MH_I2C_Read... [08:24:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:45]Read from MH i2c: E2 [08:24:45]MH_I2C_Read... [08:24:45]Read from MH i2c: E2 62 00 [08:24:45]MH_I2C_Read... [08:24:45]Read from MH i2c: E2 62 00 5C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 76 73 01 00 0E 04 04 00 47 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 8A [08:24:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 76 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:24:45]wFMCommunicate OK [08:24:45]SAM_PROTO_GetFieldsCounters done [08:24:45]requested_item shift.num is exist - process it [08:24:45]requested_item shift.opened is exist - process it [08:24:45]req_shift_opened [08:24:45]FM_GetShiftState [08:24:45]SAM_PROTO_GetShiftState [08:24:45]wFMCommunicate request_size=4 [08:24:45]MH_SAM_APDU [08:24:45]CAPDU: 80 13 01 00 [08:24:45]Write to MH i2c: E2 08 00 5D 1B 80 13 01 00 00 00 00 00 F5 [08:24:45]Write i2c OK [08:24:45]MH_I2C_Read... [08:24:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:45]OFD Sender: No OFD packet to send [08:24:45]Read from MH i2c: E2 [08:24:45]MH_I2C_Read... [08:24:45]Read from MH i2c: E2 0E 00 [08:24:45]MH_I2C_Read... [08:24:45]Read from MH i2c: E2 0E 00 5D 1B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 69 [08:24:45]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:24:45]wFMCommunicate OK [08:24:45]SAM_PROTO_GetShiftState done [08:24:45]FM_GetShiftState done [08:24:45]req_shift_opened done [08:24:45]requested_item shift.open_date is exist - process it [08:24:45]req_shift_open_date [08:24:45]req_shift_open_date done [08:24:45]produce_requested_data done [08:24:45]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95094,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [08:24:45]process_action_free close_receipt [08:24:45]json_value_free [08:24:45]json_value_free done [08:24:45]process_json_proto returns [08:24:45]Send response to host [08:24:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95094,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [08:24:45]free response buf [08:24:45]execute_script done [08:24:45]execute_script returns [08:24:45]free content buf [08:24:45]Sock 8.Close socket [08:24:45]Sock 8.Thread stoped [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:06]accept exits with 9 [08:30:06]New connection [08:30:06]New thread 3066957156 created [08:30:06]Thread 3066813796 joined [08:30:06]Waiting for new connection... [08:30:06] Sock 9.Parse request [08:30:06]Sock 9.Check first char [08:30:06]Sock 9.First char is OK [08:30:06]request: POST /json_proto HTTP/1.0 [08:30:06]Method: POST [08:30:06]URL: /json_proto [08:30:06]Method is POST - this is cgi request [08:30:06]url: /json_proto [08:30:06]query_string will be loaded in cgi processing [08:30:06]execute_cgi json_proto POST (null) [08:30:06]execute_cgi path=json_proto method=POST [08:30:06]POST find Content-Length [08:30:06]Host: 172.17.62.67:8080 [08:30:06]Content-Length: 1201 [08:30:06]Content-Type: application/json [08:30:06] [08:30:06]POST finish read [08:30:06]Found Content-Length = 1201 [08:30:06]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196052\u000A12.03.2024 08:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3689381;80\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:06]execute_script... [08:30:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196052\u000A12.03.2024 08:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3689381;80\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:06]POST & json_proto [08:30:06]process_json_proto [08:30:06]json parsed OK: [08:30:06]protocol is kg_v1.0 [08:30:06]action value=print_text [08:30:06]process_action print_text [08:30:06]cmd_print_text [08:30:06]ExternCall_PrintAddStr [08:30:06]wPrintStart [08:30:06]Write to MH i2c: 01 00 00 5E 1B 79 [08:30:06]Write i2c OK [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: 01 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: 01 07 00 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: 01 07 00 5E 1B 00 80 00 00 00 FF 0F 0E [08:30:06]RasterBufferAndPrint [08:30:06]line *****ТОВАРНЫЙ ЧЕК***** [08:30:06]line АЗС 6 [08:30:06]line Партнер нефть [08:30:06]line 02508201610067 [08:30:06]line Кассир : Мыктыбекова И. [08:30:06]line Счет N : (1)196052 [08:30:06]line 12.03.2024 08:24 [08:30:06]line ПРОДАЖА [08:30:06]line ТРК (МРК, ГНК): 61 [08:30:06]line Вид ГСМ : 2710194210 [08:30:06]line ДТ-К-5 [08:30:06]line 20.000 x 70.90 [08:30:06]line ИТОГ: 1418.00 [08:30:06]line Тип оплаты: Талоны: Партнер нефть [08:30:06]line 3689381;80 [08:30:06]line ______________________ [08:30:06]line (подпись) [08:30:06]written 0, free lines is 4095 [08:30:06]Write to MH i2c: 01 00 00 72 1B 8D [08:30:06]Write i2c OK [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: 01 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: 01 07 00 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: 01 07 00 72 1B 00 80 00 00 00 6A 0E 8C [08:30:06]RasterBufferAndPrint [08:30:06]line [08:30:06]line [08:30:06]line [08:30:06]line [08:30:06]line [08:30:06]written 0, free lines is 3694 [08:30:06]process_action print_text done [08:30:06]requested_data is exist [08:30:06]produce_requested_data [08:30:06]requested_item fm.sn is exist - process it [08:30:06]wFMCommunicate request_size=4 [08:30:06]MH_SAM_APDU [08:30:06]CAPDU: 80 11 00 00 [08:30:06]Write to MH i2c: E2 08 00 79 1B 80 11 00 00 00 00 00 00 0E [08:30:06]Write i2c OK [08:30:06]MH_I2C_Read... [08:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:06]Read from MH i2c: E2 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: E2 17 00 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: E2 17 00 79 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5E [08:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:30:06]wFMCommunicate OK [08:30:06]requested_item fd.num is exist - process it [08:30:06]SAM_PROTO_GetFieldsCounters [08:30:06]wFMCommunicate request_size=4 [08:30:06]MH_SAM_APDU [08:30:06]CAPDU: 80 13 00 00 [08:30:06]Write to MH i2c: E2 08 00 7A 1B 80 13 00 00 00 00 00 00 11 [08:30:06]Write i2c OK [08:30:06]MH_I2C_Read... [08:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:06]Read from MH i2c: E2 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: E2 62 00 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: E2 62 00 7A 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 76 73 01 00 0E 04 04 00 47 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 A8 [08:30:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 76 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:06]wFMCommunicate OK [08:30:06]SAM_PROTO_GetFieldsCounters done [08:30:06]requested_item shift.num is exist - process it [08:30:06]requested_item shift.opened is exist - process it [08:30:06]req_shift_opened [08:30:06]FM_GetShiftState [08:30:06]SAM_PROTO_GetShiftState [08:30:06]wFMCommunicate request_size=4 [08:30:06]MH_SAM_APDU [08:30:06]CAPDU: 80 13 01 00 [08:30:06]Write to MH i2c: E2 08 00 7B 1B 80 13 01 00 00 00 00 00 13 [08:30:06]Write i2c OK [08:30:06]MH_I2C_Read... [08:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:06]Read from MH i2c: E2 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: E2 0E 00 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: E2 0E 00 7B 1B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 87 [08:30:06]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:30:06]wFMCommunicate OK [08:30:06]SAM_PROTO_GetShiftState done [08:30:06]FM_GetShiftState done [08:30:06]req_shift_opened done [08:30:06]requested_item shift.open_date is exist - process it [08:30:06]req_shift_open_date [08:30:06]req_shift_open_date done [08:30:06]produce_requested_data done [08:30:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95094,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [08:30:06]process_action_free print_text [08:30:06]json_value_free [08:30:06]json_value_free done [08:30:06]process_json_proto returns [08:30:06]Send response to host [08:30:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95094,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [08:30:06]free response buf [08:30:06]execute_script done [08:30:06]execute_script returns [08:30:06]free content buf [08:30:06]Sock 9.Close socket [08:30:06]Sock 9.Thread stoped [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:23]accept exits with 8 [08:32:23]New connection [08:32:23]New thread 3066813796 created [08:32:23]Thread 3066957156 joined [08:32:23]Waiting for new connection... [08:32:23] Sock 8.Parse request [08:32:23]Sock 8.Check first char [08:32:23]Sock 8.First char is OK [08:32:23]request: POST /json_proto HTTP/1.0 [08:32:23]Method: POST [08:32:23]URL: /json_proto [08:32:23]Method is POST - this is cgi request [08:32:23]url: /json_proto [08:32:23]query_string will be loaded in cgi processing [08:32:23]execute_cgi json_proto POST (null) [08:32:23]execute_cgi path=json_proto method=POST [08:32:23]POST find Content-Length [08:32:23]Host: 172.17.62.67:8080 [08:32:23]Content-Length: 1198 [08:32:23]Content-Type: application/json [08:32:23] [08:32:23]POST finish read [08:32:23]Found Content-Length = 1198 [08:32: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196053\u000A12.03.2024 08:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3430906\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:23]execute_script... [08:32: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196053\u000A12.03.2024 08:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3430906\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:23]POST & json_proto [08:32:23]process_json_proto [08:32:23]json parsed OK: [08:32:23]protocol is kg_v1.0 [08:32:23]action value=print_text [08:32:23]process_action print_text [08:32:23]cmd_print_text [08:32:23]ExternCall_PrintAddStr [08:32:23]wPrintStart [08:32:23]Write to MH i2c: 01 00 00 7C 1B 97 [08:32:23]Write i2c OK [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: 01 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: 01 07 00 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: 01 07 00 7C 1B 00 80 00 00 00 FF 0F 2C [08:32:23]RasterBufferAndPrint [08:32:23]line *****ТОВАРНЫЙ ЧЕК***** [08:32:23]line АЗС 6 [08:32:23]line Партнер нефть [08:32:23]line 02508201610067 [08:32:23]line Кассир : Мыктыбекова И. [08:32:23]line Счет N : (1)196053 [08:32:23]line 12.03.2024 08:26 [08:32:23]line ПРОДАЖА [08:32:23]line ТРК (МРК, ГНК): 61 [08:32:23]line Вид ГСМ : 2710194210 [08:32:23]line ДТ-К-5 [08:32:23]line 20.000 x 70.90 [08:32:23]line ИТОГ: 1418.00 [08:32:23]line Тип оплаты: Талоны: Партнер нефть [08:32:23]line 3430906 [08:32:23]line ______________________ [08:32:23]line (подпись) [08:32:23]written 0, free lines is 4095 [08:32:24]Write to MH i2c: 01 00 00 90 1B AB [08:32:24]Write i2c OK [08:32:24]MH_I2C_Read... [08:32:24]Read from MH i2c: 01 [08:32:24]MH_I2C_Read... [08:32:24]Read from MH i2c: 01 07 00 [08:32:24]MH_I2C_Read... [08:32:24]Read from MH i2c: 01 07 00 90 1B 00 80 00 00 00 66 0E A6 [08:32:24]RasterBufferAndPrint [08:32:24]line [08:32:24]line [08:32:24]line [08:32:24]line [08:32:24]line [08:32:24]written 0, free lines is 3691 [08:32:24]process_action print_text done [08:32:24]requested_data is exist [08:32:24]produce_requested_data [08:32:24]requested_item fm.sn is exist - process it [08:32:24]wFMCommunicate request_size=4 [08:32:24]MH_SAM_APDU [08:32:24]CAPDU: 80 11 00 00 [08:32:24]Write to MH i2c: E2 08 00 97 1B 80 11 00 00 00 00 00 00 2C [08:32:24]Write i2c OK [08:32:24]MH_I2C_Read... [08:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:24]Read from MH i2c: E2 [08:32:24]MH_I2C_Read... [08:32:24]Read from MH i2c: E2 17 00 [08:32:24]MH_I2C_Read... [08:32:24]Read from MH i2c: E2 17 00 97 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7C [08:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:32:24]wFMCommunicate OK [08:32:24]requested_item fd.num is exist - process it [08:32:24]SAM_PROTO_GetFieldsCounters [08:32:24]wFMCommunicate request_size=4 [08:32:24]MH_SAM_APDU [08:32:24]CAPDU: 80 13 00 00 [08:32:24]Write to MH i2c: E2 08 00 98 1B 80 13 00 00 00 00 00 00 2F [08:32:24]Write i2c OK [08:32:24]MH_I2C_Read... [08:32:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:24]Read from MH i2c: E2 [08:32:24]MH_I2C_Read... [08:32:24]Read from MH i2c: E2 62 00 [08:32:24]MH_I2C_Read... [08:32:24]Read from MH i2c: E2 62 00 98 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 76 73 01 00 0E 04 04 00 47 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 C6 [08:32:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 76 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:24]wFMCommunicate OK [08:32:24]SAM_PROTO_GetFieldsCounters done [08:32:24]requested_item shift.num is exist - process it [08:32:24]requested_item shift.opened is exist - process it [08:32:24]req_shift_opened [08:32:24]FM_GetShiftState [08:32:24]SAM_PROTO_GetShiftState [08:32:24]wFMCommunicate request_size=4 [08:32:24]MH_SAM_APDU [08:32:24]CAPDU: 80 13 01 00 [08:32:24]Write to MH i2c: E2 08 00 99 1B 80 13 01 00 00 00 00 00 31 [08:32:24]Write i2c OK [08:32:24]MH_I2C_Read... [08:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:24]Read from MH i2c: E2 [08:32:24]MH_I2C_Read... [08:32:24]Read from MH i2c: E2 0E 00 [08:32:24]MH_I2C_Read... [08:32:24]Read from MH i2c: E2 0E 00 99 1B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A5 [08:32:24]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:32:24]wFMCommunicate OK [08:32:24]SAM_PROTO_GetShiftState done [08:32:24]FM_GetShiftState done [08:32:24]req_shift_opened done [08:32:24]requested_item shift.open_date is exist - process it [08:32:24]req_shift_open_date [08:32:24]req_shift_open_date done [08:32:24]produce_requested_data done [08:32:24]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95094,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [08:32:24]process_action_free print_text [08:32:24]json_value_free [08:32:24]json_value_free done [08:32:24]process_json_proto returns [08:32:24]Send response to host [08:32:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95094,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [08:32:24]free response buf [08:32:24]execute_script done [08:32:24]execute_script returns [08:32:24]free content buf [08:32:24]Sock 8.Close socket [08:32:24]Sock 8.Thread stoped [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:44]accept exits with 9 [08:33:44]New connection [08:33:44]New thread 3066957156 created [08:33:44]Thread 3066813796 joined [08:33:44]Waiting for new connection... [08:33:44] Sock 9.Parse request [08:33:44]Sock 9.Check first char [08:33:44]Sock 9.First char is OK [08:33:44]request: POST /json_proto HTTP/1.0 [08:33:44]Method: POST [08:33:44]URL: /json_proto [08:33:44]Method is POST - this is cgi request [08:33:44]url: /json_proto [08:33:44]query_string will be loaded in cgi processing [08:33:44]execute_cgi json_proto POST (null) [08:33:44]execute_cgi path=json_proto method=POST [08:33:44]POST find Content-Length [08:33:44]Host: 172.17.62.67:8080 [08:33:44]Content-Length: 1197 [08:33:44]Content-Type: application/json [08:33:44] [08:33:44]POST finish read [08:33:44]Found Content-Length = 1197 [08:33:44]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196054\u000A12.03.2024 08:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.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\u000A3689363\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:44]execute_script... [08:33:44]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196054\u000A12.03.2024 08:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.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\u000A3689363\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:44]POST & json_proto [08:33:44]process_json_proto [08:33:44]json parsed OK: [08:33:44]protocol is kg_v1.0 [08:33:44]action value=print_text [08:33:44]process_action print_text [08:33:44]cmd_print_text [08:33:44]ExternCall_PrintAddStr [08:33:44]wPrintStart [08:33:44]Write to MH i2c: 01 00 00 9A 1B B5 [08:33:44]Write i2c OK [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: 01 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: 01 07 00 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: 01 07 00 9A 1B 00 80 00 00 00 FF 0F 4A [08:33:44]RasterBufferAndPrint [08:33:44]line *****ТОВАРНЫЙ ЧЕК***** [08:33:44]line АЗС 6 [08:33:44]line Партнер нефть [08:33:44]line 02508201610067 [08:33:44]line Кассир : Мыктыбекова И. [08:33:44]line Счет N : (1)196054 [08:33:44]line 12.03.2024 08:27 [08:33:44]line ПРОДАЖА [08:33:44]line ТРК (МРК, ГНК): 51 [08:33:44]line Вид ГСМ : 2710194210 [08:33:44]line ДТ-К-5 [08:33:44]line 10.000 x 70.90 [08:33:44]line ИТОГ: 709.00 [08:33:44]line Тип оплаты: Талоны: Партнер нефть [08:33:44]line 3689363 [08:33:44]line ______________________ [08:33:44]line (подпись) [08:33:44]written 0, free lines is 4095 [08:33:44]Write to MH i2c: 01 00 00 AE 1B C9 [08:33:44]Write i2c OK [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: 01 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: 01 07 00 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: 01 07 00 AE 1B 00 80 00 00 00 64 0E C2 [08:33:44]RasterBufferAndPrint [08:33:44]line [08:33:44]line [08:33:44]line [08:33:44]line [08:33:44]line [08:33:44]written 0, free lines is 3688 [08:33:44]process_action print_text done [08:33:44]requested_data is exist [08:33:44]produce_requested_data [08:33:44]requested_item fm.sn is exist - process it [08:33:44]wFMCommunicate request_size=4 [08:33:44]MH_SAM_APDU [08:33:44]CAPDU: 80 11 00 00 [08:33:44]Write to MH i2c: E2 08 00 B5 1B 80 11 00 00 00 00 00 00 4A [08:33:44]Write i2c OK [08:33:44]MH_I2C_Read... [08:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:44]Read from MH i2c: E2 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: E2 17 00 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: E2 17 00 B5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9A [08:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:33:44]wFMCommunicate OK [08:33:44]requested_item fd.num is exist - process it [08:33:44]SAM_PROTO_GetFieldsCounters [08:33:44]wFMCommunicate request_size=4 [08:33:44]MH_SAM_APDU [08:33:44]CAPDU: 80 13 00 00 [08:33:44]Write to MH i2c: E2 08 00 B6 1B 80 13 00 00 00 00 00 00 4D [08:33:44]Write i2c OK [08:33:44]MH_I2C_Read... [08:33:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:45]Read from MH i2c: E2 [08:33:45]MH_I2C_Read... [08:33:45]Read from MH i2c: E2 62 00 [08:33:45]MH_I2C_Read... [08:33:45]Read from MH i2c: E2 62 00 B6 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 76 73 01 00 0E 04 04 00 47 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 E4 [08:33:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 76 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:45]wFMCommunicate OK [08:33:45]SAM_PROTO_GetFieldsCounters done [08:33:45]requested_item shift.num is exist - process it [08:33:45]requested_item shift.opened is exist - process it [08:33:45]req_shift_opened [08:33:45]FM_GetShiftState [08:33:45]SAM_PROTO_GetShiftState [08:33:45]wFMCommunicate request_size=4 [08:33:45]MH_SAM_APDU [08:33:45]CAPDU: 80 13 01 00 [08:33:45]Write to MH i2c: E2 08 00 B7 1B 80 13 01 00 00 00 00 00 4F [08:33:45]Write i2c OK [08:33:45]MH_I2C_Read... [08:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:45]Read from MH i2c: E2 [08:33:45]MH_I2C_Read... [08:33:45]Read from MH i2c: E2 0E 00 [08:33:45]MH_I2C_Read... [08:33:45]Read from MH i2c: E2 0E 00 B7 1B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C3 [08:33:45]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:33:45]wFMCommunicate OK [08:33:45]SAM_PROTO_GetShiftState done [08:33:45]FM_GetShiftState done [08:33:45]req_shift_opened done [08:33:45]requested_item shift.open_date is exist - process it [08:33:45]req_shift_open_date [08:33:45]req_shift_open_date done [08:33:45]produce_requested_data done [08:33:45]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95094,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [08:33:45]process_action_free print_text [08:33:45]json_value_free [08:33:45]json_value_free done [08:33:45]process_json_proto returns [08:33:45]Send response to host [08:33:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95094,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [08:33:45]free response buf [08:33:45]execute_script done [08:33:45]execute_script returns [08:33:45]free content buf [08:33:45]Sock 9.Close socket [08:33:45]Sock 9.Thread stoped [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:18]accept exits with 8 [08:34:18]New connection [08:34:18]New thread 3066813796 created [08:34:18]Thread 3066957156 joined [08:34:18]Waiting for new connection... [08:34:18] Sock 8.Parse request [08:34:18]Sock 8.Check first char [08:34:18]Sock 8.First char is OK [08:34:18]request: POST /json_proto HTTP/1.0 [08:34:18]Method: POST [08:34:18]URL: /json_proto [08:34:18]Method is POST - this is cgi request [08:34:18]url: /json_proto [08:34:18]query_string will be loaded in cgi processing [08:34:18]execute_cgi json_proto POST (null) [08:34:18]execute_cgi path=json_proto method=POST [08:34:18]POST find Content-Length [08:34:18]Host: 172.17.62.67:8080 [08:34:18]Content-Length: 1197 [08:34:18]Content-Type: application/json [08:34:18] [08:34:18]POST finish read [08:34:18]Found Content-Length = 1197 [08:34:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196055\u000A12.03.2024 08:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.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\u000A3689383\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:18]execute_script... [08:34:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196055\u000A12.03.2024 08:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.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\u000A3689383\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:18]POST & json_proto [08:34:18]process_json_proto [08:34:18]json parsed OK: [08:34:18]protocol is kg_v1.0 [08:34:18]action value=print_text [08:34:18]process_action print_text [08:34:18]cmd_print_text [08:34:18]ExternCall_PrintAddStr [08:34:18]wPrintStart [08:34:18]Write to MH i2c: 01 00 00 B8 1B D3 [08:34:18]Write i2c OK [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: 01 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: 01 07 00 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: 01 07 00 B8 1B 00 80 00 00 00 FF 0F 68 [08:34:18]RasterBufferAndPrint [08:34:18]line *****ТОВАРНЫЙ ЧЕК***** [08:34:18]line АЗС 6 [08:34:18]line Партнер нефть [08:34:18]line 02508201610067 [08:34:18]line Кассир : Мыктыбекова И. [08:34:18]line Счет N : (1)196055 [08:34:18]line 12.03.2024 08:28 [08:34:18]line ПРОДАЖА [08:34:18]line ТРК (МРК, ГНК): 61 [08:34:18]line Вид ГСМ : 2710194210 [08:34:18]line ДТ-К-5 [08:34:18]line 10.000 x 70.90 [08:34:18]line ИТОГ: 709.00 [08:34:18]line Тип оплаты: Талоны: Партнер нефть [08:34:18]line 3689383 [08:34:18]line ______________________ [08:34:18]line (подпись) [08:34:18]written 0, free lines is 4095 [08:34:18]Write to MH i2c: 01 00 00 CC 1B E7 [08:34:18]Write i2c OK [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: 01 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: 01 07 00 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: 01 07 00 CC 1B 00 80 00 00 00 65 0E E1 [08:34:18]RasterBufferAndPrint [08:34:18]line [08:34:18]line [08:34:18]line [08:34:18]line [08:34:18]line [08:34:18]written 0, free lines is 3690 [08:34:18]process_action print_text done [08:34:18]requested_data is exist [08:34:18]produce_requested_data [08:34:18]requested_item fm.sn is exist - process it [08:34:18]wFMCommunicate request_size=4 [08:34:18]MH_SAM_APDU [08:34:18]CAPDU: 80 11 00 00 [08:34:18]Write to MH i2c: E2 08 00 D3 1B 80 11 00 00 00 00 00 00 68 [08:34:18]Write i2c OK [08:34:18]MH_I2C_Read... [08:34:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:18]Read from MH i2c: E2 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: E2 17 00 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: E2 17 00 D3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B8 [08:34:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:34:18]wFMCommunicate OK [08:34:18]requested_item fd.num is exist - process it [08:34:18]SAM_PROTO_GetFieldsCounters [08:34:18]wFMCommunicate request_size=4 [08:34:18]MH_SAM_APDU [08:34:18]CAPDU: 80 13 00 00 [08:34:18]Write to MH i2c: E2 08 00 D4 1B 80 13 00 00 00 00 00 00 6B [08:34:18]Write i2c OK [08:34:18]MH_I2C_Read... [08:34:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:18]Read from MH i2c: E2 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: E2 62 00 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: E2 62 00 D4 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 76 73 01 00 0E 04 04 00 47 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 02 [08:34:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 76 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:18]wFMCommunicate OK [08:34:18]SAM_PROTO_GetFieldsCounters done [08:34:18]requested_item shift.num is exist - process it [08:34:18]requested_item shift.opened is exist - process it [08:34:18]req_shift_opened [08:34:18]FM_GetShiftState [08:34:18]SAM_PROTO_GetShiftState [08:34:18]wFMCommunicate request_size=4 [08:34:18]MH_SAM_APDU [08:34:18]CAPDU: 80 13 01 00 [08:34:18]Write to MH i2c: E2 08 00 D5 1B 80 13 01 00 00 00 00 00 6D [08:34:18]Write i2c OK [08:34:18]MH_I2C_Read... [08:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:18]Read from MH i2c: E2 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: E2 0E 00 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: E2 0E 00 D5 1B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 E1 [08:34:18]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:34:18]wFMCommunicate OK [08:34:18]SAM_PROTO_GetShiftState done [08:34:18]FM_GetShiftState done [08:34:18]req_shift_opened done [08:34:18]requested_item shift.open_date is exist - process it [08:34:18]req_shift_open_date [08:34:18]req_shift_open_date done [08:34:18]produce_requested_data done [08:34:18]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95094,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [08:34:18]process_action_free print_text [08:34:18]json_value_free [08:34:18]json_value_free done [08:34:18]process_json_proto returns [08:34:18]Send response to host [08:34:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95094,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [08:34:18]free response buf [08:34:18]execute_script done [08:34:18]execute_script returns [08:34:18]free content buf [08:34:18]Sock 8.Close socket [08:34:18]Sock 8.Thread stoped [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:32]accept exits with 9 [08:35:32]New connection [08:35:32]New thread 3066957156 created [08:35:32]Thread 3066813796 joined [08:35:32]Waiting for new connection... [08:35:32] Sock 9.Parse request [08:35:32]Sock 9.Check first char [08:35:32]Sock 9.First char is OK [08:35:32]request: POST /json_proto HTTP/1.0 [08:35:32]Method: POST [08:35:32]URL: /json_proto [08:35:32]Method is POST - this is cgi request [08:35:32]url: /json_proto [08:35:32]query_string will be loaded in cgi processing [08:35:32]execute_cgi json_proto POST (null) [08:35:32]execute_cgi path=json_proto method=POST [08:35:32]POST find Content-Length [08:35:32]Host: 172.17.62.67:8080 [08:35:32]Content-Length: 1197 [08:35:32]Content-Type: application/json [08:35:32] [08:35:32]POST finish read [08:35:32]Found Content-Length = 1197 [08:35:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196056\u000A12.03.2024 08:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.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\u000A3689376\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:32]execute_script... [08:35:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196056\u000A12.03.2024 08:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.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\u000A3689376\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:32]POST & json_proto [08:35:32]process_json_proto [08:35:32]json parsed OK: [08:35:32]protocol is kg_v1.0 [08:35:32]action value=print_text [08:35:32]process_action print_text [08:35:32]cmd_print_text [08:35:32]ExternCall_PrintAddStr [08:35:32]wPrintStart [08:35:32]Write to MH i2c: 01 00 00 D6 1B F1 [08:35:32]Write i2c OK [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 07 00 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 07 00 D6 1B 00 80 00 00 00 FF 0F 86 [08:35:32]RasterBufferAndPrint [08:35:32]line *****ТОВАРНЫЙ ЧЕК***** [08:35:32]line АЗС 6 [08:35:32]line Партнер нефть [08:35:32]line 02508201610067 [08:35:32]line Кассир : Мыктыбекова И. [08:35:32]line Счет N : (1)196056 [08:35:32]line 12.03.2024 08:29 [08:35:32]line ПРОДАЖА [08:35:32]line ТРК (МРК, ГНК): 61 [08:35:32]line Вид ГСМ : 2710194210 [08:35:32]line ДТ-К-5 [08:35:32]line 10.000 x 70.90 [08:35:32]line ИТОГ: 709.00 [08:35:32]line Тип оплаты: Талоны: Партнер нефть [08:35:32]line 3689376 [08:35:32]line ______________________ [08:35:32]line (подпись) [08:35:32]written 0, free lines is 4095 [08:35:32]Write to MH i2c: 01 00 00 EA 1B 05 [08:35:32]Write i2c OK [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 07 00 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 07 00 EA 1B 00 80 00 00 00 65 0E FF [08:35:32]RasterBufferAndPrint [08:35:32]line [08:35:32]line [08:35:32]line [08:35:32]line [08:35:32]line [08:35:32]written 0, free lines is 3690 [08:35:32]process_action print_text done [08:35:32]requested_data is exist [08:35:32]produce_requested_data [08:35:32]requested_item fm.sn is exist - process it [08:35:32]wFMCommunicate request_size=4 [08:35:32]MH_SAM_APDU [08:35:32]CAPDU: 80 11 00 00 [08:35:32]Write to MH i2c: E2 08 00 F1 1B 80 11 00 00 00 00 00 00 86 [08:35:32]Write i2c OK [08:35:32]MH_I2C_Read... [08:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:32]Read from MH i2c: E2 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: E2 17 00 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: E2 17 00 F1 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D6 [08:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:35:32]wFMCommunicate OK [08:35:32]requested_item fd.num is exist - process it [08:35:32]SAM_PROTO_GetFieldsCounters [08:35:32]wFMCommunicate request_size=4 [08:35:32]MH_SAM_APDU [08:35:32]CAPDU: 80 13 00 00 [08:35:32]Write to MH i2c: E2 08 00 F2 1B 80 13 00 00 00 00 00 00 89 [08:35:32]Write i2c OK [08:35:32]MH_I2C_Read... [08:35:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:32]Read from MH i2c: E2 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: E2 62 00 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: E2 62 00 F2 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 76 73 01 00 0E 04 04 00 47 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 20 [08:35:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 76 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:35:32]wFMCommunicate OK [08:35:32]SAM_PROTO_GetFieldsCounters done [08:35:32]requested_item shift.num is exist - process it [08:35:32]requested_item shift.opened is exist - process it [08:35:32]req_shift_opened [08:35:32]FM_GetShiftState [08:35:32]SAM_PROTO_GetShiftState [08:35:32]wFMCommunicate request_size=4 [08:35:32]MH_SAM_APDU [08:35:32]CAPDU: 80 13 01 00 [08:35:32]Write to MH i2c: E2 08 00 F3 1B 80 13 01 00 00 00 00 00 8B [08:35:32]Write i2c OK [08:35:32]MH_I2C_Read... [08:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:32]Read from MH i2c: E2 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: E2 0E 00 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: E2 0E 00 F3 1B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 FF [08:35:32]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:35:32]wFMCommunicate OK [08:35:32]SAM_PROTO_GetShiftState done [08:35:32]FM_GetShiftState done [08:35:32]req_shift_opened done [08:35:32]requested_item shift.open_date is exist - process it [08:35:32]req_shift_open_date [08:35:32]req_shift_open_date done [08:35:32]produce_requested_data done [08:35:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95094,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [08:35:32]process_action_free print_text [08:35:32]json_value_free [08:35:32]json_value_free done [08:35:32]process_json_proto returns [08:35:32]Send response to host [08:35:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95094,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [08:35:32]free response buf [08:35:32]execute_script done [08:35:32]execute_script returns [08:35:32]free content buf [08:35:32]Sock 9.Close socket [08:35:32]Sock 9.Thread stoped [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:40:57]accept exits with 8 [08:40:57]New connection [08:40:57]New thread 3066813796 created [08:40:57]Thread 3066957156 joined [08:40:57]Waiting for new connection... [08:40:57] Sock 8.Parse request [08:40:57]Sock 8.Check first char [08:40:57]Sock 8.First char is OK [08:40:57]request: POST /json_proto HTTP/1.0 [08:40:57]Method: POST [08:40:57]URL: /json_proto [08:40:57]Method is POST - this is cgi request [08:40:57]url: /json_proto [08:40:57]query_string will be loaded in cgi processing [08:40:57]execute_cgi json_proto POST (null) [08:40:57]execute_cgi path=json_proto method=POST [08:40:57]POST find Content-Length [08:40:57]Host: 172.17.62.67:8080 [08:40:57]Content-Length: 675 [08:40:57]Content-Type: application/json [08:40:57] [08:40:57]POST finish read [08:40:57]Found Content-Length = 675 [08:40:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 11.290, "sum" : 800.46, "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:40:57]execute_script... [08:40: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)196057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 11.290, "sum" : 800.46, "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:40:57]POST & json_proto [08:40:57]process_json_proto [08:40:57]json parsed OK: [08:40:57]protocol is kg_v1.0 [08:40:57]action value=close_receipt [08:40:57]process_action close_receipt [08:40:57]cmd_close_receipt [08:40:57]MH_GetDate [08:40:57]Write to MH i2c: F0 00 00 F4 1B FE [08:40:57]Write i2c OK [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: F0 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: F0 05 00 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: F0 05 00 F4 1B 00 1D 15 F0 65 8A [08:40:57]GetLastDocTimeStamp 1710231887 [08:40:57]current date 1710232861 [08:40:57]FM_GetShiftState [08:40:57]SAM_PROTO_GetShiftState [08:40:57]wFMCommunicate request_size=4 [08:40:57]MH_SAM_APDU [08:40:57]CAPDU: 80 13 01 00 [08:40:57]Write to MH i2c: E2 08 00 F5 1B 80 13 01 00 00 00 00 00 8D [08:40:57]Write i2c OK [08:40:57]MH_I2C_Read... [08:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:57]Read from MH i2c: E2 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 0E 00 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 0E 00 F5 1B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 01 [08:40:57]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:40:57]wFMCommunicate OK [08:40:57]SAM_PROTO_GetShiftState done [08:40:57]FM_GetShiftState done [08:40:57]opened in 1710201976 [08:40:57]opened+sec_in_day 1710288376 [08:40:57]quantity*price = 80046 [08:40:57]sum+1 = 80047 [08:40:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.00 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 25 12.03.2024 08:41 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95095 ФПД: 256499778882706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T084101&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95095&fm=256499778882706&tin=02508201610067®Number=0000000000090555&sum=80000 [08:40:58]StoreToDocumentArchive [08:40:58]shift 327 fd 95095 [08:40:58]save to /storage/0327/doc_00095095 [08:40:58]save last doc name /storage/0327/doc_00095095 to /storage/kkm_last_doc_name [08:40:58]save OK [08:40:58]Clear old archive folders... [08:40:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:40:58]tlvbuf is 01A057A0 [08:40:58]SAM_PROTO_ClearQueue [08:40:58]wFMCommunicate request_size=4 [08:40:58]MH_SAM_APDU [08:40:58]CAPDU: 80 09 00 00 [08:40:58]Write to MH i2c: E2 08 00 02 1C 80 09 00 00 00 00 00 00 90 [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 02 1C 00 90 00 92 [08:40:58]RAPDU: 90 00 [08:40:58]wFMCommunicate OK [08:40:58]SAM_PROTO_ClearQueue done [08:40:58]KKMCreateOFDPacket [08:40:58]OFDProtocolAddRootSTLVToBuf [08:40:58]FM_MakeSignedData [08:40:58]FM_MakeSignedData [08:40:58]SAM_PROTO_SignData [08:40:58]wFMCommunicate request_size=4 [08:40:58]MH_SAM_APDU [08:40:58]CAPDU: 80 0D 01 02 [08:40:58]Write to MH i2c: E2 08 00 03 1C 80 0D 01 02 00 00 00 00 98 [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 03 1C 00 90 00 93 [08:40:58]RAPDU: 90 00 [08:40:58]wFMCommunicate OK [08:40:58]wFMCommunicate request_size=255 [08:40:58]MH_SAM_APDU [08:40:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 AE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 1D 15 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 77 73 01 00 35 04 06 00 E9 49 02 34 [08:40:58]Write to MH i2c: E2 02 01 04 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 AE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 1D 15 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 77 73 01 00 35 04 06 00 E9 49 02 34 00 00 B3 [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 04 1C 00 90 00 94 [08:40:58]RAPDU: 90 00 [08:40:58]wFMCommunicate OK [08:40:58]wFMCommunicate request_size=7 [08:40:58]MH_SAM_APDU [08:40:58]CAPDU: 80 0D 02 02 02 8C 92 [08:40:58]Write to MH i2c: E2 0A 00 05 1C 80 0D 02 02 02 00 8C 92 00 00 BD [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 05 1C 00 90 00 95 [08:40:58]RAPDU: 90 00 [08:40:58]wFMCommunicate OK [08:40:58]wFMCommunicate request_size=4 [08:40:58]MH_SAM_APDU [08:40:58]CAPDU: 80 0D 03 02 [08:40:58]Write to MH i2c: E2 08 00 06 1C 80 0D 03 02 00 00 00 00 9D [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:59]Read from MH i2c: E2 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: E2 0B 00 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: E2 0B 00 06 1C 00 79 FE F6 1E C2 5E 81 71 90 00 3B [08:40:59]RAPDU: 79 FE F6 1E C2 5E 81 71 90 00 [08:40:59]wFMCommunicate OK [08:40:59]SAM_PROTO_SignData done [08:40:59]FM_MakeSignedData done [08:40:59]CreateOFDProtocolMessage [08:40:59]wFMCommunicate request_size=4 [08:40:59]MH_SAM_APDU [08:40:59]CAPDU: 80 11 00 00 [08:40:59]Write to MH i2c: E2 08 00 07 1C 80 11 00 00 00 00 00 00 9D [08:40:59]Write i2c OK [08:40:59]MH_I2C_Read... [08:40:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:59]Read from MH i2c: E2 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: E2 17 00 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: E2 17 00 07 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 ED [08:40:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:40:59]wFMCommunicate OK [08:40:59]CreateOFDProtocolMessage done [08:40:59]OFDSenderStorePacket 95095 [08:40:59]StoreOFDPacket docnum=95095 [08:40:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 D4 8E 04 01 D8 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 AE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 1D 15 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 77 73 01 00 35 04 06 00 E9 49 02 34 8C 92 79 FE F6 1E C2 5E 81 71 [08:40:59]CheckFolder [08:40:59]dirname=/storage/ofd_packets [08:40:59]CheckFolder done [08:40:59]ProducePacketName [08:40:59]name=ofd_packets/00095095 [08:40:59]NVStorageSaveData ofd_packets/00095095 [08:40:59]File name is /storage/ofd_packets/00095095 [08:40:59]Write 298 bytes [08:40:59]NVStorageSaveData done [08:40:59]OFDSenderStorePacket done [08:40:59]KKMCreateOFDPacket done [08:40:59]NVStorageSaveData kkm_last_timestamp [08:40:59]File name is /storage/kkm_last_timestamp [08:40:59]Write 4 bytes [08:40:59]NVStorageSaveData done [08:40:59]ExternCall_PrintAddStr [08:40:59]wPrintStart [08:40:59]Write to MH i2c: 01 00 00 08 1C 24 [08:40:59]Write i2c OK [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: 01 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: 01 07 00 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: 01 07 00 08 1C 00 80 00 00 00 FF 0F B9 [08:40:59]RasterBufferAndPrint [08:40:59]line Счет N : (1)196057 [08:40:59]line ИНН: 02508201610067 [08:40:59]line Контрольно-Кассовый Чек [08:40:59]line ПРОДАЖА [08:40:59]line ТРК (МРК, ГНК) : 51 [08:40:59]line Товар: 2710194210 [08:40:59]line ДТ-К-5 [08:40:59]line 11.290 * 70.90 [08:40:59]line = 800.46 [08:40:59]line НДС 12% НСП 1% [08:40:59]line > о реализуемом товаре [08:40:59]line ОКРУГЛЕНИЕ: -0.46 [08:40:59]line ИТОГО: 800.00 [08:40:59]line Внесено: 800.00 [08:40:59]line СДАЧА: 0.00 [08:40:59]line НСП 1% : 7.08 [08:40:59]line НДС 12% : 85.00 [08:40:59]line Наличными: 800.00 [08:40:59]line Безнал.: 0.00 [08:40:59]line Место: АЗС № 6 "Партнер Нефть" [08:40:59]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:40:59]line СНО: Общий режим [08:40:59]line Чек 25 12.03.2024 08:41 [08:40:59]line Смена: 327 ФФД: 1.0 [08:40:59]line ЗНМ: 0300000009 [08:40:59]line РНМ: 0000000000090555 [08:40:59]line Версия ККМ: 001 [08:40:59]line ФМ: 0000000000874811 [08:40:59]line ФД: 95095 [08:40:59]line ФПД: 256499778882706 [08:40:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T084101&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95095&fm=256499778882706&tin=02508201610067®Number=0000000000090555&sum=80000 [08:40:59]OFD Sender: Processing packet 95095 [packets to send 30, broken 29] [08:40:59]ProducePacketName [08:40:59]name=ofd_packets/00095095 [08:40:59]OFD Sender: To server: pG, [08:40:59]CommunicateWithHost lk.salyk.kg:30040 [08:40:59]ConnectInit lk.salyk.kg [08:40:59]written 0, free lines is 4095 [08:40:59]Connected sock=10 [08:40:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 D4 8E 04 01 D8 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 AE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 1D 15 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 77 73 01 00 35 04 06 00 E9 49 02 34 8C 92 79 FE F6 1E C2 5E 81 71 [08:40:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 26 C2 47 00 C0 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 77 73 01 00 F4 03 04 00 74 C0 EF 65 B6 04 01 00 00 67 85 85 D8 88 08 37 07 [08:40:59]CommunicateWithHost err = 0 [08:40:59]CheckOFDResponse [08:40:59]1017 (14) - 77093643461234 [08:40:59]1041 (16) - 0000000000874811 [08:40:59]1040 (4) - 95095 [08:40:59]1012 (4) - 12.03.2024 02:39 [08:40:59]1206 (1) - 0 [08:40:59]OFD Sender: Remove packet 95095 [08:40:59]ProducePacketName [08:40:59]name=ofd_packets/00095095 [08:40:59]NVStorageDeleteData [08:40:59]Write to MH i2c: 01 00 00 33 1C 4F [08:40:59]Write i2c OK [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: 01 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: 01 07 00 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: 01 07 00 33 1C 00 80 00 00 00 4C 0D 2F [08:40:59]RasterBufferAndPrint [08:40:59]line [08:40:59]line [08:40:59]line [08:40:59]line [08:40:59]line [08:40:59]written 0, free lines is 3410 [08:40:59]process_action close_receipt done [08:40:59]requested_data is exist [08:40:59]produce_requested_data [08:40:59]requested_item fm.sn is exist - process it [08:40:59]wFMCommunicate request_size=4 [08:40:59]MH_SAM_APDU [08:40:59]CAPDU: 80 11 00 00 [08:40:59]Write to MH i2c: E2 08 00 3A 1C 80 11 00 00 00 00 00 00 D0 [08:40:59]Write i2c OK [08:40:59]MH_I2C_Read... [08:40:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:59]Read from MH i2c: E2 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: E2 17 00 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: E2 17 00 3A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 20 [08:40:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:40:59]wFMCommunicate OK [08:40:59]requested_item fd.num is exist - process it [08:40:59]SAM_PROTO_GetFieldsCounters [08:40:59]wFMCommunicate request_size=4 [08:40:59]MH_SAM_APDU [08:40:59]CAPDU: 80 13 00 00 [08:40:59]Write to MH i2c: E2 08 00 3B 1C 80 13 00 00 00 00 00 00 D3 [08:40:59]Write i2c OK [08:40:59]MH_I2C_Read... [08:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:00]Read from MH i2c: E2 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: E2 62 00 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: E2 62 00 3B 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 77 73 01 00 0E 04 04 00 47 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 6E [08:41:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 77 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:00]wFMCommunicate OK [08:41:00]SAM_PROTO_GetFieldsCounters done [08:41:00]requested_item shift.num is exist - process it [08:41:00]requested_item shift.opened is exist - process it [08:41:00]req_shift_opened [08:41:00]FM_GetShiftState [08:41:00]SAM_PROTO_GetShiftState [08:41:00]wFMCommunicate request_size=4 [08:41:00]MH_SAM_APDU [08:41:00]CAPDU: 80 13 01 00 [08:41:00]Write to MH i2c: E2 08 00 3C 1C 80 13 01 00 00 00 00 00 D5 [08:41:00]Write i2c OK [08:41:00]MH_I2C_Read... [08:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:00]Read from MH i2c: E2 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: E2 0E 00 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: E2 0E 00 3C 1C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 49 [08:41:00]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:41:00]wFMCommunicate OK [08:41:00]SAM_PROTO_GetShiftState done [08:41:00]FM_GetShiftState done [08:41:00]req_shift_opened done [08:41:00]requested_item shift.open_date is exist - process it [08:41:00]req_shift_open_date [08:41:00]req_shift_open_date done [08:41:00]produce_requested_data done [08:41:00]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95095,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [08:41:00]process_action_free close_receipt [08:41:00]json_value_free [08:41:00]json_value_free done [08:41:00]process_json_proto returns [08:41:00]Send response to host [08:41:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95095,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [08:41:00]free response buf [08:41:00]execute_script done [08:41:00]execute_script returns [08:41:00]free content buf [08:41:00]Sock 8.Close socket [08:41:00]Sock 8.Thread stoped [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:28]accept exits with 9 [08:42:28]New connection [08:42:28]New thread 3066957156 created [08:42:28]Thread 3066813796 joined [08:42:28]Waiting for new connection... [08:42:28] Sock 9.Parse request [08:42:28]Sock 9.Check first char [08:42:28]Sock 9.First char is OK [08:42:28]request: POST /json_proto HTTP/1.0 [08:42:28]Method: POST [08:42:28]URL: /json_proto [08:42:28]Method is POST - this is cgi request [08:42:28]url: /json_proto [08:42:28]query_string will be loaded in cgi processing [08:42:28]execute_cgi json_proto POST (null) [08:42:28]execute_cgi path=json_proto method=POST [08:42:28]POST find Content-Length [08:42:28]Host: 172.17.62.67:8080 [08:42:28]Content-Length: 677 [08:42:28]Content-Type: application/json [08:42:28] [08:42:28]POST finish read [08:42:28]Found Content-Length = 677 [08:42:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [08:42:28]execute_script... [08:42:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [08:42:28]POST & json_proto [08:42:28]process_json_proto [08:42:28]json parsed OK: [08:42:28]protocol is kg_v1.0 [08:42:28]action value=close_receipt [08:42:28]process_action close_receipt [08:42:28]cmd_close_receipt [08:42:28]MH_GetDate [08:42:28]Write to MH i2c: F0 00 00 3D 1C 48 [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: F0 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: F0 05 00 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: F0 05 00 3D 1C 00 78 15 F0 65 2F [08:42:28]GetLastDocTimeStamp 1710232861 [08:42:28]current date 1710232952 [08:42:28]FM_GetShiftState [08:42:28]SAM_PROTO_GetShiftState [08:42:28]wFMCommunicate request_size=4 [08:42:28]MH_SAM_APDU [08:42:28]CAPDU: 80 13 01 00 [08:42:28]Write to MH i2c: E2 08 00 3E 1C 80 13 01 00 00 00 00 00 D7 [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:28]Read from MH i2c: E2 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 0E 00 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 0E 00 3E 1C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 4B [08:42:28]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:42:28]wFMCommunicate OK [08:42:28]SAM_PROTO_GetShiftState done [08:42:28]FM_GetShiftState done [08:42:28]opened in 1710201976 [08:42:28]opened+sec_in_day 1710288376 [08:42:28]quantity*price = 30003 [08:42:28]sum+1 = 30004 [08:42:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 26 12.03.2024 08:42 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95096 ФПД: 65290256757840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T084232&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95096&fm=65290256757840&tin=02508201610067®Number=0000000000090555&sum=30000 [08:42:29]StoreToDocumentArchive [08:42:29]shift 327 fd 95096 [08:42:29]save to /storage/0327/doc_00095096 [08:42:29]save last doc name /storage/0327/doc_00095096 to /storage/kkm_last_doc_name [08:42:29]save OK [08:42:29]Clear old archive folders... [08:42:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:29]tlvbuf is 01A4F5A0 [08:42:29]SAM_PROTO_ClearQueue [08:42:29]wFMCommunicate request_size=4 [08:42:29]MH_SAM_APDU [08:42:29]CAPDU: 80 09 00 00 [08:42:29]Write to MH i2c: E2 08 00 4B 1C 80 09 00 00 00 00 00 00 D9 [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:29]Read from MH i2c: E2 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 03 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 03 00 4B 1C 00 90 00 DB [08:42:29]RAPDU: 90 00 [08:42:29]wFMCommunicate OK [08:42:29]SAM_PROTO_ClearQueue done [08:42:29]KKMCreateOFDPacket [08:42:29]OFDProtocolAddRootSTLVToBuf [08:42:29]FM_MakeSignedData [08:42:29]FM_MakeSignedData [08:42:29]SAM_PROTO_SignData [08:42:29]wFMCommunicate request_size=4 [08:42:29]MH_SAM_APDU [08:42:29]CAPDU: 80 0D 01 02 [08:42:29]Write to MH i2c: E2 08 00 4C 1C 80 0D 01 02 00 00 00 00 E1 [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:29]Read from MH i2c: E2 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 03 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 03 00 4C 1C 00 90 00 DC [08:42:29]RAPDU: 90 00 [08:42:29]wFMCommunicate OK [08:42:29]wFMCommunicate request_size=255 [08:42:29]MH_SAM_APDU [08:42:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 1A 00 00 00 F4 03 04 00 78 15 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 78 73 01 00 35 04 06 00 3B [08:42:29]Write to MH i2c: E2 02 01 4D 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 1A 00 00 00 F4 03 04 00 78 15 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 78 73 01 00 35 04 06 00 3B 00 00 2A [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:29]Read from MH i2c: E2 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 03 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 03 00 4D 1C 00 90 00 DD [08:42:29]RAPDU: 90 00 [08:42:29]wFMCommunicate OK [08:42:29]wFMCommunicate request_size=10 [08:42:29]MH_SAM_APDU [08:42:29]CAPDU: 80 0D 02 02 05 61 92 8F B4 50 [08:42:29]Write to MH i2c: E2 0D 00 4E 1C 80 0D 02 02 05 00 61 92 8F B4 50 00 00 74 [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:29]Read from MH i2c: E2 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 03 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 03 00 4E 1C 00 90 00 DE [08:42:29]RAPDU: 90 00 [08:42:29]wFMCommunicate OK [08:42:29]wFMCommunicate request_size=4 [08:42:29]MH_SAM_APDU [08:42:29]CAPDU: 80 0D 03 02 [08:42:29]Write to MH i2c: E2 08 00 4F 1C 80 0D 03 02 00 00 00 00 E6 [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:29]Read from MH i2c: E2 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 0B 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 0B 00 4F 1C 00 F0 86 88 87 19 99 20 BB 90 00 F9 [08:42:29]RAPDU: F0 86 88 87 19 99 20 BB 90 00 [08:42:29]wFMCommunicate OK [08:42:29]SAM_PROTO_SignData done [08:42:29]FM_MakeSignedData done [08:42:29]CreateOFDProtocolMessage [08:42:29]wFMCommunicate request_size=4 [08:42:29]MH_SAM_APDU [08:42:29]CAPDU: 80 11 00 00 [08:42:29]Write to MH i2c: E2 08 00 50 1C 80 11 00 00 00 00 00 00 E6 [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:29]Read from MH i2c: E2 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 17 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 17 00 50 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 36 [08:42:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:42:29]wFMCommunicate OK [08:42:29]CreateOFDProtocolMessage done [08:42:29]OFDSenderStorePacket 95096 [08:42:29]StoreOFDPacket docnum=95096 [08:42:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4B DB 07 01 2A 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 1A 00 00 00 F4 03 04 00 78 15 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 78 73 01 00 35 04 06 00 3B 61 92 8F B4 50 F0 86 88 87 19 99 20 BB [08:42:29]CheckFolder [08:42:29]dirname=/storage/ofd_packets [08:42:29]CheckFolder done [08:42:29]ProducePacketName [08:42:29]name=ofd_packets/00095096 [08:42:29]NVStorageSaveData ofd_packets/00095096 [08:42:29]File name is /storage/ofd_packets/00095096 [08:42:29]Write 301 bytes [08:42:29]NVStorageSaveData done [08:42:29]OFDSenderStorePacket done [08:42:29]KKMCreateOFDPacket done [08:42:29]NVStorageSaveData kkm_last_timestamp [08:42:29]File name is /storage/kkm_last_timestamp [08:42:29]Write 4 bytes [08:42:29]NVStorageSaveData done [08:42:29]ExternCall_PrintAddStr [08:42:29]wPrintStart [08:42:29]Write to MH i2c: 01 00 00 51 1C 6D [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: 01 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: 01 07 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: 01 07 00 51 1C 00 80 00 00 00 FF 0F 02 [08:42:29]RasterBufferAndPrint [08:42:29]line Счет N : (1)196059 [08:42:29]line ИНН: 02508201610067 [08:42:29]line Контрольно-Кассовый Чек [08:42:29]line ПРОДАЖА [08:42:29]line ТРК (МРК, ГНК) : 42 [08:42:29]line Товар: 2710124130 [08:42:29]line Аи-92-К-5 [08:42:29]line 4.770 * 62.90 [08:42:29]line = 300.03 [08:42:29]line НДС 12% НСП 1% [08:42:29]line > о реализуемом товаре [08:42:29]line ОКРУГЛЕНИЕ: -0.03 [08:42:29]line ИТОГО: 300.00 [08:42:29]line Внесено: 300.00 [08:42:29]line СДАЧА: 0.00 [08:42:29]line НСП 1% : 2.65 [08:42:29]line НДС 12% : 31.86 [08:42:29]line Наличными: 300.00 [08:42:29]line Безнал.: 0.00 [08:42:29]line Место: АЗС № 6 "Партнер Нефть" [08:42:29]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:42:29]line СНО: Общий режим [08:42:29]line Чек 26 12.03.2024 08:42 [08:42:29]line Смена: 327 ФФД: 1.0 [08:42:29]line ЗНМ: 0300000009 [08:42:29]line РНМ: 0000000000090555 [08:42:29]line Версия ККМ: 001 [08:42:29]line ФМ: 0000000000874811 [08:42:29]line ФД: 95096 [08:42:29]line ФПД: 65290256757840 [08:42:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T084232&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95096&fm=65290256757840&tin=02508201610067®Number=0000000000090555&sum=30000 [08:42:30]written 0, free lines is 4095 [08:42:30]OFD Sender: Processing packet 95096 [packets to send 30, broken 29] [08:42:30]ProducePacketName [08:42:30]name=ofd_packets/00095096 [08:42:30]OFD Sender: To server: pG, [08:42:30]CommunicateWithHost lk.salyk.kg:30040 [08:42:30]ConnectInit lk.salyk.kg [08:42:30]Connected sock=10 [08:42:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4B DB 07 01 2A 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 1A 00 00 00 F4 03 04 00 78 15 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 78 73 01 00 35 04 06 00 3B 61 92 8F B4 50 F0 86 88 87 19 99 20 BB [08:42:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 BA 19 47 00 FD 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 38 37 34 38 31 31 10 04 04 00 78 73 01 00 F4 03 04 00 CF C0 EF 65 B6 04 01 00 00 E3 21 DD 59 C8 E8 F5 EF [08:42:30]CommunicateWithHost err = 0 [08:42:30]CheckOFDResponse [08:42:30]1017 (14) - 77093643461234 [08:42:30]1041 (16) - 0000000000874811 [08:42:30]1040 (4) - 95096 [08:42:30]1012 (4) - 12.03.2024 02:41 [08:42:30]1206 (1) - 0 [08:42:30]OFD Sender: Remove packet 95096 [08:42:30]ProducePacketName [08:42:30]name=ofd_packets/00095096 [08:42:30]NVStorageDeleteData [08:42:30]Write to MH i2c: 01 00 00 7C 1C 98 [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: 01 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: 01 07 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: 01 07 00 7C 1C 00 80 00 00 00 59 0D 85 [08:42:30]RasterBufferAndPrint [08:42:30]line [08:42:30]line [08:42:30]line [08:42:30]line [08:42:30]line [08:42:30]written 0, free lines is 3423 [08:42:30]process_action close_receipt done [08:42:30]requested_data is exist [08:42:30]produce_requested_data [08:42:30]requested_item fm.sn is exist - process it [08:42:30]wFMCommunicate request_size=4 [08:42:30]MH_SAM_APDU [08:42:30]CAPDU: 80 11 00 00 [08:42:30]Write to MH i2c: E2 08 00 83 1C 80 11 00 00 00 00 00 00 19 [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 [08:42:30]MH_I2C_Read... [08:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:30]Read from MH i2c: E2 17 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 17 00 83 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 69 [08:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:42:30]wFMCommunicate OK [08:42:30]requested_item fd.num is exist - process it [08:42:30]SAM_PROTO_GetFieldsCounters [08:42:30]wFMCommunicate request_size=4 [08:42:30]MH_SAM_APDU [08:42:30]CAPDU: 80 13 00 00 [08:42:30]Write to MH i2c: E2 08 00 84 1C 80 13 00 00 00 00 00 00 1C [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:30]Read from MH i2c: E2 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 62 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 62 00 84 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 78 73 01 00 0E 04 04 00 47 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 BB [08:42:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 78 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:30]wFMCommunicate OK [08:42:30]SAM_PROTO_GetFieldsCounters done [08:42:30]requested_item shift.num is exist - process it [08:42:30]requested_item shift.opened is exist - process it [08:42:30]req_shift_opened [08:42:30]FM_GetShiftState [08:42:30]SAM_PROTO_GetShiftState [08:42:30]wFMCommunicate request_size=4 [08:42:30]MH_SAM_APDU [08:42:30]CAPDU: 80 13 01 00 [08:42:30]Write to MH i2c: E2 08 00 85 1C 80 13 01 00 00 00 00 00 1E [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:30]OFD Sender: No OFD packet to send [08:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:30]Read from MH i2c: E2 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 0E 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 0E 00 85 1C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 92 [08:42:30]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:42:30]wFMCommunicate OK [08:42:30]SAM_PROTO_GetShiftState done [08:42:30]FM_GetShiftState done [08:42:30]req_shift_opened done [08:42:30]requested_item shift.open_date is exist - process it [08:42:30]req_shift_open_date [08:42:30]req_shift_open_date done [08:42:30]produce_requested_data done [08:42:30]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95096,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [08:42:30]process_action_free close_receipt [08:42:30]json_value_free [08:42:30]json_value_free done [08:42:30]process_json_proto returns [08:42:30]Send response to host [08:42:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95096,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [08:42:30]free response buf [08:42:30]execute_script done [08:42:30]execute_script returns [08:42:30]free content buf [08:42:30]Sock 9.Close socket [08:42:30]Sock 9.Thread stoped [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:26]accept exits with 8 [08:43:26]New connection [08:43:26]New thread 3066813796 created [08:43:26]Thread 3066957156 joined [08:43:26]Waiting for new connection... [08:43:26] Sock 8.Parse request [08:43:26]Sock 8.Check first char [08:43:26]Sock 8.First char is OK [08:43:26]request: POST /json_proto HTTP/1.0 [08:43:26]Method: POST [08:43:26]URL: /json_proto [08:43:26]Method is POST - this is cgi request [08:43:26]url: /json_proto [08:43:26]query_string will be loaded in cgi processing [08:43:26]execute_cgi json_proto POST (null) [08:43:26]execute_cgi path=json_proto method=POST [08:43:26]POST find Content-Length [08:43:26]Host: 172.17.62.67:8080 [08:43:26]Content-Length: 1211 [08:43:26]Content-Type: application/json [08:43:26] [08:43:26]POST finish read [08:43:26]Found Content-Length = 1211 [08:43: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196058\u000A12.03.2024 08:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.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\u000A91377\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:26]execute_script... [08:43: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196058\u000A12.03.2024 08:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.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\u000A91377\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:26]POST & json_proto [08:43:26]process_json_proto [08:43:26]json parsed OK: [08:43:26]protocol is kg_v1.0 [08:43:26]action value=print_text [08:43:26]process_action print_text [08:43:26]cmd_print_text [08:43:26]ExternCall_PrintAddStr [08:43:26]wPrintStart [08:43:26]Write to MH i2c: 01 00 00 86 1C A2 [08:43:26]Write i2c OK [08:43:26]MH_I2C_Read... [08:43:26]Read from MH i2c: 01 [08:43:26]MH_I2C_Read... [08:43:26]Read from MH i2c: 01 07 00 [08:43:26]MH_I2C_Read... [08:43:26]Read from MH i2c: 01 07 00 86 1C 00 80 00 00 00 FF 0F 37 [08:43:26]RasterBufferAndPrint [08:43:26]line *****ТОВАРНЫЙ ЧЕК***** [08:43:26]line АЗС 6 [08:43:26]line Партнер нефть [08:43:26]line 02508201610067 [08:43:26]line Кассир : Мыктыбекова И. [08:43:26]line Счет N : (1)196058 [08:43:26]line 12.03.2024 08:37 [08:43:26]line ПРОДАЖА [08:43:26]line ТРК (МРК, ГНК): 12 [08:43:26]line Вид ГСМ : 2710124130 [08:43:26]line Аи-92-К-5 [08:43:26]line 30.000 x 62.90 [08:43:26]line ИТОГ: 1887.00 [08:43:26]line Тип оплаты: Талоны: Топливная Карта [08:43:26]line 91377 [08:43:26]line ______________________ [08:43:26]line (подпись) [08:43:26]written 0, free lines is 4095 [08:43:26]Write to MH i2c: 01 00 00 9A 1C B6 [08:43:26]Write i2c OK [08:43:26]MH_I2C_Read... [08:43:26]Read from MH i2c: 01 [08:43:26]MH_I2C_Read... [08:43:26]Read from MH i2c: 01 07 00 [08:43:26]MH_I2C_Read... [08:43:26]Read from MH i2c: 01 07 00 9A 1C 00 80 00 00 00 67 0E B2 [08:43:26]RasterBufferAndPrint [08:43:26]line [08:43:26]line [08:43:26]line [08:43:26]line [08:43:26]line [08:43:26]written 0, free lines is 3692 [08:43:26]process_action print_text done [08:43:26]requested_data is exist [08:43:26]produce_requested_data [08:43:26]requested_item fm.sn is exist - process it [08:43:26]wFMCommunicate request_size=4 [08:43:26]MH_SAM_APDU [08:43:26]CAPDU: 80 11 00 00 [08:43:26]Write to MH i2c: E2 08 00 A1 1C 80 11 00 00 00 00 00 00 37 [08:43:26]Write i2c OK [08:43:26]MH_I2C_Read... [08:43:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:26]Read from MH i2c: E2 [08:43:26]MH_I2C_Read... [08:43:26]Read from MH i2c: E2 17 00 [08:43:26]MH_I2C_Read... [08:43:26]Read from MH i2c: E2 17 00 A1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 87 [08:43:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:43:26]wFMCommunicate OK [08:43:26]requested_item fd.num is exist - process it [08:43:26]SAM_PROTO_GetFieldsCounters [08:43:26]wFMCommunicate request_size=4 [08:43:26]MH_SAM_APDU [08:43:26]CAPDU: 80 13 00 00 [08:43:26]Write to MH i2c: E2 08 00 A2 1C 80 13 00 00 00 00 00 00 3A [08:43:26]Write i2c OK [08:43:26]MH_I2C_Read... [08:43:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:26]Read from MH i2c: E2 [08:43:26]MH_I2C_Read... [08:43:26]Read from MH i2c: E2 62 00 [08:43:26]MH_I2C_Read... [08:43:26]Read from MH i2c: E2 62 00 A2 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 78 73 01 00 0E 04 04 00 47 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 D9 [08:43:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 78 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:43:26]wFMCommunicate OK [08:43:26]SAM_PROTO_GetFieldsCounters done [08:43:26]requested_item shift.num is exist - process it [08:43:26]requested_item shift.opened is exist - process it [08:43:26]req_shift_opened [08:43:26]FM_GetShiftState [08:43:26]SAM_PROTO_GetShiftState [08:43:26]wFMCommunicate request_size=4 [08:43:26]MH_SAM_APDU [08:43:26]CAPDU: 80 13 01 00 [08:43:26]Write to MH i2c: E2 08 00 A3 1C 80 13 01 00 00 00 00 00 3C [08:43:26]Write i2c OK [08:43:26]MH_I2C_Read... [08:43:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:26]Read from MH i2c: E2 [08:43:26]MH_I2C_Read... [08:43:26]Read from MH i2c: E2 0E 00 [08:43:26]MH_I2C_Read... [08:43:26]Read from MH i2c: E2 0E 00 A3 1C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B0 [08:43:26]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:43:26]wFMCommunicate OK [08:43:26]SAM_PROTO_GetShiftState done [08:43:26]FM_GetShiftState done [08:43:26]req_shift_opened done [08:43:26]requested_item shift.open_date is exist - process it [08:43:26]req_shift_open_date [08:43:26]req_shift_open_date done [08:43:26]produce_requested_data done [08:43:26]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95096,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [08:43:26]process_action_free print_text [08:43:26]json_value_free [08:43:26]json_value_free done [08:43:26]process_json_proto returns [08:43:26]Send response to host [08:43:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95096,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [08:43:26]free response buf [08:43:26]execute_script done [08:43:26]execute_script returns [08:43:26]free content buf [08:43:26]Sock 8.Close socket [08:43:26]Sock 8.Thread stoped [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:40]accept exits with 9 [08:46:40]New connection [08:46:40]New thread 3066957156 created [08:46:40]Thread 3066813796 joined [08:46:40]Waiting for new connection... [08:46:40] Sock 9.Parse request [08:46:40]Sock 9.Check first char [08:46:40]Sock 9.First char is OK [08:46:40]request: POST /json_proto HTTP/1.0 [08:46:40]Method: POST [08:46:40]URL: /json_proto [08:46:40]Method is POST - this is cgi request [08:46:40]url: /json_proto [08:46:40]query_string will be loaded in cgi processing [08:46:40]execute_cgi json_proto POST (null) [08:46:40]execute_cgi path=json_proto method=POST [08:46:40]POST find Content-Length [08:46:40]Host: 172.17.62.67:8080 [08:46:40]Content-Length: 1211 [08:46:40]Content-Type: application/json [08:46:40] [08:46:40]POST finish read [08:46:40]Found Content-Length = 1211 [08:46:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196060\u000A12.03.2024 08:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 70.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 4403.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\u000A24144\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:40]execute_script... [08:46:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196060\u000A12.03.2024 08:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 70.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 4403.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\u000A24144\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:40]POST & json_proto [08:46:40]process_json_proto [08:46:40]json parsed OK: [08:46:40]protocol is kg_v1.0 [08:46:40]action value=print_text [08:46:40]process_action print_text [08:46:40]cmd_print_text [08:46:40]ExternCall_PrintAddStr [08:46:40]wPrintStart [08:46:40]Write to MH i2c: 01 00 00 A4 1C C0 [08:46:40]Write i2c OK [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: 01 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: 01 07 00 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: 01 07 00 A4 1C 00 80 00 00 00 FF 0F 55 [08:46:40]RasterBufferAndPrint [08:46:40]line *****ТОВАРНЫЙ ЧЕК***** [08:46:40]line АЗС 6 [08:46:40]line Партнер нефть [08:46:40]line 02508201610067 [08:46:40]line Кассир : Мыктыбекова И. [08:46:40]line Счет N : (1)196060 [08:46:40]line 12.03.2024 08:40 [08:46:40]line ПРОДАЖА [08:46:40]line ТРК (МРК, ГНК): 22 [08:46:40]line Вид ГСМ : 2710124130 [08:46:40]line Аи-92-К-5 [08:46:40]line 70.000 x 62.90 [08:46:40]line ИТОГ: 4403.00 [08:46:40]line Тип оплаты: Талоны: Топливная Карта [08:46:40]line 24144 [08:46:40]line ______________________ [08:46:40]line (подпись) [08:46:40]written 0, free lines is 4095 [08:46:40]Write to MH i2c: 01 00 00 B8 1C D4 [08:46:40]Write i2c OK [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: 01 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: 01 07 00 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: 01 07 00 B8 1C 00 80 00 00 00 67 0E D0 [08:46:40]RasterBufferAndPrint [08:46:40]line [08:46:40]line [08:46:40]line [08:46:40]line [08:46:40]line [08:46:40]written 0, free lines is 3691 [08:46:40]process_action print_text done [08:46:40]requested_data is exist [08:46:40]produce_requested_data [08:46:40]requested_item fm.sn is exist - process it [08:46:40]wFMCommunicate request_size=4 [08:46:40]MH_SAM_APDU [08:46:40]CAPDU: 80 11 00 00 [08:46:40]Write to MH i2c: E2 08 00 BF 1C 80 11 00 00 00 00 00 00 55 [08:46:40]Write i2c OK [08:46:40]MH_I2C_Read... [08:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:40]Read from MH i2c: E2 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 17 00 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 17 00 BF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A5 [08:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:46:40]wFMCommunicate OK [08:46:40]requested_item fd.num is exist - process it [08:46:40]SAM_PROTO_GetFieldsCounters [08:46:40]wFMCommunicate request_size=4 [08:46:40]MH_SAM_APDU [08:46:40]CAPDU: 80 13 00 00 [08:46:40]Write to MH i2c: E2 08 00 C0 1C 80 13 00 00 00 00 00 00 58 [08:46:40]Write i2c OK [08:46:40]MH_I2C_Read... [08:46:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:40]Read from MH i2c: E2 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 62 00 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 62 00 C0 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 78 73 01 00 0E 04 04 00 47 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 F7 [08:46:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 78 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:40]wFMCommunicate OK [08:46:40]SAM_PROTO_GetFieldsCounters done [08:46:40]requested_item shift.num is exist - process it [08:46:40]requested_item shift.opened is exist - process it [08:46:40]req_shift_opened [08:46:40]FM_GetShiftState [08:46:40]SAM_PROTO_GetShiftState [08:46:40]wFMCommunicate request_size=4 [08:46:40]MH_SAM_APDU [08:46:40]CAPDU: 80 13 01 00 [08:46:40]Write to MH i2c: E2 08 00 C1 1C 80 13 01 00 00 00 00 00 5A [08:46:40]Write i2c OK [08:46:40]MH_I2C_Read... [08:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:40]Read from MH i2c: E2 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 0E 00 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 0E 00 C1 1C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CE [08:46:40]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:46:40]wFMCommunicate OK [08:46:40]SAM_PROTO_GetShiftState done [08:46:40]FM_GetShiftState done [08:46:40]req_shift_opened done [08:46:40]requested_item shift.open_date is exist - process it [08:46:40]req_shift_open_date [08:46:40]req_shift_open_date done [08:46:40]produce_requested_data done [08:46:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95096,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [08:46:40]process_action_free print_text [08:46:40]json_value_free [08:46:40]json_value_free done [08:46:40]process_json_proto returns [08:46:40]Send response to host [08:46:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95096,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [08:46:40]free response buf [08:46:40]execute_script done [08:46:40]execute_script returns [08:46:40]free content buf [08:46:40]Sock 9.Close socket [08:46:40]Sock 9.Thread stoped [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:12]accept exits with 8 [08:51:12]New connection [08:51:12]New thread 3066813796 created [08:51:12]Thread 3066957156 joined [08:51:12]Waiting for new connection... [08:51:12] Sock 8.Parse request [08:51:12]Sock 8.Check first char [08:51:12]Sock 8.First char is OK [08:51:12]request: POST /json_proto HTTP/1.0 [08:51:12]Method: POST [08:51:12]URL: /json_proto [08:51:12]Method is POST - this is cgi request [08:51:12]url: /json_proto [08:51:12]query_string will be loaded in cgi processing [08:51:12]execute_cgi json_proto POST (null) [08:51:12]execute_cgi path=json_proto method=POST [08:51:12]POST find Content-Length [08:51:12]Host: 172.17.62.67:8080 [08:51:12]Content-Length: 670 [08:51:12]Content-Type: application/json [08:51:12] [08:51:12]POST finish read [08:51:12]Found Content-Length = 670 [08:51:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 9.390, "sum" : 600.02, "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:51:12]execute_script... [08: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)196061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 9.390, "sum" : 600.02, "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:51:12]POST & json_proto [08:51:12]process_json_proto [08:51:12]json parsed OK: [08:51:12]protocol is kg_v1.0 [08:51:12]action value=close_receipt [08:51:12]process_action close_receipt [08:51:12]cmd_close_receipt [08:51:12]MH_GetDate [08:51:12]Write to MH i2c: F0 00 00 C2 1C CD [08:51:12]Write i2c OK [08:51:12]MH_I2C_Read... [08:51:12]Read from MH i2c: F0 [08:51:12]MH_I2C_Read... [08:51:12]Read from MH i2c: F0 05 00 [08:51:12]MH_I2C_Read... [08:51:12]Read from MH i2c: F0 05 00 C2 1C 00 85 17 F0 65 C3 [08:51:12]GetLastDocTimeStamp 1710232952 [08:51:12]current date 1710233477 [08:51:12]FM_GetShiftState [08:51:12]SAM_PROTO_GetShiftState [08:51:12]wFMCommunicate request_size=4 [08:51:12]MH_SAM_APDU [08:51:12]CAPDU: 80 13 01 00 [08:51:12]Write to MH i2c: E2 08 00 C3 1C 80 13 01 00 00 00 00 00 5C [08:51:12]Write i2c OK [08:51:12]MH_I2C_Read... [08:51:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:12]Read from MH i2c: E2 [08:51:12]MH_I2C_Read... [08:51:12]Read from MH i2c: E2 0E 00 [08:51:12]MH_I2C_Read... [08:51:12]Read from MH i2c: E2 0E 00 C3 1C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D0 [08:51:12]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:51:12]wFMCommunicate OK [08:51:12]SAM_PROTO_GetShiftState done [08:51:12]FM_GetShiftState done [08:51:12]opened in 1710201976 [08:51:12]opened+sec_in_day 1710288376 [08:51:12]quantity*price = 60002 [08:51:12]sum+1 = 60003 [08:51:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 27 12.03.2024 08:51 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95097 ФПД: 266567109283920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T085117&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95097&fm=266567109283920&tin=02508201610067®Number=0000000000090555&sum=60000 [08:51:13]StoreToDocumentArchive [08:51:13]shift 327 fd 95097 [08:51:13]save to /storage/0327/doc_00095097 [08:51:13]save last doc name /storage/0327/doc_00095097 to /storage/kkm_last_doc_name [08:51:13]save OK [08:51:13]Clear old archive folders... [08:51:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:51:13]tlvbuf is 01A63CC0 [08:51:13]SAM_PROTO_ClearQueue [08:51:13]wFMCommunicate request_size=4 [08:51:13]MH_SAM_APDU [08:51:13]CAPDU: 80 09 00 00 [08:51:13]Write to MH i2c: E2 08 00 D0 1C 80 09 00 00 00 00 00 00 5E [08:51:13]Write i2c OK [08:51:13]MH_I2C_Read... [08:51:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:14]Read from MH i2c: E2 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: E2 03 00 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: E2 03 00 D0 1C 00 90 00 60 [08:51:14]RAPDU: 90 00 [08:51:14]wFMCommunicate OK [08:51:14]SAM_PROTO_ClearQueue done [08:51:14]KKMCreateOFDPacket [08:51:14]OFDProtocolAddRootSTLVToBuf [08:51:14]FM_MakeSignedData [08:51:14]FM_MakeSignedData [08:51:14]SAM_PROTO_SignData [08:51:14]wFMCommunicate request_size=4 [08:51:14]MH_SAM_APDU [08:51:14]CAPDU: 80 0D 01 02 [08:51:14]Write to MH i2c: E2 08 00 D1 1C 80 0D 01 02 00 00 00 00 66 [08:51:14]Write i2c OK [08:51:14]MH_I2C_Read... [08:51:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:14]Read from MH i2c: E2 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: E2 03 00 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: E2 03 00 D1 1C 00 90 00 61 [08:51:14]RAPDU: 90 00 [08:51:14]wFMCommunicate OK [08:51:14]wFMCommunicate request_size=255 [08:51:14]MH_SAM_APDU [08:51: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 24 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 85 17 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 79 73 01 00 35 04 06 00 [08:51:14]Write to MH i2c: E2 02 01 D2 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 24 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 85 17 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 79 73 01 00 35 04 06 00 00 00 1B [08:51:14]Write i2c OK [08:51:14]MH_I2C_Read... [08:51:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:14]Read from MH i2c: E2 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: E2 03 00 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: E2 03 00 D2 1C 00 90 00 62 [08:51:14]RAPDU: 90 00 [08:51:14]wFMCommunicate OK [08:51:14]wFMCommunicate request_size=11 [08:51:14]MH_SAM_APDU [08:51:14]CAPDU: 80 0D 02 02 06 F2 70 FD DB 90 50 [08:51:14]Write to MH i2c: E2 0E 00 D3 1C 80 0D 02 02 06 00 F2 70 FD DB 90 50 00 00 8F [08:51:14]Write i2c OK [08:51:14]MH_I2C_Read... [08:51:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:14]Read from MH i2c: E2 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: E2 03 00 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: E2 03 00 D3 1C 00 90 00 63 [08:51:14]RAPDU: 90 00 [08:51:14]wFMCommunicate OK [08:51:14]wFMCommunicate request_size=4 [08:51:14]MH_SAM_APDU [08:51:14]CAPDU: 80 0D 03 02 [08:51:14]Write to MH i2c: E2 08 00 D4 1C 80 0D 03 02 00 00 00 00 6B [08:51:14]Write i2c OK [08:51:14]MH_I2C_Read... [08:51:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:14]Read from MH i2c: E2 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: E2 0B 00 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: E2 0B 00 D4 1C 00 8C 45 50 E1 56 32 DA 30 90 00 00 [08:51:14]RAPDU: 8C 45 50 E1 56 32 DA 30 90 00 [08:51:14]wFMCommunicate OK [08:51:14]SAM_PROTO_SignData done [08:51:14]FM_MakeSignedData done [08:51:14]CreateOFDProtocolMessage [08:51:14]wFMCommunicate request_size=4 [08:51:14]MH_SAM_APDU [08:51:14]CAPDU: 80 11 00 00 [08:51:14]Write to MH i2c: E2 08 00 D5 1C 80 11 00 00 00 00 00 00 6B [08:51:14]Write i2c OK [08:51:14]MH_I2C_Read... [08:51:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:14]Read from MH i2c: E2 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: E2 17 00 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: E2 17 00 D5 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BB [08:51:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:51:14]wFMCommunicate OK [08:51:14]CreateOFDProtocolMessage done [08:51:14]OFDSenderStorePacket 95097 [08:51:14]StoreOFDPacket docnum=95097 [08:51:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 56 80 08 01 F9 D7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 24 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 85 17 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 79 73 01 00 35 04 06 00 F2 70 FD DB 90 50 8C 45 50 E1 56 32 DA 30 [08:51:14]CheckFolder [08:51:14]dirname=/storage/ofd_packets [08:51:14]CheckFolder done [08:51:14]ProducePacketName [08:51:14]name=ofd_packets/00095097 [08:51:14]NVStorageSaveData ofd_packets/00095097 [08:51:14]File name is /storage/ofd_packets/00095097 [08:51:14]Write 302 bytes [08:51:14]NVStorageSaveData done [08:51:14]OFDSenderStorePacket done [08:51:14]KKMCreateOFDPacket done [08:51:14]NVStorageSaveData kkm_last_timestamp [08:51:14]File name is /storage/kkm_last_timestamp [08:51:14]Write 4 bytes [08:51:14]NVStorageSaveData done [08:51:14]ExternCall_PrintAddStr [08:51:14]wPrintStart [08:51:14]Write to MH i2c: 01 00 00 D6 1C F2 [08:51:14]Write i2c OK [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: 01 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: 01 07 00 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: 01 07 00 D6 1C 00 80 00 00 00 FF 0F 87 [08:51:14]RasterBufferAndPrint [08:51:14]line Счет N : (1)196061 [08:51:14]line ИНН: 02508201610067 [08:51:14]line Контрольно-Кассовый Чек [08:51:14]line ПРОДАЖА [08:51:14]line ТРК (МРК, ГНК) : 33 [08:51:14]line Товар: 2710124130 [08:51:14]line SUPER 92-К-5 [08:51:14]line 9.390 * 63.90 [08:51:14]line = 600.02 [08:51:14]line НДС 12% НСП 1% [08:51:14]line > о реализуемом товаре [08:51:14]line ОКРУГЛЕНИЕ: -0.02 [08:51:14]line ИТОГО: 600.00 [08:51:14]line Внесено: 600.00 [08:51:14]line СДАЧА: 0.00 [08:51:14]line НСП 1% : 5.31 [08:51:14]line НДС 12% : 63.72 [08:51:14]line Наличными: 600.00 [08:51:14]line Безнал.: 0.00 [08:51:14]line Место: АЗС № 6 "Партнер Нефть" [08:51:14]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:51:14]line СНО: Общий режим [08:51:14]line Чек 27 12.03.2024 08:51 [08:51:14]line Смена: 327 ФФД: 1.0 [08:51:14]line ЗНМ: 0300000009 [08:51:14]line РНМ: 0000000000090555 [08:51:14]line Версия ККМ: 001 [08:51:14]line ФМ: 0000000000874811 [08:51:14]line ФД: 95097 [08:51:14]line ФПД: 266567109283920 [08:51:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T085117&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95097&fm=266567109283920&tin=02508201610067®Number=0000000000090555&sum=60000 [08:51:14]OFD Sender: Processing packet 95097 [packets to send 30, broken 29] [08:51:14]ProducePacketName [08:51:14]name=ofd_packets/00095097 [08:51:14]OFD Sender: To server: pG, [08:51:14]CommunicateWithHost lk.salyk.kg:30040 [08:51:14]ConnectInit lk.salyk.kg [08:51:14]written 0, free lines is 4095 [08:51:15]Write to MH i2c: 01 00 00 01 1D 1E [08:51:15]Write i2c OK [08:51:15]MH_I2C_Read... [08:51:15]Read from MH i2c: 01 [08:51:15]MH_I2C_Read... [08:51:15]Read from MH i2c: 01 07 00 [08:51:15]MH_I2C_Read... [08:51:15]Read from MH i2c: 01 07 00 01 1D 00 80 00 00 00 53 0D 05 [08:51:15]RasterBufferAndPrint [08:51:15]line [08:51:15]line [08:51:15]line [08:51:15]line [08:51:15]line [08:51:15]written 0, free lines is 3417 [08:51:15]process_action close_receipt done [08:51:15]requested_data is exist [08:51:15]produce_requested_data [08:51:15]requested_item fm.sn is exist - process it [08:51:15]wFMCommunicate request_size=4 [08:51:15]MH_SAM_APDU [08:51:15]CAPDU: 80 11 00 00 [08:51:15]Write to MH i2c: E2 08 00 08 1D 80 11 00 00 00 00 00 00 9F [08:51:15]Write i2c OK [08:51:15]MH_I2C_Read... [08:51:15]Read from MH i2c: E2 [08:51:15]MH_I2C_Read... [08:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:15]Read from MH i2c: E2 17 00 [08:51:15]MH_I2C_Read... [08:51:15]Read from MH i2c: E2 17 00 08 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EF [08:51:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:51:15]wFMCommunicate OK [08:51:15]requested_item fd.num is exist - process it [08:51:15]SAM_PROTO_GetFieldsCounters [08:51:15]wFMCommunicate request_size=4 [08:51:15]MH_SAM_APDU [08:51:15]CAPDU: 80 13 00 00 [08:51:15]Write to MH i2c: E2 08 00 09 1D 80 13 00 00 00 00 00 00 A2 [08:51:15]Write i2c OK [08:51:15]MH_I2C_Read... [08:51:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:15]Read from MH i2c: E2 [08:51:15]MH_I2C_Read... [08:51:15]Read from MH i2c: E2 62 00 [08:51:15]MH_I2C_Read... [08:51:15]Read from MH i2c: E2 62 00 09 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 79 73 01 00 0E 04 04 00 47 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 45 [08:51:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 79 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:15]wFMCommunicate OK [08:51:15]SAM_PROTO_GetFieldsCounters done [08:51:15]requested_item shift.num is exist - process it [08:51:15]requested_item shift.opened is exist - process it [08:51:15]req_shift_opened [08:51:15]FM_GetShiftState [08:51:15]SAM_PROTO_GetShiftState [08:51:15]wFMCommunicate request_size=4 [08:51:15]MH_SAM_APDU [08:51:15]CAPDU: 80 13 01 00 [08:51:15]Write to MH i2c: E2 08 00 0A 1D 80 13 01 00 00 00 00 00 A4 [08:51:15]Write i2c OK [08:51:15]MH_I2C_Read... [08:51:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:15]Read from MH i2c: E2 [08:51:15]MH_I2C_Read... [08:51:15]Read from MH i2c: E2 0E 00 [08:51:15]MH_I2C_Read... [08:51:15]Read from MH i2c: E2 0E 00 0A 1D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 18 [08:51:15]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:51:15]wFMCommunicate OK [08:51:15]SAM_PROTO_GetShiftState done [08:51:15]FM_GetShiftState done [08:51:15]req_shift_opened done [08:51:15]requested_item shift.open_date is exist - process it [08:51:15]req_shift_open_date [08:51:15]req_shift_open_date done [08:51:15]produce_requested_data done [08:51:15]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95097,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [08:51:15]process_action_free close_receipt [08:51:15]json_value_free [08:51:15]json_value_free done [08:51:15]process_json_proto returns [08:51:15]Send response to host [08:51:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95097,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [08:51:15]free response buf [08:51:15]execute_script done [08:51:15]execute_script returns [08:51:15]free content buf [08:51:15]Sock 8.Close socket [08:51:15]Sock 8.Thread stoped [08:51:19]ConnectInit Can't take IP for lk.salyk.kg [08:51:19]CommunicateWithHost connect error [08:51:19]CommunicateWithHost err = -1 [08:51:19]OFD Sender: Server communicate error [08:51:24]OFD Sender: Processing packet 95097 [packets to send 30, broken 29] [08:51:24]ProducePacketName [08:51:24]name=ofd_packets/00095097 [08:51:24]OFD Sender: To server: pG, [08:51:24]CommunicateWithHost lk.salyk.kg:30040 [08:51:24]ConnectInit lk.salyk.kg [08:51:29]ConnectInit Can't take IP for lk.salyk.kg [08:51:29]CommunicateWithHost connect error [08:51:29]CommunicateWithHost err = -1 [08:51:29]OFD Sender: Server communicate error [08:51:34]OFD Sender: Processing packet 95097 [packets to send 30, broken 29] [08:51:34]ProducePacketName [08:51:34]name=ofd_packets/00095097 [08:51:34]OFD Sender: To server: pG, [08:51:34]CommunicateWithHost lk.salyk.kg:30040 [08:51:34]ConnectInit lk.salyk.kg [08:51:39]ConnectInit Can't take IP for lk.salyk.kg [08:51:39]CommunicateWithHost connect error [08:51:39]CommunicateWithHost err = -1 [08:51:39]OFD Sender: Server communicate error [08:51:44]OFD Sender: Processing packet 95097 [packets to send 30, broken 29] [08:51:44]ProducePacketName [08:51:44]name=ofd_packets/00095097 [08:51:44]OFD Sender: To server: pG, [08:51:44]CommunicateWithHost lk.salyk.kg:30040 [08:51:44]ConnectInit lk.salyk.kg [08:51:49]ConnectInit Can't take IP for lk.salyk.kg [08:51:49]CommunicateWithHost connect error [08:51:49]CommunicateWithHost err = -1 [08:51:49]OFD Sender: Server communicate error [08:51:54]OFD Sender: Processing packet 95097 [packets to send 30, broken 29] [08:51:54]ProducePacketName [08:51:54]name=ofd_packets/00095097 [08:51:54]OFD Sender: To server: pG, [08:51:54]CommunicateWithHost lk.salyk.kg:30040 [08:51:54]ConnectInit lk.salyk.kg [08:51:59]ConnectInit Can't take IP for lk.salyk.kg [08:51:59]CommunicateWithHost connect error [08:51:59]CommunicateWithHost err = -1 [08:51:59]OFD Sender: Server communicate error [08:52:04]OFD Sender: Processing packet 95097 [packets to send 30, broken 29] [08:52:04]ProducePacketName [08:52:04]name=ofd_packets/00095097 [08:52:04]OFD Sender: To server: pG, [08:52:04]CommunicateWithHost lk.salyk.kg:30040 [08:52:04]ConnectInit lk.salyk.kg [08:52:09]ConnectInit Can't take IP for lk.salyk.kg [08:52:09]CommunicateWithHost connect error [08:52:09]CommunicateWithHost err = -1 [08:52:09]OFD Sender: Server communicate error [08:52:14]OFD Sender: Processing packet 95097 [packets to send 30, broken 29] [08:52:14]ProducePacketName [08:52:14]name=ofd_packets/00095097 [08:52:14]OFD Sender: To server: pG, [08:52:14]CommunicateWithHost lk.salyk.kg:30040 [08:52:14]ConnectInit lk.salyk.kg [08:52:14]Connected sock=8 [08:52:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 56 80 08 01 F9 D7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 24 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 85 17 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 79 73 01 00 35 04 06 00 F2 70 FD DB 90 50 8C 45 50 E1 56 32 DA 30 [08:52:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 50 7D 47 00 61 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 79 73 01 00 F4 03 04 00 17 C3 EF 65 B6 04 01 00 00 19 8C EA 6D 69 A3 62 C6 [08:52:15]CommunicateWithHost err = 0 [08:52:15]CheckOFDResponse [08:52:15]1017 (14) - 77093643461234 [08:52:15]1041 (16) - 0000000000874811 [08:52:15]1040 (4) - 95097 [08:52:15]1012 (4) - 12.03.2024 02:51 [08:52:15]1206 (1) - 0 [08:52:15]OFD Sender: Remove packet 95097 [08:52:15]ProducePacketName [08:52:15]name=ofd_packets/00095097 [08:52:15]NVStorageDeleteData [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:36]accept exits with 10 [08:52:36]New connection [08:52:36]New thread 3066957156 created [08:52:36]Thread 3066813796 joined [08:52:36]Waiting for new connection... [08:52:36] Sock 10.Parse request [08:52:36]Sock 10.Check first char [08:52:36]Sock 10.First char is OK [08:52:36]request: POST /json_proto HTTP/1.0 [08:52:36]Method: POST [08:52:36]URL: /json_proto [08:52:36]Method is POST - this is cgi request [08:52:36]url: /json_proto [08:52:36]query_string will be loaded in cgi processing [08:52:36]execute_cgi json_proto POST (null) [08:52:36]execute_cgi path=json_proto method=POST [08:52:36]POST find Content-Length [08:52:36]Host: 172.17.62.67:8080 [08:52:36]Content-Length: 1198 [08:52:36]Content-Type: application/json [08:52:36] [08:52:36]POST finish read [08:52:36]Found Content-Length = 1198 [08:52:36]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196062\u000A12.03.2024 08:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3430907\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:36]execute_script... [08:52:36]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196062\u000A12.03.2024 08:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3430907\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:36]POST & json_proto [08:52:36]process_json_proto [08:52:36]json parsed OK: [08:52:36]protocol is kg_v1.0 [08:52:36]action value=print_text [08:52:36]process_action print_text [08:52:36]cmd_print_text [08:52:36]ExternCall_PrintAddStr [08:52:36]wPrintStart [08:52:36]Write to MH i2c: 01 00 00 0B 1D 28 [08:52:36]Write i2c OK [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: 01 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: 01 07 00 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: 01 07 00 0B 1D 00 80 00 00 00 FF 0F BD [08:52:36]RasterBufferAndPrint [08:52:36]line *****ТОВАРНЫЙ ЧЕК***** [08:52:36]line АЗС 6 [08:52:36]line Партнер нефть [08:52:36]line 02508201610067 [08:52:36]line Кассир : Мыктыбекова И. [08:52:36]line Счет N : (1)196062 [08:52:36]line 12.03.2024 08:46 [08:52:36]line ПРОДАЖА [08:52:36]line ТРК (МРК, ГНК): 61 [08:52:36]line Вид ГСМ : 2710194210 [08:52:36]line ДТ-К-5 [08:52:36]line 20.000 x 70.90 [08:52:36]line ИТОГ: 1418.00 [08:52:36]line Тип оплаты: Талоны: Партнер нефть [08:52:36]line 3430907 [08:52:36]line ______________________ [08:52:36]line (подпись) [08:52:36]written 0, free lines is 4095 [08:52:36]Write to MH i2c: 01 00 00 1F 1D 3C [08:52:36]Write i2c OK [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: 01 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: 01 07 00 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: 01 07 00 1F 1D 00 80 00 00 00 63 0E 34 [08:52:36]RasterBufferAndPrint [08:52:36]line [08:52:36]line [08:52:36]line [08:52:36]line [08:52:36]line [08:52:36]written 0, free lines is 3687 [08:52:36]process_action print_text done [08:52:36]requested_data is exist [08:52:36]produce_requested_data [08:52:36]requested_item fm.sn is exist - process it [08:52:36]wFMCommunicate request_size=4 [08:52:36]MH_SAM_APDU [08:52:36]CAPDU: 80 11 00 00 [08:52:36]Write to MH i2c: E2 08 00 26 1D 80 11 00 00 00 00 00 00 BD [08:52:36]Write i2c OK [08:52:36]MH_I2C_Read... [08:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:36]Read from MH i2c: E2 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: E2 17 00 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: E2 17 00 26 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0D [08:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:52:36]wFMCommunicate OK [08:52:36]requested_item fd.num is exist - process it [08:52:36]SAM_PROTO_GetFieldsCounters [08:52:36]wFMCommunicate request_size=4 [08:52:36]MH_SAM_APDU [08:52:36]CAPDU: 80 13 00 00 [08:52:36]Write to MH i2c: E2 08 00 27 1D 80 13 00 00 00 00 00 00 C0 [08:52:36]Write i2c OK [08:52:36]MH_I2C_Read... [08:52:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:37]Read from MH i2c: E2 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: E2 62 00 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: E2 62 00 27 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 79 73 01 00 0E 04 04 00 47 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 63 [08:52:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 79 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:37]wFMCommunicate OK [08:52:37]SAM_PROTO_GetFieldsCounters done [08:52:37]requested_item shift.num is exist - process it [08:52:37]requested_item shift.opened is exist - process it [08:52:37]req_shift_opened [08:52:37]FM_GetShiftState [08:52:37]SAM_PROTO_GetShiftState [08:52:37]wFMCommunicate request_size=4 [08:52:37]MH_SAM_APDU [08:52:37]CAPDU: 80 13 01 00 [08:52:37]Write to MH i2c: E2 08 00 28 1D 80 13 01 00 00 00 00 00 C2 [08:52:37]Write i2c OK [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: E2 [08:52:37]MH_I2C_Read... [08:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:37]Read from MH i2c: E2 0E 00 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: E2 0E 00 28 1D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 36 [08:52:37]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:52:37]wFMCommunicate OK [08:52:37]SAM_PROTO_GetShiftState done [08:52:37]FM_GetShiftState done [08:52:37]req_shift_opened done [08:52:37]requested_item shift.open_date is exist - process it [08:52:37]req_shift_open_date [08:52:37]req_shift_open_date done [08:52:37]produce_requested_data done [08:52:37]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95097,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [08:52:37]process_action_free print_text [08:52:37]json_value_free [08:52:37]json_value_free done [08:52:37]process_json_proto returns [08:52:37]Send response to host [08:52:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95097,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [08:52:37]free response buf [08:52:37]execute_script done [08:52:37]execute_script returns [08:52:37]free content buf [08:52:37]Sock 10.Close socket [08:52:37]Sock 10.Thread stoped [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:54]accept exits with 8 [08:57:54]New connection [08:57:54]New thread 3066813796 created [08:57:54]Thread 3066957156 joined [08:57:54]Waiting for new connection... [08:57:54] Sock 8.Parse request [08:57:54]Sock 8.Check first char [08:57:54]Sock 8.First char is OK [08:57:54]request: POST /json_proto HTTP/1.0 [08:57:54]Method: POST [08:57:54]URL: /json_proto [08:57:54]Method is POST - this is cgi request [08:57:54]url: /json_proto [08:57:54]query_string will be loaded in cgi processing [08:57:54]execute_cgi json_proto POST (null) [08:57:54]execute_cgi path=json_proto method=POST [08:57:54]POST find Content-Length [08:57:54]Host: 172.17.62.67:8080 [08:57:54]Content-Length: 682 [08:57:54]Content-Type: application/json [08:57:54] [08:57:54]POST finish read [08:57:54]Found Content-Length = 682 [08:57:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:57:54]execute_script... [08:57: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)196063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:57:54]POST & json_proto [08:57:54]process_json_proto [08:57:54]json parsed OK: [08:57:54]protocol is kg_v1.0 [08:57:54]action value=close_receipt [08:57:54]process_action close_receipt [08:57:54]cmd_close_receipt [08:57:54]MH_GetDate [08:57:54]Write to MH i2c: F0 00 00 29 1D 35 [08:57:54]Write i2c OK [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: F0 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: F0 05 00 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: F0 05 00 29 1D 00 16 19 F0 65 BE [08:57:54]GetLastDocTimeStamp 1710233477 [08:57:54]current date 1710233878 [08:57:54]FM_GetShiftState [08:57:54]SAM_PROTO_GetShiftState [08:57:54]wFMCommunicate request_size=4 [08:57:54]MH_SAM_APDU [08:57:54]CAPDU: 80 13 01 00 [08:57:54]Write to MH i2c: E2 08 00 2A 1D 80 13 01 00 00 00 00 00 C4 [08:57:54]Write i2c OK [08:57:54]MH_I2C_Read... [08:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:54]Read from MH i2c: E2 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: E2 0E 00 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: E2 0E 00 2A 1D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 38 [08:57:54]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:57:54]wFMCommunicate OK [08:57:54]SAM_PROTO_GetShiftState done [08:57:54]FM_GetShiftState done [08:57:54]opened in 1710201976 [08:57:54]opened+sec_in_day 1710288376 [08:57:54]quantity*price = 100011 [08:57:54]sum+1 = 100012 [08:57:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 28 12.03.2024 08:57 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95098 ФПД: 4103931873517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T085758&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95098&fm=4103931873517&tin=02508201610067®Number=0000000000090555&sum=100000 [08:57:55]StoreToDocumentArchive [08:57:55]shift 327 fd 95098 [08:57:55]save to /storage/0327/doc_00095098 [08:57:55]save last doc name /storage/0327/doc_00095098 to /storage/kkm_last_doc_name [08:57:55]save OK [08:57:55]Clear old archive folders... [08:57:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:55]tlvbuf is 01A4EEB0 [08:57:55]SAM_PROTO_ClearQueue [08:57:55]wFMCommunicate request_size=4 [08:57:55]MH_SAM_APDU [08:57:55]CAPDU: 80 09 00 00 [08:57:55]Write to MH i2c: E2 08 00 37 1D 80 09 00 00 00 00 00 00 C6 [08:57:55]Write i2c OK [08:57:55]MH_I2C_Read... [08:57:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:55]Read from MH i2c: E2 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: E2 03 00 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: E2 03 00 37 1D 00 90 00 C8 [08:57:55]RAPDU: 90 00 [08:57:55]wFMCommunicate OK [08:57:55]SAM_PROTO_ClearQueue done [08:57:55]KKMCreateOFDPacket [08:57:55]OFDProtocolAddRootSTLVToBuf [08:57:55]FM_MakeSignedData [08:57:55]FM_MakeSignedData [08:57:55]SAM_PROTO_SignData [08:57:55]wFMCommunicate request_size=4 [08:57:55]MH_SAM_APDU [08:57:55]CAPDU: 80 0D 01 02 [08:57:55]Write to MH i2c: E2 08 00 38 1D 80 0D 01 02 00 00 00 00 CE [08:57:55]Write i2c OK [08:57:55]MH_I2C_Read... [08:57:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:55]Read from MH i2c: E2 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: E2 03 00 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: E2 03 00 38 1D 00 90 00 C9 [08:57:55]RAPDU: 90 00 [08:57:55]wFMCommunicate OK [08:57:55]wFMCommunicate request_size=255 [08:57:55]MH_SAM_APDU [08:57:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 16 19 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7A 73 01 00 35 04 06 00 03 [08:57:55]Write to MH i2c: E2 02 01 39 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 16 19 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7A 73 01 00 35 04 06 00 03 00 00 4F [08:57:55]Write i2c OK [08:57:55]MH_I2C_Read... [08:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:55]Read from MH i2c: E2 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: E2 03 00 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: E2 03 00 39 1D 00 90 00 CA [08:57:55]RAPDU: 90 00 [08:57:55]wFMCommunicate OK [08:57:55]wFMCommunicate request_size=10 [08:57:55]MH_SAM_APDU [08:57:55]CAPDU: 80 0D 02 02 05 BB 85 66 C8 ED [08:57:55]Write to MH i2c: E2 0D 00 3A 1D 80 0D 02 02 05 00 BB 85 66 C8 ED 00 00 36 [08:57:55]Write i2c OK [08:57:55]MH_I2C_Read... [08:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:55]Read from MH i2c: E2 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: E2 03 00 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: E2 03 00 3A 1D 00 90 00 CB [08:57:55]RAPDU: 90 00 [08:57:55]wFMCommunicate OK [08:57:55]wFMCommunicate request_size=4 [08:57:55]MH_SAM_APDU [08:57:55]CAPDU: 80 0D 03 02 [08:57:55]Write to MH i2c: E2 08 00 3B 1D 80 0D 03 02 00 00 00 00 D3 [08:57:55]Write i2c OK [08:57:55]MH_I2C_Read... [08:57:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:55]Read from MH i2c: E2 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: E2 0B 00 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: E2 0B 00 3B 1D 00 D1 94 77 36 48 85 B4 56 90 00 BD [08:57:55]RAPDU: D1 94 77 36 48 85 B4 56 90 00 [08:57:55]wFMCommunicate OK [08:57:55]SAM_PROTO_SignData done [08:57:55]FM_MakeSignedData done [08:57:55]CreateOFDProtocolMessage [08:57:55]wFMCommunicate request_size=4 [08:57:55]MH_SAM_APDU [08:57:55]CAPDU: 80 11 00 00 [08:57:55]Write to MH i2c: E2 08 00 3C 1D 80 11 00 00 00 00 00 00 D3 [08:57:55]Write i2c OK [08:57:55]MH_I2C_Read... [08:57:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:55]Read from MH i2c: E2 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: E2 17 00 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: E2 17 00 3C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 23 [08:57:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:57:55]wFMCommunicate OK [08:57:55]CreateOFDProtocolMessage done [08:57:55]OFDSenderStorePacket 95098 [08:57:55]StoreOFDPacket docnum=95098 [08:57:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D2 8B 07 01 D0 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 16 19 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7A 73 01 00 35 04 06 00 03 BB 85 66 C8 ED D1 94 77 36 48 85 B4 56 [08:57:55]CheckFolder [08:57:55]dirname=/storage/ofd_packets [08:57:55]CheckFolder done [08:57:55]ProducePacketName [08:57:55]name=ofd_packets/00095098 [08:57:55]NVStorageSaveData ofd_packets/00095098 [08:57:55]File name is /storage/ofd_packets/00095098 [08:57:55]Write 301 bytes [08:57:55]NVStorageSaveData done [08:57:55]OFDSenderStorePacket done [08:57:55]KKMCreateOFDPacket done [08:57:55]NVStorageSaveData kkm_last_timestamp [08:57:55]File name is /storage/kkm_last_timestamp [08:57:55]Write 4 bytes [08:57:55]NVStorageSaveData done [08:57:55]ExternCall_PrintAddStr [08:57:55]wPrintStart [08:57:55]Write to MH i2c: 01 00 00 3D 1D 5A [08:57:55]Write i2c OK [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: 01 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: 01 07 00 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: 01 07 00 3D 1D 00 80 00 00 00 FF 0F EF [08:57:55]RasterBufferAndPrint [08:57:55]line Счет N : (1)196063 [08:57:55]line ИНН: 02508201610067 [08:57:55]line Контрольно-Кассовый Чек [08:57:55]line ПРОДАЖА [08:57:55]line ТРК (МРК, ГНК) : 22 [08:57:55]line Товар: 2710124130 [08:57:55]line Аи-92-К-5 [08:57:55]line 15.900 * 62.90 [08:57:55]line = 1000.11 [08:57:55]line НДС 12% НСП 1% [08:57:55]line > о реализуемом товаре [08:57:55]line ОКРУГЛЕНИЕ: -0.11 [08:57:55]line ИТОГО: 1000.00 [08:57:55]line Внесено: 1000.00 [08:57:55]line СДАЧА: 0.00 [08:57:55]line НСП 1% : 8.85 [08:57:55]line НДС 12% : 106.21 [08:57:55]line Наличными: 1000.00 [08:57:55]line Безнал.: 0.00 [08:57:55]line Место: АЗС № 6 "Партнер Нефть" [08:57:55]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:57:55]line СНО: Общий режим [08:57:55]line Чек 28 12.03.2024 08:57 [08:57:55]line Смена: 327 ФФД: 1.0 [08:57:55]line ЗНМ: 0300000009 [08:57:55]line РНМ: 0000000000090555 [08:57:55]line Версия ККМ: 001 [08:57:55]line ФМ: 0000000000874811 [08:57:55]line ФД: 95098 [08:57:55]line ФПД: 4103931873517 [08:57:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T085758&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95098&fm=4103931873517&tin=02508201610067®Number=0000000000090555&sum=100000 [08:57:56]OFD Sender: Processing packet 95098 [packets to send 30, broken 29] [08:57:56]ProducePacketName [08:57:56]name=ofd_packets/00095098 [08:57:56]OFD Sender: To server: pG, [08:57:56]CommunicateWithHost lk.salyk.kg:30040 [08:57:56]ConnectInit lk.salyk.kg [08:57:56]written 0, free lines is 4095 [08:57:56]Connected sock=10 [08:57:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D2 8B 07 01 D0 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 16 19 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7A 73 01 00 35 04 06 00 03 BB 85 66 C8 ED D1 94 77 36 48 85 B4 56 [08:57:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 08 0B 47 00 88 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7A 73 01 00 F4 03 04 00 6D C4 EF 65 B6 04 01 00 00 A0 83 A8 1E 5F 41 0F B6 [08:57:56]CommunicateWithHost err = 0 [08:57:56]CheckOFDResponse [08:57:56]1017 (14) - 77093643461234 [08:57:56]1041 (16) - 0000000000874811 [08:57:56]1040 (4) - 95098 [08:57:56]1012 (4) - 12.03.2024 02:56 [08:57:56]1206 (1) - 0 [08:57:56]OFD Sender: Remove packet 95098 [08:57:56]ProducePacketName [08:57:56]name=ofd_packets/00095098 [08:57:56]NVStorageDeleteData [08:57:56]Write to MH i2c: 01 00 00 68 1D 85 [08:57:56]Write i2c OK [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: 01 [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: 01 07 00 [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: 01 07 00 68 1D 00 80 00 00 00 4C 0D 65 [08:57:56]RasterBufferAndPrint [08:57:56]line [08:57:56]line [08:57:56]line [08:57:56]line [08:57:56]line [08:57:56]written 0, free lines is 3410 [08:57:56]process_action close_receipt done [08:57:56]requested_data is exist [08:57:56]produce_requested_data [08:57:56]requested_item fm.sn is exist - process it [08:57:56]wFMCommunicate request_size=4 [08:57:56]MH_SAM_APDU [08:57:56]CAPDU: 80 11 00 00 [08:57:56]Write to MH i2c: E2 08 00 6F 1D 80 11 00 00 00 00 00 00 06 [08:57:56]Write i2c OK [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: E2 [08:57:56]MH_I2C_Read... [08:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:56]Read from MH i2c: E2 17 00 [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: E2 17 00 6F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 56 [08:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:57:56]wFMCommunicate OK [08:57:56]requested_item fd.num is exist - process it [08:57:56]SAM_PROTO_GetFieldsCounters [08:57:56]wFMCommunicate request_size=4 [08:57:56]MH_SAM_APDU [08:57:56]CAPDU: 80 13 00 00 [08:57:56]Write to MH i2c: E2 08 00 70 1D 80 13 00 00 00 00 00 00 09 [08:57:56]Write i2c OK [08:57:56]MH_I2C_Read... [08:57:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:56]Read from MH i2c: E2 [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: E2 62 00 [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: E2 62 00 70 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7A 73 01 00 0E 04 04 00 47 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 B0 [08:57:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7A 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:56]wFMCommunicate OK [08:57:56]SAM_PROTO_GetFieldsCounters done [08:57:56]requested_item shift.num is exist - process it [08:57:56]requested_item shift.opened is exist - process it [08:57:56]req_shift_opened [08:57:56]FM_GetShiftState [08:57:56]SAM_PROTO_GetShiftState [08:57:56]wFMCommunicate request_size=4 [08:57:56]MH_SAM_APDU [08:57:56]CAPDU: 80 13 01 00 [08:57:56]Write to MH i2c: E2 08 00 71 1D 80 13 01 00 00 00 00 00 0B [08:57:56]Write i2c OK [08:57:56]MH_I2C_Read... [08:57:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:56]OFD Sender: No OFD packet to send [08:57:56]Read from MH i2c: E2 [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: E2 0E 00 [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: E2 0E 00 71 1D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 7F [08:57:56]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [08:57:56]wFMCommunicate OK [08:57:56]SAM_PROTO_GetShiftState done [08:57:56]FM_GetShiftState done [08:57:56]req_shift_opened done [08:57:56]requested_item shift.open_date is exist - process it [08:57:56]req_shift_open_date [08:57:56]req_shift_open_date done [08:57:56]produce_requested_data done [08:57:56]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95098,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [08:57:56]process_action_free close_receipt [08:57:56]json_value_free [08:57:56]json_value_free done [08:57:56]process_json_proto returns [08:57:56]Send response to host [08:57:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95098,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [08:57:56]free response buf [08:57:56]execute_script done [08:57:56]execute_script returns [08:57:56]free content buf [08:57:56]Sock 8.Close socket [08:57:56]Sock 8.Thread stoped [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00: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:42]accept exits with 9 [09:02:42]New connection [09:02:42]New thread 3066957156 created [09:02:42]Thread 3066813796 joined [09:02:42]Waiting for new connection... [09:02:42] Sock 9.Parse request [09:02:42]Sock 9.Check first char [09:02:42]Sock 9.First char is OK [09:02:42]request: POST /json_proto HTTP/1.0 [09:02:42]Method: POST [09:02:42]URL: /json_proto [09:02:42]Method is POST - this is cgi request [09:02:42]url: /json_proto [09:02:42]query_string will be loaded in cgi processing [09:02:42]execute_cgi json_proto POST (null) [09:02:42]execute_cgi path=json_proto method=POST [09:02:42]POST find Content-Length [09:02:42]Host: 172.17.62.67:8080 [09:02:42]Content-Length: 682 [09:02:42]Content-Type: application/json [09:02:42] [09:02:42]POST finish read [09:02:42]Found Content-Length = 682 [09:02:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "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:02:42]execute_script... [09:02: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)196064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "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:02:42]POST & json_proto [09:02:42]process_json_proto [09:02:42]json parsed OK: [09:02:42]protocol is kg_v1.0 [09:02:42]action value=close_receipt [09:02:42]process_action close_receipt [09:02:42]cmd_close_receipt [09:02:42]MH_GetDate [09:02:42]Write to MH i2c: F0 00 00 72 1D 7E [09:02:42]Write i2c OK [09:02:42]MH_I2C_Read... [09:02:42]Read from MH i2c: F0 [09:02:42]MH_I2C_Read... [09:02:42]Read from MH i2c: F0 05 00 [09:02:42]MH_I2C_Read... [09:02:42]Read from MH i2c: F0 05 00 72 1D 00 36 1A F0 65 28 [09:02:42]GetLastDocTimeStamp 1710233878 [09:02:42]current date 1710234166 [09:02:42]FM_GetShiftState [09:02:42]SAM_PROTO_GetShiftState [09:02:42]wFMCommunicate request_size=4 [09:02:42]MH_SAM_APDU [09:02:42]CAPDU: 80 13 01 00 [09:02:42]Write to MH i2c: E2 08 00 73 1D 80 13 01 00 00 00 00 00 0D [09:02:42]Write i2c OK [09:02:42]MH_I2C_Read... [09:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:42]Read from MH i2c: E2 [09:02:42]MH_I2C_Read... [09:02:42]Read from MH i2c: E2 0E 00 [09:02:42]MH_I2C_Read... [09:02:42]Read from MH i2c: E2 0E 00 73 1D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 81 [09:02:42]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:02:42]wFMCommunicate OK [09:02:42]SAM_PROTO_GetShiftState done [09:02:42]FM_GetShiftState done [09:02:42]opened in 1710201976 [09:02:42]opened+sec_in_day 1710288376 [09:02:42]quantity*price = 100010 [09:02:42]sum+1 = 100012 [09:02:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 29 12.03.2024 09:02 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95099 ФПД: 112067782950673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T090246&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95099&fm=112067782950673&tin=02508201610067®Number=0000000000090555&sum=100000 [09:02:43]StoreToDocumentArchive [09:02:43]shift 327 fd 95099 [09:02:43]save to /storage/0327/doc_00095099 [09:02:43]save last doc name /storage/0327/doc_00095099 to /storage/kkm_last_doc_name [09:02:43]save OK [09:02:43]Clear old archive folders... [09:02:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:43]tlvbuf is 01A05960 [09:02:43]SAM_PROTO_ClearQueue [09:02:43]wFMCommunicate request_size=4 [09:02:43]MH_SAM_APDU [09:02:43]CAPDU: 80 09 00 00 [09:02:43]Write to MH i2c: E2 08 00 80 1D 80 09 00 00 00 00 00 00 0F [09:02:43]Write i2c OK [09:02:43]MH_I2C_Read... [09:02:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:43]Read from MH i2c: E2 [09:02:43]MH_I2C_Read... [09:02:43]Read from MH i2c: E2 03 00 [09:02:43]MH_I2C_Read... [09:02:43]Read from MH i2c: E2 03 00 80 1D 00 90 00 11 [09:02:43]RAPDU: 90 00 [09:02:43]wFMCommunicate OK [09:02:43]SAM_PROTO_ClearQueue done [09:02:43]KKMCreateOFDPacket [09:02:43]OFDProtocolAddRootSTLVToBuf [09:02:43]FM_MakeSignedData [09:02:43]FM_MakeSignedData [09:02:43]SAM_PROTO_SignData [09:02:43]wFMCommunicate request_size=4 [09:02:43]MH_SAM_APDU [09:02:43]CAPDU: 80 0D 01 02 [09:02:43]Write to MH i2c: E2 08 00 81 1D 80 0D 01 02 00 00 00 00 17 [09:02:43]Write i2c OK [09:02:43]MH_I2C_Read... [09:02:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:43]Read from MH i2c: E2 [09:02:43]MH_I2C_Read... [09:02:43]Read from MH i2c: E2 03 00 [09:02:43]MH_I2C_Read... [09:02:43]Read from MH i2c: E2 03 00 81 1D 00 90 00 12 [09:02:43]RAPDU: 90 00 [09:02:43]wFMCommunicate OK [09:02:43]wFMCommunicate request_size=255 [09:02:43]MH_SAM_APDU [09:02:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 36 1A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7B 73 01 00 35 04 06 00 65 [09:02:43]Write to MH i2c: E2 02 01 82 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 36 1A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7B 73 01 00 35 04 06 00 65 00 00 CC [09:02:43]Write i2c OK [09:02:43]MH_I2C_Read... [09:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:43]Read from MH i2c: E2 [09:02:43]MH_I2C_Read... [09:02:43]Read from MH i2c: E2 03 00 [09:02:43]MH_I2C_Read... [09:02:43]Read from MH i2c: E2 03 00 82 1D 00 90 00 13 [09:02:43]RAPDU: 90 00 [09:02:43]wFMCommunicate OK [09:02:43]wFMCommunicate request_size=10 [09:02:43]MH_SAM_APDU [09:02:43]CAPDU: 80 0D 02 02 05 EC D0 64 BF 11 [09:02:43]Write to MH i2c: E2 0D 00 83 1D 80 0D 02 02 05 00 EC D0 64 BF 11 00 00 14 [09:02:43]Write i2c OK [09:02:43]MH_I2C_Read... [09:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:43]Read from MH i2c: E2 [09:02:43]MH_I2C_Read... [09:02:43]Read from MH i2c: E2 03 00 [09:02:43]MH_I2C_Read... [09:02:43]Read from MH i2c: E2 03 00 83 1D 00 90 00 14 [09:02:43]RAPDU: 90 00 [09:02:43]wFMCommunicate OK [09:02:43]wFMCommunicate request_size=4 [09:02:43]MH_SAM_APDU [09:02:43]CAPDU: 80 0D 03 02 [09:02:43]Write to MH i2c: E2 08 00 84 1D 80 0D 03 02 00 00 00 00 1C [09:02:43]Write i2c OK [09:02:43]MH_I2C_Read... [09:02:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:43]Read from MH i2c: E2 [09:02:43]MH_I2C_Read... [09:02:43]Read from MH i2c: E2 0B 00 [09:02:43]MH_I2C_Read... [09:02:43]Read from MH i2c: E2 0B 00 84 1D 00 3A A9 88 AC 70 73 3D 6E 90 00 C2 [09:02:43]RAPDU: 3A A9 88 AC 70 73 3D 6E 90 00 [09:02:43]wFMCommunicate OK [09:02:43]SAM_PROTO_SignData done [09:02:43]FM_MakeSignedData done [09:02:43]CreateOFDProtocolMessage [09:02:43]wFMCommunicate request_size=4 [09:02:43]MH_SAM_APDU [09:02:43]CAPDU: 80 11 00 00 [09:02:43]Write to MH i2c: E2 08 00 85 1D 80 11 00 00 00 00 00 00 1C [09:02:43]Write i2c OK [09:02:43]MH_I2C_Read... [09:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:43]Read from MH i2c: E2 [09:02:43]MH_I2C_Read... [09:02:43]Read from MH i2c: E2 17 00 [09:02:43]MH_I2C_Read... [09:02:43]Read from MH i2c: E2 17 00 85 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6C [09:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:02:43]wFMCommunicate OK [09:02:43]CreateOFDProtocolMessage done [09:02:43]OFDSenderStorePacket 95099 [09:02:43]StoreOFDPacket docnum=95099 [09:02:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 62 B6 07 01 3F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 36 1A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7B 73 01 00 35 04 06 00 65 EC D0 64 BF 11 3A A9 88 AC 70 73 3D 6E [09:02:43]CheckFolder [09:02:43]dirname=/storage/ofd_packets [09:02:43]CheckFolder done [09:02:43]ProducePacketName [09:02:43]name=ofd_packets/00095099 [09:02:43]NVStorageSaveData ofd_packets/00095099 [09:02:43]File name is /storage/ofd_packets/00095099 [09:02:43]Write 301 bytes [09:02:43]NVStorageSaveData done [09:02:43]OFDSenderStorePacket done [09:02:43]KKMCreateOFDPacket done [09:02:43]NVStorageSaveData kkm_last_timestamp [09:02:43]File name is /storage/kkm_last_timestamp [09:02:43]Write 4 bytes [09:02:43]NVStorageSaveData done [09:02:43]OFD Sender: Processing packet 95099 [packets to send 30, broken 29] [09:02:43]ProducePacketName [09:02:43]name=ofd_packets/00095099 [09:02:43]OFD Sender: To server: pG, [09:02:43]CommunicateWithHost lk.salyk.kg:30040 [09:02:43]ConnectInit lk.salyk.kg [09:02:43]ExternCall_PrintAddStr [09:02:43]wPrintStart [09:02:43]Write to MH i2c: 01 00 00 86 1D A3 [09:02:43]Write i2c OK [09:02:43]MH_I2C_Read... [09:02:43]Read from MH i2c: 01 [09:02:43]MH_I2C_Read... [09:02:43]Read from MH i2c: 01 07 00 [09:02:43]MH_I2C_Read... [09:02:43]Read from MH i2c: 01 07 00 86 1D 00 80 00 00 00 FF 0F 38 [09:02:43]RasterBufferAndPrint [09:02:43]line Счет N : (1)196064 [09:02:43]line ИНН: 02508201610067 [09:02:43]line Контрольно-Кассовый Чек [09:02:43]line ПРОДАЖА [09:02:43]line ТРК (МРК, ГНК) : 31 [09:02:43]line Товар: 2710124500 [09:02:43]line Аи-95-К-5 [09:02:43]line 14.390 * 69.50 [09:02:43]line = 1000.11 [09:02:43]line НДС 12% НСП 1% [09:02:43]line > о реализуемом товаре [09:02:43]line ОКРУГЛЕНИЕ: -0.11 [09:02:43]line ИТОГО: 1000.00 [09:02:43]line Внесено: 1000.00 [09:02:43]line СДАЧА: 0.00 [09:02:43]line НСП 1% : 8.85 [09:02:43]line НДС 12% : 106.21 [09:02:43]line Наличными: 1000.00 [09:02:43]line Безнал.: 0.00 [09:02:43]line Место: АЗС № 6 "Партнер Нефть" [09:02:43]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:02:43]line СНО: Общий режим [09:02:43]line Чек 29 12.03.2024 09:02 [09:02:43]line Смена: 327 ФФД: 1.0 [09:02:43]line ЗНМ: 0300000009 [09:02:43]line РНМ: 0000000000090555 [09:02:43]line Версия ККМ: 001 [09:02:43]line ФМ: 0000000000874811 [09:02:43]line ФД: 95099 [09:02:43]line ФПД: 112067782950673 [09:02:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T090246&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95099&fm=112067782950673&tin=02508201610067®Number=0000000000090555&sum=100000 [09:02:44]Connected sock=11 [09:02:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 62 B6 07 01 3F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 36 1A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7B 73 01 00 35 04 06 00 65 EC D0 64 BF 11 3A A9 88 AC 70 73 3D 6E [09:02:44]written 0, free lines is 4095 [09:02:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 09 B8 47 00 15 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7B 73 01 00 F4 03 04 00 8D C5 EF 65 B6 04 01 00 00 1D B4 55 DC 4A 3F 41 46 [09:02:44]CommunicateWithHost err = 0 [09:02:44]CheckOFDResponse [09:02:44]1017 (14) - 77093643461234 [09:02:44]1041 (16) - 0000000000874811 [09:02:44]1040 (4) - 95099 [09:02:44]1012 (4) - 12.03.2024 03:01 [09:02:44]1206 (1) - 0 [09:02:44]OFD Sender: Remove packet 95099 [09:02:44]ProducePacketName [09:02:44]name=ofd_packets/00095099 [09:02:44]NVStorageDeleteData [09:02:44]Write to MH i2c: 01 00 00 B1 1D CE [09:02:44]Write i2c OK [09:02:44]MH_I2C_Read... [09:02:44]Read from MH i2c: 01 [09:02:44]MH_I2C_Read... [09:02:44]Read from MH i2c: 01 07 00 [09:02:44]MH_I2C_Read... [09:02:44]Read from MH i2c: 01 07 00 B1 1D 00 80 00 00 00 52 0D B4 [09:02:44]RasterBufferAndPrint [09:02:44]line [09:02:44]line [09:02:44]line [09:02:44]line [09:02:44]line [09:02:44]written 0, free lines is 3416 [09:02:44]process_action close_receipt done [09:02:44]requested_data is exist [09:02:44]produce_requested_data [09:02:44]requested_item fm.sn is exist - process it [09:02:44]wFMCommunicate request_size=4 [09:02:44]MH_SAM_APDU [09:02:44]CAPDU: 80 11 00 00 [09:02:44]Write to MH i2c: E2 08 00 B8 1D 80 11 00 00 00 00 00 00 4F [09:02:44]Write i2c OK [09:02:44]MH_I2C_Read... [09:02:44]Read from MH i2c: E2 [09:02:44]MH_I2C_Read... [09:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:44]Read from MH i2c: E2 17 00 [09:02:44]MH_I2C_Read... [09:02:44]Read from MH i2c: E2 17 00 B8 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9F [09:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:02:44]wFMCommunicate OK [09:02:44]requested_item fd.num is exist - process it [09:02:44]SAM_PROTO_GetFieldsCounters [09:02:44]wFMCommunicate request_size=4 [09:02:44]MH_SAM_APDU [09:02:44]CAPDU: 80 13 00 00 [09:02:44]Write to MH i2c: E2 08 00 B9 1D 80 13 00 00 00 00 00 00 52 [09:02:44]Write i2c OK [09:02:44]MH_I2C_Read... [09:02:44]OFD Sender: No OFD packet to send [09:02:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:44]Read from MH i2c: E2 [09:02:44]MH_I2C_Read... [09:02:44]Read from MH i2c: E2 62 00 [09:02:44]MH_I2C_Read... [09:02:44]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 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7B 73 01 00 0E 04 04 00 47 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 FD [09:02:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7B 73 01 00 0E 04 04 00 47 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:02:44]wFMCommunicate OK [09:02:44]SAM_PROTO_GetFieldsCounters done [09:02:44]requested_item shift.num is exist - process it [09:02:44]requested_item shift.opened is exist - process it [09:02:44]req_shift_opened [09:02:44]FM_GetShiftState [09:02:44]SAM_PROTO_GetShiftState [09:02:44]wFMCommunicate request_size=4 [09:02:44]MH_SAM_APDU [09:02:44]CAPDU: 80 13 01 00 [09:02:44]Write to MH i2c: E2 08 00 BA 1D 80 13 01 00 00 00 00 00 54 [09:02:44]Write i2c OK [09:02:44]MH_I2C_Read... [09:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:45]Read from MH i2c: E2 [09:02:45]MH_I2C_Read... [09:02:45]Read from MH i2c: E2 0E 00 [09:02:45]MH_I2C_Read... [09:02:45]Read from MH i2c: E2 0E 00 BA 1D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C8 [09:02:45]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:02:45]wFMCommunicate OK [09:02:45]SAM_PROTO_GetShiftState done [09:02:45]FM_GetShiftState done [09:02:45]req_shift_opened done [09:02:45]requested_item shift.open_date is exist - process it [09:02:45]req_shift_open_date [09:02:45]req_shift_open_date done [09:02:45]produce_requested_data done [09:02:45]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95099,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [09:02:45]process_action_free close_receipt [09:02:45]json_value_free [09:02:45]json_value_free done [09:02:45]process_json_proto returns [09:02:45]Send response to host [09:02:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95099,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [09:02:45]free response buf [09:02:45]execute_script done [09:02:45]execute_script returns [09:02:45]free content buf [09:02:45]Sock 9.Close socket [09:02:45]Sock 9.Thread stoped [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:41]int [09:03:41]Write to MH i2c: 01 00 00 BB 1D D8 [09:03:41]Write i2c OK [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: 01 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: 01 07 00 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: 01 07 00 BB 1D 00 88 00 00 00 FF 0F 75 [09:03:41]state=0 [09:03:41]Key pressed [09:03:41]Feed [09:03:41]Write to MH i2c: D8 00 00 BC 1D B0 [09:03:41]Write i2c OK [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: D8 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: D8 01 00 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: D8 01 00 BC 1D 00 B1 [09:03:41]int line is 0 - check status [09:03:41]Write to MH i2c: 01 00 00 BD 1D DA [09:03:41]Write i2c OK [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: 01 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: 01 07 00 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: 01 07 00 BD 1D 00 C0 00 00 00 3C 00 DD [09:03:41]state=2 [09:03:41]Stop feed [09:03:41]int [09:03:41]Write to MH i2c: 01 00 00 BE 1D DB [09:03:41]Write i2c OK [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: 01 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: 01 07 00 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: 01 07 00 BE 1D 00 C0 00 00 00 3D 00 DF [09:03:41]state=0 [09:03:44]int [09:03:44]Write to MH i2c: 01 00 00 BF 1D DC [09:03:44]Write i2c OK [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: 01 [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: 01 07 00 [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: 01 07 00 BF 1D 00 80 00 00 00 F6 0F 68 [09:03:44]state=0 [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:55]accept exits with 8 [09:03:55]New connection [09:03:55]New thread 3066813796 created [09:03:55]Thread 3066957156 joined [09:03:55]Waiting for new connection... [09:03:55] Sock 8.Parse request [09:03:55]Sock 8.Check first char [09:03:55]Sock 8.First char is OK [09:03:55]request: POST /json_proto HTTP/1.0 [09:03:55]Method: POST [09:03:55]URL: /json_proto [09:03:55]Method is POST - this is cgi request [09:03:55]url: /json_proto [09:03:55]query_string will be loaded in cgi processing [09:03:55]execute_cgi json_proto POST (null) [09:03:55]execute_cgi path=json_proto method=POST [09:03:55]POST find Content-Length [09:03:55]Host: 172.17.62.67:8080 [09:03:55]Content-Length: 677 [09:03:55]Content-Type: application/json [09:03:55] [09:03:55]POST finish read [09:03:55]Found Content-Length = 677 [09:03:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 1.590, "sum" : 100.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:55]execute_script... [09:03:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 1.590, "sum" : 100.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:55]POST & json_proto [09:03:55]process_json_proto [09:03:55]json parsed OK: [09:03:55]protocol is kg_v1.0 [09:03:55]action value=close_receipt [09:03:55]process_action close_receipt [09:03:55]cmd_close_receipt [09:03:55]MH_GetDate [09:03:55]Write to MH i2c: F0 00 00 C0 1D CC [09:03:55]Write i2c OK [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: F0 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: F0 05 00 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: F0 05 00 C0 1D 00 7F 1A F0 65 BF [09:03:55]GetLastDocTimeStamp 1710234166 [09:03:55]current date 1710234239 [09:03:55]FM_GetShiftState [09:03:55]SAM_PROTO_GetShiftState [09:03:55]wFMCommunicate request_size=4 [09:03:55]MH_SAM_APDU [09:03:55]CAPDU: 80 13 01 00 [09:03:55]Write to MH i2c: E2 08 00 C1 1D 80 13 01 00 00 00 00 00 5B [09:03:55]Write i2c OK [09:03:55]MH_I2C_Read... [09:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:55]Read from MH i2c: E2 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 0E 00 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 0E 00 C1 1D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CF [09:03:55]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:03:55]wFMCommunicate OK [09:03:55]SAM_PROTO_GetShiftState done [09:03:55]FM_GetShiftState done [09:03:55]opened in 1710201976 [09:03:55]opened+sec_in_day 1710288376 [09:03:55]quantity*price = 10001 [09:03:55]sum+1 = 10002 [09:03:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 30 12.03.2024 09:04 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95100 ФПД: 65487941116883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T090400&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95100&fm=65487941116883&tin=02508201610067®Number=0000000000090555&sum=10000 [09:03:56]StoreToDocumentArchive [09:03:56]shift 327 fd 95100 [09:03:56]save to /storage/0327/doc_00095100 [09:03:56]save last doc name /storage/0327/doc_00095100 to /storage/kkm_last_doc_name [09:03:56]save OK [09:03:56]Clear old archive folders... [09:03:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:56]tlvbuf is 01A73A90 [09:03:56]SAM_PROTO_ClearQueue [09:03:56]wFMCommunicate request_size=4 [09:03:56]MH_SAM_APDU [09:03:56]CAPDU: 80 09 00 00 [09:03:56]Write to MH i2c: E2 08 00 CE 1D 80 09 00 00 00 00 00 00 5D [09:03:56]Write i2c OK [09:03:56]MH_I2C_Read... [09:03:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:56]Read from MH i2c: E2 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 03 00 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 03 00 CE 1D 00 90 00 5F [09:03:56]RAPDU: 90 00 [09:03:56]wFMCommunicate OK [09:03:56]SAM_PROTO_ClearQueue done [09:03:56]KKMCreateOFDPacket [09:03:56]OFDProtocolAddRootSTLVToBuf [09:03:56]FM_MakeSignedData [09:03:56]FM_MakeSignedData [09:03:56]SAM_PROTO_SignData [09:03:56]wFMCommunicate request_size=4 [09:03:56]MH_SAM_APDU [09:03:56]CAPDU: 80 0D 01 02 [09:03:56]Write to MH i2c: E2 08 00 CF 1D 80 0D 01 02 00 00 00 00 65 [09:03:56]Write i2c OK [09:03:56]MH_I2C_Read... [09:03:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:56]Read from MH i2c: E2 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 03 00 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 03 00 CF 1D 00 90 00 60 [09:03:56]RAPDU: 90 00 [09:03:56]wFMCommunicate OK [09:03:56]wFMCommunicate request_size=255 [09:03:56]MH_SAM_APDU [09:03:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 80 1A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7C 73 01 00 35 04 06 00 3B [09:03:56]Write to MH i2c: E2 02 01 D0 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 80 1A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7C 73 01 00 35 04 06 00 3B 00 00 F9 [09:03:56]Write i2c OK [09:03:56]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 D0 1D 00 90 00 61 [09:03:57]RAPDU: 90 00 [09:03:57]wFMCommunicate OK [09:03:57]wFMCommunicate request_size=10 [09:03:57]MH_SAM_APDU [09:03:57]CAPDU: 80 0D 02 02 05 8F 99 77 A3 D3 [09:03:57]Write to MH i2c: E2 0D 00 D1 1D 80 0D 02 02 05 00 8F 99 77 A3 D3 00 00 87 [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 D1 1D 00 90 00 62 [09:03:57]RAPDU: 90 00 [09:03:57]wFMCommunicate OK [09:03:57]wFMCommunicate request_size=4 [09:03:57]MH_SAM_APDU [09:03:57]CAPDU: 80 0D 03 02 [09:03:57]Write to MH i2c: E2 08 00 D2 1D 80 0D 03 02 00 00 00 00 6A [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 0B 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 0B 00 D2 1D 00 98 BF 68 A7 88 C3 43 EE 90 00 4D [09:03:57]RAPDU: 98 BF 68 A7 88 C3 43 EE 90 00 [09:03:57]wFMCommunicate OK [09:03:57]SAM_PROTO_SignData done [09:03:57]FM_MakeSignedData done [09:03:57]CreateOFDProtocolMessage [09:03:57]wFMCommunicate request_size=4 [09:03:57]MH_SAM_APDU [09:03:57]CAPDU: 80 11 00 00 [09:03:57]Write to MH i2c: E2 08 00 D3 1D 80 11 00 00 00 00 00 00 6A [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 17 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 17 00 D3 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BA [09:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:03:57]wFMCommunicate OK [09:03:57]CreateOFDProtocolMessage done [09:03:57]OFDSenderStorePacket 95100 [09:03:57]StoreOFDPacket docnum=95100 [09:03:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 04 AB 07 01 E3 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 80 1A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7C 73 01 00 35 04 06 00 3B 8F 99 77 A3 D3 98 BF 68 A7 88 C3 43 EE [09:03:57]CheckFolder [09:03:57]dirname=/storage/ofd_packets [09:03:57]CheckFolder done [09:03:57]ProducePacketName [09:03:57]name=ofd_packets/00095100 [09:03:57]NVStorageSaveData ofd_packets/00095100 [09:03:57]File name is /storage/ofd_packets/00095100 [09:03:57]Write 301 bytes [09:03:57]NVStorageSaveData done [09:03:57]OFDSenderStorePacket done [09:03:57]KKMCreateOFDPacket done [09:03:57]NVStorageSaveData kkm_last_timestamp [09:03:57]File name is /storage/kkm_last_timestamp [09:03:57]Write 4 bytes [09:03:57]NVStorageSaveData done [09:03:57]ExternCall_PrintAddStr [09:03:57]wPrintStart [09:03:57]Write to MH i2c: 01 00 00 D4 1D F1 [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: 01 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: 01 07 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: 01 07 00 D4 1D 00 80 00 00 00 FF 0F 86 [09:03:57]RasterBufferAndPrint [09:03:57]line Счет N : (1)196065 [09:03:57]line ИНН: 02508201610067 [09:03:57]line Контрольно-Кассовый Чек [09:03:57]line ПРОДАЖА [09:03:57]line ТРК (МРК, ГНК) : 12 [09:03:57]line Товар: 2710124130 [09:03:57]line Аи-92-К-5 [09:03:57]line 1.590 * 62.90 [09:03:57]line = 100.01 [09:03:57]line НДС 12% НСП 1% [09:03:57]line > о реализуемом товаре [09:03:57]line ОКРУГЛЕНИЕ: -0.01 [09:03:57]line ИТОГО: 100.00 [09:03:57]line Внесено: 100.00 [09:03:57]line СДАЧА: 0.00 [09:03:57]line НСП 1% : 0.88 [09:03:57]line НДС 12% : 10.62 [09:03:57]line Наличными: 100.00 [09:03:57]line Безнал.: 0.00 [09:03:57]line Место: АЗС № 6 "Партнер Нефть" [09:03:57]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:03:57]line СНО: Общий режим [09:03:57]line Чек 30 12.03.2024 09:04 [09:03:57]line Смена: 327 ФФД: 1.0 [09:03:57]line ЗНМ: 0300000009 [09:03:57]line РНМ: 0000000000090555 [09:03:57]line Версия ККМ: 001 [09:03:57]line ФМ: 0000000000874811 [09:03:57]line ФД: 95100 [09:03:57]line ФПД: 65487941116883 [09:03:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T090400&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95100&fm=65487941116883&tin=02508201610067®Number=0000000000090555&sum=10000 [09:03:57]OFD Sender: Processing packet 95100 [packets to send 30, broken 29] [09:03:57]ProducePacketName [09:03:57]name=ofd_packets/00095100 [09:03:57]OFD Sender: To server: pG, [09:03:57]CommunicateWithHost lk.salyk.kg:30040 [09:03:57]ConnectInit lk.salyk.kg [09:03:57]written 0, free lines is 4095 [09:03:57]Connected sock=10 [09:03:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 04 AB 07 01 E3 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 80 1A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7C 73 01 00 35 04 06 00 3B 8F 99 77 A3 D3 98 BF 68 A7 88 C3 43 EE [09:03:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 24 11 47 00 02 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7C 73 01 00 F4 03 04 00 D6 C5 EF 65 B6 04 01 00 00 9C 2F 0C 55 0A 77 70 5F [09:03:57]CommunicateWithHost err = 0 [09:03:57]CheckOFDResponse [09:03:57]1017 (14) - 77093643461234 [09:03:57]1041 (16) - 0000000000874811 [09:03:57]1040 (4) - 95100 [09:03:57]1012 (4) - 12.03.2024 03:02 [09:03:57]1206 (1) - 0 [09:03:57]OFD Sender: Remove packet 95100 [09:03:57]ProducePacketName [09:03:57]name=ofd_packets/00095100 [09:03:57]NVStorageDeleteData [09:03:58]Write to MH i2c: 01 00 00 FF 1D 1C [09:03:58]Write i2c OK [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: 01 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: 01 07 00 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: 01 07 00 FF 1D 00 80 00 00 00 4B 0D FB [09:03:58]RasterBufferAndPrint [09:03:58]line [09:03:58]line [09:03:58]line [09:03:58]line [09:03:58]line [09:03:58]written 0, free lines is 3409 [09:03:58]process_action close_receipt done [09:03:58]requested_data is exist [09:03:58]produce_requested_data [09:03:58]requested_item fm.sn is exist - process it [09:03:58]wFMCommunicate request_size=4 [09:03:58]MH_SAM_APDU [09:03:58]CAPDU: 80 11 00 00 [09:03:58]Write to MH i2c: E2 08 00 06 1E 80 11 00 00 00 00 00 00 9E [09:03:58]Write i2c OK [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: E2 [09:03:58]MH_I2C_Read... [09:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:58]Read from MH i2c: E2 17 00 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: E2 17 00 06 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EE [09:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:03:58]wFMCommunicate OK [09:03:58]requested_item fd.num is exist - process it [09:03:58]SAM_PROTO_GetFieldsCounters [09:03:58]wFMCommunicate request_size=4 [09:03:58]MH_SAM_APDU [09:03:58]CAPDU: 80 13 00 00 [09:03:58]Write to MH i2c: E2 08 00 07 1E 80 13 00 00 00 00 00 00 A1 [09:03:58]Write i2c OK [09:03:58]MH_I2C_Read... [09:03:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:58]Read from MH i2c: E2 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: E2 62 00 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: E2 62 00 07 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7C 73 01 00 0E 04 04 00 47 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 50 [09:03:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7C 73 01 00 0E 04 04 00 47 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:03:58]wFMCommunicate OK [09:03:58]SAM_PROTO_GetFieldsCounters done [09:03:58]requested_item shift.num is exist - process it [09:03:58]requested_item shift.opened is exist - process it [09:03:58]req_shift_opened [09:03:58]FM_GetShiftState [09:03:58]SAM_PROTO_GetShiftState [09:03:58]wFMCommunicate request_size=4 [09:03:58]MH_SAM_APDU [09:03:58]CAPDU: 80 13 01 00 [09:03:58]Write to MH i2c: E2 08 00 08 1E 80 13 01 00 00 00 00 00 A3 [09:03:58]Write i2c OK [09:03:58]MH_I2C_Read... [09:03:58]OFD Sender: No OFD packet to send [09:03:58]Read from MH i2c: E2 [09:03:58]MH_I2C_Read... [09:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:58]Read from MH i2c: E2 0E 00 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: E2 0E 00 08 1E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 17 [09:03:58]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:03:58]wFMCommunicate OK [09:03:58]SAM_PROTO_GetShiftState done [09:03:58]FM_GetShiftState done [09:03:58]req_shift_opened done [09:03:58]requested_item shift.open_date is exist - process it [09:03:58]req_shift_open_date [09:03:58]req_shift_open_date done [09:03:58]produce_requested_data done [09:03:58]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95100,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [09:03:58]process_action_free close_receipt [09:03:58]json_value_free [09:03:58]json_value_free done [09:03:58]process_json_proto returns [09:03:58]Send response to host [09:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95100,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [09:03:58]free response buf [09:03:58]execute_script done [09:03:58]execute_script returns [09:03:58]free content buf [09:03:58]Sock 8.Close socket [09:03:58]Sock 8.Thread stoped [09:04:00]accept exits with 9 [09:04:00]New connection [09:04:00]New thread 3066957156 created [09:04:00]Thread 3066813796 joined [09:04:00]Waiting for new connection... [09:04:00] Sock 9.Parse request [09:04:00]Sock 9.Check first char [09:04:00]Sock 9.First char is OK [09:04:00]request: POST /json_proto HTTP/1.0 [09:04:00]Method: POST [09:04:00]URL: /json_proto [09:04:00]Method is POST - this is cgi request [09:04:00]url: /json_proto [09:04:00]query_string will be loaded in cgi processing [09:04:00]execute_cgi json_proto POST (null) [09:04:00]execute_cgi path=json_proto method=POST [09:04:00]POST find Content-Length [09:04:00]Host: 172.17.62.67:8080 [09:04:00]Content-Length: 733 [09:04:00]Content-Type: application/json [09:04:00] [09:04:00]POST finish read [09:04:00]Found Content-Length = 733 [09:04:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95100, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 1.590, "sum" : 100.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:00]execute_script... [09:04:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95100, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 1.590, "sum" : 100.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:00]POST & json_proto [09:04:00]process_json_proto [09:04:00]json parsed OK: [09:04:00]protocol is kg_v1.0 [09:04:00]action value=close_receipt [09:04:00]process_action close_receipt [09:04:00]cmd_close_receipt [09:04:00]MH_GetDate [09:04:00]Write to MH i2c: F0 00 00 09 1E 16 [09:04:00]Write i2c OK [09:04:00]MH_I2C_Read... [09:04:00]Read from MH i2c: F0 [09:04:00]MH_I2C_Read... [09:04:00]Read from MH i2c: F0 05 00 [09:04:00]MH_I2C_Read... [09:04:00]Read from MH i2c: F0 05 00 09 1E 00 84 1A F0 65 0E [09:04:00]GetLastDocTimeStamp 1710234240 [09:04:00]current date 1710234244 [09:04:00]FM_GetShiftState [09:04:00]SAM_PROTO_GetShiftState [09:04:00]wFMCommunicate request_size=4 [09:04:00]MH_SAM_APDU [09:04:00]CAPDU: 80 13 01 00 [09:04:00]Write to MH i2c: E2 08 00 0A 1E 80 13 01 00 00 00 00 00 A5 [09:04:00]Write i2c OK [09:04:00]MH_I2C_Read... [09:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:00]Read from MH i2c: E2 [09:04:00]MH_I2C_Read... [09:04:00]Read from MH i2c: E2 0E 00 [09:04:00]MH_I2C_Read... [09:04:00]Read from MH i2c: E2 0E 00 0A 1E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 19 [09:04:00]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:04:00]wFMCommunicate OK [09:04:00]SAM_PROTO_GetShiftState done [09:04:00]FM_GetShiftState done [09:04:00]opened in 1710201976 [09:04:00]opened+sec_in_day 1710288376 [09:04:00]quantity*price = 10001 [09:04:00]sum+1 = 10002 [09:04:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 31 12.03.2024 09:04 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95100 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95101 ФПД: 241086070173151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T090404&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95101&fm=241086070173151&tin=02508201610067®Number=0000000000090555&sum=10000 [09:04:01]StoreToDocumentArchive [09:04:01]shift 327 fd 95101 [09:04:01]save to /storage/0327/doc_00095101 [09:04:01]save last doc name /storage/0327/doc_00095101 to /storage/kkm_last_doc_name [09:04:01]save OK [09:04:01]Clear old archive folders... [09:04:01]ProcessDocumentItem done err = 0, tmpTLVsize=279 [09:04:01]tlvbuf is 01A73950 [09:04:01]SAM_PROTO_ClearQueue [09:04:01]wFMCommunicate request_size=4 [09:04:01]MH_SAM_APDU [09:04:01]CAPDU: 80 09 00 00 [09:04:01]Write to MH i2c: E2 08 00 19 1E 80 09 00 00 00 00 00 00 A9 [09:04:01]Write i2c OK [09:04:01]MH_I2C_Read... [09:04:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:01]Read from MH i2c: E2 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 03 00 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 03 00 19 1E 00 90 00 AB [09:04:01]RAPDU: 90 00 [09:04:01]wFMCommunicate OK [09:04:01]SAM_PROTO_ClearQueue done [09:04:01]KKMCreateOFDPacket [09:04:01]OFDProtocolAddRootSTLVToBuf [09:04:01]FM_MakeSignedData [09:04:01]FM_MakeSignedData [09:04:01]SAM_PROTO_SignData [09:04:01]wFMCommunicate request_size=4 [09:04:01]MH_SAM_APDU [09:04:01]CAPDU: 80 0D 01 02 [09:04:01]Write to MH i2c: E2 08 00 1A 1E 80 0D 01 02 00 00 00 00 B1 [09:04:01]Write i2c OK [09:04:01]MH_I2C_Read... [09:04:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:01]Read from MH i2c: E2 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 03 00 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 03 00 1A 1E 00 90 00 AC [09:04:01]RAPDU: 90 00 [09:04:01]wFMCommunicate OK [09:04:01]wFMCommunicate request_size=255 [09:04:01]MH_SAM_APDU [09:04:01]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 84 1A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 7C 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 [09:04:01]Write to MH i2c: E2 02 01 1B 1E 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 84 1A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 7C 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 00 00 71 [09:04:01]Write i2c OK [09:04:01]MH_I2C_Read... [09:04:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:01]Read from MH i2c: E2 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 03 00 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 03 00 1B 1E 00 90 00 AD [09:04:01]RAPDU: 90 00 [09:04:01]wFMCommunicate OK [09:04:01]wFMCommunicate request_size=38 [09:04:01]MH_SAM_APDU [09:04:01]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7D 73 01 00 35 04 06 00 DB 44 39 92 AD DF [09:04:01]Write to MH i2c: E2 29 00 1C 1E 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7D 73 01 00 35 04 06 00 DB 44 39 92 AD DF 00 00 A1 [09:04:01]Write i2c OK [09:04:01]MH_I2C_Read... [09:04:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:02]Read from MH i2c: E2 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: E2 03 00 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: E2 03 00 1C 1E 00 90 00 AE [09:04:02]RAPDU: 90 00 [09:04:02]wFMCommunicate OK [09:04:02]wFMCommunicate request_size=4 [09:04:02]MH_SAM_APDU [09:04:02]CAPDU: 80 0D 03 02 [09:04:02]Write to MH i2c: E2 08 00 1D 1E 80 0D 03 02 00 00 00 00 B6 [09:04:02]Write i2c OK [09:04:02]MH_I2C_Read... [09:04:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:02]Read from MH i2c: E2 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: E2 0B 00 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: E2 0B 00 1D 1E 00 B8 4C BE 24 52 AE 18 1F 90 00 D4 [09:04:02]RAPDU: B8 4C BE 24 52 AE 18 1F 90 00 [09:04:02]wFMCommunicate OK [09:04:02]SAM_PROTO_SignData done [09:04:02]FM_MakeSignedData done [09:04:02]CreateOFDProtocolMessage [09:04:02]wFMCommunicate request_size=4 [09:04:02]MH_SAM_APDU [09:04:02]CAPDU: 80 11 00 00 [09:04:02]Write to MH i2c: E2 08 00 1E 1E 80 11 00 00 00 00 00 00 B6 [09:04:02]Write i2c OK [09:04:02]MH_I2C_Read... [09:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:02]Read from MH i2c: E2 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: E2 17 00 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: E2 17 00 1E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 06 [09:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:04:02]wFMCommunicate OK [09:04:02]CreateOFDProtocolMessage done [09:04:02]OFDSenderStorePacket 95101 [09:04:02]StoreOFDPacket docnum=95101 [09:04:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 32 D9 23 01 D8 B0 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 84 1A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 7C 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7D 73 01 00 35 04 06 00 DB 44 39 92 AD DF B8 4C BE 24 52 AE 18 1F [09:04:02]CheckFolder [09:04:02]dirname=/storage/ofd_packets [09:04:02]CheckFolder done [09:04:02]ProducePacketName [09:04:02]name=ofd_packets/00095101 [09:04:02]NVStorageSaveData ofd_packets/00095101 [09:04:02]File name is /storage/ofd_packets/00095101 [09:04:02]Write 329 bytes [09:04:02]NVStorageSaveData done [09:04:02]OFDSenderStorePacket done [09:04:02]KKMCreateOFDPacket done [09:04:02]NVStorageSaveData kkm_last_timestamp [09:04:02]File name is /storage/kkm_last_timestamp [09:04:02]Write 4 bytes [09:04:02]NVStorageSaveData done [09:04:02]ExternCall_PrintAddStr [09:04:02]wPrintStart [09:04:02]Write to MH i2c: 01 00 00 1F 1E 3D [09:04:02]Write i2c OK [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: 01 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: 01 07 00 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: 01 07 00 1F 1E 00 80 00 00 00 FF 0F D2 [09:04:02]RasterBufferAndPrint [09:04:02]line Счет N : (1)196065 [09:04:02]line ИНН: 02508201610067 [09:04:02]line Контрольно-Кассовый Чек [09:04:02]line ВОЗВРАТ ПРОДАЖИ [09:04:02]line ТРК (МРК, ГНК) : 12 [09:04:02]line Товар: 2710124130 [09:04:02]line Аи-92-К-5 [09:04:02]line 1.590 * 62.90 [09:04:02]line = 100.01 [09:04:02]line НДС 12% НСП 1% [09:04:02]line > о реализуемом товаре [09:04:02]line ОКРУГЛЕНИЕ: -0.01 [09:04:02]line ИТОГО: 100.00 [09:04:02]line НСП 1% : 0.88 [09:04:02]line НДС 12% : 10.62 [09:04:02]line Наличными: 100.00 [09:04:02]line Безнал.: 0.00 [09:04:02]line Место: АЗС № 6 "Партнер Нефть" [09:04:02]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:04:02]line СНО: Общий режим [09:04:02]line Чек 31 12.03.2024 09:04 [09:04:02]line Смена: 327 ФФД: 1.0 [09:04:02]line ЗНМ: 0300000009 [09:04:02]line РНМ: 0000000000090555 [09:04:02]line Версия ККМ: 001 [09:04:02]line ФД осн.: 95100 [09:04:02]line ФМ осн.: 0000000000874811 [09:04:02]line ФМ: 0000000000874811 [09:04:02]line ФД: 95101 [09:04:02]line ФПД: 241086070173151 [09:04:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T090404&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95101&fm=241086070173151&tin=02508201610067®Number=0000000000090555&sum=10000 [09:04:02]written 0, free lines is 4095 [09:04:02]OFD Sender: Processing packet 95101 [packets to send 30, broken 29] [09:04:02]ProducePacketName [09:04:02]name=ofd_packets/00095101 [09:04:02]OFD Sender: To server: pG, [09:04:02]CommunicateWithHost lk.salyk.kg:30040 [09:04:02]ConnectInit lk.salyk.kg [09:04:02]Connected sock=10 [09:04:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 32 D9 23 01 D8 B0 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 84 1A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 7C 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7D 73 01 00 35 04 06 00 DB 44 39 92 AD DF B8 4C BE 24 52 AE 18 1F [09:04:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 AE 23 47 00 1A DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7D 73 01 00 F4 03 04 00 DB C5 EF 65 B6 04 01 00 00 8C F2 4A 6D E9 E8 13 4D [09:04:02]CommunicateWithHost err = 0 [09:04:02]CheckOFDResponse [09:04:02]1017 (14) - 77093643461234 [09:04:02]1041 (16) - 0000000000874811 [09:04:02]1040 (4) - 95101 [09:04:02]1012 (4) - 12.03.2024 03:02 [09:04:02]1206 (1) - 0 [09:04:02]OFD Sender: Remove packet 95101 [09:04:02]ProducePacketName [09:04:02]name=ofd_packets/00095101 [09:04:02]NVStorageDeleteData [09:04:02]Write to MH i2c: 01 00 00 4A 1E 68 [09:04:02]Write i2c OK [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: 01 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: 01 07 00 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: 01 07 00 4A 1E 00 80 00 00 00 50 0D 4C [09:04:02]RasterBufferAndPrint [09:04:02]line [09:04:02]line [09:04:02]line [09:04:02]line [09:04:02]line [09:04:02]written 0, free lines is 3423 [09:04:02]process_action close_receipt done [09:04:02]requested_data is exist [09:04:02]produce_requested_data [09:04:02]requested_item fm.sn is exist - process it [09:04:02]wFMCommunicate request_size=4 [09:04:02]MH_SAM_APDU [09:04:02]CAPDU: 80 11 00 00 [09:04:02]Write to MH i2c: E2 08 00 51 1E 80 11 00 00 00 00 00 00 E9 [09:04:02]Write i2c OK [09:04:02]MH_I2C_Read... [09:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:02]Read from MH i2c: E2 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: E2 17 00 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: E2 17 00 51 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 39 [09:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:04:02]wFMCommunicate OK [09:04:02]requested_item fd.num is exist - process it [09:04:02]SAM_PROTO_GetFieldsCounters [09:04:02]wFMCommunicate request_size=4 [09:04:02]MH_SAM_APDU [09:04:02]CAPDU: 80 13 00 00 [09:04:02]Write to MH i2c: E2 08 00 52 1E 80 13 00 00 00 00 00 00 EC [09:04:02]Write i2c OK [09:04:02]MH_I2C_Read... [09:04:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:02]Read from MH i2c: E2 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: E2 62 00 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: E2 62 00 52 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7D 73 01 00 0E 04 04 00 47 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 9F [09:04:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7D 73 01 00 0E 04 04 00 47 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:04:02]wFMCommunicate OK [09:04:02]SAM_PROTO_GetFieldsCounters done [09:04:02]requested_item shift.num is exist - process it [09:04:02]requested_item shift.opened is exist - process it [09:04:02]req_shift_opened [09:04:02]FM_GetShiftState [09:04:02]SAM_PROTO_GetShiftState [09:04:02]wFMCommunicate request_size=4 [09:04:02]MH_SAM_APDU [09:04:02]CAPDU: 80 13 01 00 [09:04:02]Write to MH i2c: E2 08 00 53 1E 80 13 01 00 00 00 00 00 EE [09:04:02]Write i2c OK [09:04:02]MH_I2C_Read... [09:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:03]OFD Sender: No OFD packet to send [09:04:03]Read from MH i2c: E2 [09:04:03]MH_I2C_Read... [09:04:03]Read from MH i2c: E2 0E 00 [09:04:03]MH_I2C_Read... [09:04:03]Read from MH i2c: E2 0E 00 53 1E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 62 [09:04:03]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:04:03]wFMCommunicate OK [09:04:03]SAM_PROTO_GetShiftState done [09:04:03]FM_GetShiftState done [09:04:03]req_shift_opened done [09:04:03]requested_item shift.open_date is exist - process it [09:04:03]req_shift_open_date [09:04:03]req_shift_open_date done [09:04:03]produce_requested_data done [09:04:03]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95101,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [09:04:03]process_action_free close_receipt [09:04:03]json_value_free [09:04:03]json_value_free done [09:04:03]process_json_proto returns [09:04:03]Send response to host [09:04:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95101,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [09:04:03]free response buf [09:04:03]execute_script done [09:04:03]execute_script returns [09:04:03]free content buf [09:04:03]Sock 9.Close socket [09:04:03]Sock 9.Thread stoped [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:36]int [09:04:36]Write to MH i2c: 01 00 00 54 1E 72 [09:04:36]Write i2c OK [09:04:36]MH_I2C_Read... [09:04:36]Read from MH i2c: 01 [09:04:36]MH_I2C_Read... [09:04:36]Read from MH i2c: 01 07 00 [09:04:36]MH_I2C_Read... [09:04:36]Read from MH i2c: 01 07 00 54 1E 00 88 00 00 00 FF 0F 0F [09:04:36]state=0 [09:04:36]Key pressed [09:04:36]Feed [09:04:36]Write to MH i2c: D8 00 00 55 1E 4A [09:04:36]Write i2c OK [09:04:36]MH_I2C_Read... [09:04:36]Read from MH i2c: D8 [09:04:36]MH_I2C_Read... [09:04:36]Read from MH i2c: D8 01 00 [09:04:36]MH_I2C_Read... [09:04:36]Read from MH i2c: D8 01 00 55 1E 00 4B [09:04:36]int [09:04:36]Write to MH i2c: 01 00 00 56 1E 74 [09:04:36]Write i2c OK [09:04:36]MH_I2C_Read... [09:04:36]Read from MH i2c: 01 [09:04:36]MH_I2C_Read... [09:04:36]Read from MH i2c: 01 07 00 [09:04:36]MH_I2C_Read... [09:04:36]Read from MH i2c: 01 07 00 56 1E 00 80 00 00 00 F5 0F FF [09:04:36]state=2 [09:04:36]Stop feed [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:44]int [09:04:44]Write to MH i2c: 01 00 00 57 1E 75 [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 57 1E 00 88 00 00 00 FF 0F 12 [09:04:44]state=0 [09:04:44]Key pressed [09:04:44]Feed [09:04:44]Write to MH i2c: D8 00 00 58 1E 4D [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: D8 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: D8 01 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: D8 01 00 58 1E 00 4E [09:04:45]int [09:04:45]Write to MH i2c: 01 00 00 59 1E 77 [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 59 1E 00 80 00 00 00 F6 0F 03 [09:04:45]state=2 [09:04:45]Stop feed [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:28]recv_with_timeout no data received [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [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:05]accept exits with 8 [09:25:05]New connection [09:25:05]New thread 3066813796 created [09:25:05]Thread 3066957156 joined [09:25:05]Waiting for new connection... [09:25:05] Sock 8.Parse request [09:25:05]Sock 8.Check first char [09:25:05]Sock 8.First char is OK [09:25:05]request: POST /json_proto HTTP/1.0 [09:25:05]Method: POST [09:25:05]URL: /json_proto [09:25:05]Method is POST - this is cgi request [09:25:05]url: /json_proto [09:25:05]query_string will be loaded in cgi processing [09:25:05]execute_cgi json_proto POST (null) [09:25:05]execute_cgi path=json_proto method=POST [09:25:05]POST find Content-Length [09:25:05]Host: 172.17.62.67:8080 [09:25:05]Content-Length: 677 [09:25:05]Content-Type: application/json [09:25:05] [09:25:05]POST finish read [09:25:05]Found Content-Length = 677 [09:25:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [09:25:05]execute_script... [09:25:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [09:25:05]POST & json_proto [09:25:05]process_json_proto [09:25:05]json parsed OK: [09:25:05]protocol is kg_v1.0 [09:25:05]action value=close_receipt [09:25:05]process_action close_receipt [09:25:05]cmd_close_receipt [09:25:05]MH_GetDate [09:25:05]Write to MH i2c: F0 00 00 5A 1E 67 [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: F0 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: F0 05 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: F0 05 00 5A 1E 00 76 1F F0 65 56 [09:25:05]GetLastDocTimeStamp 1710234244 [09:25:05]current date 1710235510 [09:25:05]FM_GetShiftState [09:25:05]SAM_PROTO_GetShiftState [09:25:05]wFMCommunicate request_size=4 [09:25:05]MH_SAM_APDU [09:25:05]CAPDU: 80 13 01 00 [09:25:05]Write to MH i2c: E2 08 00 5B 1E 80 13 01 00 00 00 00 00 F6 [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:05]Read from MH i2c: E2 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 0E 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 0E 00 5B 1E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 6A [09:25:05]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:25:05]wFMCommunicate OK [09:25:05]SAM_PROTO_GetShiftState done [09:25:05]FM_GetShiftState done [09:25:05]opened in 1710201976 [09:25:05]opened+sec_in_day 1710288376 [09:25:05]quantity*price = 30003 [09:25:05]sum+1 = 30004 [09:25:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 32 12.03.2024 09:25 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95102 ФПД: 276377381925926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T092510&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95102&fm=276377381925926&tin=02508201610067®Number=0000000000090555&sum=30000 [09:25:06]StoreToDocumentArchive [09:25:06]shift 327 fd 95102 [09:25:06]save to /storage/0327/doc_00095102 [09:25:06]save last doc name /storage/0327/doc_00095102 to /storage/kkm_last_doc_name [09:25:06]save OK [09:25:06]Clear old archive folders... [09:25:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:06]tlvbuf is 01AB4B60 [09:25:06]SAM_PROTO_ClearQueue [09:25:06]wFMCommunicate request_size=4 [09:25:06]MH_SAM_APDU [09:25:06]CAPDU: 80 09 00 00 [09:25:06]Write to MH i2c: E2 08 00 68 1E 80 09 00 00 00 00 00 00 F8 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:06]Read from MH i2c: E2 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 03 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 03 00 68 1E 00 90 00 FA [09:25:06]RAPDU: 90 00 [09:25:06]wFMCommunicate OK [09:25:06]SAM_PROTO_ClearQueue done [09:25:06]KKMCreateOFDPacket [09:25:06]OFDProtocolAddRootSTLVToBuf [09:25:06]FM_MakeSignedData [09:25:06]FM_MakeSignedData [09:25:06]SAM_PROTO_SignData [09:25:06]wFMCommunicate request_size=4 [09:25:06]MH_SAM_APDU [09:25:06]CAPDU: 80 0D 01 02 [09:25:06]Write to MH i2c: E2 08 00 69 1E 80 0D 01 02 00 00 00 00 00 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:07]Read from MH i2c: E2 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 03 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 03 00 69 1E 00 90 00 FB [09:25:07]RAPDU: 90 00 [09:25:07]wFMCommunicate OK [09:25:07]wFMCommunicate request_size=255 [09:25:07]MH_SAM_APDU [09:25:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 20 00 00 00 F4 03 04 00 76 1F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7E 73 01 00 35 04 06 00 FB [09:25:07]Write to MH i2c: E2 02 01 6A 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 20 00 00 00 F4 03 04 00 76 1F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7E 73 01 00 35 04 06 00 FB 00 00 1D [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:07]Read from MH i2c: E2 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 03 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 03 00 6A 1E 00 90 00 FC [09:25:07]RAPDU: 90 00 [09:25:07]wFMCommunicate OK [09:25:07]wFMCommunicate request_size=10 [09:25:07]MH_SAM_APDU [09:25:07]CAPDU: 80 0D 02 02 05 5D 1F AC 74 26 [09:25:07]Write to MH i2c: E2 0D 00 6B 1E 80 0D 02 02 05 00 5D 1F AC 74 26 00 00 CF [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:07]Read from MH i2c: E2 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 03 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 03 00 6B 1E 00 90 00 FD [09:25:07]RAPDU: 90 00 [09:25:07]wFMCommunicate OK [09:25:07]wFMCommunicate request_size=4 [09:25:07]MH_SAM_APDU [09:25:07]CAPDU: 80 0D 03 02 [09:25:07]Write to MH i2c: E2 08 00 6C 1E 80 0D 03 02 00 00 00 00 05 [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:07]Read from MH i2c: E2 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 0B 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 0B 00 6C 1E 00 3F AB 20 E0 AF C1 F3 05 90 00 58 [09:25:07]RAPDU: 3F AB 20 E0 AF C1 F3 05 90 00 [09:25:07]wFMCommunicate OK [09:25:07]SAM_PROTO_SignData done [09:25:07]FM_MakeSignedData done [09:25:07]CreateOFDProtocolMessage [09:25:07]wFMCommunicate request_size=4 [09:25:07]MH_SAM_APDU [09:25:07]CAPDU: 80 11 00 00 [09:25:07]Write to MH i2c: E2 08 00 6D 1E 80 11 00 00 00 00 00 00 05 [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:07]Read from MH i2c: E2 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 17 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 17 00 6D 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 55 [09:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:25:07]wFMCommunicate OK [09:25:07]CreateOFDProtocolMessage done [09:25:07]OFDSenderStorePacket 95102 [09:25:07]StoreOFDPacket docnum=95102 [09:25:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 47 8B 07 01 6E EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 20 00 00 00 F4 03 04 00 76 1F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7E 73 01 00 35 04 06 00 FB 5D 1F AC 74 26 3F AB 20 E0 AF C1 F3 05 [09:25:07]CheckFolder [09:25:07]dirname=/storage/ofd_packets [09:25:07]CheckFolder done [09:25:07]ProducePacketName [09:25:07]name=ofd_packets/00095102 [09:25:07]NVStorageSaveData ofd_packets/00095102 [09:25:07]File name is /storage/ofd_packets/00095102 [09:25:07]Write 301 bytes [09:25:07]NVStorageSaveData done [09:25:07]OFDSenderStorePacket done [09:25:07]KKMCreateOFDPacket done [09:25:07]NVStorageSaveData kkm_last_timestamp [09:25:07]File name is /storage/kkm_last_timestamp [09:25:07]Write 4 bytes [09:25:07]NVStorageSaveData done [09:25:07]ExternCall_PrintAddStr [09:25:07]wPrintStart [09:25:07]Write to MH i2c: 01 00 00 6E 1E 8C [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: 01 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: 01 07 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: 01 07 00 6E 1E 00 80 00 00 00 FF 0F 21 [09:25:07]RasterBufferAndPrint [09:25:07]line Счет N : (1)196066 [09:25:07]line ИНН: 02508201610067 [09:25:07]line Контрольно-Кассовый Чек [09:25:07]line ПРОДАЖА [09:25:07]line ТРК (МРК, ГНК) : 32 [09:25:07]line Товар: 2710124130 [09:25:07]line Аи-92-К-5 [09:25:07]line 4.770 * 62.90 [09:25:07]line = 300.03 [09:25:07]line НДС 12% НСП 1% [09:25:07]line > о реализуемом товаре [09:25:07]line ОКРУГЛЕНИЕ: -0.03 [09:25:07]line ИТОГО: 300.00 [09:25:07]line Внесено: 300.00 [09:25:07]line СДАЧА: 0.00 [09:25:07]line НСП 1% : 2.65 [09:25:07]line НДС 12% : 31.86 [09:25:07]line Наличными: 300.00 [09:25:07]line Безнал.: 0.00 [09:25:07]line Место: АЗС № 6 "Партнер Нефть" [09:25:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:25:07]line СНО: Общий режим [09:25:07]line Чек 32 12.03.2024 09:25 [09:25:07]line Смена: 327 ФФД: 1.0 [09:25:07]line ЗНМ: 0300000009 [09:25:07]line РНМ: 0000000000090555 [09:25:07]line Версия ККМ: 001 [09:25:07]line ФМ: 0000000000874811 [09:25:07]line ФД: 95102 [09:25:07]line ФПД: 276377381925926 [09:25:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T092510&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95102&fm=276377381925926&tin=02508201610067®Number=0000000000090555&sum=30000 [09:25:07]OFD Sender: Processing packet 95102 [packets to send 30, broken 29] [09:25:07]ProducePacketName [09:25:07]name=ofd_packets/00095102 [09:25:07]OFD Sender: To server: pG, [09:25:07]CommunicateWithHost lk.salyk.kg:30040 [09:25:07]ConnectInit lk.salyk.kg [09:25:07]written 0, free lines is 4095 [09:25:07]Connected sock=10 [09:25:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 47 8B 07 01 6E EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 20 00 00 00 F4 03 04 00 76 1F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7E 73 01 00 35 04 06 00 FB 5D 1F AC 74 26 3F AB 20 E0 AF C1 F3 05 [09:25:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F0 B1 47 00 0C C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7E 73 01 00 F4 03 04 00 CC CA EF 65 B6 04 01 00 00 BC 94 3B 7A B1 3F 42 9C [09:25:08]CommunicateWithHost err = 0 [09:25:08]CheckOFDResponse [09:25:08]1017 (14) - 77093643461234 [09:25:08]1041 (16) - 0000000000874811 [09:25:08]1040 (4) - 95102 [09:25:08]1012 (4) - 12.03.2024 03:23 [09:25:08]1206 (1) - 0 [09:25:08]OFD Sender: Remove packet 95102 [09:25:08]ProducePacketName [09:25:08]name=ofd_packets/00095102 [09:25:08]NVStorageDeleteData [09:25:08]Write to MH i2c: 01 00 00 99 1E B7 [09:25:08]Write i2c OK [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: 01 [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: 01 07 00 [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: 01 07 00 99 1E 00 80 00 00 00 53 0D 9E [09:25:08]RasterBufferAndPrint [09:25:08]line [09:25:08]line [09:25:08]line [09:25:08]line [09:25:08]line [09:25:08]written 0, free lines is 3417 [09:25:08]process_action close_receipt done [09:25:08]requested_data is exist [09:25:08]produce_requested_data [09:25:08]requested_item fm.sn is exist - process it [09:25:08]wFMCommunicate request_size=4 [09:25:08]MH_SAM_APDU [09:25:08]CAPDU: 80 11 00 00 [09:25:08]Write to MH i2c: E2 08 00 A0 1E 80 11 00 00 00 00 00 00 38 [09:25:08]Write i2c OK [09:25:08]MH_I2C_Read... [09:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:08]Read from MH i2c: E2 [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: E2 17 00 [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: E2 17 00 A0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 88 [09:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:25:08]wFMCommunicate OK [09:25:08]requested_item fd.num is exist - process it [09:25:08]SAM_PROTO_GetFieldsCounters [09:25:08]wFMCommunicate request_size=4 [09:25:08]MH_SAM_APDU [09:25:08]CAPDU: 80 13 00 00 [09:25:08]Write to MH i2c: E2 08 00 A1 1E 80 13 00 00 00 00 00 00 3B [09:25:08]Write i2c OK [09:25:08]MH_I2C_Read... [09:25:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:08]Read from MH i2c: E2 [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: E2 62 00 [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: E2 62 00 A1 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7E 73 01 00 0E 04 04 00 47 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 F2 [09:25:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7E 73 01 00 0E 04 04 00 47 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:25:08]wFMCommunicate OK [09:25:08]SAM_PROTO_GetFieldsCounters done [09:25:08]requested_item shift.num is exist - process it [09:25:08]requested_item shift.opened is exist - process it [09:25:08]req_shift_opened [09:25:08]FM_GetShiftState [09:25:08]SAM_PROTO_GetShiftState [09:25:08]wFMCommunicate request_size=4 [09:25:08]MH_SAM_APDU [09:25:08]CAPDU: 80 13 01 00 [09:25:08]Write to MH i2c: E2 08 00 A2 1E 80 13 01 00 00 00 00 00 3D [09:25:08]Write i2c OK [09:25:08]MH_I2C_Read... [09:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:08]Read from MH i2c: E2 [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: E2 0E 00 [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: E2 0E 00 A2 1E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B1 [09:25:08]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:25:08]wFMCommunicate OK [09:25:08]SAM_PROTO_GetShiftState done [09:25:08]FM_GetShiftState done [09:25:08]req_shift_opened done [09:25:08]requested_item shift.open_date is exist - process it [09:25:08]req_shift_open_date [09:25:08]req_shift_open_date done [09:25:08]produce_requested_data done [09:25:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95102,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [09:25:08]process_action_free close_receipt [09:25:08]json_value_free [09:25:08]json_value_free done [09:25:08]process_json_proto returns [09:25:08]Send response to host [09:25:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95102,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [09:25:08]free response buf [09:25:08]execute_script done [09:25:08]execute_script returns [09:25:08]free content buf [09:25:08]Sock 8.Close socket [09:25:08]Sock 8.Thread stoped [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]accept exits with 9 [09:26:38]New connection [09:26:38]New thread 3066957156 created [09:26:38]Thread 3066813796 joined [09:26:38]Waiting for new connection... [09:26:38] Sock 9.Parse request [09:26:38]Sock 9.Check first char [09:26:38]Sock 9.First char is OK [09:26:38]request: POST /json_proto HTTP/1.0 [09:26:38]Method: POST [09:26:38]URL: /json_proto [09:26:38]Method is POST - this is cgi request [09:26:38]url: /json_proto [09:26:38]query_string will be loaded in cgi processing [09:26:38]execute_cgi json_proto POST (null) [09:26:38]execute_cgi path=json_proto method=POST [09:26:38]POST find Content-Length [09:26:38]Host: 172.17.62.67:8080 [09:26:38]Content-Length: 819 [09:26:38]Content-Type: application/json [09:26:38] [09:26:38]POST finish read [09:26:38]Found Content-Length = 819 [09:26:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:38]execute_script... [09:26: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)196068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:38]POST & json_proto [09:26:38]process_json_proto [09:26:38]json parsed OK: [09:26:38]protocol is kg_v1.0 [09:26:38]action value=close_receipt [09:26:38]process_action close_receipt [09:26:38]cmd_close_receipt [09:26:38]MH_GetDate [09:26:38]Write to MH i2c: F0 00 00 A3 1E B0 [09:26:38]Write i2c OK [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: F0 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: F0 05 00 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: F0 05 00 A3 1E 00 D2 1F F0 65 FB [09:26:38]GetLastDocTimeStamp 1710235510 [09:26:38]current date 1710235602 [09:26:38]FM_GetShiftState [09:26:38]SAM_PROTO_GetShiftState [09:26:38]wFMCommunicate request_size=4 [09:26:38]MH_SAM_APDU [09:26:38]CAPDU: 80 13 01 00 [09:26:38]Write to MH i2c: E2 08 00 A4 1E 80 13 01 00 00 00 00 00 3F [09:26:38]Write i2c OK [09:26:38]MH_I2C_Read... [09:26:38]OFD Sender: No OFD packet to send [09:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:38]Read from MH i2c: E2 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 0E 00 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 0E 00 A4 1E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B3 [09:26:38]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:26:38]wFMCommunicate OK [09:26:38]SAM_PROTO_GetShiftState done [09:26:38]FM_GetShiftState done [09:26:38]opened in 1710201976 [09:26:38]opened+sec_in_day 1710288376 [09:26:38]quantity*price = 100010 [09:26:38]sum+1 = 100012 [09:26:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 33 12.03.2024 09:26 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95103 ФПД: 134139872269858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T092643&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95103&fm=134139872269858&tin=02508201610067®Number=0000000000090555&sum=100011 [09:26:39]StoreToDocumentArchive [09:26:39]shift 327 fd 95103 [09:26:39]save to /storage/0327/doc_00095103 [09:26:39]save last doc name /storage/0327/doc_00095103 to /storage/kkm_last_doc_name [09:26:39]save OK [09:26:39]Clear old archive folders... [09:26:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:39]tlvbuf is 01A05A70 [09:26:39]SAM_PROTO_ClearQueue [09:26:39]wFMCommunicate request_size=4 [09:26:39]MH_SAM_APDU [09:26:39]CAPDU: 80 09 00 00 [09:26:39]Write to MH i2c: E2 08 00 B1 1E 80 09 00 00 00 00 00 00 41 [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:39]Read from MH i2c: E2 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 03 00 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 03 00 B1 1E 00 90 00 43 [09:26:39]RAPDU: 90 00 [09:26:39]wFMCommunicate OK [09:26:39]SAM_PROTO_ClearQueue done [09:26:39]KKMCreateOFDPacket [09:26:39]OFDProtocolAddRootSTLVToBuf [09:26:39]FM_MakeSignedData [09:26:39]FM_MakeSignedData [09:26:39]SAM_PROTO_SignData [09:26:39]wFMCommunicate request_size=4 [09:26:39]MH_SAM_APDU [09:26:39]CAPDU: 80 0D 01 02 [09:26:39]Write to MH i2c: E2 08 00 B2 1E 80 0D 01 02 00 00 00 00 49 [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:39]Read from MH i2c: E2 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 03 00 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 03 00 B2 1E 00 90 00 44 [09:26:39]RAPDU: 90 00 [09:26:39]wFMCommunicate OK [09:26:39]wFMCommunicate request_size=255 [09:26:39]MH_SAM_APDU [09:26:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D3 1F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7F 73 01 00 35 04 06 00 79 [09:26:39]Write to MH i2c: E2 02 01 B3 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D3 1F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7F 73 01 00 35 04 06 00 79 00 00 D2 [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:40]Read from MH i2c: E2 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 03 00 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 03 00 B3 1E 00 90 00 45 [09:26:40]RAPDU: 90 00 [09:26:40]wFMCommunicate OK [09:26:40]wFMCommunicate request_size=10 [09:26:40]MH_SAM_APDU [09:26:40]CAPDU: 80 0D 02 02 05 FF DF 6F D6 22 [09:26:40]Write to MH i2c: E2 0D 00 B4 1E 80 0D 02 02 05 00 FF DF 6F D6 22 00 00 9B [09:26:40]Write i2c OK [09:26:40]MH_I2C_Read... [09:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:40]Read from MH i2c: E2 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 03 00 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 03 00 B4 1E 00 90 00 46 [09:26:40]RAPDU: 90 00 [09:26:40]wFMCommunicate OK [09:26:40]wFMCommunicate request_size=4 [09:26:40]MH_SAM_APDU [09:26:40]CAPDU: 80 0D 03 02 [09:26:40]Write to MH i2c: E2 08 00 B5 1E 80 0D 03 02 00 00 00 00 4E [09:26:40]Write i2c OK [09:26:40]MH_I2C_Read... [09:26:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:40]Read from MH i2c: E2 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 0B 00 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 0B 00 B5 1E 00 99 7E D0 32 95 AF 98 3D 90 00 81 [09:26:40]RAPDU: 99 7E D0 32 95 AF 98 3D 90 00 [09:26:40]wFMCommunicate OK [09:26:40]SAM_PROTO_SignData done [09:26:40]FM_MakeSignedData done [09:26:40]CreateOFDProtocolMessage [09:26:40]wFMCommunicate request_size=4 [09:26:40]MH_SAM_APDU [09:26:40]CAPDU: 80 11 00 00 [09:26:40]Write to MH i2c: E2 08 00 B6 1E 80 11 00 00 00 00 00 00 4E [09:26:40]Write i2c OK [09:26:40]MH_I2C_Read... [09:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:40]Read from MH i2c: E2 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 17 00 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 17 00 B6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9E [09:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:26:40]wFMCommunicate OK [09:26:40]CreateOFDProtocolMessage done [09:26:40]OFDSenderStorePacket 95103 [09:26:40]StoreOFDPacket docnum=95103 [09:26:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2E AA 07 01 91 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D3 1F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7F 73 01 00 35 04 06 00 79 FF DF 6F D6 22 99 7E D0 32 95 AF 98 3D [09:26:40]CheckFolder [09:26:40]dirname=/storage/ofd_packets [09:26:40]CheckFolder done [09:26:40]ProducePacketName [09:26:40]name=ofd_packets/00095103 [09:26:40]NVStorageSaveData ofd_packets/00095103 [09:26:40]File name is /storage/ofd_packets/00095103 [09:26:40]Write 301 bytes [09:26:40]NVStorageSaveData done [09:26:40]OFDSenderStorePacket done [09:26:40]KKMCreateOFDPacket done [09:26:40]NVStorageSaveData kkm_last_timestamp [09:26:40]File name is /storage/kkm_last_timestamp [09:26:40]Write 4 bytes [09:26:40]NVStorageSaveData done [09:26:40]ExternCall_PrintAddStr [09:26:40]wPrintStart [09:26:40]Write to MH i2c: 01 00 00 B7 1E D5 [09:26:40]Write i2c OK [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: 01 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: 01 07 00 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: 01 07 00 B7 1E 00 80 00 00 00 FF 0F 6A [09:26:40]RasterBufferAndPrint [09:26:40]line Счет N : (1)196068 [09:26:40]line ИНН: 02508201610067 [09:26:40]line Контрольно-Кассовый Чек [09:26:40]line ПРОДАЖА [09:26:40]line ТРК (МРК, ГНК) : 41 [09:26:40]line Товар: 2710124500 [09:26:40]line Аи-95-К-5 [09:26:40]line 14.390 * 69.50 [09:26:40]line = 1000.11 [09:26:40]line НДС 12% НСП 1% [09:26:40]line > о реализуемом товаре [09:26:40]line ИТОГО: 1000.11 [09:26:40]line НСП 1% : 8.85 [09:26:40]line НДС 12% : 106.21 [09:26:40]line Наличными: 0.00 [09:26:40]line Безнал.: 1000.11 [09:26:40]line Место: АЗС № 6 "Партнер Нефть" [09:26:40]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:26:40]line СНО: Общий режим [09:26:40]line Чек 33 12.03.2024 09:26 [09:26:40]line Смена: 327 ФФД: 1.0 [09:26:40]line ЗНМ: 0300000009 [09:26:40]line РНМ: 0000000000090555 [09:26:40]line Версия ККМ: 001 [09:26:40]line Платежная система: Бакай Банк [09:26:40]line ФМ: 0000000000874811 [09:26:40]line ФД: 95103 [09:26:40]line ФПД: 134139872269858 [09:26:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T092643&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95103&fm=134139872269858&tin=02508201610067®Number=0000000000090555&sum=100011 [09:26:40]OFD Sender: Processing packet 95103 [packets to send 30, broken 29] [09:26:40]ProducePacketName [09:26:40]name=ofd_packets/00095103 [09:26:40]OFD Sender: To server: pG, [09:26:40]CommunicateWithHost lk.salyk.kg:30040 [09:26:40]ConnectInit lk.salyk.kg [09:26:40]written 0, free lines is 4095 [09:26:40]Connected sock=10 [09:26:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2E AA 07 01 91 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D3 1F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7F 73 01 00 35 04 06 00 79 FF DF 6F D6 22 99 7E D0 32 95 AF 98 3D [09:26:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 FE 4C 47 00 ED 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7F 73 01 00 F4 03 04 00 29 CB EF 65 B6 04 01 00 00 F2 D4 ED DD 89 B7 1B D3 [09:26:40]CommunicateWithHost err = 0 [09:26:40]CheckOFDResponse [09:26:40]1017 (14) - 77093643461234 [09:26:40]1041 (16) - 0000000000874811 [09:26:40]1040 (4) - 95103 [09:26:40]1012 (4) - 12.03.2024 03:25 [09:26:40]1206 (1) - 0 [09:26:40]OFD Sender: Remove packet 95103 [09:26:40]ProducePacketName [09:26:40]name=ofd_packets/00095103 [09:26:40]NVStorageDeleteData [09:26:41]Write to MH i2c: 01 00 00 E1 1E FF [09:26:41]Write i2c OK [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: 01 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: 01 07 00 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: 01 07 00 E1 1E 00 80 00 00 00 6B 0D FE [09:26:41]RasterBufferAndPrint [09:26:41]line [09:26:41]line [09:26:41]line [09:26:41]line [09:26:41]line [09:26:41]written 0, free lines is 3441 [09:26:41]process_action close_receipt done [09:26:41]requested_data is exist [09:26:41]produce_requested_data [09:26:41]requested_item fm.sn is exist - process it [09:26:41]wFMCommunicate request_size=4 [09:26:41]MH_SAM_APDU [09:26:41]CAPDU: 80 11 00 00 [09:26:41]Write to MH i2c: E2 08 00 E8 1E 80 11 00 00 00 00 00 00 80 [09:26:41]Write i2c OK [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: E2 [09:26:41]MH_I2C_Read... [09:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:41]Read from MH i2c: E2 17 00 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: E2 17 00 E8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D0 [09:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:26:41]wFMCommunicate OK [09:26:41]requested_item fd.num is exist - process it [09:26:41]SAM_PROTO_GetFieldsCounters [09:26:41]wFMCommunicate request_size=4 [09:26:41]MH_SAM_APDU [09:26:41]CAPDU: 80 13 00 00 [09:26:41]Write to MH i2c: E2 08 00 E9 1E 80 13 00 00 00 00 00 00 83 [09:26:41]Write i2c OK [09:26:41]MH_I2C_Read... [09:26:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:41]Read from MH i2c: E2 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: E2 62 00 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: E2 62 00 E9 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7F 73 01 00 0E 04 04 00 47 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 3E [09:26:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7F 73 01 00 0E 04 04 00 47 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:26:41]wFMCommunicate OK [09:26:41]SAM_PROTO_GetFieldsCounters done [09:26:41]requested_item shift.num is exist - process it [09:26:41]requested_item shift.opened is exist - process it [09:26:41]req_shift_opened [09:26:41]FM_GetShiftState [09:26:41]SAM_PROTO_GetShiftState [09:26:41]wFMCommunicate request_size=4 [09:26:41]MH_SAM_APDU [09:26:41]CAPDU: 80 13 01 00 [09:26:41]Write to MH i2c: E2 08 00 EA 1E 80 13 01 00 00 00 00 00 85 [09:26:41]Write i2c OK [09:26:41]MH_I2C_Read... [09:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:41]Read from MH i2c: E2 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: E2 0E 00 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: E2 0E 00 EA 1E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F9 [09:26:41]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:26:41]wFMCommunicate OK [09:26:41]SAM_PROTO_GetShiftState done [09:26:41]FM_GetShiftState done [09:26:41]req_shift_opened done [09:26:41]requested_item shift.open_date is exist - process it [09:26:41]req_shift_open_date [09:26:41]req_shift_open_date done [09:26:41]produce_requested_data done [09:26:41]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95103,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [09:26:41]process_action_free close_receipt [09:26:41]json_value_free [09:26:41]json_value_free done [09:26:41]process_json_proto returns [09:26:41]Send response to host [09:26:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95103,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [09:26:41]free response buf [09:26:41]execute_script done [09:26:41]execute_script returns [09:26:41]free content buf [09:26:41]Sock 9.Close socket [09:26:41]Sock 9.Thread stoped [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:53]accept exits with 8 [09:27:53]New connection [09:27:53]New thread 3066813796 created [09:27:53]Thread 3066957156 joined [09:27:53]Waiting for new connection... [09:27:53] Sock 8.Parse request [09:27:53]Sock 8.Check first char [09:27:53]Sock 8.First char is OK [09:27:53]request: POST /json_proto HTTP/1.0 [09:27:53]Method: POST [09:27:53]URL: /json_proto [09:27:53]Method is POST - this is cgi request [09:27:53]url: /json_proto [09:27:53]query_string will be loaded in cgi processing [09:27:53]execute_cgi json_proto POST (null) [09:27:53]execute_cgi path=json_proto method=POST [09:27:53]POST find Content-Length [09:27:53]Host: 172.17.62.67:8080 [09:27:53]Content-Length: 678 [09:27:53]Content-Type: application/json [09:27:53] [09:27:53]POST finish read [09:27:53]Found Content-Length = 678 [09:27:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 12.410, "sum" : 780.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 780.00, "total" : 780.00, "payments": [ { "type": 0, "sum" : 780.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:53]execute_script... [09:27:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 12.410, "sum" : 780.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 780.00, "total" : 780.00, "payments": [ { "type": 0, "sum" : 780.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:53]POST & json_proto [09:27:53]process_json_proto [09:27:53]json parsed OK: [09:27:53]protocol is kg_v1.0 [09:27:53]action value=close_receipt [09:27:53]process_action close_receipt [09:27:53]cmd_close_receipt [09:27:53]MH_GetDate [09:27:53]Write to MH i2c: F0 00 00 EB 1E F8 [09:27:53]Write i2c OK [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: F0 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: F0 05 00 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: F0 05 00 EB 1E 00 1D 20 F0 65 8F [09:27:53]GetLastDocTimeStamp 1710235603 [09:27:53]current date 1710235677 [09:27:53]FM_GetShiftState [09:27:53]SAM_PROTO_GetShiftState [09:27:53]wFMCommunicate request_size=4 [09:27:53]MH_SAM_APDU [09:27:53]CAPDU: 80 13 01 00 [09:27:53]Write to MH i2c: E2 08 00 EC 1E 80 13 01 00 00 00 00 00 87 [09:27:53]Write i2c OK [09:27:53]MH_I2C_Read... [09:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:53]Read from MH i2c: E2 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: E2 0E 00 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: E2 0E 00 EC 1E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 FB [09:27:53]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:27:53]wFMCommunicate OK [09:27:53]SAM_PROTO_GetShiftState done [09:27:53]FM_GetShiftState done [09:27:53]opened in 1710201976 [09:27:53]opened+sec_in_day 1710288376 [09:27:53]quantity*price = 78058 [09:27:53]sum+1 = 78060 [09:27:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 780.00 Внесено: 780.00 СДАЧА: 0.00 НСП 1% : 6.91 НДС 12% : 82.89 Наличными: 780.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 34 12.03.2024 09:27 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95104 ФПД: 53239999418727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T092758&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95104&fm=53239999418727&tin=02508201610067®Number=0000000000090555&sum=78000 [09:27:54]StoreToDocumentArchive [09:27:54]shift 327 fd 95104 [09:27:54]save to /storage/0327/doc_00095104 [09:27:54]save last doc name /storage/0327/doc_00095104 to /storage/kkm_last_doc_name [09:27:54]save OK [09:27:54]Clear old archive folders... [09:27:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:54]tlvbuf is 01A70FC0 [09:27:54]SAM_PROTO_ClearQueue [09:27:54]wFMCommunicate request_size=4 [09:27:54]MH_SAM_APDU [09:27:54]CAPDU: 80 09 00 00 [09:27:54]Write to MH i2c: E2 08 00 F9 1E 80 09 00 00 00 00 00 00 89 [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:54]Read from MH i2c: E2 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 03 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 03 00 F9 1E 00 90 00 8B [09:27:54]RAPDU: 90 00 [09:27:54]wFMCommunicate OK [09:27:54]SAM_PROTO_ClearQueue done [09:27:54]KKMCreateOFDPacket [09:27:54]OFDProtocolAddRootSTLVToBuf [09:27:54]FM_MakeSignedData [09:27:54]FM_MakeSignedData [09:27:54]SAM_PROTO_SignData [09:27:54]wFMCommunicate request_size=4 [09:27:54]MH_SAM_APDU [09:27:54]CAPDU: 80 0D 01 02 [09:27:54]Write to MH i2c: E2 08 00 FA 1E 80 0D 01 02 00 00 00 00 91 [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:54]Read from MH i2c: E2 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 03 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 03 00 FA 1E 00 90 00 8C [09:27:54]RAPDU: 90 00 [09:27:54]wFMCommunicate OK [09:27:54]wFMCommunicate request_size=255 [09:27:54]MH_SAM_APDU [09:27:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 30 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EB 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 20 00 00 00 00 07 04 06 00 B0 30 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 1E 20 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 80 73 01 00 35 04 06 00 30 [09:27:54]Write to MH i2c: E2 02 01 FB 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 30 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EB 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 20 00 00 00 00 07 04 06 00 B0 30 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 1E 20 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 80 73 01 00 35 04 06 00 30 00 00 20 [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:55]Read from MH i2c: E2 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: E2 03 00 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: E2 03 00 FB 1E 00 90 00 8D [09:27:55]RAPDU: 90 00 [09:27:55]wFMCommunicate OK [09:27:55]wFMCommunicate request_size=10 [09:27:55]MH_SAM_APDU [09:27:55]CAPDU: 80 0D 02 02 05 6B E7 40 D1 67 [09:27:55]Write to MH i2c: E2 0D 00 FC 1E 80 0D 02 02 05 00 6B E7 40 D1 67 00 00 68 [09:27:55]Write i2c OK [09:27:55]MH_I2C_Read... [09:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:55]Read from MH i2c: E2 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: E2 03 00 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: E2 03 00 FC 1E 00 90 00 8E [09:27:55]RAPDU: 90 00 [09:27:55]wFMCommunicate OK [09:27:55]wFMCommunicate request_size=4 [09:27:55]MH_SAM_APDU [09:27:55]CAPDU: 80 0D 03 02 [09:27:55]Write to MH i2c: E2 08 00 FD 1E 80 0D 03 02 00 00 00 00 96 [09:27:55]Write i2c OK [09:27:55]MH_I2C_Read... [09:27:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:55]Read from MH i2c: E2 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: E2 0B 00 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: E2 0B 00 FD 1E 00 96 0D 17 70 7D 07 E0 2D 90 00 52 [09:27:55]RAPDU: 96 0D 17 70 7D 07 E0 2D 90 00 [09:27:55]wFMCommunicate OK [09:27:55]SAM_PROTO_SignData done [09:27:55]FM_MakeSignedData done [09:27:55]CreateOFDProtocolMessage [09:27:55]wFMCommunicate request_size=4 [09:27:55]MH_SAM_APDU [09:27:55]CAPDU: 80 11 00 00 [09:27:55]Write to MH i2c: E2 08 00 FE 1E 80 11 00 00 00 00 00 00 96 [09:27:55]Write i2c OK [09:27:55]MH_I2C_Read... [09:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:55]Read from MH i2c: E2 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: E2 17 00 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: E2 17 00 FE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E6 [09:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:27:55]wFMCommunicate OK [09:27:55]CreateOFDProtocolMessage done [09:27:55]OFDSenderStorePacket 95104 [09:27:55]StoreOFDPacket docnum=95104 [09:27:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 12 3F 07 01 83 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 30 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EB 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 20 00 00 00 00 07 04 06 00 B0 30 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 1E 20 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 80 73 01 00 35 04 06 00 30 6B E7 40 D1 67 96 0D 17 70 7D 07 E0 2D [09:27:55]CheckFolder [09:27:55]dirname=/storage/ofd_packets [09:27:55]CheckFolder done [09:27:55]ProducePacketName [09:27:55]name=ofd_packets/00095104 [09:27:55]NVStorageSaveData ofd_packets/00095104 [09:27:55]File name is /storage/ofd_packets/00095104 [09:27:55]Write 301 bytes [09:27:55]NVStorageSaveData done [09:27:55]OFDSenderStorePacket done [09:27:55]KKMCreateOFDPacket done [09:27:55]NVStorageSaveData kkm_last_timestamp [09:27:55]File name is /storage/kkm_last_timestamp [09:27:55]Write 4 bytes [09:27:55]NVStorageSaveData done [09:27:55]ExternCall_PrintAddStr [09:27:55]wPrintStart [09:27:55]Write to MH i2c: 01 00 00 FF 1E 1D [09:27:55]Write i2c OK [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: 01 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: 01 07 00 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: 01 07 00 FF 1E 00 80 00 00 00 FF 0F B2 [09:27:55]RasterBufferAndPrint [09:27:55]line Счет N : (1)196069 [09:27:55]line ИНН: 02508201610067 [09:27:55]line Контрольно-Кассовый Чек [09:27:55]line ПРОДАЖА [09:27:55]line ТРК (МРК, ГНК) : 22 [09:27:55]line Товар: 2710124130 [09:27:55]line Аи-92-К-5 [09:27:55]line 12.410 * 62.90 [09:27:55]line = 780.59 [09:27:55]line НДС 12% НСП 1% [09:27:55]line > о реализуемом товаре [09:27:55]line ОКРУГЛЕНИЕ: -0.59 [09:27:55]line ИТОГО: 780.00 [09:27:55]line Внесено: 780.00 [09:27:55]line СДАЧА: 0.00 [09:27:55]line НСП 1% : 6.91 [09:27:55]line НДС 12% : 82.89 [09:27:55]line Наличными: 780.00 [09:27:55]line Безнал.: 0.00 [09:27:55]line Место: АЗС № 6 "Партнер Нефть" [09:27:55]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:27:55]line СНО: Общий режим [09:27:55]line Чек 34 12.03.2024 09:27 [09:27:55]line Смена: 327 ФФД: 1.0 [09:27:55]line ЗНМ: 0300000009 [09:27:55]line РНМ: 0000000000090555 [09:27:55]line Версия ККМ: 001 [09:27:55]line ФМ: 0000000000874811 [09:27:55]line ФД: 95104 [09:27:55]line ФПД: 53239999418727 [09:27:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T092758&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95104&fm=53239999418727&tin=02508201610067®Number=0000000000090555&sum=78000 [09:27:55]OFD Sender: Processing packet 95104 [packets to send 30, broken 29] [09:27:55]ProducePacketName [09:27:55]name=ofd_packets/00095104 [09:27:55]OFD Sender: To server: pG, [09:27:55]CommunicateWithHost lk.salyk.kg:30040 [09:27:55]ConnectInit lk.salyk.kg [09:27:55]written 0, free lines is 4095 [09:27:55]Connected sock=10 [09:27:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 12 3F 07 01 83 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 30 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EB 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 20 00 00 00 00 07 04 06 00 B0 30 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 1E 20 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 80 73 01 00 35 04 06 00 30 6B E7 40 D1 67 96 0D 17 70 7D 07 E0 2D [09:27:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 36 3A 47 00 DA 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 80 73 01 00 F4 03 04 00 74 CB EF 65 B6 04 01 00 00 3A A4 9F E2 39 71 C0 78 [09:27:55]CommunicateWithHost err = 0 [09:27:55]CheckOFDResponse [09:27:55]1017 (14) - 77093643461234 [09:27:55]1041 (16) - 0000000000874811 [09:27:55]1040 (4) - 95104 [09:27:55]1012 (4) - 12.03.2024 03:26 [09:27:55]1206 (1) - 0 [09:27:55]OFD Sender: Remove packet 95104 [09:27:55]ProducePacketName [09:27:55]name=ofd_packets/00095104 [09:27:55]NVStorageDeleteData [09:27:56]Write to MH i2c: 01 00 00 2A 1F 49 [09:27:56]Write i2c OK [09:27:56]MH_I2C_Read... [09:27:56]Read from MH i2c: 01 [09:27:56]MH_I2C_Read... [09:27:56]Read from MH i2c: 01 07 00 [09:27:56]MH_I2C_Read... [09:27:56]Read from MH i2c: 01 07 00 2A 1F 00 80 00 00 00 5A 0D 37 [09:27:56]RasterBufferAndPrint [09:27:56]line [09:27:56]line [09:27:56]line [09:27:56]line [09:27:56]line [09:27:56]written 0, free lines is 3424 [09:27:56]process_action close_receipt done [09:27:56]requested_data is exist [09:27:56]produce_requested_data [09:27:56]requested_item fm.sn is exist - process it [09:27:56]wFMCommunicate request_size=4 [09:27:56]MH_SAM_APDU [09:27:56]CAPDU: 80 11 00 00 [09:27:56]Write to MH i2c: E2 08 00 31 1F 80 11 00 00 00 00 00 00 CA [09:27:56]Write i2c OK [09:27:56]MH_I2C_Read... [09:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:56]Read from MH i2c: E2 [09:27:56]MH_I2C_Read... [09:27:56]Read from MH i2c: E2 17 00 [09:27:56]MH_I2C_Read... [09:27:56]Read from MH i2c: E2 17 00 31 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1A [09:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:27:56]wFMCommunicate OK [09:27:56]requested_item fd.num is exist - process it [09:27:56]SAM_PROTO_GetFieldsCounters [09:27:56]wFMCommunicate request_size=4 [09:27:56]MH_SAM_APDU [09:27:56]CAPDU: 80 13 00 00 [09:27:56]Write to MH i2c: E2 08 00 32 1F 80 13 00 00 00 00 00 00 CD [09:27:56]Write i2c OK [09:27:56]MH_I2C_Read... [09:27:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:56]Read from MH i2c: E2 [09:27:56]MH_I2C_Read... [09:27:56]Read from MH i2c: E2 62 00 [09:27:56]MH_I2C_Read... [09:27:56]Read from MH i2c: E2 62 00 32 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 80 73 01 00 0E 04 04 00 47 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 8C [09:27:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 80 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:56]wFMCommunicate OK [09:27:56]SAM_PROTO_GetFieldsCounters done [09:27:56]requested_item shift.num is exist - process it [09:27:56]requested_item shift.opened is exist - process it [09:27:56]req_shift_opened [09:27:56]FM_GetShiftState [09:27:56]SAM_PROTO_GetShiftState [09:27:56]wFMCommunicate request_size=4 [09:27:56]MH_SAM_APDU [09:27:56]CAPDU: 80 13 01 00 [09:27:56]Write to MH i2c: E2 08 00 33 1F 80 13 01 00 00 00 00 00 CF [09:27:56]Write i2c OK [09:27:56]MH_I2C_Read... [09:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:56]Read from MH i2c: E2 [09:27:56]MH_I2C_Read... [09:27:56]Read from MH i2c: E2 0E 00 [09:27:56]MH_I2C_Read... [09:27:56]OFD Sender: No OFD packet to send [09:27:56]Read from MH i2c: E2 0E 00 33 1F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 43 [09:27:56]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:27:56]wFMCommunicate OK [09:27:56]SAM_PROTO_GetShiftState done [09:27:56]FM_GetShiftState done [09:27:56]req_shift_opened done [09:27:56]requested_item shift.open_date is exist - process it [09:27:56]req_shift_open_date [09:27:56]req_shift_open_date done [09:27:56]produce_requested_data done [09:27:56]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95104,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [09:27:56]process_action_free close_receipt [09:27:56]json_value_free [09:27:56]json_value_free done [09:27:56]process_json_proto returns [09:27:56]Send response to host [09:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95104,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [09:27:56]free response buf [09:27:56]execute_script done [09:27:56]execute_script returns [09:27:56]free content buf [09:27:56]Sock 8.Close socket [09:27:56]Sock 8.Thread stoped [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:39]accept exits with 9 [09:32:39]New connection [09:32:39]New thread 3066957156 created [09:32:39]Thread 3066813796 joined [09:32:39]Waiting for new connection... [09:32:39] Sock 9.Parse request [09:32:39]Sock 9.Check first char [09:32:39]Sock 9.First char is OK [09:32:39]request: POST /json_proto HTTP/1.0 [09:32:39]Method: POST [09:32:39]URL: /json_proto [09:32:39]Method is POST - this is cgi request [09:32:39]url: /json_proto [09:32:39]query_string will be loaded in cgi processing [09:32:39]execute_cgi json_proto POST (null) [09:32:39]execute_cgi path=json_proto method=POST [09:32:39]POST find Content-Length [09:32:39]Host: 172.17.62.67:8080 [09:32:39]Content-Length: 677 [09:32:39]Content-Type: application/json [09:32:39] [09:32:39]POST finish read [09:32:39]Found Content-Length = 677 [09:32:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:32:39]execute_script... [09:32: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)196070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:32:39]POST & json_proto [09:32:39]process_json_proto [09:32:39]json parsed OK: [09:32:39]protocol is kg_v1.0 [09:32:39]action value=close_receipt [09:32:39]process_action close_receipt [09:32:39]cmd_close_receipt [09:32:39]MH_GetDate [09:32:39]Write to MH i2c: F0 00 00 34 1F 42 [09:32:39]Write i2c OK [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: F0 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: F0 05 00 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: F0 05 00 34 1F 00 3C 21 F0 65 F9 [09:32:39]GetLastDocTimeStamp 1710235678 [09:32:39]current date 1710235964 [09:32:39]FM_GetShiftState [09:32:39]SAM_PROTO_GetShiftState [09:32:39]wFMCommunicate request_size=4 [09:32:39]MH_SAM_APDU [09:32:39]CAPDU: 80 13 01 00 [09:32:39]Write to MH i2c: E2 08 00 35 1F 80 13 01 00 00 00 00 00 D1 [09:32:39]Write i2c OK [09:32:39]MH_I2C_Read... [09:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:39]Read from MH i2c: E2 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: E2 0E 00 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: E2 0E 00 35 1F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 45 [09:32:39]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:32:39]wFMCommunicate OK [09:32:39]SAM_PROTO_GetShiftState done [09:32:39]FM_GetShiftState done [09:32:39]opened in 1710201976 [09:32:39]opened+sec_in_day 1710288376 [09:32:39]quantity*price = 50005 [09:32:39]sum+1 = 50007 [09:32:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 35 12.03.2024 09:32 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95105 ФПД: 76910446428356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T093244&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95105&fm=76910446428356&tin=02508201610067®Number=0000000000090555&sum=50000 [09:32:40]StoreToDocumentArchive [09:32:40]shift 327 fd 95105 [09:32:40]save to /storage/0327/doc_00095105 [09:32:40]save last doc name /storage/0327/doc_00095105 to /storage/kkm_last_doc_name [09:32:40]save OK [09:32:40]Clear old archive folders... [09:32:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:40]tlvbuf is 01A64680 [09:32:40]SAM_PROTO_ClearQueue [09:32:40]wFMCommunicate request_size=4 [09:32:40]MH_SAM_APDU [09:32:40]CAPDU: 80 09 00 00 [09:32:40]Write to MH i2c: E2 08 00 42 1F 80 09 00 00 00 00 00 00 D3 [09:32:40]Write i2c OK [09:32:40]MH_I2C_Read... [09:32:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:40]Read from MH i2c: E2 [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: E2 03 00 [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: E2 03 00 42 1F 00 90 00 D5 [09:32:40]RAPDU: 90 00 [09:32:40]wFMCommunicate OK [09:32:40]SAM_PROTO_ClearQueue done [09:32:40]KKMCreateOFDPacket [09:32:40]OFDProtocolAddRootSTLVToBuf [09:32:40]FM_MakeSignedData [09:32:40]FM_MakeSignedData [09:32:40]SAM_PROTO_SignData [09:32:40]wFMCommunicate request_size=4 [09:32:40]MH_SAM_APDU [09:32:40]CAPDU: 80 0D 01 02 [09:32:40]Write to MH i2c: E2 08 00 43 1F 80 0D 01 02 00 00 00 00 DB [09:32:40]Write i2c OK [09:32:40]MH_I2C_Read... [09:32:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:40]Read from MH i2c: E2 [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: E2 03 00 [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: E2 03 00 43 1F 00 90 00 D6 [09:32:40]RAPDU: 90 00 [09:32:40]wFMCommunicate OK [09:32:40]wFMCommunicate request_size=255 [09:32:40]MH_SAM_APDU [09:32:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3C 21 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 81 73 01 00 35 04 06 00 45 [09:32:40]Write to MH i2c: E2 02 01 44 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3C 21 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 81 73 01 00 35 04 06 00 45 00 00 DB [09:32:41]Write i2c OK [09:32:41]MH_I2C_Read... [09:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:41]Read from MH i2c: E2 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: E2 03 00 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: E2 03 00 44 1F 00 90 00 D7 [09:32:41]RAPDU: 90 00 [09:32:41]wFMCommunicate OK [09:32:41]wFMCommunicate request_size=10 [09:32:41]MH_SAM_APDU [09:32:41]CAPDU: 80 0D 02 02 05 F3 1B D6 C0 C4 [09:32:41]Write to MH i2c: E2 0D 00 45 1F 80 0D 02 02 05 00 F3 1B D6 C0 C4 00 00 50 [09:32:41]Write i2c OK [09:32:41]MH_I2C_Read... [09:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:41]Read from MH i2c: E2 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: E2 03 00 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: E2 03 00 45 1F 00 90 00 D8 [09:32:41]RAPDU: 90 00 [09:32:41]wFMCommunicate OK [09:32:41]wFMCommunicate request_size=4 [09:32:41]MH_SAM_APDU [09:32:41]CAPDU: 80 0D 03 02 [09:32:41]Write to MH i2c: E2 08 00 46 1F 80 0D 03 02 00 00 00 00 E0 [09:32:41]Write i2c OK [09:32:41]MH_I2C_Read... [09:32:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:41]Read from MH i2c: E2 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: E2 0B 00 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: E2 0B 00 46 1F 00 04 F1 C2 0E 90 36 5A C5 90 00 8B [09:32:41]RAPDU: 04 F1 C2 0E 90 36 5A C5 90 00 [09:32:41]wFMCommunicate OK [09:32:41]SAM_PROTO_SignData done [09:32:41]FM_MakeSignedData done [09:32:41]CreateOFDProtocolMessage [09:32:41]wFMCommunicate request_size=4 [09:32:41]MH_SAM_APDU [09:32:41]CAPDU: 80 11 00 00 [09:32:41]Write to MH i2c: E2 08 00 47 1F 80 11 00 00 00 00 00 00 E0 [09:32:41]Write i2c OK [09:32:41]MH_I2C_Read... [09:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:41]Read from MH i2c: E2 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: E2 17 00 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: E2 17 00 47 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 30 [09:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:32:41]wFMCommunicate OK [09:32:41]CreateOFDProtocolMessage done [09:32:41]OFDSenderStorePacket 95105 [09:32:41]StoreOFDPacket docnum=95105 [09:32:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BE AA 07 01 2C 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3C 21 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 81 73 01 00 35 04 06 00 45 F3 1B D6 C0 C4 04 F1 C2 0E 90 36 5A C5 [09:32:41]CheckFolder [09:32:41]dirname=/storage/ofd_packets [09:32:41]CheckFolder done [09:32:41]ProducePacketName [09:32:41]name=ofd_packets/00095105 [09:32:41]NVStorageSaveData ofd_packets/00095105 [09:32:41]File name is /storage/ofd_packets/00095105 [09:32:41]Write 301 bytes [09:32:41]NVStorageSaveData done [09:32:41]OFDSenderStorePacket done [09:32:41]KKMCreateOFDPacket done [09:32:41]NVStorageSaveData kkm_last_timestamp [09:32:41]File name is /storage/kkm_last_timestamp [09:32:41]Write 4 bytes [09:32:41]NVStorageSaveData done [09:32:41]OFD Sender: Processing packet 95105 [packets to send 30, broken 29] [09:32:41]ProducePacketName [09:32:41]name=ofd_packets/00095105 [09:32:41]OFD Sender: To server: pG, [09:32:41]CommunicateWithHost lk.salyk.kg:30040 [09:32:41]ConnectInit lk.salyk.kg [09:32:41]ExternCall_PrintAddStr [09:32:41]wPrintStart [09:32:41]Write to MH i2c: 01 00 00 48 1F 67 [09:32:41]Write i2c OK [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: 01 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: 01 07 00 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: 01 07 00 48 1F 00 80 00 00 00 FF 0F FC [09:32:41]RasterBufferAndPrint [09:32:41]line Счет N : (1)196070 [09:32:41]line ИНН: 02508201610067 [09:32:41]line Контрольно-Кассовый Чек [09:32:41]line ПРОДАЖА [09:32:41]line ТРК (МРК, ГНК) : 22 [09:32:41]line Товар: 2710124130 [09:32:41]line Аи-92-К-5 [09:32:41]line 7.950 * 62.90 [09:32:41]line = 500.06 [09:32:41]line НДС 12% НСП 1% [09:32:41]line > о реализуемом товаре [09:32:41]line ОКРУГЛЕНИЕ: -0.06 [09:32:41]line ИТОГО: 500.00 [09:32:41]line Внесено: 500.00 [09:32:41]line СДАЧА: 0.00 [09:32:41]line НСП 1% : 4.42 [09:32:41]line НДС 12% : 53.10 [09:32:41]line Наличными: 500.00 [09:32:41]line Безнал.: 0.00 [09:32:41]line Место: АЗС № 6 "Партнер Нефть" [09:32:41]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:32:41]line СНО: Общий режим [09:32:41]line Чек 35 12.03.2024 09:32 [09:32:41]line Смена: 327 ФФД: 1.0 [09:32:41]line ЗНМ: 0300000009 [09:32:41]line РНМ: 0000000000090555 [09:32:41]line Версия ККМ: 001 [09:32:41]line ФМ: 0000000000874811 [09:32:41]line ФД: 95105 [09:32:41]line ФПД: 76910446428356 [09:32:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T093244&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95105&fm=76910446428356&tin=02508201610067®Number=0000000000090555&sum=50000 [09:32:41]Connected sock=11 [09:32:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BE AA 07 01 2C 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3C 21 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 81 73 01 00 35 04 06 00 45 F3 1B D6 C0 C4 04 F1 C2 0E 90 36 5A C5 [09:32:41]written 0, free lines is 4095 [09:32:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 84 99 47 00 F6 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 81 73 01 00 F4 03 04 00 92 CC EF 65 B6 04 01 00 00 68 8F DC CF 75 23 91 54 [09:32:41]CommunicateWithHost err = 0 [09:32:41]CheckOFDResponse [09:32:41]1017 (14) - 77093643461234 [09:32:41]1041 (16) - 0000000000874811 [09:32:41]1040 (4) - 95105 [09:32:41]1012 (4) - 12.03.2024 03:31 [09:32:41]1206 (1) - 0 [09:32:41]OFD Sender: Remove packet 95105 [09:32:41]ProducePacketName [09:32:41]name=ofd_packets/00095105 [09:32:41]NVStorageDeleteData [09:32:42]Write to MH i2c: 01 00 00 73 1F 92 [09:32:42]Write i2c OK [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: 01 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: 01 07 00 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: 01 07 00 73 1F 00 80 00 00 00 4E 0D 74 [09:32:42]RasterBufferAndPrint [09:32:42]line [09:32:42]line [09:32:42]line [09:32:42]line [09:32:42]line [09:32:42]written 0, free lines is 3412 [09:32:42]process_action close_receipt done [09:32:42]requested_data is exist [09:32:42]produce_requested_data [09:32:42]requested_item fm.sn is exist - process it [09:32:42]wFMCommunicate request_size=4 [09:32:42]MH_SAM_APDU [09:32:42]CAPDU: 80 11 00 00 [09:32:42]Write to MH i2c: E2 08 00 7A 1F 80 11 00 00 00 00 00 00 13 [09:32:42]Write i2c OK [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: E2 [09:32:42]MH_I2C_Read... [09:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:42]Read from MH i2c: E2 17 00 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: E2 17 00 7A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 63 [09:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:32:42]wFMCommunicate OK [09:32:42]requested_item fd.num is exist - process it [09:32:42]SAM_PROTO_GetFieldsCounters [09:32:42]wFMCommunicate request_size=4 [09:32:42]MH_SAM_APDU [09:32:42]CAPDU: 80 13 00 00 [09:32:42]Write to MH i2c: E2 08 00 7B 1F 80 13 00 00 00 00 00 00 16 [09:32:42]Write i2c OK [09:32:42]MH_I2C_Read... [09:32:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:42]Read from MH i2c: E2 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: E2 62 00 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: E2 62 00 7B 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 81 73 01 00 0E 04 04 00 47 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 D9 [09:32:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 81 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:42]wFMCommunicate OK [09:32:42]SAM_PROTO_GetFieldsCounters done [09:32:42]requested_item shift.num is exist - process it [09:32:42]requested_item shift.opened is exist - process it [09:32:42]req_shift_opened [09:32:42]FM_GetShiftState [09:32:42]SAM_PROTO_GetShiftState [09:32:42]wFMCommunicate request_size=4 [09:32:42]MH_SAM_APDU [09:32:42]CAPDU: 80 13 01 00 [09:32:42]Write to MH i2c: E2 08 00 7C 1F 80 13 01 00 00 00 00 00 18 [09:32:42]Write i2c OK [09:32:42]MH_I2C_Read... [09:32:42]OFD Sender: No OFD packet to send [09:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:42]Read from MH i2c: E2 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: E2 0E 00 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: E2 0E 00 7C 1F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 8C [09:32:42]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:32:42]wFMCommunicate OK [09:32:42]SAM_PROTO_GetShiftState done [09:32:42]FM_GetShiftState done [09:32:42]req_shift_opened done [09:32:42]requested_item shift.open_date is exist - process it [09:32:42]req_shift_open_date [09:32:42]req_shift_open_date done [09:32:42]produce_requested_data done [09:32:42]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95105,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [09:32:42]process_action_free close_receipt [09:32:42]json_value_free [09:32:42]json_value_free done [09:32:42]process_json_proto returns [09:32:42]Send response to host [09:32:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95105,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [09:32:42]free response buf [09:32:42]execute_script done [09:32:42]execute_script returns [09:32:42]free content buf [09:32:42]Sock 9.Close socket [09:32:42]Sock 9.Thread stoped [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:26]accept exits with 8 [09:44:26]New connection [09:44:26]New thread 3066813796 created [09:44:26]Thread 3066957156 joined [09:44:26]Waiting for new connection... [09:44:26] Sock 8.Parse request [09:44:26]Sock 8.Check first char [09:44:26]Sock 8.First char is OK [09:44:26]request: POST /json_proto HTTP/1.0 [09:44:26]Method: POST [09:44:26]URL: /json_proto [09:44:26]Method is POST - this is cgi request [09:44:26]url: /json_proto [09:44:26]query_string will be loaded in cgi processing [09:44:26]execute_cgi json_proto POST (null) [09:44:26]execute_cgi path=json_proto method=POST [09:44:26]POST find Content-Length [09:44:26]Host: 172.17.62.67:8080 [09:44:26]Content-Length: 678 [09:44:26]Content-Type: application/json [09:44:26] [09:44:26]POST finish read [09:44:26]Found Content-Length = 678 [09:44:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "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:44:26]execute_script... [09:44: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)196071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "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:44:26]POST & json_proto [09:44:26]process_json_proto [09:44:26]json parsed OK: [09:44:26]protocol is kg_v1.0 [09:44:26]action value=close_receipt [09:44:26]process_action close_receipt [09:44:26]cmd_close_receipt [09:44:26]MH_GetDate [09:44:26]Write to MH i2c: F0 00 00 7D 1F 8B [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: F0 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: F0 05 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: F0 05 00 7D 1F 00 FE 23 F0 65 06 [09:44:26]GetLastDocTimeStamp 1710235964 [09:44:26]current date 1710236670 [09:44:26]FM_GetShiftState [09:44:26]SAM_PROTO_GetShiftState [09:44:26]wFMCommunicate request_size=4 [09:44:26]MH_SAM_APDU [09:44:26]CAPDU: 80 13 01 00 [09:44:26]Write to MH i2c: E2 08 00 7E 1F 80 13 01 00 00 00 00 00 1A [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:26]Read from MH i2c: E2 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 0E 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 0E 00 7E 1F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 8E [09:44:26]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:44:26]wFMCommunicate OK [09:44:26]SAM_PROTO_GetShiftState done [09:44:26]FM_GetShiftState done [09:44:26]opened in 1710201976 [09:44:26]opened+sec_in_day 1710288376 [09:44:26]quantity*price = 70007 [09:44:26]sum+1 = 70009 [09:44:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 36 12.03.2024 09:44 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95106 ФПД: 200913773993721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T094430&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95106&fm=200913773993721&tin=02508201610067®Number=0000000000090555&sum=70000 [09:44:27]StoreToDocumentArchive [09:44:27]shift 327 fd 95106 [09:44:27]save to /storage/0327/doc_00095106 [09:44:27]save last doc name /storage/0327/doc_00095106 to /storage/kkm_last_doc_name [09:44:27]save OK [09:44:27]Clear old archive folders... [09:44:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:27]tlvbuf is 01A5F270 [09:44:27]SAM_PROTO_ClearQueue [09:44:27]wFMCommunicate request_size=4 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 09 00 00 [09:44:27]Write to MH i2c: E2 08 00 8B 1F 80 09 00 00 00 00 00 00 1C [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 8B 1F 00 90 00 1E [09:44:27]RAPDU: 90 00 [09:44:27]wFMCommunicate OK [09:44:27]SAM_PROTO_ClearQueue done [09:44:27]KKMCreateOFDPacket [09:44:27]OFDProtocolAddRootSTLVToBuf [09:44:27]FM_MakeSignedData [09:44:27]FM_MakeSignedData [09:44:27]SAM_PROTO_SignData [09:44:27]wFMCommunicate request_size=4 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 0D 01 02 [09:44:27]Write to MH i2c: E2 08 00 8C 1F 80 0D 01 02 00 00 00 00 24 [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 8C 1F 00 90 00 1F [09:44:27]RAPDU: 90 00 [09:44:27]wFMCommunicate OK [09:44:27]wFMCommunicate request_size=255 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 24 00 00 00 F4 03 04 00 FE 23 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 82 73 01 00 35 04 06 00 B6 [09:44:27]Write to MH i2c: E2 02 01 8D 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 24 00 00 00 F4 03 04 00 FE 23 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 82 73 01 00 35 04 06 00 B6 00 00 29 [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 8D 1F 00 90 00 20 [09:44:27]RAPDU: 90 00 [09:44:27]wFMCommunicate OK [09:44:27]wFMCommunicate request_size=10 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 0D 02 02 05 BA E2 21 1E F9 [09:44:27]Write to MH i2c: E2 0D 00 8E 1F 80 0D 02 02 05 00 BA E2 21 1E F9 00 00 05 [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 8E 1F 00 90 00 21 [09:44:27]RAPDU: 90 00 [09:44:27]wFMCommunicate OK [09:44:27]wFMCommunicate request_size=4 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 0D 03 02 [09:44:27]Write to MH i2c: E2 08 00 8F 1F 80 0D 03 02 00 00 00 00 29 [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 0B 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 0B 00 8F 1F 00 6A EB 23 DB EF C0 08 76 90 00 AA [09:44:27]RAPDU: 6A EB 23 DB EF C0 08 76 90 00 [09:44:27]wFMCommunicate OK [09:44:27]SAM_PROTO_SignData done [09:44:27]FM_MakeSignedData done [09:44:27]CreateOFDProtocolMessage [09:44:27]wFMCommunicate request_size=4 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 11 00 00 [09:44:27]Write to MH i2c: E2 08 00 90 1F 80 11 00 00 00 00 00 00 29 [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 17 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 17 00 90 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 79 [09:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:44:27]wFMCommunicate OK [09:44:27]CreateOFDProtocolMessage done [09:44:27]OFDSenderStorePacket 95106 [09:44:27]StoreOFDPacket docnum=95106 [09:44:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8F 98 07 01 3B FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 24 00 00 00 F4 03 04 00 FE 23 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 82 73 01 00 35 04 06 00 B6 BA E2 21 1E F9 6A EB 23 DB EF C0 08 76 [09:44:27]CheckFolder [09:44:27]dirname=/storage/ofd_packets [09:44:27]CheckFolder done [09:44:27]ProducePacketName [09:44:27]name=ofd_packets/00095106 [09:44:27]NVStorageSaveData ofd_packets/00095106 [09:44:27]File name is /storage/ofd_packets/00095106 [09:44:27]Write 301 bytes [09:44:27]NVStorageSaveData done [09:44:27]OFDSenderStorePacket done [09:44:27]KKMCreateOFDPacket done [09:44:27]NVStorageSaveData kkm_last_timestamp [09:44:27]File name is /storage/kkm_last_timestamp [09:44:27]Write 4 bytes [09:44:27]NVStorageSaveData done [09:44:27]ExternCall_PrintAddStr [09:44:27]wPrintStart [09:44:27]Write to MH i2c: 01 00 00 91 1F B0 [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: 01 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: 01 07 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: 01 07 00 91 1F 00 80 00 00 00 FF 0F 45 [09:44:27]RasterBufferAndPrint [09:44:27]line Счет N : (1)196071 [09:44:27]line ИНН: 02508201610067 [09:44:27]line Контрольно-Кассовый Чек [09:44:27]line ПРОДАЖА [09:44:27]line ТРК (МРК, ГНК) : 12 [09:44:27]line Товар: 2710124130 [09:44:27]line Аи-92-К-5 [09:44:27]line 11.130 * 62.90 [09:44:27]line = 700.08 [09:44:27]line НДС 12% НСП 1% [09:44:27]line > о реализуемом товаре [09:44:27]line ОКРУГЛЕНИЕ: -0.08 [09:44:27]line ИТОГО: 700.00 [09:44:27]line Внесено: 700.00 [09:44:27]line СДАЧА: 0.00 [09:44:27]line НСП 1% : 6.19 [09:44:27]line НДС 12% : 74.34 [09:44:27]line Наличными: 700.00 [09:44:27]line Безнал.: 0.00 [09:44:27]line Место: АЗС № 6 "Партнер Нефть" [09:44:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:44:27]line СНО: Общий режим [09:44:27]line Чек 36 12.03.2024 09:44 [09:44:27]line Смена: 327 ФФД: 1.0 [09:44:27]line ЗНМ: 0300000009 [09:44:27]line РНМ: 0000000000090555 [09:44:27]line Версия ККМ: 001 [09:44:27]line ФМ: 0000000000874811 [09:44:27]line ФД: 95106 [09:44:27]line ФПД: 200913773993721 [09:44:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T094430&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95106&fm=200913773993721&tin=02508201610067®Number=0000000000090555&sum=70000 [09:44:28]OFD Sender: Processing packet 95106 [packets to send 30, broken 29] [09:44:28]ProducePacketName [09:44:28]name=ofd_packets/00095106 [09:44:28]OFD Sender: To server: pG, [09:44:28]CommunicateWithHost lk.salyk.kg:30040 [09:44:28]ConnectInit lk.salyk.kg [09:44:28]written 0, free lines is 4095 [09:44:28]Connected sock=10 [09:44:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8F 98 07 01 3B FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 24 00 00 00 F4 03 04 00 FE 23 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 82 73 01 00 35 04 06 00 B6 BA E2 21 1E F9 6A EB 23 DB EF C0 08 76 [09:44:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 4A E5 47 00 59 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 82 73 01 00 F4 03 04 00 55 CF EF 65 B6 04 01 00 00 7F AD 15 A4 A7 0C B1 3C [09:44:28]CommunicateWithHost err = 0 [09:44:28]CheckOFDResponse [09:44:28]1017 (14) - 77093643461234 [09:44:28]1041 (16) - 0000000000874811 [09:44:28]1040 (4) - 95106 [09:44:28]1012 (4) - 12.03.2024 03:43 [09:44:28]1206 (1) - 0 [09:44:28]OFD Sender: Remove packet 95106 [09:44:28]ProducePacketName [09:44:28]name=ofd_packets/00095106 [09:44:28]NVStorageDeleteData [09:44:28]Write to MH i2c: 01 00 00 BC 1F DB [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 07 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 07 00 BC 1F 00 80 00 00 00 4F 0D BE [09:44:28]RasterBufferAndPrint [09:44:28]line [09:44:28]line [09:44:28]line [09:44:28]line [09:44:28]line [09:44:28]written 0, free lines is 3411 [09:44:28]process_action close_receipt done [09:44:28]requested_data is exist [09:44:28]produce_requested_data [09:44:28]requested_item fm.sn is exist - process it [09:44:28]wFMCommunicate request_size=4 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 11 00 00 [09:44:28]Write to MH i2c: E2 08 00 C3 1F 80 11 00 00 00 00 00 00 5C [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 17 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 17 00 C3 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AC [09:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:44:28]wFMCommunicate OK [09:44:28]requested_item fd.num is exist - process it [09:44:28]SAM_PROTO_GetFieldsCounters [09:44:28]wFMCommunicate request_size=4 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 13 00 00 [09:44:28]Write to MH i2c: E2 08 00 C4 1F 80 13 00 00 00 00 00 00 5F [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:29]Read from MH i2c: E2 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 62 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 62 00 C4 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 82 73 01 00 0E 04 04 00 47 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 26 [09:44:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 82 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:29]wFMCommunicate OK [09:44:29]SAM_PROTO_GetFieldsCounters done [09:44:29]requested_item shift.num is exist - process it [09:44:29]requested_item shift.opened is exist - process it [09:44:29]req_shift_opened [09:44:29]FM_GetShiftState [09:44:29]SAM_PROTO_GetShiftState [09:44:29]wFMCommunicate request_size=4 [09:44:29]MH_SAM_APDU [09:44:29]CAPDU: 80 13 01 00 [09:44:29]Write to MH i2c: E2 08 00 C5 1F 80 13 01 00 00 00 00 00 61 [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:29]Read from MH i2c: E2 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 0E 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 0E 00 C5 1F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D5 [09:44:29]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:44:29]wFMCommunicate OK [09:44:29]SAM_PROTO_GetShiftState done [09:44:29]FM_GetShiftState done [09:44:29]req_shift_opened done [09:44:29]requested_item shift.open_date is exist - process it [09:44:29]req_shift_open_date [09:44:29]req_shift_open_date done [09:44:29]produce_requested_data done [09:44:29]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95106,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [09:44:29]process_action_free close_receipt [09:44:29]json_value_free [09:44:29]json_value_free done [09:44:29]process_json_proto returns [09:44:29]Send response to host [09:44:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95106,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [09:44:29]free response buf [09:44:29]execute_script done [09:44:29]execute_script returns [09:44:29]free content buf [09:44:29]Sock 8.Close socket [09:44:29]Sock 8.Thread stoped [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:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:49]accept exits with 9 [09:50:49]New connection [09:50:49]New thread 3066957156 created [09:50:49]Thread 3066813796 joined [09:50:49]Waiting for new connection... [09:50:49] Sock 9.Parse request [09:50:49]Sock 9.Check first char [09:50:49]Sock 9.First char is OK [09:50:49]request: POST /json_proto HTTP/1.0 [09:50:49]Method: POST [09:50:49]URL: /json_proto [09:50:49]Method is POST - this is cgi request [09:50:49]url: /json_proto [09:50:49]query_string will be loaded in cgi processing [09:50:49]execute_cgi json_proto POST (null) [09:50:49]execute_cgi path=json_proto method=POST [09:50:49]POST find Content-Length [09:50:49]Host: 172.17.62.67:8080 [09:50:49]Content-Length: 678 [09:50:49]Content-Type: application/json [09:50:49] [09:50:49]POST finish read [09:50:49]Found Content-Length = 678 [09:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.180, "sum" : 640.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:49]execute_script... [09:50: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)196072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.180, "sum" : 640.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:49]POST & json_proto [09:50:49]process_json_proto [09:50:49]json parsed OK: [09:50:49]protocol is kg_v1.0 [09:50:49]action value=close_receipt [09:50:49]process_action close_receipt [09:50:49]cmd_close_receipt [09:50:49]MH_GetDate [09:50:49]Write to MH i2c: F0 00 00 C6 1F D4 [09:50:49]Write i2c OK [09:50:49]MH_I2C_Read... [09:50:49]Read from MH i2c: F0 [09:50:49]MH_I2C_Read... [09:50:49]Read from MH i2c: F0 05 00 [09:50:49]MH_I2C_Read... [09:50:49]Read from MH i2c: F0 05 00 C6 1F 00 7E 25 F0 65 D1 [09:50:49]GetLastDocTimeStamp 1710236670 [09:50:49]current date 1710237054 [09:50:49]FM_GetShiftState [09:50:49]SAM_PROTO_GetShiftState [09:50:49]wFMCommunicate request_size=4 [09:50:49]MH_SAM_APDU [09:50:49]CAPDU: 80 13 01 00 [09:50:49]Write to MH i2c: E2 08 00 C7 1F 80 13 01 00 00 00 00 00 63 [09:50:49]Write i2c OK [09:50:49]MH_I2C_Read... [09:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:49]Read from MH i2c: E2 [09:50:49]MH_I2C_Read... [09:50:49]Read from MH i2c: E2 0E 00 [09:50:49]MH_I2C_Read... [09:50:49]Read from MH i2c: E2 0E 00 C7 1F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D7 [09:50:49]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:50:49]wFMCommunicate OK [09:50:49]SAM_PROTO_GetShiftState done [09:50:49]FM_GetShiftState done [09:50:49]opened in 1710201976 [09:50:49]opened+sec_in_day 1710288376 [09:50:49]quantity*price = 64032 [09:50:49]sum+1 = 64033 [09:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 68.00 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 37 12.03.2024 09:50 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95107 ФПД: 171840679985107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T095054&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95107&fm=171840679985107&tin=02508201610067®Number=0000000000090555&sum=64000 [09:50:50]StoreToDocumentArchive [09:50:50]shift 327 fd 95107 [09:50:50]save to /storage/0327/doc_00095107 [09:50:50]save last doc name /storage/0327/doc_00095107 to /storage/kkm_last_doc_name [09:50:50]save OK [09:50:50]Clear old archive folders... [09:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:50]tlvbuf is B6F56410 [09:50:50]SAM_PROTO_ClearQueue [09:50:50]wFMCommunicate request_size=4 [09:50:50]MH_SAM_APDU [09:50:50]CAPDU: 80 09 00 00 [09:50:50]Write to MH i2c: E2 08 00 D4 1F 80 09 00 00 00 00 00 00 65 [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:50]Read from MH i2c: E2 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 D4 1F 00 90 00 67 [09:50:50]RAPDU: 90 00 [09:50:50]wFMCommunicate OK [09:50:50]SAM_PROTO_ClearQueue done [09:50:50]KKMCreateOFDPacket [09:50:50]OFDProtocolAddRootSTLVToBuf [09:50:50]FM_MakeSignedData [09:50:50]FM_MakeSignedData [09:50:50]SAM_PROTO_SignData [09:50:50]wFMCommunicate request_size=4 [09:50:50]MH_SAM_APDU [09:50:50]CAPDU: 80 0D 01 02 [09:50:50]Write to MH i2c: E2 08 00 D5 1F 80 0D 01 02 00 00 00 00 6D [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:50]Read from MH i2c: E2 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 D5 1F 00 90 00 68 [09:50:50]RAPDU: 90 00 [09:50:50]wFMCommunicate OK [09:50:50]wFMCommunicate request_size=255 [09:50:50]MH_SAM_APDU [09:50:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 7E 25 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 83 73 01 00 35 04 06 00 9C [09:50:50]Write to MH i2c: E2 02 01 D6 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 7E 25 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 83 73 01 00 35 04 06 00 9C 00 00 F1 [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:51]Read from MH i2c: E2 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 03 00 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 03 00 D6 1F 00 90 00 69 [09:50:51]RAPDU: 90 00 [09:50:51]wFMCommunicate OK [09:50:51]wFMCommunicate request_size=10 [09:50:51]MH_SAM_APDU [09:50:51]CAPDU: 80 0D 02 02 05 49 C6 B0 3F D3 [09:50:51]Write to MH i2c: E2 0D 00 D7 1F 80 0D 02 02 05 00 49 C6 B0 3F D3 00 00 4B [09:50:51]Write i2c OK [09:50:51]MH_I2C_Read... [09:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:51]Read from MH i2c: E2 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 03 00 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 03 00 D7 1F 00 90 00 6A [09:50:51]RAPDU: 90 00 [09:50:51]wFMCommunicate OK [09:50:51]wFMCommunicate request_size=4 [09:50:51]MH_SAM_APDU [09:50:51]CAPDU: 80 0D 03 02 [09:50:51]Write to MH i2c: E2 08 00 D8 1F 80 0D 03 02 00 00 00 00 72 [09:50:51]Write i2c OK [09:50:51]MH_I2C_Read... [09:50:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:51]Read from MH i2c: E2 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 0B 00 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 0B 00 D8 1F 00 E0 06 2D 55 54 E9 36 B8 90 00 06 [09:50:51]RAPDU: E0 06 2D 55 54 E9 36 B8 90 00 [09:50:51]wFMCommunicate OK [09:50:51]SAM_PROTO_SignData done [09:50:51]FM_MakeSignedData done [09:50:51]CreateOFDProtocolMessage [09:50:51]wFMCommunicate request_size=4 [09:50:51]MH_SAM_APDU [09:50:51]CAPDU: 80 11 00 00 [09:50:51]Write to MH i2c: E2 08 00 D9 1F 80 11 00 00 00 00 00 00 72 [09:50:51]Write i2c OK [09:50:51]MH_I2C_Read... [09:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:51]Read from MH i2c: E2 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 17 00 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 17 00 D9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C2 [09:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:50:51]wFMCommunicate OK [09:50:51]CreateOFDProtocolMessage done [09:50:51]OFDSenderStorePacket 95107 [09:50:51]StoreOFDPacket docnum=95107 [09:50:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A8 4A 07 01 FF 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 7E 25 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 83 73 01 00 35 04 06 00 9C 49 C6 B0 3F D3 E0 06 2D 55 54 E9 36 B8 [09:50:51]CheckFolder [09:50:51]dirname=/storage/ofd_packets [09:50:51]CheckFolder done [09:50:51]ProducePacketName [09:50:51]name=ofd_packets/00095107 [09:50:51]NVStorageSaveData ofd_packets/00095107 [09:50:51]File name is /storage/ofd_packets/00095107 [09:50:51]Write 301 bytes [09:50:51]NVStorageSaveData done [09:50:51]OFDSenderStorePacket done [09:50:51]KKMCreateOFDPacket done [09:50:51]NVStorageSaveData kkm_last_timestamp [09:50:51]File name is /storage/kkm_last_timestamp [09:50:51]Write 4 bytes [09:50:51]NVStorageSaveData done [09:50:51]ExternCall_PrintAddStr [09:50:51]wPrintStart [09:50:51]Write to MH i2c: 01 00 00 DA 1F F9 [09:50:51]Write i2c OK [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: 01 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: 01 07 00 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: 01 07 00 DA 1F 00 80 00 00 00 FF 0F 8E [09:50:51]RasterBufferAndPrint [09:50:51]line Счет N : (1)196072 [09:50:51]line ИНН: 02508201610067 [09:50:51]line Контрольно-Кассовый Чек [09:50:51]line ПРОДАЖА [09:50:51]line ТРК (МРК, ГНК) : 42 [09:50:51]line Товар: 2710124130 [09:50:51]line Аи-92-К-5 [09:50:51]line 10.180 * 62.90 [09:50:51]line = 640.32 [09:50:51]line НДС 12% НСП 1% [09:50:51]line > о реализуемом товаре [09:50:51]line ОКРУГЛЕНИЕ: -0.32 [09:50:51]line ИТОГО: 640.00 [09:50:51]line Внесено: 640.00 [09:50:51]line СДАЧА: 0.00 [09:50:51]line НСП 1% : 5.67 [09:50:51]line НДС 12% : 68.00 [09:50:51]line Наличными: 640.00 [09:50:51]line Безнал.: 0.00 [09:50:51]line Место: АЗС № 6 "Партнер Нефть" [09:50:51]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:50:51]line СНО: Общий режим [09:50:51]line Чек 37 12.03.2024 09:50 [09:50:51]line Смена: 327 ФФД: 1.0 [09:50:51]line ЗНМ: 0300000009 [09:50:51]line РНМ: 0000000000090555 [09:50:51]line Версия ККМ: 001 [09:50:51]line ФМ: 0000000000874811 [09:50:51]line ФД: 95107 [09:50:51]line ФПД: 171840679985107 [09:50:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T095054&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95107&fm=171840679985107&tin=02508201610067®Number=0000000000090555&sum=64000 [09:50:51]OFD Sender: Processing packet 95107 [packets to send 30, broken 29] [09:50:51]ProducePacketName [09:50:51]name=ofd_packets/00095107 [09:50:51]OFD Sender: To server: pG, [09:50:51]CommunicateWithHost lk.salyk.kg:30040 [09:50:51]ConnectInit lk.salyk.kg [09:50:51]written 0, free lines is 4095 [09:50:51]Connected sock=10 [09:50:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A8 4A 07 01 FF 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 7E 25 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 83 73 01 00 35 04 06 00 9C 49 C6 B0 3F D3 E0 06 2D 55 54 E9 36 B8 [09:50:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F5 11 47 00 CE 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 83 73 01 00 F4 03 04 00 D4 D0 EF 65 B6 04 01 00 00 02 90 29 79 83 D2 78 F7 [09:50:51]CommunicateWithHost err = 0 [09:50:51]CheckOFDResponse [09:50:51]1017 (14) - 77093643461234 [09:50:51]1041 (16) - 0000000000874811 [09:50:51]1040 (4) - 95107 [09:50:51]1012 (4) - 12.03.2024 03:49 [09:50:51]1206 (1) - 0 [09:50:51]OFD Sender: Remove packet 95107 [09:50:51]ProducePacketName [09:50:51]name=ofd_packets/00095107 [09:50:51]NVStorageDeleteData [09:50:52]Write to MH i2c: 01 00 00 05 20 25 [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: 01 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: 01 07 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: 01 07 00 05 20 00 80 00 00 00 5B 0D 14 [09:50:52]RasterBufferAndPrint [09:50:52]line [09:50:52]line [09:50:52]line [09:50:52]line [09:50:52]line [09:50:52]written 0, free lines is 3424 [09:50:52]process_action close_receipt done [09:50:52]requested_data is exist [09:50:52]produce_requested_data [09:50:52]requested_item fm.sn is exist - process it [09:50:52]wFMCommunicate request_size=4 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 11 00 00 [09:50:52]Write to MH i2c: E2 08 00 0C 20 80 11 00 00 00 00 00 00 A6 [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 17 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 17 00 0C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F6 [09:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:50:52]wFMCommunicate OK [09:50:52]requested_item fd.num is exist - process it [09:50:52]SAM_PROTO_GetFieldsCounters [09:50:52]wFMCommunicate request_size=4 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 13 00 00 [09:50:52]Write to MH i2c: E2 08 00 0D 20 80 13 00 00 00 00 00 00 A9 [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 62 00 [09:50:52]MH_I2C_Read... [09:50:52]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 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 83 73 01 00 0E 04 04 00 47 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 74 [09:50:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 83 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:50:52]wFMCommunicate OK [09:50:52]SAM_PROTO_GetFieldsCounters done [09:50:52]requested_item shift.num is exist - process it [09:50:52]requested_item shift.opened is exist - process it [09:50:52]req_shift_opened [09:50:52]FM_GetShiftState [09:50:52]SAM_PROTO_GetShiftState [09:50:52]wFMCommunicate request_size=4 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 13 01 00 [09:50:52]Write to MH i2c: E2 08 00 0E 20 80 13 01 00 00 00 00 00 AB [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 0E 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 0E 00 0E 20 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 1F [09:50:52]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [09:50:52]wFMCommunicate OK [09:50:52]SAM_PROTO_GetShiftState done [09:50:52]FM_GetShiftState done [09:50:52]req_shift_opened done [09:50:52]requested_item shift.open_date is exist - process it [09:50:52]req_shift_open_date [09:50:52]req_shift_open_date done [09:50:52]produce_requested_data done [09:50:52]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95107,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [09:50:52]process_action_free close_receipt [09:50:52]json_value_free [09:50:52]json_value_free done [09:50:52]process_json_proto returns [09:50:52]Send response to host [09:50:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95107,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [09:50:52]free response buf [09:50:52]execute_script done [09:50:52]execute_script returns [09:50:52]free content buf [09:50:52]Sock 9.Close socket [09:50:52]Sock 9.Thread stoped [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:41]accept exits with 8 [10:07:41]New connection [10:07:41]New thread 3066813796 created [10:07:41]Thread 3066957156 joined [10:07:41]Waiting for new connection... [10:07:41] Sock 8.Parse request [10:07:41]Sock 8.Check first char [10:07:41]Sock 8.First char is OK [10:07:41]request: POST /json_proto HTTP/1.0 [10:07:41]Method: POST [10:07:41]URL: /json_proto [10:07:41]Method is POST - this is cgi request [10:07:41]url: /json_proto [10:07:41]query_string will be loaded in cgi processing [10:07:41]execute_cgi json_proto POST (null) [10:07:41]execute_cgi path=json_proto method=POST [10:07:41]POST find Content-Length [10:07:41]Host: 172.17.62.67:8080 [10:07:41]Content-Length: 677 [10:07:41]Content-Type: application/json [10:07:41] [10:07:41]POST finish read [10:07:41]Found Content-Length = 677 [10:07:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "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:07:41]execute_script... [10:07: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)196073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "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:07:41]POST & json_proto [10:07:41]process_json_proto [10:07:41]json parsed OK: [10:07:41]protocol is kg_v1.0 [10:07:41]action value=close_receipt [10:07:41]process_action close_receipt [10:07:41]cmd_close_receipt [10:07:41]MH_GetDate [10:07:41]Write to MH i2c: F0 00 00 0F 20 1E [10:07:41]Write i2c OK [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: F0 [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: F0 05 00 [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: F0 05 00 0F 20 00 72 29 F0 65 13 [10:07:41]GetLastDocTimeStamp 1710237054 [10:07:41]current date 1710238066 [10:07:41]FM_GetShiftState [10:07:41]SAM_PROTO_GetShiftState [10:07:41]wFMCommunicate request_size=4 [10:07:41]MH_SAM_APDU [10:07:41]CAPDU: 80 13 01 00 [10:07:41]Write to MH i2c: E2 08 00 10 20 80 13 01 00 00 00 00 00 AD [10:07:41]Write i2c OK [10:07:41]MH_I2C_Read... [10:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:41]Read from MH i2c: E2 [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: E2 0E 00 [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: E2 0E 00 10 20 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 21 [10:07:41]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:07:41]wFMCommunicate OK [10:07:41]SAM_PROTO_GetShiftState done [10:07:41]FM_GetShiftState done [10:07:41]opened in 1710201976 [10:07:41]opened+sec_in_day 1710288376 [10:07:41]quantity*price = 40004 [10:07:41]sum+1 = 40005 [10:07:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 38 12.03.2024 10:07 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95108 ФПД: 38848096093457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T100746&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95108&fm=38848096093457&tin=02508201610067®Number=0000000000090555&sum=40000 [10:07:42]StoreToDocumentArchive [10:07:42]shift 327 fd 95108 [10:07:42]save to /storage/0327/doc_00095108 [10:07:42]save last doc name /storage/0327/doc_00095108 to /storage/kkm_last_doc_name [10:07:42]save OK [10:07:42]Clear old archive folders... [10:07:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:42]tlvbuf is 01A06600 [10:07:42]SAM_PROTO_ClearQueue [10:07:42]wFMCommunicate request_size=4 [10:07:42]MH_SAM_APDU [10:07:42]CAPDU: 80 09 00 00 [10:07:42]Write to MH i2c: E2 08 00 1D 20 80 09 00 00 00 00 00 00 AF [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:42]Read from MH i2c: E2 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 03 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 03 00 1D 20 00 90 00 B1 [10:07:42]RAPDU: 90 00 [10:07:42]wFMCommunicate OK [10:07:42]SAM_PROTO_ClearQueue done [10:07:42]KKMCreateOFDPacket [10:07:42]OFDProtocolAddRootSTLVToBuf [10:07:42]FM_MakeSignedData [10:07:42]FM_MakeSignedData [10:07:42]SAM_PROTO_SignData [10:07:42]wFMCommunicate request_size=4 [10:07:42]MH_SAM_APDU [10:07:42]CAPDU: 80 0D 01 02 [10:07:42]Write to MH i2c: E2 08 00 1E 20 80 0D 01 02 00 00 00 00 B7 [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:42]Read from MH i2c: E2 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 03 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 03 00 1E 20 00 90 00 B2 [10:07:42]RAPDU: 90 00 [10:07:42]wFMCommunicate OK [10:07:42]wFMCommunicate request_size=255 [10:07:42]MH_SAM_APDU [10:07:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 26 00 00 00 F4 03 04 00 72 29 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 84 73 01 00 35 04 06 00 23 [10:07:42]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 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 26 00 00 00 F4 03 04 00 72 29 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 84 73 01 00 35 04 06 00 23 00 00 73 [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:43]Read from MH i2c: E2 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: E2 03 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: E2 03 00 1F 20 00 90 00 B3 [10:07:43]RAPDU: 90 00 [10:07:43]wFMCommunicate OK [10:07:43]wFMCommunicate request_size=10 [10:07:43]MH_SAM_APDU [10:07:43]CAPDU: 80 0D 02 02 05 55 06 F7 C5 11 [10:07:43]Write to MH i2c: E2 0D 00 20 20 80 0D 02 02 05 00 55 06 F7 C5 11 00 00 EC [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:43]Read from MH i2c: E2 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: E2 03 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: E2 03 00 20 20 00 90 00 B4 [10:07:43]RAPDU: 90 00 [10:07:43]wFMCommunicate OK [10:07:43]wFMCommunicate request_size=4 [10:07:43]MH_SAM_APDU [10:07:43]CAPDU: 80 0D 03 02 [10:07:43]Write to MH i2c: E2 08 00 21 20 80 0D 03 02 00 00 00 00 BC [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:43]Read from MH i2c: E2 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: E2 0B 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: E2 0B 00 21 20 00 2D ED 4D 48 6B B2 B4 CF 90 00 0C [10:07:43]RAPDU: 2D ED 4D 48 6B B2 B4 CF 90 00 [10:07:43]wFMCommunicate OK [10:07:43]SAM_PROTO_SignData done [10:07:43]FM_MakeSignedData done [10:07:43]CreateOFDProtocolMessage [10:07:43]wFMCommunicate request_size=4 [10:07:43]MH_SAM_APDU [10:07:43]CAPDU: 80 11 00 00 [10:07:43]Write to MH i2c: E2 08 00 22 20 80 11 00 00 00 00 00 00 BC [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:43]Read from MH i2c: E2 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: E2 17 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: E2 17 00 22 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0C [10:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:07:43]wFMCommunicate OK [10:07:43]CreateOFDProtocolMessage done [10:07:43]OFDSenderStorePacket 95108 [10:07:43]StoreOFDPacket docnum=95108 [10:07:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1C FE 07 01 89 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 26 00 00 00 F4 03 04 00 72 29 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 84 73 01 00 35 04 06 00 23 55 06 F7 C5 11 2D ED 4D 48 6B B2 B4 CF [10:07:43]CheckFolder [10:07:43]dirname=/storage/ofd_packets [10:07:43]CheckFolder done [10:07:43]ProducePacketName [10:07:43]name=ofd_packets/00095108 [10:07:43]NVStorageSaveData ofd_packets/00095108 [10:07:43]File name is /storage/ofd_packets/00095108 [10:07:43]Write 301 bytes [10:07:43]NVStorageSaveData done [10:07:43]OFDSenderStorePacket done [10:07:43]KKMCreateOFDPacket done [10:07:43]NVStorageSaveData kkm_last_timestamp [10:07:43]File name is /storage/kkm_last_timestamp [10:07:43]Write 4 bytes [10:07:43]NVStorageSaveData done [10:07:43]ExternCall_PrintAddStr [10:07:43]wPrintStart [10:07:43]Write to MH i2c: 01 00 00 23 20 43 [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 07 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 07 00 23 20 00 80 00 00 00 FF 0F D8 [10:07:43]RasterBufferAndPrint [10:07:43]line Счет N : (1)196073 [10:07:43]line ИНН: 02508201610067 [10:07:43]line Контрольно-Кассовый Чек [10:07:43]line ПРОДАЖА [10:07:43]line ТРК (МРК, ГНК) : 22 [10:07:43]line Товар: 2710124130 [10:07:43]line Аи-92-К-5 [10:07:43]line 6.360 * 62.90 [10:07:43]line = 400.04 [10:07:43]line НДС 12% НСП 1% [10:07:43]line > о реализуемом товаре [10:07:43]line ОКРУГЛЕНИЕ: -0.04 [10:07:43]line ИТОГО: 400.00 [10:07:43]line Внесено: 400.00 [10:07:43]line СДАЧА: 0.00 [10:07:43]line НСП 1% : 3.54 [10:07:43]line НДС 12% : 42.48 [10:07:43]line Наличными: 400.00 [10:07:43]line Безнал.: 0.00 [10:07:43]line Место: АЗС № 6 "Партнер Нефть" [10:07:43]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:07:43]line СНО: Общий режим [10:07:43]line Чек 38 12.03.2024 10:07 [10:07:43]line Смена: 327 ФФД: 1.0 [10:07:43]line ЗНМ: 0300000009 [10:07:43]line РНМ: 0000000000090555 [10:07:43]line Версия ККМ: 001 [10:07:43]line ФМ: 0000000000874811 [10:07:43]line ФД: 95108 [10:07:43]line ФПД: 38848096093457 [10:07:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T100746&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95108&fm=38848096093457&tin=02508201610067®Number=0000000000090555&sum=40000 [10:07:43]OFD Sender: Processing packet 95108 [packets to send 30, broken 29] [10:07:43]ProducePacketName [10:07:43]name=ofd_packets/00095108 [10:07:43]OFD Sender: To server: pG, [10:07:43]CommunicateWithHost lk.salyk.kg:30040 [10:07:43]ConnectInit lk.salyk.kg [10:07:43]written 0, free lines is 4095 [10:07:43]Connected sock=10 [10:07:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1C FE 07 01 89 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 26 00 00 00 F4 03 04 00 72 29 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 84 73 01 00 35 04 06 00 23 55 06 F7 C5 11 2D ED 4D 48 6B B2 B4 CF [10:07:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 A4 37 47 00 EE EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 84 73 01 00 F4 03 04 00 C8 D4 EF 65 B6 04 01 00 00 5B FC C2 AA 87 3E 9E 1C [10:07:43]CommunicateWithHost err = 0 [10:07:43]CheckOFDResponse [10:07:43]1017 (14) - 77093643461234 [10:07:43]1041 (16) - 0000000000874811 [10:07:43]1040 (4) - 95108 [10:07:43]1012 (4) - 12.03.2024 04:06 [10:07:43]1206 (1) - 0 [10:07:43]OFD Sender: Remove packet 95108 [10:07:43]ProducePacketName [10:07:43]name=ofd_packets/00095108 [10:07:43]NVStorageDeleteData [10:07:44]Write to MH i2c: 01 00 00 4E 20 6E [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 07 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 07 00 4E 20 00 80 00 00 00 58 0D 5A [10:07:44]RasterBufferAndPrint [10:07:44]line [10:07:44]line [10:07:44]line [10:07:44]line [10:07:44]line [10:07:44]written 0, free lines is 3420 [10:07:44]process_action close_receipt done [10:07:44]requested_data is exist [10:07:44]produce_requested_data [10:07:44]requested_item fm.sn is exist - process it [10:07:44]wFMCommunicate request_size=4 [10:07:44]MH_SAM_APDU [10:07:44]CAPDU: 80 11 00 00 [10:07:44]Write to MH i2c: E2 08 00 55 20 80 11 00 00 00 00 00 00 EF [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:44]Read from MH i2c: E2 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 17 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 17 00 55 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3F [10:07:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:07:44]wFMCommunicate OK [10:07:44]requested_item fd.num is exist - process it [10:07:44]SAM_PROTO_GetFieldsCounters [10:07:44]wFMCommunicate request_size=4 [10:07:44]MH_SAM_APDU [10:07:44]CAPDU: 80 13 00 00 [10:07:44]Write to MH i2c: E2 08 00 56 20 80 13 00 00 00 00 00 00 F2 [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:44]Read from MH i2c: E2 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 62 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 62 00 56 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 84 73 01 00 0E 04 04 00 47 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 C1 [10:07:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 84 73 01 00 0E 04 04 00 47 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:07:44]wFMCommunicate OK [10:07:44]SAM_PROTO_GetFieldsCounters done [10:07:44]requested_item shift.num is exist - process it [10:07:44]requested_item shift.opened is exist - process it [10:07:44]req_shift_opened [10:07:44]FM_GetShiftState [10:07:44]SAM_PROTO_GetShiftState [10:07:44]wFMCommunicate request_size=4 [10:07:44]MH_SAM_APDU [10:07:44]CAPDU: 80 13 01 00 [10:07:44]Write to MH i2c: E2 08 00 57 20 80 13 01 00 00 00 00 00 F4 [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:44]Read from MH i2c: E2 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 0E 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 0E 00 57 20 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 68 [10:07:44]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:07:44]wFMCommunicate OK [10:07:44]SAM_PROTO_GetShiftState done [10:07:44]FM_GetShiftState done [10:07:44]req_shift_opened done [10:07:44]requested_item shift.open_date is exist - process it [10:07:44]req_shift_open_date [10:07:44]req_shift_open_date done [10:07:44]produce_requested_data done [10:07:44]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95108,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [10:07:44]process_action_free close_receipt [10:07:44]json_value_free [10:07:44]json_value_free done [10:07:44]process_json_proto returns [10:07:44]Send response to host [10:07:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95108,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [10:07:44]free response buf [10:07:44]execute_script done [10:07:44]execute_script returns [10:07:44]free content buf [10:07:44]Sock 8.Close socket [10:07:44]Sock 8.Thread stoped [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:31]accept exits with 9 [10:09:31]New connection [10:09:31]New thread 3066957156 created [10:09:31]Thread 3066813796 joined [10:09:31]Waiting for new connection... [10:09:31] Sock 9.Parse request [10:09:31]Sock 9.Check first char [10:09:31]Sock 9.First char is OK [10:09:31]request: POST /json_proto HTTP/1.0 [10:09:31]Method: POST [10:09:31]URL: /json_proto [10:09:31]Method is POST - this is cgi request [10:09:31]url: /json_proto [10:09:31]query_string will be loaded in cgi processing [10:09:31]execute_cgi json_proto POST (null) [10:09:31]execute_cgi path=json_proto method=POST [10:09:31]POST find Content-Length [10:09:31]Host: 172.17.62.67:8080 [10:09:31]Content-Length: 1200 [10:09:31]Content-Type: application/json [10:09:31] [10:09:31]POST finish read [10:09:31]Found Content-Length = 1200 [10:09:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196074\u000A12.03.2024 10:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3821263\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:31]execute_script... [10:09:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196074\u000A12.03.2024 10:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3821263\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:31]POST & json_proto [10:09:31]process_json_proto [10:09:31]json parsed OK: [10:09:31]protocol is kg_v1.0 [10:09:31]action value=print_text [10:09:31]process_action print_text [10:09:31]cmd_print_text [10:09:31]ExternCall_PrintAddStr [10:09:31]wPrintStart [10:09:31]Write to MH i2c: 01 00 00 58 20 78 [10:09:31]Write i2c OK [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: 01 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: 01 07 00 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: 01 07 00 58 20 00 80 00 00 00 FF 0F 0D [10:09:31]RasterBufferAndPrint [10:09:31]line *****ТОВАРНЫЙ ЧЕК***** [10:09:31]line АЗС 6 [10:09:31]line Партнер нефть [10:09:31]line 02508201610067 [10:09:31]line Кассир : Мыктыбекова И. [10:09:31]line Счет N : (1)196074 [10:09:31]line 12.03.2024 10:03 [10:09:31]line ПРОДАЖА [10:09:31]line ТРК (МРК, ГНК): 42 [10:09:31]line Вид ГСМ : 2710124130 [10:09:31]line Аи-92-К-5 [10:09:31]line 10.000 x 62.90 [10:09:31]line ИТОГ: 629.00 [10:09:31]line Тип оплаты: Талоны: Партнер нефть [10:09:31]line 3821263 [10:09:31]line ______________________ [10:09:31]line (подпись) [10:09:31]written 0, free lines is 4095 [10:09:31]Write to MH i2c: 01 00 00 6C 20 8C [10:09:31]Write i2c OK [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: 01 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: 01 07 00 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: 01 07 00 6C 20 00 80 00 00 00 68 0E 89 [10:09:31]RasterBufferAndPrint [10:09:31]line [10:09:31]line [10:09:31]line [10:09:31]line [10:09:31]line [10:09:31]written 0, free lines is 3691 [10:09:31]process_action print_text done [10:09:31]requested_data is exist [10:09:31]produce_requested_data [10:09:31]requested_item fm.sn is exist - process it [10:09:31]wFMCommunicate request_size=4 [10:09:31]MH_SAM_APDU [10:09:31]CAPDU: 80 11 00 00 [10:09:31]Write to MH i2c: E2 08 00 73 20 80 11 00 00 00 00 00 00 0D [10:09:31]Write i2c OK [10:09:31]MH_I2C_Read... [10:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:31]Read from MH i2c: E2 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 17 00 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 17 00 73 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5D [10:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:09:31]wFMCommunicate OK [10:09:31]requested_item fd.num is exist - process it [10:09:31]SAM_PROTO_GetFieldsCounters [10:09:31]wFMCommunicate request_size=4 [10:09:31]MH_SAM_APDU [10:09:31]CAPDU: 80 13 00 00 [10:09:31]Write to MH i2c: E2 08 00 74 20 80 13 00 00 00 00 00 00 10 [10:09:31]Write i2c OK [10:09:31]MH_I2C_Read... [10:09:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:31]Read from MH i2c: E2 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 62 00 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 62 00 74 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 84 73 01 00 0E 04 04 00 47 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 DF [10:09:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 84 73 01 00 0E 04 04 00 47 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:09:31]wFMCommunicate OK [10:09:31]SAM_PROTO_GetFieldsCounters done [10:09:31]requested_item shift.num is exist - process it [10:09:31]requested_item shift.opened is exist - process it [10:09:31]req_shift_opened [10:09:31]FM_GetShiftState [10:09:31]SAM_PROTO_GetShiftState [10:09:31]wFMCommunicate request_size=4 [10:09:31]MH_SAM_APDU [10:09:31]CAPDU: 80 13 01 00 [10:09:31]Write to MH i2c: E2 08 00 75 20 80 13 01 00 00 00 00 00 12 [10:09:31]Write i2c OK [10:09:31]MH_I2C_Read... [10:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:31]Read from MH i2c: E2 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 0E 00 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 0E 00 75 20 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 86 [10:09:31]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:09:31]wFMCommunicate OK [10:09:31]SAM_PROTO_GetShiftState done [10:09:31]FM_GetShiftState done [10:09:31]req_shift_opened done [10:09:31]requested_item shift.open_date is exist - process it [10:09:31]req_shift_open_date [10:09:31]req_shift_open_date done [10:09:31]produce_requested_data done [10:09:31]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95108,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [10:09:31]process_action_free print_text [10:09:31]json_value_free [10:09:31]json_value_free done [10:09:31]process_json_proto returns [10:09:31]Send response to host [10:09:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95108,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [10:09:31]free response buf [10:09:31]execute_script done [10:09:31]execute_script returns [10:09:31]free content buf [10:09:31]Sock 9.Close socket [10:09:31]Sock 9.Thread stoped [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:58]accept exits with 8 [10:11:58]New connection [10:11:58]New thread 3066813796 created [10:11:58]Thread 3066957156 joined [10:11:58]Waiting for new connection... [10:11:58] Sock 8.Parse request [10:11:58]Sock 8.Check first char [10:11:58]Sock 8.First char is OK [10:11:58]request: POST /json_proto HTTP/1.0 [10:11:58]Method: POST [10:11:58]URL: /json_proto [10:11:58]Method is POST - this is cgi request [10:11:58]url: /json_proto [10:11:58]query_string will be loaded in cgi processing [10:11:58]execute_cgi json_proto POST (null) [10:11:58]execute_cgi path=json_proto method=POST [10:11:58]POST find Content-Length [10:11:58]Host: 172.17.62.67:8080 [10:11:58]Content-Length: 819 [10:11:58]Content-Type: application/json [10:11:58] [10:11:58]POST finish read [10:11:58]Found Content-Length = 819 [10:11:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:58]execute_script... [10:11: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)196075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:58]POST & json_proto [10:11:58]process_json_proto [10:11:58]json parsed OK: [10:11:58]protocol is kg_v1.0 [10:11:58]action value=close_receipt [10:11:58]process_action close_receipt [10:11:58]cmd_close_receipt [10:11:58]MH_GetDate [10:11:58]Write to MH i2c: F0 00 00 76 20 85 [10:11:58]Write i2c OK [10:11:58]MH_I2C_Read... [10:11:58]Read from MH i2c: F0 [10:11:58]MH_I2C_Read... [10:11:58]Read from MH i2c: F0 05 00 [10:11:58]MH_I2C_Read... [10:11:58]Read from MH i2c: F0 05 00 76 20 00 72 2A F0 65 7B [10:11:58]GetLastDocTimeStamp 1710238066 [10:11:58]current date 1710238322 [10:11:58]FM_GetShiftState [10:11:58]SAM_PROTO_GetShiftState [10:11:58]wFMCommunicate request_size=4 [10:11:58]MH_SAM_APDU [10:11:58]CAPDU: 80 13 01 00 [10:11:58]Write to MH i2c: E2 08 00 77 20 80 13 01 00 00 00 00 00 14 [10:11:58]Write i2c OK [10:11:58]MH_I2C_Read... [10:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:58]Read from MH i2c: E2 [10:11:58]MH_I2C_Read... [10:11:58]Read from MH i2c: E2 0E 00 [10:11:58]MH_I2C_Read... [10:11:58]Read from MH i2c: E2 0E 00 77 20 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 88 [10:11:58]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:11:58]wFMCommunicate OK [10:11:58]SAM_PROTO_GetShiftState done [10:11:58]FM_GetShiftState done [10:11:58]opened in 1710201976 [10:11:58]opened+sec_in_day 1710288376 [10:11:58]quantity*price = 100011 [10:11:58]sum+1 = 100012 [10:11:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 39 12.03.2024 10:12 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95109 ФПД: 97057165123556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T101202&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95109&fm=97057165123556&tin=02508201610067®Number=0000000000090555&sum=100011 [10:11:59]StoreToDocumentArchive [10:11:59]shift 327 fd 95109 [10:11:59]save to /storage/0327/doc_00095109 [10:11:59]save last doc name /storage/0327/doc_00095109 to /storage/kkm_last_doc_name [10:11:59]save OK [10:11:59]Clear old archive folders... [10:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:59]tlvbuf is 01A25C90 [10:11:59]SAM_PROTO_ClearQueue [10:11:59]wFMCommunicate request_size=4 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 09 00 00 [10:11:59]Write to MH i2c: E2 08 00 84 20 80 09 00 00 00 00 00 00 16 [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 84 20 00 90 00 18 [10:11:59]RAPDU: 90 00 [10:11:59]wFMCommunicate OK [10:11:59]SAM_PROTO_ClearQueue done [10:11:59]KKMCreateOFDPacket [10:11:59]OFDProtocolAddRootSTLVToBuf [10:11:59]FM_MakeSignedData [10:11:59]FM_MakeSignedData [10:11:59]SAM_PROTO_SignData [10:11:59]wFMCommunicate request_size=4 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 0D 01 02 [10:11:59]Write to MH i2c: E2 08 00 85 20 80 0D 01 02 00 00 00 00 1E [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:59]OFD Sender: No OFD packet to send [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 85 20 00 90 00 19 [10:11:59]RAPDU: 90 00 [10:11:59]wFMCommunicate OK [10:11:59]wFMCommunicate request_size=255 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 72 2A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 85 73 01 00 35 04 06 00 58 [10:11:59]Write to MH i2c: E2 02 01 86 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 72 2A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 85 73 01 00 35 04 06 00 58 00 00 8D [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 86 20 00 90 00 1A [10:11:59]RAPDU: 90 00 [10:11:59]wFMCommunicate OK [10:11:59]wFMCommunicate request_size=10 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 0D 02 02 05 45 E1 D9 9F E4 [10:11:59]Write to MH i2c: E2 0D 00 87 20 80 0D 02 02 05 00 45 E1 D9 9F E4 00 00 AD [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 87 20 00 90 00 1B [10:11:59]RAPDU: 90 00 [10:11:59]wFMCommunicate OK [10:11:59]wFMCommunicate request_size=4 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 0D 03 02 [10:11:59]Write to MH i2c: E2 08 00 88 20 80 0D 03 02 00 00 00 00 23 [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 0B 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 0B 00 88 20 00 A4 07 68 D2 7A C3 8B F4 90 00 C5 [10:11:59]RAPDU: A4 07 68 D2 7A C3 8B F4 90 00 [10:11:59]wFMCommunicate OK [10:11:59]SAM_PROTO_SignData done [10:11:59]FM_MakeSignedData done [10:11:59]CreateOFDProtocolMessage [10:11:59]wFMCommunicate request_size=4 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 11 00 00 [10:11:59]Write to MH i2c: E2 08 00 89 20 80 11 00 00 00 00 00 00 23 [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:00]Read from MH i2c: E2 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: E2 17 00 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: E2 17 00 89 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 73 [10:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:12:00]wFMCommunicate OK [10:12:00]CreateOFDProtocolMessage done [10:12:00]OFDSenderStorePacket 95109 [10:12:00]StoreOFDPacket docnum=95109 [10:12:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1D 95 07 01 13 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 72 2A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 85 73 01 00 35 04 06 00 58 45 E1 D9 9F E4 A4 07 68 D2 7A C3 8B F4 [10:12:00]CheckFolder [10:12:00]dirname=/storage/ofd_packets [10:12:00]CheckFolder done [10:12:00]ProducePacketName [10:12:00]name=ofd_packets/00095109 [10:12:00]NVStorageSaveData ofd_packets/00095109 [10:12:00]File name is /storage/ofd_packets/00095109 [10:12:00]Write 301 bytes [10:12:00]NVStorageSaveData done [10:12:00]OFDSenderStorePacket done [10:12:00]KKMCreateOFDPacket done [10:12:00]NVStorageSaveData kkm_last_timestamp [10:12:00]File name is /storage/kkm_last_timestamp [10:12:00]Write 4 bytes [10:12:00]NVStorageSaveData done [10:12:00]ExternCall_PrintAddStr [10:12:00]wPrintStart [10:12:00]Write to MH i2c: 01 00 00 8A 20 AA [10:12:00]Write i2c OK [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: 01 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: 01 07 00 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: 01 07 00 8A 20 00 80 00 00 00 FF 0F 3F [10:12:00]RasterBufferAndPrint [10:12:00]line Счет N : (1)196075 [10:12:00]line ИНН: 02508201610067 [10:12:00]line Контрольно-Кассовый Чек [10:12:00]line ПРОДАЖА [10:12:00]line ТРК (МРК, ГНК) : 12 [10:12:00]line Товар: 2710124130 [10:12:00]line Аи-92-К-5 [10:12:00]line 15.900 * 62.90 [10:12:00]line = 1000.11 [10:12:00]line НДС 12% НСП 1% [10:12:00]line > о реализуемом товаре [10:12:00]line ИТОГО: 1000.11 [10:12:00]line НСП 1% : 8.85 [10:12:00]line НДС 12% : 106.21 [10:12:00]line Наличными: 0.00 [10:12:00]line Безнал.: 1000.11 [10:12:00]line Место: АЗС № 6 "Партнер Нефть" [10:12:00]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:12:00]line СНО: Общий режим [10:12:00]line Чек 39 12.03.2024 10:12 [10:12:00]line Смена: 327 ФФД: 1.0 [10:12:00]line ЗНМ: 0300000009 [10:12:00]line РНМ: 0000000000090555 [10:12:00]line Версия ККМ: 001 [10:12:00]line Платежная система: Бакай Банк [10:12:00]line ФМ: 0000000000874811 [10:12:00]line ФД: 95109 [10:12:00]line ФПД: 97057165123556 [10:12:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T101202&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95109&fm=97057165123556&tin=02508201610067®Number=0000000000090555&sum=100011 [10:12:00]OFD Sender: Processing packet 95109 [packets to send 30, broken 29] [10:12:00]ProducePacketName [10:12:00]name=ofd_packets/00095109 [10:12:00]OFD Sender: To server: pG, [10:12:00]CommunicateWithHost lk.salyk.kg:30040 [10:12:00]ConnectInit lk.salyk.kg [10:12:00]written 0, free lines is 4095 [10:12:00]Connected sock=10 [10:12:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1D 95 07 01 13 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 72 2A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 85 73 01 00 35 04 06 00 58 45 E1 D9 9F E4 A4 07 68 D2 7A C3 8B F4 [10:12:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 2D DB 47 00 3C F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 85 73 01 00 F4 03 04 00 C9 D5 EF 65 B6 04 01 00 00 3D 0E 4F EB F1 CC 06 B8 [10:12:00]CommunicateWithHost err = 0 [10:12:00]CheckOFDResponse [10:12:00]1017 (14) - 77093643461234 [10:12:00]1041 (16) - 0000000000874811 [10:12:00]1040 (4) - 95109 [10:12:00]1012 (4) - 12.03.2024 04:10 [10:12:00]1206 (1) - 0 [10:12:00]OFD Sender: Remove packet 95109 [10:12:00]ProducePacketName [10:12:00]name=ofd_packets/00095109 [10:12:00]NVStorageDeleteData [10:12:00]Write to MH i2c: 01 00 00 B4 20 D4 [10:12:00]Write i2c OK [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: 01 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: 01 07 00 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: 01 07 00 B4 20 00 80 00 00 00 55 0D BD [10:12:00]RasterBufferAndPrint [10:12:00]line [10:12:00]line [10:12:00]line [10:12:00]line [10:12:00]line [10:12:00]written 0, free lines is 3419 [10:12:00]process_action close_receipt done [10:12:00]requested_data is exist [10:12:00]produce_requested_data [10:12:00]requested_item fm.sn is exist - process it [10:12:00]wFMCommunicate request_size=4 [10:12:00]MH_SAM_APDU [10:12:00]CAPDU: 80 11 00 00 [10:12:00]Write to MH i2c: E2 08 00 BB 20 80 11 00 00 00 00 00 00 55 [10:12:00]Write i2c OK [10:12:00]MH_I2C_Read... [10:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:00]Read from MH i2c: E2 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: E2 17 00 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: E2 17 00 BB 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A5 [10:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:12:00]wFMCommunicate OK [10:12:00]requested_item fd.num is exist - process it [10:12:00]SAM_PROTO_GetFieldsCounters [10:12:00]wFMCommunicate request_size=4 [10:12:00]MH_SAM_APDU [10:12:00]CAPDU: 80 13 00 00 [10:12:00]Write to MH i2c: E2 08 00 BC 20 80 13 00 00 00 00 00 00 58 [10:12:00]Write i2c OK [10:12:00]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 62 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 62 00 BC 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 85 73 01 00 0E 04 04 00 47 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 2B [10:12:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 85 73 01 00 0E 04 04 00 47 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:12:01]wFMCommunicate OK [10:12:01]SAM_PROTO_GetFieldsCounters done [10:12:01]requested_item shift.num is exist - process it [10:12:01]requested_item shift.opened is exist - process it [10:12:01]req_shift_opened [10:12:01]FM_GetShiftState [10:12:01]SAM_PROTO_GetShiftState [10:12:01]wFMCommunicate request_size=4 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 13 01 00 [10:12:01]Write to MH i2c: E2 08 00 BD 20 80 13 01 00 00 00 00 00 5A [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 0E 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 0E 00 BD 20 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CE [10:12:01]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:12:01]wFMCommunicate OK [10:12:01]SAM_PROTO_GetShiftState done [10:12:01]FM_GetShiftState done [10:12:01]req_shift_opened done [10:12:01]requested_item shift.open_date is exist - process it [10:12:01]req_shift_open_date [10:12:01]req_shift_open_date done [10:12:01]produce_requested_data done [10:12:01]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95109,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [10:12:01]process_action_free close_receipt [10:12:01]json_value_free [10:12:01]json_value_free done [10:12:01]process_json_proto returns [10:12:01]Send response to host [10:12:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95109,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [10:12:01]free response buf [10:12:01]execute_script done [10:12:01]execute_script returns [10:12:01]free content buf [10:12:01]Sock 8.Close socket [10:12:01]Sock 8.Thread stoped [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:22]accept exits with 9 [10:12:22]New connection [10:12:22]New thread 3066957156 created [10:12:22]Thread 3066813796 joined [10:12:22]Waiting for new connection... [10:12:22] Sock 9.Parse request [10:12:22]Sock 9.Check first char [10:12:22]Sock 9.First char is OK [10:12:22]request: POST /json_proto HTTP/1.0 [10:12:22]Method: POST [10:12:22]URL: /json_proto [10:12:22]Method is POST - this is cgi request [10:12:22]url: /json_proto [10:12:22]query_string will be loaded in cgi processing [10:12:22]execute_cgi json_proto POST (null) [10:12:22]execute_cgi path=json_proto method=POST [10:12:22]POST find Content-Length [10:12:22]Host: 172.17.62.67:8080 [10:12:22]Content-Length: 682 [10:12:22]Content-Type: application/json [10:12:22] [10:12:22]POST finish read [10:12:22]Found Content-Length = 682 [10:12:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:12:22]execute_script... [10:12: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)196076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:12:22]POST & json_proto [10:12:22]process_json_proto [10:12:22]json parsed OK: [10:12:22]protocol is kg_v1.0 [10:12:22]action value=close_receipt [10:12:22]process_action close_receipt [10:12:22]cmd_close_receipt [10:12:22]MH_GetDate [10:12:22]Write to MH i2c: F0 00 00 BE 20 CD [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: F0 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: F0 05 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: F0 05 00 BE 20 00 8B 2A F0 65 DC [10:12:22]GetLastDocTimeStamp 1710238322 [10:12:22]current date 1710238347 [10:12:22]FM_GetShiftState [10:12:22]SAM_PROTO_GetShiftState [10:12:22]wFMCommunicate request_size=4 [10:12:22]MH_SAM_APDU [10:12:22]CAPDU: 80 13 01 00 [10:12:22]Write to MH i2c: E2 08 00 BF 20 80 13 01 00 00 00 00 00 5C [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:22]Read from MH i2c: E2 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 0E 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 0E 00 BF 20 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D0 [10:12:22]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:12:22]wFMCommunicate OK [10:12:22]SAM_PROTO_GetShiftState done [10:12:22]FM_GetShiftState done [10:12:22]opened in 1710201976 [10:12:22]opened+sec_in_day 1710288376 [10:12:22]quantity*price = 100011 [10:12:22]sum+1 = 100012 [10:12:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 40 12.03.2024 10:12 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95110 ФПД: 171597146412362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T101227&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95110&fm=171597146412362&tin=02508201610067®Number=0000000000090555&sum=100000 [10:12:23]StoreToDocumentArchive [10:12:23]shift 327 fd 95110 [10:12:23]save to /storage/0327/doc_00095110 [10:12:23]save last doc name /storage/0327/doc_00095110 to /storage/kkm_last_doc_name [10:12:23]save OK [10:12:23]Clear old archive folders... [10:12:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:23]tlvbuf is 01A63AA0 [10:12:23]SAM_PROTO_ClearQueue [10:12:23]wFMCommunicate request_size=4 [10:12:23]MH_SAM_APDU [10:12:23]CAPDU: 80 09 00 00 [10:12:23]Write to MH i2c: E2 08 00 CC 20 80 09 00 00 00 00 00 00 5E [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:23]Read from MH i2c: E2 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 03 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 03 00 CC 20 00 90 00 60 [10:12:23]RAPDU: 90 00 [10:12:23]wFMCommunicate OK [10:12:23]SAM_PROTO_ClearQueue done [10:12:23]KKMCreateOFDPacket [10:12:23]OFDProtocolAddRootSTLVToBuf [10:12:23]FM_MakeSignedData [10:12:23]FM_MakeSignedData [10:12:23]SAM_PROTO_SignData [10:12:23]wFMCommunicate request_size=4 [10:12:23]MH_SAM_APDU [10:12:23]CAPDU: 80 0D 01 02 [10:12:23]Write to MH i2c: E2 08 00 CD 20 80 0D 01 02 00 00 00 00 66 [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:23]Read from MH i2c: E2 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 03 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 03 00 CD 20 00 90 00 61 [10:12:23]RAPDU: 90 00 [10:12:23]wFMCommunicate OK [10:12:23]wFMCommunicate request_size=255 [10:12:23]MH_SAM_APDU [10:12:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 8B 2A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 86 73 01 00 35 04 06 00 9C [10:12:23]Write to MH i2c: E2 02 01 CE 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 8B 2A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 86 73 01 00 35 04 06 00 9C 00 00 1E [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 CE 20 00 90 00 62 [10:12:24]RAPDU: 90 00 [10:12:24]wFMCommunicate OK [10:12:24]wFMCommunicate request_size=10 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 0D 02 02 05 11 12 F4 D5 4A [10:12:24]Write to MH i2c: E2 0D 00 CF 20 80 0D 02 02 05 00 11 12 F4 D5 4A 00 00 A9 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 CF 20 00 90 00 63 [10:12:24]RAPDU: 90 00 [10:12:24]wFMCommunicate OK [10:12:24]wFMCommunicate request_size=4 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 0D 03 02 [10:12:24]Write to MH i2c: E2 08 00 D0 20 80 0D 03 02 00 00 00 00 6B [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 0B 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 0B 00 D0 20 00 E4 A6 72 AB 6C 58 DE 4B 90 00 00 [10:12:24]RAPDU: E4 A6 72 AB 6C 58 DE 4B 90 00 [10:12:24]wFMCommunicate OK [10:12:24]SAM_PROTO_SignData done [10:12:24]FM_MakeSignedData done [10:12:24]CreateOFDProtocolMessage [10:12:24]wFMCommunicate request_size=4 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 11 00 00 [10:12:24]Write to MH i2c: E2 08 00 D1 20 80 11 00 00 00 00 00 00 6B [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 17 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 17 00 D1 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BB [10:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:12:24]wFMCommunicate OK [10:12:24]CreateOFDProtocolMessage done [10:12:24]OFDSenderStorePacket 95110 [10:12:24]StoreOFDPacket docnum=95110 [10:12:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 52 BF 07 01 8F C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 8B 2A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 86 73 01 00 35 04 06 00 9C 11 12 F4 D5 4A E4 A6 72 AB 6C 58 DE 4B [10:12:24]CheckFolder [10:12:24]dirname=/storage/ofd_packets [10:12:24]CheckFolder done [10:12:24]ProducePacketName [10:12:24]name=ofd_packets/00095110 [10:12:24]NVStorageSaveData ofd_packets/00095110 [10:12:24]File name is /storage/ofd_packets/00095110 [10:12:24]Write 301 bytes [10:12:24]NVStorageSaveData done [10:12:24]OFDSenderStorePacket done [10:12:24]KKMCreateOFDPacket done [10:12:24]NVStorageSaveData kkm_last_timestamp [10:12:24]File name is /storage/kkm_last_timestamp [10:12:24]Write 4 bytes [10:12:24]NVStorageSaveData done [10:12:24]ExternCall_PrintAddStr [10:12:24]wPrintStart [10:12:24]Write to MH i2c: 01 00 00 D2 20 F2 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: 01 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: 01 07 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: 01 07 00 D2 20 00 80 00 00 00 FF 0F 87 [10:12:24]RasterBufferAndPrint [10:12:24]line Счет N : (1)196076 [10:12:24]line ИНН: 02508201610067 [10:12:24]line Контрольно-Кассовый Чек [10:12:24]line ПРОДАЖА [10:12:24]line ТРК (МРК, ГНК) : 22 [10:12:24]line Товар: 2710124130 [10:12:24]line Аи-92-К-5 [10:12:24]line 15.900 * 62.90 [10:12:24]line = 1000.11 [10:12:24]line НДС 12% НСП 1% [10:12:24]line > о реализуемом товаре [10:12:24]line ОКРУГЛЕНИЕ: -0.11 [10:12:24]line ИТОГО: 1000.00 [10:12:24]line Внесено: 1000.00 [10:12:24]line СДАЧА: 0.00 [10:12:24]line НСП 1% : 8.85 [10:12:24]line НДС 12% : 106.21 [10:12:24]line Наличными: 1000.00 [10:12:24]line Безнал.: 0.00 [10:12:24]line Место: АЗС № 6 "Партнер Нефть" [10:12:24]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:12:24]line СНО: Общий режим [10:12:24]line Чек 40 12.03.2024 10:12 [10:12:24]line Смена: 327 ФФД: 1.0 [10:12:24]line ЗНМ: 0300000009 [10:12:24]line РНМ: 0000000000090555 [10:12:24]line Версия ККМ: 001 [10:12:24]line ФМ: 0000000000874811 [10:12:24]line ФД: 95110 [10:12:24]line ФПД: 171597146412362 [10:12:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T101227&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95110&fm=171597146412362&tin=02508201610067®Number=0000000000090555&sum=100000 [10:12:24]OFD Sender: Processing packet 95110 [packets to send 30, broken 29] [10:12:24]ProducePacketName [10:12:24]name=ofd_packets/00095110 [10:12:24]OFD Sender: To server: pG, [10:12:24]CommunicateWithHost lk.salyk.kg:30040 [10:12:24]ConnectInit lk.salyk.kg [10:12:24]written 0, free lines is 4095 [10:12:24]Connected sock=10 [10:12:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 52 BF 07 01 8F C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 8B 2A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 86 73 01 00 35 04 06 00 9C 11 12 F4 D5 4A E4 A6 72 AB 6C 58 DE 4B [10:12:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 4C 80 47 00 B0 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 86 73 01 00 F4 03 04 00 E1 D5 EF 65 B6 04 01 00 00 A0 32 35 85 1B A1 70 4C [10:12:24]CommunicateWithHost err = 0 [10:12:24]CheckOFDResponse [10:12:24]1017 (14) - 77093643461234 [10:12:24]1041 (16) - 0000000000874811 [10:12:24]1040 (4) - 95110 [10:12:24]1012 (4) - 12.03.2024 04:11 [10:12:24]1206 (1) - 0 [10:12:24]OFD Sender: Remove packet 95110 [10:12:24]ProducePacketName [10:12:24]name=ofd_packets/00095110 [10:12:24]NVStorageDeleteData [10:12:25]Write to MH i2c: 01 00 00 FD 20 1D [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 07 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 07 00 FD 20 00 80 00 00 00 49 0D FA [10:12:25]RasterBufferAndPrint [10:12:25]line [10:12:25]line [10:12:25]line [10:12:25]line [10:12:25]line [10:12:25]written 0, free lines is 3407 [10:12:25]process_action close_receipt done [10:12:25]requested_data is exist [10:12:25]produce_requested_data [10:12:25]requested_item fm.sn is exist - process it [10:12:25]wFMCommunicate request_size=4 [10:12:25]MH_SAM_APDU [10:12:25]CAPDU: 80 11 00 00 [10:12:25]Write to MH i2c: E2 08 00 04 21 80 11 00 00 00 00 00 00 9F [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 [10:12:25]MH_I2C_Read... [10:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:25]Read from MH i2c: E2 17 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 17 00 04 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EF [10:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:12:25]wFMCommunicate OK [10:12:25]requested_item fd.num is exist - process it [10:12:25]SAM_PROTO_GetFieldsCounters [10:12:25]wFMCommunicate request_size=4 [10:12:25]MH_SAM_APDU [10:12:25]CAPDU: 80 13 00 00 [10:12:25]Write to MH i2c: E2 08 00 05 21 80 13 00 00 00 00 00 00 A2 [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:25]Read from MH i2c: E2 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 62 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 62 00 05 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 86 73 01 00 0E 04 04 00 47 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 79 [10:12:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 86 73 01 00 0E 04 04 00 47 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:12:25]wFMCommunicate OK [10:12:25]SAM_PROTO_GetFieldsCounters done [10:12:25]requested_item shift.num is exist - process it [10:12:25]requested_item shift.opened is exist - process it [10:12:25]req_shift_opened [10:12:25]FM_GetShiftState [10:12:25]SAM_PROTO_GetShiftState [10:12:25]wFMCommunicate request_size=4 [10:12:25]MH_SAM_APDU [10:12:25]CAPDU: 80 13 01 00 [10:12:25]Write to MH i2c: E2 08 00 06 21 80 13 01 00 00 00 00 00 A4 [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:25]OFD Sender: No OFD packet to send [10:12:25]Read from MH i2c: E2 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 0E 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 0E 00 06 21 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 18 [10:12:25]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:12:25]wFMCommunicate OK [10:12:25]SAM_PROTO_GetShiftState done [10:12:25]FM_GetShiftState done [10:12:25]req_shift_opened done [10:12:25]requested_item shift.open_date is exist - process it [10:12:25]req_shift_open_date [10:12:25]req_shift_open_date done [10:12:25]produce_requested_data done [10:12:25]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95110,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [10:12:25]process_action_free close_receipt [10:12:25]json_value_free [10:12:25]json_value_free done [10:12:25]process_json_proto returns [10:12:25]Send response to host [10:12:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95110,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [10:12:25]free response buf [10:12:25]execute_script done [10:12:25]execute_script returns [10:12:25]free content buf [10:12:25]Sock 9.Close socket [10:12:25]Sock 9.Thread stoped [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:47]accept exits with 8 [10:14:47]New connection [10:14:47]New thread 3066813796 created [10:14:47]Thread 3066957156 joined [10:14:47]Waiting for new connection... [10:14:47] Sock 8.Parse request [10:14:47]Sock 8.Check first char [10:14:47]Sock 8.First char is OK [10:14:47]request: POST /json_proto HTTP/1.0 [10:14:47]Method: POST [10:14:47]URL: /json_proto [10:14:47]Method is POST - this is cgi request [10:14:47]url: /json_proto [10:14:47]query_string will be loaded in cgi processing [10:14:47]execute_cgi json_proto POST (null) [10:14:47]execute_cgi path=json_proto method=POST [10:14:47]POST find Content-Length [10:14:47]Host: 172.17.62.67:8080 [10:14:47]Content-Length: 661 [10:14:47]Content-Type: application/json [10:14:47] [10:14:47]POST finish read [10:14:47]Found Content-Length = 661 [10:14:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:47]execute_script... [10:14:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:47]POST & json_proto [10:14:47]process_json_proto [10:14:47]json parsed OK: [10:14:47]protocol is kg_v1.0 [10:14:47]action value=close_receipt [10:14:47]process_action close_receipt [10:14:47]cmd_close_receipt [10:14:47]MH_GetDate [10:14:47]Write to MH i2c: F0 00 00 07 21 17 [10:14:48]Write i2c OK [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: F0 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: F0 05 00 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: F0 05 00 07 21 00 1C 2B F0 65 B8 [10:14:48]GetLastDocTimeStamp 1710238347 [10:14:48]current date 1710238492 [10:14:48]FM_GetShiftState [10:14:48]SAM_PROTO_GetShiftState [10:14:48]wFMCommunicate request_size=4 [10:14:48]MH_SAM_APDU [10:14:48]CAPDU: 80 13 01 00 [10:14:48]Write to MH i2c: E2 08 00 08 21 80 13 01 00 00 00 00 00 A6 [10:14:48]Write i2c OK [10:14:48]MH_I2C_Read... [10:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:48]Read from MH i2c: E2 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: E2 0E 00 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: E2 0E 00 08 21 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 1A [10:14:48]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:14:48]wFMCommunicate OK [10:14:48]SAM_PROTO_GetShiftState done [10:14:48]FM_GetShiftState done [10:14:48]opened in 1710201976 [10:14:48]opened+sec_in_day 1710288376 [10:14:48]quantity*price = 62900 [10:14:48]sum+1 = 62901 [10:14:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 Внесено: 2000.00 СДАЧА: 1371.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 629.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 41 12.03.2024 10:14 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95111 ФПД: 147270165498039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T101452&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95111&fm=147270165498039&tin=02508201610067®Number=0000000000090555&sum=62900 [10:14:49]StoreToDocumentArchive [10:14:49]shift 327 fd 95111 [10:14:49]save to /storage/0327/doc_00095111 [10:14:49]save last doc name /storage/0327/doc_00095111 to /storage/kkm_last_doc_name [10:14:49]save OK [10:14:49]Clear old archive folders... [10:14:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:49]tlvbuf is 01A5F8B0 [10:14:49]SAM_PROTO_ClearQueue [10:14:49]wFMCommunicate request_size=4 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 09 00 00 [10:14:49]Write to MH i2c: E2 08 00 15 21 80 09 00 00 00 00 00 00 A8 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 15 21 00 90 00 AA [10:14:49]RAPDU: 90 00 [10:14:49]wFMCommunicate OK [10:14:49]SAM_PROTO_ClearQueue done [10:14:49]KKMCreateOFDPacket [10:14:49]OFDProtocolAddRootSTLVToBuf [10:14:49]FM_MakeSignedData [10:14:49]FM_MakeSignedData [10:14:49]SAM_PROTO_SignData [10:14:49]wFMCommunicate request_size=4 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 0D 01 02 [10:14:49]Write to MH i2c: E2 08 00 16 21 80 0D 01 02 00 00 00 00 B0 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 16 21 00 90 00 AB [10:14:49]RAPDU: 90 00 [10:14:49]wFMCommunicate OK [10:14:49]wFMCommunicate request_size=255 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 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 1C 2B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 87 73 01 00 35 04 06 00 85 [10:14:49]Write to MH i2c: E2 02 01 17 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 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 1C 2B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 87 73 01 00 35 04 06 00 85 00 00 80 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 17 21 00 90 00 AC [10:14:49]RAPDU: 90 00 [10:14:49]wFMCommunicate OK [10:14:49]wFMCommunicate request_size=10 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 0D 02 02 05 F1 01 E6 88 B7 [10:14:49]Write to MH i2c: E2 0D 00 18 21 80 0D 02 02 05 00 F1 01 E6 88 B7 00 00 D4 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 18 21 00 90 00 AD [10:14:49]RAPDU: 90 00 [10:14:49]wFMCommunicate OK [10:14:49]wFMCommunicate request_size=4 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 0D 03 02 [10:14:49]Write to MH i2c: E2 08 00 19 21 80 0D 03 02 00 00 00 00 B5 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 0B 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 0B 00 19 21 00 1D 09 A9 71 1E C6 25 1D 90 00 1C [10:14:49]RAPDU: 1D 09 A9 71 1E C6 25 1D 90 00 [10:14:49]wFMCommunicate OK [10:14:49]SAM_PROTO_SignData done [10:14:49]FM_MakeSignedData done [10:14:49]CreateOFDProtocolMessage [10:14:49]wFMCommunicate request_size=4 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 11 00 00 [10:14:49]Write to MH i2c: E2 08 00 1A 21 80 11 00 00 00 00 00 00 B5 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 17 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 17 00 1A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 05 [10:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:14:49]wFMCommunicate OK [10:14:49]CreateOFDProtocolMessage done [10:14:49]OFDSenderStorePacket 95111 [10:14:49]StoreOFDPacket docnum=95111 [10:14:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CB 32 07 01 CA 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 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 1C 2B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 87 73 01 00 35 04 06 00 85 F1 01 E6 88 B7 1D 09 A9 71 1E C6 25 1D [10:14:49]CheckFolder [10:14:49]dirname=/storage/ofd_packets [10:14:49]CheckFolder done [10:14:49]ProducePacketName [10:14:49]name=ofd_packets/00095111 [10:14:49]NVStorageSaveData ofd_packets/00095111 [10:14:49]File name is /storage/ofd_packets/00095111 [10:14:49]Write 301 bytes [10:14:49]NVStorageSaveData done [10:14:49]OFDSenderStorePacket done [10:14:49]KKMCreateOFDPacket done [10:14:49]NVStorageSaveData kkm_last_timestamp [10:14:49]File name is /storage/kkm_last_timestamp [10:14:49]Write 4 bytes [10:14:49]NVStorageSaveData done [10:14:49]ExternCall_PrintAddStr [10:14:49]wPrintStart [10:14:49]Write to MH i2c: 01 00 00 1B 21 3C [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: 01 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: 01 07 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: 01 07 00 1B 21 00 80 00 00 00 FF 0F D1 [10:14:49]RasterBufferAndPrint [10:14:49]line Счет N : (1)196077 [10:14:49]line ИНН: 02508201610067 [10:14:49]line Контрольно-Кассовый Чек [10:14:49]line ПРОДАЖА [10:14:49]line ТРК (МРК, ГНК) : 12 [10:14:49]line Товар: 2710124130 [10:14:49]line Аи-92-К-5 [10:14:49]line 10.000 * 62.90 [10:14:49]line = 629.00 [10:14:49]line НДС 12% НСП 1% [10:14:49]line > о реализуемом товаре [10:14:49]line ИТОГО: 629.00 [10:14:49]line Внесено: 2000.00 [10:14:49]line СДАЧА: 1371.00 [10:14:49]line НСП 1% : 5.57 [10:14:49]line НДС 12% : 66.80 [10:14:49]line Наличными: 629.00 [10:14:49]line Безнал.: 0.00 [10:14:49]line Место: АЗС № 6 "Партнер Нефть" [10:14:49]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:14:49]line СНО: Общий режим [10:14:49]line Чек 41 12.03.2024 10:14 [10:14:49]line Смена: 327 ФФД: 1.0 [10:14:49]line ЗНМ: 0300000009 [10:14:49]line РНМ: 0000000000090555 [10:14:49]line Версия ККМ: 001 [10:14:49]line ФМ: 0000000000874811 [10:14:49]line ФД: 95111 [10:14:49]line ФПД: 147270165498039 [10:14:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T101452&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95111&fm=147270165498039&tin=02508201610067®Number=0000000000090555&sum=62900 [10:14:50]OFD Sender: Processing packet 95111 [packets to send 30, broken 29] [10:14:50]ProducePacketName [10:14:50]name=ofd_packets/00095111 [10:14:50]OFD Sender: To server: pG, [10:14:50]CommunicateWithHost lk.salyk.kg:30040 [10:14:50]ConnectInit lk.salyk.kg [10:14:50]written 0, free lines is 4095 [10:14:50]Connected sock=10 [10:14:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CB 32 07 01 CA 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 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 1C 2B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 87 73 01 00 35 04 06 00 85 F1 01 E6 88 B7 1D 09 A9 71 1E C6 25 1D [10:14:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 87 8D 47 00 39 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 38 37 34 38 31 31 10 04 04 00 87 73 01 00 F4 03 04 00 73 D6 EF 65 B6 04 01 00 00 97 40 99 8D 72 5A 98 4C [10:14:50]CommunicateWithHost err = 0 [10:14:50]CheckOFDResponse [10:14:50]1017 (14) - 77093643461234 [10:14:50]1041 (16) - 0000000000874811 [10:14:50]1040 (4) - 95111 [10:14:50]1012 (4) - 12.03.2024 04:13 [10:14:50]1206 (1) - 0 [10:14:50]OFD Sender: Remove packet 95111 [10:14:50]ProducePacketName [10:14:50]name=ofd_packets/00095111 [10:14:50]NVStorageDeleteData [10:14:50]Write to MH i2c: 01 00 00 45 21 66 [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 07 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 07 00 45 21 00 80 00 00 00 58 0D 52 [10:14:50]RasterBufferAndPrint [10:14:50]line [10:14:50]line [10:14:50]line [10:14:50]line [10:14:50]line [10:14:50]written 0, free lines is 3422 [10:14:50]process_action close_receipt done [10:14:50]requested_data is exist [10:14:50]produce_requested_data [10:14:50]requested_item fm.sn is exist - process it [10:14:50]wFMCommunicate request_size=4 [10:14:50]MH_SAM_APDU [10:14:50]CAPDU: 80 11 00 00 [10:14:50]Write to MH i2c: E2 08 00 4C 21 80 11 00 00 00 00 00 00 E7 [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 [10:14:50]MH_I2C_Read... [10:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:50]Read from MH i2c: E2 17 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 17 00 4C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 37 [10:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:14:50]wFMCommunicate OK [10:14:50]requested_item fd.num is exist - process it [10:14:50]SAM_PROTO_GetFieldsCounters [10:14:50]wFMCommunicate request_size=4 [10:14:50]MH_SAM_APDU [10:14:50]CAPDU: 80 13 00 00 [10:14:50]Write to MH i2c: E2 08 00 4D 21 80 13 00 00 00 00 00 00 EA [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:50]Read from MH i2c: E2 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 62 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 62 00 4D 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 87 73 01 00 0E 04 04 00 47 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 C5 [10:14:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 87 73 01 00 0E 04 04 00 47 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:14:50]wFMCommunicate OK [10:14:50]SAM_PROTO_GetFieldsCounters done [10:14:50]requested_item shift.num is exist - process it [10:14:50]requested_item shift.opened is exist - process it [10:14:50]req_shift_opened [10:14:50]FM_GetShiftState [10:14:50]SAM_PROTO_GetShiftState [10:14:50]wFMCommunicate request_size=4 [10:14:50]MH_SAM_APDU [10:14:50]CAPDU: 80 13 01 00 [10:14:50]Write to MH i2c: E2 08 00 4E 21 80 13 01 00 00 00 00 00 EC [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:50]Read from MH i2c: E2 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 0E 00 [10:14:50]MH_I2C_Read... [10:14:50]OFD Sender: No OFD packet to send [10:14:50]Read from MH i2c: E2 0E 00 4E 21 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 60 [10:14:50]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:14:50]wFMCommunicate OK [10:14:50]SAM_PROTO_GetShiftState done [10:14:50]FM_GetShiftState done [10:14:50]req_shift_opened done [10:14:50]requested_item shift.open_date is exist - process it [10:14:50]req_shift_open_date [10:14:50]req_shift_open_date done [10:14:50]produce_requested_data done [10:14:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95111,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [10:14:50]process_action_free close_receipt [10:14:50]json_value_free [10:14:50]json_value_free done [10:14:50]process_json_proto returns [10:14:50]Send response to host [10:14:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95111,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [10:14:50]free response buf [10:14:50]execute_script done [10:14:50]execute_script returns [10:14:50]free content buf [10:14:50]Sock 8.Close socket [10:14:50]Sock 8.Thread stoped [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:15:57]accept exits with 9 [10:15:57]New connection [10:15:57]New thread 3066957156 created [10:15:57]Thread 3066813796 joined [10:15:57]Waiting for new connection... [10:15:57] Sock 9.Parse request [10:15:57]Sock 9.Check first char [10:15:57]Sock 9.First char is OK [10:15:57]request: POST /json_proto HTTP/1.0 [10:15:57]Method: POST [10:15:57]URL: /json_proto [10:15:57]Method is POST - this is cgi request [10:15:57]url: /json_proto [10:15:57]query_string will be loaded in cgi processing [10:15:57]execute_cgi json_proto POST (null) [10:15:57]execute_cgi path=json_proto method=POST [10:15:57]POST find Content-Length [10:15:57]Host: 172.17.62.67:8080 [10:15:57]Content-Length: 677 [10:15:57]Content-Type: application/json [10:15:57] [10:15:57]POST finish read [10:15:57]Found Content-Length = 677 [10:15:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:57]execute_script... [10:15: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)196078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:57]POST & json_proto [10:15:57]process_json_proto [10:15:57]json parsed OK: [10:15:57]protocol is kg_v1.0 [10:15:57]action value=close_receipt [10:15:57]process_action close_receipt [10:15:57]cmd_close_receipt [10:15:57]MH_GetDate [10:15:57]Write to MH i2c: F0 00 00 4F 21 5F [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: F0 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: F0 05 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: F0 05 00 4F 21 00 61 2B F0 65 45 [10:15:57]GetLastDocTimeStamp 1710238492 [10:15:57]current date 1710238561 [10:15:57]FM_GetShiftState [10:15:57]SAM_PROTO_GetShiftState [10:15:57]wFMCommunicate request_size=4 [10:15:57]MH_SAM_APDU [10:15:57]CAPDU: 80 13 01 00 [10:15:57]Write to MH i2c: E2 08 00 50 21 80 13 01 00 00 00 00 00 EE [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:57]Read from MH i2c: E2 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 0E 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 0E 00 50 21 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 62 [10:15:57]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:15:57]wFMCommunicate OK [10:15:57]SAM_PROTO_GetShiftState done [10:15:57]FM_GetShiftState done [10:15:57]opened in 1710201976 [10:15:57]opened+sec_in_day 1710288376 [10:15:57]quantity*price = 50005 [10:15:57]sum+1 = 50007 [10:15:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 42 12.03.2024 10:16 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95112 ФПД: 180490204461740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T101601&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95112&fm=180490204461740&tin=02508201610067®Number=0000000000090555&sum=50000 [10:15:58]StoreToDocumentArchive [10:15:58]shift 327 fd 95112 [10:15:58]save to /storage/0327/doc_00095112 [10:15:58]save last doc name /storage/0327/doc_00095112 to /storage/kkm_last_doc_name [10:15:58]save OK [10:15:58]Clear old archive folders... [10:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:58]tlvbuf is 01A05D50 [10:15:58]SAM_PROTO_ClearQueue [10:15:58]wFMCommunicate request_size=4 [10:15:58]MH_SAM_APDU [10:15:58]CAPDU: 80 09 00 00 [10:15:58]Write to MH i2c: E2 08 00 5D 21 80 09 00 00 00 00 00 00 F0 [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 03 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 03 00 5D 21 00 90 00 F2 [10:15:58]RAPDU: 90 00 [10:15:58]wFMCommunicate OK [10:15:58]SAM_PROTO_ClearQueue done [10:15:58]KKMCreateOFDPacket [10:15:58]OFDProtocolAddRootSTLVToBuf [10:15:58]FM_MakeSignedData [10:15:58]FM_MakeSignedData [10:15:58]SAM_PROTO_SignData [10:15:58]wFMCommunicate request_size=4 [10:15:58]MH_SAM_APDU [10:15:58]CAPDU: 80 0D 01 02 [10:15:58]Write to MH i2c: E2 08 00 5E 21 80 0D 01 02 00 00 00 00 F8 [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 03 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 03 00 5E 21 00 90 00 F3 [10:15:58]RAPDU: 90 00 [10:15:58]wFMCommunicate OK [10:15:58]wFMCommunicate request_size=255 [10:15:58]MH_SAM_APDU [10:15:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 61 2B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 88 73 01 00 35 04 06 00 A4 [10:15:58]Write to MH i2c: E2 02 01 5F 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 61 2B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 88 73 01 00 35 04 06 00 A4 00 00 94 [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 03 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 03 00 5F 21 00 90 00 F4 [10:15:58]RAPDU: 90 00 [10:15:58]wFMCommunicate OK [10:15:58]wFMCommunicate request_size=10 [10:15:58]MH_SAM_APDU [10:15:58]CAPDU: 80 0D 02 02 05 27 A6 85 BA AC [10:15:58]Write to MH i2c: E2 0D 00 60 21 80 0D 02 02 05 00 27 A6 85 BA AC 00 00 BD [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 03 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 03 00 60 21 00 90 00 F5 [10:15:58]RAPDU: 90 00 [10:15:58]wFMCommunicate OK [10:15:58]wFMCommunicate request_size=4 [10:15:58]MH_SAM_APDU [10:15:58]CAPDU: 80 0D 03 02 [10:15:58]Write to MH i2c: E2 08 00 61 21 80 0D 03 02 00 00 00 00 FD [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 0B 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 0B 00 61 21 00 79 8A 04 E6 70 03 38 41 90 00 D7 [10:15:58]RAPDU: 79 8A 04 E6 70 03 38 41 90 00 [10:15:58]wFMCommunicate OK [10:15:58]SAM_PROTO_SignData done [10:15:58]FM_MakeSignedData done [10:15:58]CreateOFDProtocolMessage [10:15:58]wFMCommunicate request_size=4 [10:15:58]MH_SAM_APDU [10:15:58]CAPDU: 80 11 00 00 [10:15:58]Write to MH i2c: E2 08 00 62 21 80 11 00 00 00 00 00 00 FD [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 17 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 17 00 62 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4D [10:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:15:58]wFMCommunicate OK [10:15:58]CreateOFDProtocolMessage done [10:15:58]OFDSenderStorePacket 95112 [10:15:58]StoreOFDPacket docnum=95112 [10:15:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 71 1D 07 01 64 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 61 2B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 88 73 01 00 35 04 06 00 A4 27 A6 85 BA AC 79 8A 04 E6 70 03 38 41 [10:15:58]CheckFolder [10:15:58]dirname=/storage/ofd_packets [10:15:58]CheckFolder done [10:15:58]ProducePacketName [10:15:58]name=ofd_packets/00095112 [10:15:58]NVStorageSaveData ofd_packets/00095112 [10:15:58]File name is /storage/ofd_packets/00095112 [10:15:58]Write 301 bytes [10:15:58]NVStorageSaveData done [10:15:58]OFDSenderStorePacket done [10:15:58]KKMCreateOFDPacket done [10:15:58]NVStorageSaveData kkm_last_timestamp [10:15:58]File name is /storage/kkm_last_timestamp [10:15:58]Write 4 bytes [10:15:58]NVStorageSaveData done [10:15:58]OFD Sender: Processing packet 95112 [packets to send 30, broken 29] [10:15:58]ProducePacketName [10:15:58]name=ofd_packets/00095112 [10:15:58]OFD Sender: To server: pG, [10:15:58]CommunicateWithHost lk.salyk.kg:30040 [10:15:58]ConnectInit lk.salyk.kg [10:15:58]ExternCall_PrintAddStr [10:15:58]wPrintStart [10:15:58]Write to MH i2c: 01 00 00 63 21 84 [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 07 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 07 00 63 21 00 80 00 00 00 FF 0F 19 [10:15:58]RasterBufferAndPrint [10:15:58]line Счет N : (1)196078 [10:15:58]line ИНН: 02508201610067 [10:15:58]line Контрольно-Кассовый Чек [10:15:58]line ПРОДАЖА [10:15:58]line ТРК (МРК, ГНК) : 32 [10:15:58]line Товар: 2710124130 [10:15:58]line Аи-92-К-5 [10:15:58]line 7.950 * 62.90 [10:15:58]line = 500.06 [10:15:58]line НДС 12% НСП 1% [10:15:58]line > о реализуемом товаре [10:15:58]line ОКРУГЛЕНИЕ: -0.06 [10:15:58]line ИТОГО: 500.00 [10:15:58]line Внесено: 500.00 [10:15:58]line СДАЧА: 0.00 [10:15:58]line НСП 1% : 4.42 [10:15:58]line НДС 12% : 53.10 [10:15:58]line Наличными: 500.00 [10:15:58]line Безнал.: 0.00 [10:15:58]line Место: АЗС № 6 "Партнер Нефть" [10:15:58]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:15:58]line СНО: Общий режим [10:15:58]line Чек 42 12.03.2024 10:16 [10:15:58]line Смена: 327 ФФД: 1.0 [10:15:58]line ЗНМ: 0300000009 [10:15:58]line РНМ: 0000000000090555 [10:15:59]line Версия ККМ: 001 [10:15:59]line ФМ: 0000000000874811 [10:15:59]line ФД: 95112 [10:15:59]line ФПД: 180490204461740 [10:15:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T101601&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95112&fm=180490204461740&tin=02508201610067®Number=0000000000090555&sum=50000 [10:15:59]Connected sock=11 [10:15:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 71 1D 07 01 64 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 61 2B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 88 73 01 00 35 04 06 00 A4 27 A6 85 BA AC 79 8A 04 E6 70 03 38 41 [10:15:59]written 0, free lines is 4095 [10:15:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 36 88 47 00 12 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 88 73 01 00 F4 03 04 00 B8 D6 EF 65 B6 04 01 00 00 63 BB D8 4D 95 F3 83 C6 [10:15:59]CommunicateWithHost err = 0 [10:15:59]CheckOFDResponse [10:15:59]1017 (14) - 77093643461234 [10:15:59]1041 (16) - 0000000000874811 [10:15:59]1040 (4) - 95112 [10:15:59]1012 (4) - 12.03.2024 04:14 [10:15:59]1206 (1) - 0 [10:15:59]OFD Sender: Remove packet 95112 [10:15:59]ProducePacketName [10:15:59]name=ofd_packets/00095112 [10:15:59]NVStorageDeleteData [10:15:59]Write to MH i2c: 01 00 00 8E 21 AF [10:15:59]Write i2c OK [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: 01 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: 01 07 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: 01 07 00 8E 21 00 80 00 00 00 48 0D 8B [10:15:59]RasterBufferAndPrint [10:15:59]line [10:15:59]line [10:15:59]line [10:15:59]line [10:15:59]line [10:15:59]written 0, free lines is 3406 [10:15:59]process_action close_receipt done [10:15:59]requested_data is exist [10:15:59]produce_requested_data [10:15:59]requested_item fm.sn is exist - process it [10:15:59]wFMCommunicate request_size=4 [10:15:59]MH_SAM_APDU [10:15:59]CAPDU: 80 11 00 00 [10:15:59]Write to MH i2c: E2 08 00 95 21 80 11 00 00 00 00 00 00 30 [10:15:59]Write i2c OK [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 [10:15:59]MH_I2C_Read... [10:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:59]Read from MH i2c: E2 17 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 17 00 95 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 80 [10:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:15:59]wFMCommunicate OK [10:15:59]requested_item fd.num is exist - process it [10:15:59]SAM_PROTO_GetFieldsCounters [10:15:59]wFMCommunicate request_size=4 [10:15:59]MH_SAM_APDU [10:15:59]CAPDU: 80 13 00 00 [10:15:59]Write to MH i2c: E2 08 00 96 21 80 13 00 00 00 00 00 00 33 [10:15:59]Write i2c OK [10:15:59]MH_I2C_Read... [10:15:59]OFD Sender: No OFD packet to send [10:16:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:00]Read from MH i2c: E2 [10:16:00]MH_I2C_Read... [10:16:00]Read from MH i2c: E2 62 00 [10:16:00]MH_I2C_Read... [10:16:00]Read from MH i2c: E2 62 00 96 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 88 73 01 00 0E 04 04 00 47 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 12 [10:16:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 88 73 01 00 0E 04 04 00 47 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:16:00]wFMCommunicate OK [10:16:00]SAM_PROTO_GetFieldsCounters done [10:16:00]requested_item shift.num is exist - process it [10:16:00]requested_item shift.opened is exist - process it [10:16:00]req_shift_opened [10:16:00]FM_GetShiftState [10:16:00]SAM_PROTO_GetShiftState [10:16:00]wFMCommunicate request_size=4 [10:16:00]MH_SAM_APDU [10:16:00]CAPDU: 80 13 01 00 [10:16:00]Write to MH i2c: E2 08 00 97 21 80 13 01 00 00 00 00 00 35 [10:16:00]Write i2c OK [10:16:00]MH_I2C_Read... [10:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:00]Read from MH i2c: E2 [10:16:00]MH_I2C_Read... [10:16:00]Read from MH i2c: E2 0E 00 [10:16:00]MH_I2C_Read... [10:16:00]Read from MH i2c: E2 0E 00 97 21 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A9 [10:16:00]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:16:00]wFMCommunicate OK [10:16:00]SAM_PROTO_GetShiftState done [10:16:00]FM_GetShiftState done [10:16:00]req_shift_opened done [10:16:00]requested_item shift.open_date is exist - process it [10:16:00]req_shift_open_date [10:16:00]req_shift_open_date done [10:16:00]produce_requested_data done [10:16:00]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95112,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [10:16:00]process_action_free close_receipt [10:16:00]json_value_free [10:16:00]json_value_free done [10:16:00]process_json_proto returns [10:16:00]Send response to host [10:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95112,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [10:16:00]free response buf [10:16:00]execute_script done [10:16:00]execute_script returns [10:16:00]free content buf [10:16:00]Sock 9.Close socket [10:16:00]Sock 9.Thread stoped [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:15]OFD Sender: No OFD packet to send [10:18:20]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:16]accept exits with 8 [10:26:16]New connection [10:26:16]New thread 3066813796 created [10:26:16]Thread 3066957156 joined [10:26:16]Waiting for new connection... [10:26:16] Sock 8.Parse request [10:26:16]Sock 8.Check first char [10:26:16]Sock 8.First char is OK [10:26:16]request: POST /json_proto HTTP/1.0 [10:26:16]Method: POST [10:26:16]URL: /json_proto [10:26:16]Method is POST - this is cgi request [10:26:16]url: /json_proto [10:26:16]query_string will be loaded in cgi processing [10:26:16]execute_cgi json_proto POST (null) [10:26:16]execute_cgi path=json_proto method=POST [10:26:16]POST find Content-Length [10:26:16]Host: 172.17.62.67:8080 [10:26:16]Content-Length: 677 [10:26:16]Content-Type: application/json [10:26:16] [10:26:16]POST finish read [10:26:16]Found Content-Length = 677 [10:26:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [10:26:16]execute_script... [10:26: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)196079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [10:26:16]POST & json_proto [10:26:16]process_json_proto [10:26:16]json parsed OK: [10:26:16]protocol is kg_v1.0 [10:26:16]action value=close_receipt [10:26:16]process_action close_receipt [10:26:16]cmd_close_receipt [10:26:16]MH_GetDate [10:26:16]Write to MH i2c: F0 00 00 98 21 A8 [10:26:16]Write i2c OK [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: F0 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: F0 05 00 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: F0 05 00 98 21 00 CD 2D F0 65 FC [10:26:16]GetLastDocTimeStamp 1710238561 [10:26:16]current date 1710239181 [10:26:16]FM_GetShiftState [10:26:16]SAM_PROTO_GetShiftState [10:26:16]wFMCommunicate request_size=4 [10:26:16]MH_SAM_APDU [10:26:16]CAPDU: 80 13 01 00 [10:26:16]Write to MH i2c: E2 08 00 99 21 80 13 01 00 00 00 00 00 37 [10:26:16]Write i2c OK [10:26:16]MH_I2C_Read... [10:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:16]Read from MH i2c: E2 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: E2 0E 00 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: E2 0E 00 99 21 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 AB [10:26:16]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:26:16]wFMCommunicate OK [10:26:16]SAM_PROTO_GetShiftState done [10:26:16]FM_GetShiftState done [10:26:16]opened in 1710201976 [10:26:16]opened+sec_in_day 1710288376 [10:26:16]quantity*price = 30003 [10:26:16]sum+1 = 30004 [10:26:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 43 12.03.2024 10:26 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95113 ФПД: 86898580620860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T102621&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95113&fm=86898580620860&tin=02508201610067®Number=0000000000090555&sum=30000 [10:26:17]StoreToDocumentArchive [10:26:17]shift 327 fd 95113 [10:26:17]save to /storage/0327/doc_00095113 [10:26:17]save last doc name /storage/0327/doc_00095113 to /storage/kkm_last_doc_name [10:26:17]save OK [10:26:17]Clear old archive folders... [10:26:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:17]tlvbuf is 01A28600 [10:26:17]SAM_PROTO_ClearQueue [10:26:17]wFMCommunicate request_size=4 [10:26:17]MH_SAM_APDU [10:26:17]CAPDU: 80 09 00 00 [10:26:17]Write to MH i2c: E2 08 00 A6 21 80 09 00 00 00 00 00 00 39 [10:26:17]Write i2c OK [10:26:17]MH_I2C_Read... [10:26:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:17]Read from MH i2c: E2 [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: E2 03 00 [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: E2 03 00 A6 21 00 90 00 3B [10:26:17]RAPDU: 90 00 [10:26:17]wFMCommunicate OK [10:26:17]SAM_PROTO_ClearQueue done [10:26:17]KKMCreateOFDPacket [10:26:17]OFDProtocolAddRootSTLVToBuf [10:26:17]FM_MakeSignedData [10:26:17]FM_MakeSignedData [10:26:17]SAM_PROTO_SignData [10:26:17]wFMCommunicate request_size=4 [10:26:17]MH_SAM_APDU [10:26:17]CAPDU: 80 0D 01 02 [10:26:17]Write to MH i2c: E2 08 00 A7 21 80 0D 01 02 00 00 00 00 41 [10:26:17]Write i2c OK [10:26:17]MH_I2C_Read... [10:26:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:17]Read from MH i2c: E2 [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: E2 03 00 [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: E2 03 00 A7 21 00 90 00 3C [10:26:17]RAPDU: 90 00 [10:26:17]wFMCommunicate OK [10:26:17]wFMCommunicate request_size=255 [10:26:17]MH_SAM_APDU [10:26:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 2B 00 00 00 F4 03 04 00 CD 2D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 89 73 01 00 35 04 06 00 4F [10:26:17]Write to MH i2c: E2 02 01 A8 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 2B 00 00 00 F4 03 04 00 CD 2D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 89 73 01 00 35 04 06 00 4F 00 00 2D [10:26:17]Write i2c OK [10:26:17]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 A8 21 00 90 00 3D [10:26:18]RAPDU: 90 00 [10:26:18]wFMCommunicate OK [10:26:18]wFMCommunicate request_size=10 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 0D 02 02 05 08 A7 07 86 3C [10:26:18]Write to MH i2c: E2 0D 00 A9 21 80 0D 02 02 05 00 08 A7 07 86 3C 00 00 C6 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 A9 21 00 90 00 3E [10:26:18]RAPDU: 90 00 [10:26:18]wFMCommunicate OK [10:26:18]wFMCommunicate request_size=4 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 0D 03 02 [10:26:18]Write to MH i2c: E2 08 00 AA 21 80 0D 03 02 00 00 00 00 46 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 0B 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 0B 00 AA 21 00 0E 2E 59 76 1E 4F 30 ED 90 00 DC [10:26:18]RAPDU: 0E 2E 59 76 1E 4F 30 ED 90 00 [10:26:18]wFMCommunicate OK [10:26:18]SAM_PROTO_SignData done [10:26:18]FM_MakeSignedData done [10:26:18]CreateOFDProtocolMessage [10:26:18]wFMCommunicate request_size=4 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 11 00 00 [10:26:18]Write to MH i2c: E2 08 00 AB 21 80 11 00 00 00 00 00 00 46 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 17 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 17 00 AB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 96 [10:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:26:18]wFMCommunicate OK [10:26:18]CreateOFDProtocolMessage done [10:26:18]OFDSenderStorePacket 95113 [10:26:18]StoreOFDPacket docnum=95113 [10:26:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 13 01 07 01 81 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 2B 00 00 00 F4 03 04 00 CD 2D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 89 73 01 00 35 04 06 00 4F 08 A7 07 86 3C 0E 2E 59 76 1E 4F 30 ED [10:26:18]CheckFolder [10:26:18]dirname=/storage/ofd_packets [10:26:18]CheckFolder done [10:26:18]ProducePacketName [10:26:18]name=ofd_packets/00095113 [10:26:18]NVStorageSaveData ofd_packets/00095113 [10:26:18]File name is /storage/ofd_packets/00095113 [10:26:18]Write 301 bytes [10:26:18]NVStorageSaveData done [10:26:18]OFDSenderStorePacket done [10:26:18]KKMCreateOFDPacket done [10:26:18]NVStorageSaveData kkm_last_timestamp [10:26:18]File name is /storage/kkm_last_timestamp [10:26:18]Write 4 bytes [10:26:18]NVStorageSaveData done [10:26:18]ExternCall_PrintAddStr [10:26:18]wPrintStart [10:26:18]Write to MH i2c: 01 00 00 AC 21 CD [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: 01 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: 01 07 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: 01 07 00 AC 21 00 80 00 00 00 FF 0F 62 [10:26:18]RasterBufferAndPrint [10:26:18]line Счет N : (1)196079 [10:26:18]line ИНН: 02508201610067 [10:26:18]line Контрольно-Кассовый Чек [10:26:18]line ПРОДАЖА [10:26:18]line ТРК (МРК, ГНК) : 22 [10:26:18]line Товар: 2710124130 [10:26:18]line Аи-92-К-5 [10:26:18]line 4.770 * 62.90 [10:26:18]line = 300.03 [10:26:18]line НДС 12% НСП 1% [10:26:18]line > о реализуемом товаре [10:26:18]line ОКРУГЛЕНИЕ: -0.03 [10:26:18]line ИТОГО: 300.00 [10:26:18]line Внесено: 300.00 [10:26:18]line СДАЧА: 0.00 [10:26:18]line НСП 1% : 2.65 [10:26:18]line НДС 12% : 31.86 [10:26:18]line Наличными: 300.00 [10:26:18]line Безнал.: 0.00 [10:26:18]line Место: АЗС № 6 "Партнер Нефть" [10:26:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:26:18]line СНО: Общий режим [10:26:18]line Чек 43 12.03.2024 10:26 [10:26:18]line Смена: 327 ФФД: 1.0 [10:26:18]line ЗНМ: 0300000009 [10:26:18]line РНМ: 0000000000090555 [10:26:18]line Версия ККМ: 001 [10:26:18]line ФМ: 0000000000874811 [10:26:18]line ФД: 95113 [10:26:18]line ФПД: 86898580620860 [10:26:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T102621&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95113&fm=86898580620860&tin=02508201610067®Number=0000000000090555&sum=30000 [10:26:18]OFD Sender: Processing packet 95113 [packets to send 30, broken 29] [10:26:18]ProducePacketName [10:26:18]name=ofd_packets/00095113 [10:26:18]OFD Sender: To server: pG, [10:26:18]CommunicateWithHost lk.salyk.kg:30040 [10:26:18]ConnectInit lk.salyk.kg [10:26:18]written 0, free lines is 4095 [10:26:18]Connected sock=10 [10:26:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 13 01 07 01 81 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 2B 00 00 00 F4 03 04 00 CD 2D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 89 73 01 00 35 04 06 00 4F 08 A7 07 86 3C 0E 2E 59 76 1E 4F 30 ED [10:26:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F7 43 47 00 7F 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 89 73 01 00 F4 03 04 00 23 D9 EF 65 B6 04 01 00 00 C3 B0 18 9D 93 A9 4A 3B [10:26:18]CommunicateWithHost err = 0 [10:26:18]CheckOFDResponse [10:26:18]1017 (14) - 77093643461234 [10:26:18]1041 (16) - 0000000000874811 [10:26:18]1040 (4) - 95113 [10:26:18]1012 (4) - 12.03.2024 04:25 [10:26:18]1206 (1) - 0 [10:26:18]OFD Sender: Remove packet 95113 [10:26:18]ProducePacketName [10:26:18]name=ofd_packets/00095113 [10:26:18]NVStorageDeleteData [10:26:19]Write to MH i2c: 01 00 00 D7 21 F8 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 07 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 07 00 D7 21 00 80 00 00 00 4B 0D D7 [10:26:19]RasterBufferAndPrint [10:26:19]line [10:26:19]line [10:26:19]line [10:26:19]line [10:26:19]line [10:26:19]written 0, free lines is 3409 [10:26:19]process_action close_receipt done [10:26:19]requested_data is exist [10:26:19]produce_requested_data [10:26:19]requested_item fm.sn is exist - process it [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 11 00 00 [10:26:19]Write to MH i2c: E2 08 00 DE 21 80 11 00 00 00 00 00 00 79 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 17 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 17 00 DE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C9 [10:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:26:19]wFMCommunicate OK [10:26:19]requested_item fd.num is exist - process it [10:26:19]SAM_PROTO_GetFieldsCounters [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 13 00 00 [10:26:19]Write to MH i2c: E2 08 00 DF 21 80 13 00 00 00 00 00 00 7C [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 62 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 62 00 DF 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 89 73 01 00 0E 04 04 00 47 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 5F [10:26:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 89 73 01 00 0E 04 04 00 47 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:26:19]wFMCommunicate OK [10:26:19]SAM_PROTO_GetFieldsCounters done [10:26:19]requested_item shift.num is exist - process it [10:26:19]requested_item shift.opened is exist - process it [10:26:19]req_shift_opened [10:26:19]FM_GetShiftState [10:26:19]SAM_PROTO_GetShiftState [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 13 01 00 [10:26:19]Write to MH i2c: E2 08 00 E0 21 80 13 01 00 00 00 00 00 7E [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 0E 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 0E 00 E0 21 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F2 [10:26:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:26:19]wFMCommunicate OK [10:26:19]SAM_PROTO_GetShiftState done [10:26:19]FM_GetShiftState done [10:26:19]req_shift_opened done [10:26:19]requested_item shift.open_date is exist - process it [10:26:19]req_shift_open_date [10:26:19]req_shift_open_date done [10:26:19]produce_requested_data done [10:26:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95113,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [10:26:19]process_action_free close_receipt [10:26:19]json_value_free [10:26:19]json_value_free done [10:26:19]process_json_proto returns [10:26:19]Send response to host [10:26:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95113,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [10:26:19]free response buf [10:26:19]execute_script done [10:26:19]execute_script returns [10:26:19]free content buf [10:26:19]Sock 8.Close socket [10:26:19]Sock 8.Thread stoped [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]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]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:33]accept exits with 9 [10:29:33]New connection [10:29:33]New thread 3066957156 created [10:29:33]Thread 3066813796 joined [10:29:33]Waiting for new connection... [10:29:33] Sock 9.Parse request [10:29:33]Sock 9.Check first char [10:29:33]Sock 9.First char is OK [10:29:33]request: POST /json_proto HTTP/1.0 [10:29:33]Method: POST [10:29:33]URL: /json_proto [10:29:33]Method is POST - this is cgi request [10:29:33]url: /json_proto [10:29:33]query_string will be loaded in cgi processing [10:29:33]execute_cgi json_proto POST (null) [10:29:33]execute_cgi path=json_proto method=POST [10:29:33]POST find Content-Length [10:29:33]Host: 172.17.62.67:8080 [10:29:33]Content-Length: 682 [10:29:33]Content-Type: application/json [10:29:33] [10:29:33]POST finish read [10:29:33]Found Content-Length = 682 [10:29:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "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:29:33]execute_script... [10:29: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)196080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "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:29:33]POST & json_proto [10:29:33]process_json_proto [10:29:33]json parsed OK: [10:29:33]protocol is kg_v1.0 [10:29:33]action value=close_receipt [10:29:33]process_action close_receipt [10:29:33]cmd_close_receipt [10:29:33]MH_GetDate [10:29:33]Write to MH i2c: F0 00 00 E1 21 F1 [10:29:33]Write i2c OK [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: F0 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: F0 05 00 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: F0 05 00 E1 21 00 92 2E F0 65 0B [10:29:33]GetLastDocTimeStamp 1710239181 [10:29:33]current date 1710239378 [10:29:33]FM_GetShiftState [10:29:33]SAM_PROTO_GetShiftState [10:29:33]wFMCommunicate request_size=4 [10:29:33]MH_SAM_APDU [10:29:33]CAPDU: 80 13 01 00 [10:29:33]Write to MH i2c: E2 08 00 E2 21 80 13 01 00 00 00 00 00 80 [10:29:33]Write i2c OK [10:29:33]MH_I2C_Read... [10:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:33]Read from MH i2c: E2 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 0E 00 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 0E 00 E2 21 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F4 [10:29:33]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:29:33]wFMCommunicate OK [10:29:33]SAM_PROTO_GetShiftState done [10:29:33]FM_GetShiftState done [10:29:33]opened in 1710201976 [10:29:33]opened+sec_in_day 1710288376 [10:29:33]quantity*price = 100010 [10:29:33]sum+1 = 100012 [10:29:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 44 12.03.2024 10:29 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95114 ФПД: 59294463174457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T102938&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95114&fm=59294463174457&tin=02508201610067®Number=0000000000090555&sum=100000 [10:29:35]StoreToDocumentArchive [10:29:35]shift 327 fd 95114 [10:29:35]save to /storage/0327/doc_00095114 [10:29:35]save last doc name /storage/0327/doc_00095114 to /storage/kkm_last_doc_name [10:29:35]save OK [10:29:35]Clear old archive folders... [10:29:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:35]tlvbuf is 01A74430 [10:29:35]SAM_PROTO_ClearQueue [10:29:35]wFMCommunicate request_size=4 [10:29:35]MH_SAM_APDU [10:29:35]CAPDU: 80 09 00 00 [10:29:35]Write to MH i2c: E2 08 00 EF 21 80 09 00 00 00 00 00 00 82 [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 03 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 03 00 EF 21 00 90 00 84 [10:29:35]RAPDU: 90 00 [10:29:35]wFMCommunicate OK [10:29:35]SAM_PROTO_ClearQueue done [10:29:35]KKMCreateOFDPacket [10:29:35]OFDProtocolAddRootSTLVToBuf [10:29:35]FM_MakeSignedData [10:29:35]FM_MakeSignedData [10:29:35]SAM_PROTO_SignData [10:29:35]wFMCommunicate request_size=4 [10:29:35]MH_SAM_APDU [10:29:35]CAPDU: 80 0D 01 02 [10:29:35]Write to MH i2c: E2 08 00 F0 21 80 0D 01 02 00 00 00 00 8A [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 03 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 03 00 F0 21 00 90 00 85 [10:29:35]RAPDU: 90 00 [10:29:35]wFMCommunicate OK [10:29:35]wFMCommunicate request_size=255 [10:29:35]MH_SAM_APDU [10:29: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 92 2E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8A 73 01 00 35 04 06 00 35 [10:29:35]Write to MH i2c: E2 02 01 F1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 92 2E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8A 73 01 00 35 04 06 00 35 00 00 9D [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 03 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 03 00 F1 21 00 90 00 86 [10:29:35]RAPDU: 90 00 [10:29:35]wFMCommunicate OK [10:29:35]wFMCommunicate request_size=10 [10:29:35]MH_SAM_APDU [10:29:35]CAPDU: 80 0D 02 02 05 ED 91 6A 27 39 [10:29:35]Write to MH i2c: E2 0D 00 F2 21 80 0D 02 02 05 00 ED 91 6A 27 39 00 00 DF [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 03 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 03 00 F2 21 00 90 00 87 [10:29:35]RAPDU: 90 00 [10:29:35]wFMCommunicate OK [10:29:35]wFMCommunicate request_size=4 [10:29:35]MH_SAM_APDU [10:29:35]CAPDU: 80 0D 03 02 [10:29:35]Write to MH i2c: E2 08 00 F3 21 80 0D 03 02 00 00 00 00 8F [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 0B 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 0B 00 F3 21 00 44 3B 24 96 B9 F1 DE 55 90 00 A6 [10:29:35]RAPDU: 44 3B 24 96 B9 F1 DE 55 90 00 [10:29:35]wFMCommunicate OK [10:29:35]SAM_PROTO_SignData done [10:29:35]FM_MakeSignedData done [10:29:35]CreateOFDProtocolMessage [10:29:35]wFMCommunicate request_size=4 [10:29:35]MH_SAM_APDU [10:29:35]CAPDU: 80 11 00 00 [10:29:35]Write to MH i2c: E2 08 00 F4 21 80 11 00 00 00 00 00 00 8F [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 17 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 17 00 F4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DF [10:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:29:35]wFMCommunicate OK [10:29:35]CreateOFDProtocolMessage done [10:29:35]OFDSenderStorePacket 95114 [10:29:35]StoreOFDPacket docnum=95114 [10:29:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 99 FA 07 01 A7 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 92 2E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8A 73 01 00 35 04 06 00 35 ED 91 6A 27 39 44 3B 24 96 B9 F1 DE 55 [10:29:35]CheckFolder [10:29:35]dirname=/storage/ofd_packets [10:29:35]CheckFolder done [10:29:35]ProducePacketName [10:29:35]name=ofd_packets/00095114 [10:29:35]NVStorageSaveData ofd_packets/00095114 [10:29:35]File name is /storage/ofd_packets/00095114 [10:29:35]Write 301 bytes [10:29:35]NVStorageSaveData done [10:29:35]OFDSenderStorePacket done [10:29:35]KKMCreateOFDPacket done [10:29:35]NVStorageSaveData kkm_last_timestamp [10:29:35]File name is /storage/kkm_last_timestamp [10:29:35]Write 4 bytes [10:29:35]NVStorageSaveData done [10:29:35]ExternCall_PrintAddStr [10:29:35]wPrintStart [10:29:35]Write to MH i2c: 01 00 00 F5 21 16 [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: 01 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: 01 07 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: 01 07 00 F5 21 00 80 00 00 00 FF 0F AB [10:29:35]RasterBufferAndPrint [10:29:35]line Счет N : (1)196080 [10:29:35]line ИНН: 02508201610067 [10:29:35]line Контрольно-Кассовый Чек [10:29:35]line ПРОДАЖА [10:29:35]line ТРК (МРК, ГНК) : 41 [10:29:35]line Товар: 2710124500 [10:29:35]line Аи-95-К-5 [10:29:35]line 14.390 * 69.50 [10:29:35]line = 1000.11 [10:29:35]line НДС 12% НСП 1% [10:29:35]line > о реализуемом товаре [10:29:35]line ОКРУГЛЕНИЕ: -0.11 [10:29:35]line ИТОГО: 1000.00 [10:29:35]line Внесено: 1000.00 [10:29:35]line СДАЧА: 0.00 [10:29:35]line НСП 1% : 8.85 [10:29:35]line НДС 12% : 106.21 [10:29:35]line Наличными: 1000.00 [10:29:35]line Безнал.: 0.00 [10:29:35]line Место: АЗС № 6 "Партнер Нефть" [10:29:35]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:29:35]line СНО: Общий режим [10:29:35]line Чек 44 12.03.2024 10:29 [10:29:35]line Смена: 327 ФФД: 1.0 [10:29:35]line ЗНМ: 0300000009 [10:29:35]line РНМ: 0000000000090555 [10:29:35]line Версия ККМ: 001 [10:29:35]line ФМ: 0000000000874811 [10:29:35]line ФД: 95114 [10:29:35]line ФПД: 59294463174457 [10:29:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T102938&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95114&fm=59294463174457&tin=02508201610067®Number=0000000000090555&sum=100000 [10:29:35]OFD Sender: Processing packet 95114 [packets to send 30, broken 29] [10:29:35]ProducePacketName [10:29:35]name=ofd_packets/00095114 [10:29:35]OFD Sender: To server: pG, [10:29:35]CommunicateWithHost lk.salyk.kg:30040 [10:29:35]ConnectInit lk.salyk.kg [10:29:35]written 0, free lines is 4095 [10:29:35]Connected sock=10 [10:29:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 99 FA 07 01 A7 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 92 2E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8A 73 01 00 35 04 06 00 35 ED 91 6A 27 39 44 3B 24 96 B9 F1 DE 55 [10:29:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 37 5B 47 00 11 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8A 73 01 00 F4 03 04 00 E8 D9 EF 65 B6 04 01 00 00 79 DC 4C 4F 6C 92 B9 FE [10:29:36]CommunicateWithHost err = 0 [10:29:36]CheckOFDResponse [10:29:36]1017 (14) - 77093643461234 [10:29:36]1041 (16) - 0000000000874811 [10:29:36]1040 (4) - 95114 [10:29:36]1012 (4) - 12.03.2024 04:28 [10:29:36]1206 (1) - 0 [10:29:36]OFD Sender: Remove packet 95114 [10:29:36]ProducePacketName [10:29:36]name=ofd_packets/00095114 [10:29:36]NVStorageDeleteData [10:29:36]Write to MH i2c: 01 00 00 20 22 42 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: 01 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: 01 07 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: 01 07 00 20 22 00 80 00 00 00 4E 0D 24 [10:29:36]RasterBufferAndPrint [10:29:36]line [10:29:36]line [10:29:36]line [10:29:36]line [10:29:36]line [10:29:36]written 0, free lines is 3412 [10:29:36]process_action close_receipt done [10:29:36]requested_data is exist [10:29:36]produce_requested_data [10:29:36]requested_item fm.sn is exist - process it [10:29:36]wFMCommunicate request_size=4 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 11 00 00 [10:29:36]Write to MH i2c: E2 08 00 27 22 80 11 00 00 00 00 00 00 C3 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:36]Read from MH i2c: E2 17 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 17 00 27 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 13 [10:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:29:36]wFMCommunicate OK [10:29:36]requested_item fd.num is exist - process it [10:29:36]SAM_PROTO_GetFieldsCounters [10:29:36]wFMCommunicate request_size=4 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 13 00 00 [10:29:36]Write to MH i2c: E2 08 00 28 22 80 13 00 00 00 00 00 00 C6 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 62 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 62 00 28 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8A 73 01 00 0E 04 04 00 47 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 AD [10:29:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8A 73 01 00 0E 04 04 00 47 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:29:36]wFMCommunicate OK [10:29:36]SAM_PROTO_GetFieldsCounters done [10:29:36]requested_item shift.num is exist - process it [10:29:36]requested_item shift.opened is exist - process it [10:29:36]req_shift_opened [10:29:36]FM_GetShiftState [10:29:36]SAM_PROTO_GetShiftState [10:29:36]wFMCommunicate request_size=4 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 13 01 00 [10:29:36]Write to MH i2c: E2 08 00 29 22 80 13 01 00 00 00 00 00 C8 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]OFD Sender: No OFD packet to send [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:36]Read from MH i2c: E2 0E 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 0E 00 29 22 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 3C [10:29:36]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:29:36]wFMCommunicate OK [10:29:36]SAM_PROTO_GetShiftState done [10:29:36]FM_GetShiftState done [10:29:36]req_shift_opened done [10:29:36]requested_item shift.open_date is exist - process it [10:29:36]req_shift_open_date [10:29:36]req_shift_open_date done [10:29:36]produce_requested_data done [10:29:36]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95114,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [10:29:36]process_action_free close_receipt [10:29:36]json_value_free [10:29:36]json_value_free done [10:29:36]process_json_proto returns [10:29:36]Send response to host [10:29:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95114,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [10:29:36]free response buf [10:29:36]execute_script done [10:29:36]execute_script returns [10:29:36]free content buf [10:29:36]Sock 9.Close socket [10:29:36]Sock 9.Thread stoped [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]accept exits with 8 [10:33:36]New connection [10:33:36]New thread 3066813796 created [10:33:36]Thread 3066957156 joined [10:33:36]Waiting for new connection... [10:33:36] Sock 8.Parse request [10:33:36]Sock 8.Check first char [10:33:36]Sock 8.First char is OK [10:33:36]request: POST /json_proto HTTP/1.0 [10:33:36]Method: POST [10:33:36]URL: /json_proto [10:33:36]Method is POST - this is cgi request [10:33:36]url: /json_proto [10:33:36]query_string will be loaded in cgi processing [10:33:36]execute_cgi json_proto POST (null) [10:33:36]execute_cgi path=json_proto method=POST [10:33:36]POST find Content-Length [10:33:36]Host: 172.17.62.67:8080 [10:33:36]Content-Length: 819 [10:33:36]Content-Type: application/json [10:33:36] [10:33:36]POST finish read [10:33:36]Found Content-Length = 819 [10:33:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:36]execute_script... [10:33: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)196081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:36]POST & json_proto [10:33:36]process_json_proto [10:33:36]json parsed OK: [10:33:36]protocol is kg_v1.0 [10:33:36]action value=close_receipt [10:33:36]process_action close_receipt [10:33:36]cmd_close_receipt [10:33:36]MH_GetDate [10:33:36]Write to MH i2c: F0 00 00 2A 22 3B [10:33:36]Write i2c OK [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: F0 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: F0 05 00 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: F0 05 00 2A 22 00 85 2F F0 65 49 [10:33:36]GetLastDocTimeStamp 1710239378 [10:33:36]current date 1710239621 [10:33:36]FM_GetShiftState [10:33:36]SAM_PROTO_GetShiftState [10:33:36]wFMCommunicate request_size=4 [10:33:36]MH_SAM_APDU [10:33:36]CAPDU: 80 13 01 00 [10:33:36]Write to MH i2c: E2 08 00 2B 22 80 13 01 00 00 00 00 00 CA [10:33:36]Write i2c OK [10:33:36]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 2B 22 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 3E [10:33:36]RAPDU: 09 00 01 78 9C EF 65 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 1710201976 [10:33:36]opened+sec_in_day 1710288376 [10:33:36]quantity*price = 100011 [10:33:36]sum+1 = 100012 [10:33:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 45 12.03.2024 10:33 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95115 ФПД: 196931962803325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T103341&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95115&fm=196931962803325&tin=02508201610067®Number=0000000000090555&sum=100011 [10:33:37]StoreToDocumentArchive [10:33:37]shift 327 fd 95115 [10:33:37]save to /storage/0327/doc_00095115 [10:33:37]save last doc name /storage/0327/doc_00095115 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=251 [10:33:37]tlvbuf is 01A058B0 [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 38 22 80 09 00 00 00 00 00 00 CC [10:33:37]Write i2c OK [10:33:37]MH_I2C_Read... [10:33:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:38]Read from MH i2c: E2 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: E2 03 00 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: E2 03 00 38 22 00 90 00 CE [10:33:38]RAPDU: 90 00 [10:33:38]wFMCommunicate OK [10:33:38]SAM_PROTO_ClearQueue done [10:33:38]KKMCreateOFDPacket [10:33:38]OFDProtocolAddRootSTLVToBuf [10:33:38]FM_MakeSignedData [10:33:38]FM_MakeSignedData [10:33:38]SAM_PROTO_SignData [10:33:38]wFMCommunicate request_size=4 [10:33:38]MH_SAM_APDU [10:33:38]CAPDU: 80 0D 01 02 [10:33:38]Write to MH i2c: E2 08 00 39 22 80 0D 01 02 00 00 00 00 D4 [10:33:38]Write i2c OK [10:33:38]MH_I2C_Read... [10:33:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:38]Read from MH i2c: E2 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: E2 03 00 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: E2 03 00 39 22 00 90 00 CF [10:33:38]RAPDU: 90 00 [10:33:38]wFMCommunicate OK [10:33:38]wFMCommunicate request_size=255 [10:33:38]MH_SAM_APDU [10:33:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 85 2F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8B 73 01 00 35 04 06 00 B3 [10:33:38]Write to MH i2c: E2 02 01 3A 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 85 2F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8B 73 01 00 35 04 06 00 B3 00 00 C2 [10:33:38]Write i2c OK [10:33:38]MH_I2C_Read... [10:33:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:38]Read from MH i2c: E2 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: E2 03 00 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: E2 03 00 3A 22 00 90 00 D0 [10:33:38]RAPDU: 90 00 [10:33:38]wFMCommunicate OK [10:33:38]wFMCommunicate request_size=10 [10:33:38]MH_SAM_APDU [10:33:38]CAPDU: 80 0D 02 02 05 1B CB B0 14 7D [10:33:38]Write to MH i2c: E2 0D 00 3B 22 80 0D 02 02 05 00 1B CB B0 14 7D 00 00 08 [10:33:38]Write i2c OK [10:33:38]MH_I2C_Read... [10:33:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:38]Read from MH i2c: E2 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: E2 03 00 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: E2 03 00 3B 22 00 90 00 D1 [10:33:38]RAPDU: 90 00 [10:33:38]wFMCommunicate OK [10:33:38]wFMCommunicate request_size=4 [10:33:38]MH_SAM_APDU [10:33:38]CAPDU: 80 0D 03 02 [10:33:38]Write to MH i2c: E2 08 00 3C 22 80 0D 03 02 00 00 00 00 D9 [10:33:38]Write i2c OK [10:33:38]MH_I2C_Read... [10:33:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:38]Read from MH i2c: E2 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: E2 0B 00 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: E2 0B 00 3C 22 00 A0 5D 2B CE 8F DC F0 7E 90 00 A9 [10:33:38]RAPDU: A0 5D 2B CE 8F DC F0 7E 90 00 [10:33:38]wFMCommunicate OK [10:33:38]SAM_PROTO_SignData done [10:33:38]FM_MakeSignedData done [10:33:38]CreateOFDProtocolMessage [10:33:38]wFMCommunicate request_size=4 [10:33:38]MH_SAM_APDU [10:33:38]CAPDU: 80 11 00 00 [10:33:38]Write to MH i2c: E2 08 00 3D 22 80 11 00 00 00 00 00 00 D9 [10:33:38]Write i2c OK [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: E2 [10:33:38]MH_I2C_Read... [10:33:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:38]Read from MH i2c: E2 17 00 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: E2 17 00 3D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 29 [10:33:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:33:38]wFMCommunicate OK [10:33:38]CreateOFDProtocolMessage done [10:33:38]OFDSenderStorePacket 95115 [10:33:38]StoreOFDPacket docnum=95115 [10:33:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 39 9C 07 01 28 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 85 2F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8B 73 01 00 35 04 06 00 B3 1B CB B0 14 7D A0 5D 2B CE 8F DC F0 7E [10:33:38]CheckFolder [10:33:38]dirname=/storage/ofd_packets [10:33:38]CheckFolder done [10:33:38]ProducePacketName [10:33:38]name=ofd_packets/00095115 [10:33:38]NVStorageSaveData ofd_packets/00095115 [10:33:38]File name is /storage/ofd_packets/00095115 [10:33:38]Write 301 bytes [10:33:38]NVStorageSaveData done [10:33:38]OFDSenderStorePacket done [10:33:38]KKMCreateOFDPacket done [10:33:38]NVStorageSaveData kkm_last_timestamp [10:33:38]File name is /storage/kkm_last_timestamp [10:33:38]Write 4 bytes [10:33:38]NVStorageSaveData done [10:33:38]ExternCall_PrintAddStr [10:33:38]wPrintStart [10:33:38]Write to MH i2c: 01 00 00 3E 22 60 [10:33:38]Write i2c OK [10:33:38]MH_I2C_Read... [10:33:38]OFD Sender: Processing packet 95115 [packets to send 30, broken 29] [10:33:38]ProducePacketName [10:33:38]name=ofd_packets/00095115 [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]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 3E 22 00 80 00 00 00 FF 0F F5 [10:33:38]RasterBufferAndPrint [10:33:38]line Счет N : (1)196081 [10:33:38]line ИНН: 02508201610067 [10:33:38]line Контрольно-Кассовый Чек [10:33:38]line ПРОДАЖА [10:33:38]line ТРК (МРК, ГНК) : 12 [10:33:38]line Товар: 2710124130 [10:33:38]line Аи-92-К-5 [10:33:38]line 15.900 * 62.90 [10:33:38]line = 1000.11 [10:33:38]line НДС 12% НСП 1% [10:33:38]line > о реализуемом товаре [10:33:38]line ИТОГО: 1000.11 [10:33:38]line НСП 1% : 8.85 [10:33:38]line НДС 12% : 106.21 [10:33:38]line Наличными: 0.00 [10:33:38]line Безнал.: 1000.11 [10:33:38]line Место: АЗС № 6 "Партнер Нефть" [10:33:38]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:33:38]line СНО: Общий режим [10:33:38]line Чек 45 12.03.2024 10:33 [10:33:38]line Смена: 327 ФФД: 1.0 [10:33:38]line ЗНМ: 0300000009 [10:33:38]line РНМ: 0000000000090555 [10:33:38]line Версия ККМ: 001 [10:33:38]line Платежная система: Бакай Банк [10:33:38]line ФМ: 0000000000874811 [10:33:38]line ФД: 95115 [10:33:38]line ФПД: 196931962803325 [10:33:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T103341&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95115&fm=196931962803325&tin=02508201610067®Number=0000000000090555&sum=100011 [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 38 37 34 38 31 31 0F 01 00 00 39 9C 07 01 28 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 85 2F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8B 73 01 00 35 04 06 00 B3 1B CB B0 14 7D A0 5D 2B CE 8F DC F0 7E [10:33:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E9 A4 47 00 9D 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8B 73 01 00 F4 03 04 00 DB DA EF 65 B6 04 01 00 00 30 07 FB 96 53 49 00 3E [10:33:38]CommunicateWithHost err = 0 [10:33:38]CheckOFDResponse [10:33:38]1017 (14) - 77093643461234 [10:33:38]1041 (16) - 0000000000874811 [10:33:38]1040 (4) - 95115 [10:33:38]1012 (4) - 12.03.2024 04:32 [10:33:38]1206 (1) - 0 [10:33:38]OFD Sender: Remove packet 95115 [10:33:38]ProducePacketName [10:33:38]name=ofd_packets/00095115 [10:33:38]NVStorageDeleteData [10:33:39]Write to MH i2c: 01 00 00 68 22 8A [10:33:39]Write i2c OK [10:33:39]MH_I2C_Read... [10:33:39]Read from MH i2c: 01 [10:33:39]MH_I2C_Read... [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 68 22 00 80 00 00 00 59 0D 77 [10:33:39]RasterBufferAndPrint [10:33:39]line [10:33:39]line [10:33:39]line [10:33:39]line [10:33:39]line [10:33:39]written 0, free lines is 3422 [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 6F 22 80 11 00 00 00 00 00 00 0B [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 6F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5B [10:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 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 70 22 80 13 00 00 00 00 00 00 0E [10:33:39]Write i2c OK [10:33:39]MH_I2C_Read... [10:33:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:39]Read from MH i2c: E2 [10:33:39]MH_I2C_Read... [10:33:39]Read from MH i2c: E2 62 00 [10:33:39]MH_I2C_Read... [10:33:39]Read from MH i2c: E2 62 00 70 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8B 73 01 00 0E 04 04 00 47 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 F9 [10:33:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8B 73 01 00 0E 04 04 00 47 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:33:39]wFMCommunicate OK [10:33:39]SAM_PROTO_GetFieldsCounters done [10:33:39]requested_item shift.num is exist - process it [10:33:39]requested_item shift.opened is exist - process it [10:33:39]req_shift_opened [10:33:39]FM_GetShiftState [10:33:39]SAM_PROTO_GetShiftState [10:33:39]wFMCommunicate request_size=4 [10:33:39]MH_SAM_APDU [10:33:39]CAPDU: 80 13 01 00 [10:33:39]Write to MH i2c: E2 08 00 71 22 80 13 01 00 00 00 00 00 10 [10:33:39]Write i2c OK [10:33:39]MH_I2C_Read... [10:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:39]Read from MH i2c: E2 [10:33:39]MH_I2C_Read... [10:33:39]Read from MH i2c: E2 0E 00 [10:33:39]MH_I2C_Read... [10:33:39]Read from MH i2c: E2 0E 00 71 22 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 84 [10:33:39]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:33:39]wFMCommunicate OK [10:33:39]SAM_PROTO_GetShiftState done [10:33:39]FM_GetShiftState done [10:33:39]req_shift_opened done [10:33:39]requested_item shift.open_date is exist - process it [10:33:39]req_shift_open_date [10:33:39]req_shift_open_date done [10:33:39]produce_requested_data done [10:33:39]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95115,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [10:33:39]process_action_free close_receipt [10:33:39]json_value_free [10:33:39]json_value_free done [10:33:39]process_json_proto returns [10:33:39]Send response to host [10:33:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95115,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [10:33:39]free response buf [10:33:39]execute_script done [10:33:39]execute_script returns [10:33:39]free content buf [10:33:39]Sock 8.Close socket [10:33:39]Sock 8.Thread stoped [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36: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:44]OFD Sender: No OFD packet to send [10:37:49]accept exits with 9 [10:37:49]New connection [10:37:49]New thread 3066957156 created [10:37:49]Thread 3066813796 joined [10:37:49]Waiting for new connection... [10:37:49] Sock 9.Parse request [10:37:49]Sock 9.Check first char [10:37:49]Sock 9.First char is OK [10:37:49]request: POST /json_proto HTTP/1.0 [10:37:49]Method: POST [10:37:49]URL: /json_proto [10:37:49]Method is POST - this is cgi request [10:37:49]url: /json_proto [10:37:49]query_string will be loaded in cgi processing [10:37:49]execute_cgi json_proto POST (null) [10:37:49]execute_cgi path=json_proto method=POST [10:37:49]POST find Content-Length [10:37:49]Host: 172.17.62.67:8080 [10:37:49]Content-Length: 682 [10:37:49]Content-Type: application/json [10:37:49] [10:37:49]POST finish read [10:37:49]Found Content-Length = 682 [10:37:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:37:49]execute_script... [10: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)196082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:37:49]POST & json_proto [10:37:49]process_json_proto [10:37:49]json parsed OK: [10:37:49]protocol is kg_v1.0 [10:37:49]action value=close_receipt [10:37:49]process_action close_receipt [10:37:49]cmd_close_receipt [10:37:49]MH_GetDate [10:37:49]Write to MH i2c: F0 00 00 72 22 83 [10:37:49]Write i2c OK [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: F0 [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: F0 05 00 [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: F0 05 00 72 22 00 82 30 F0 65 8F [10:37:49]GetLastDocTimeStamp 1710239621 [10:37:49]current date 1710239874 [10:37:49]FM_GetShiftState [10:37:49]SAM_PROTO_GetShiftState [10:37:49]wFMCommunicate request_size=4 [10:37:49]MH_SAM_APDU [10:37:49]CAPDU: 80 13 01 00 [10:37:49]Write to MH i2c: E2 08 00 73 22 80 13 01 00 00 00 00 00 12 [10:37:49]Write i2c OK [10:37:49]MH_I2C_Read... [10:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:49]Read from MH i2c: E2 [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: E2 0E 00 [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: E2 0E 00 73 22 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 86 [10:37:49]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:37:49]wFMCommunicate OK [10:37:49]SAM_PROTO_GetShiftState done [10:37:49]FM_GetShiftState done [10:37:49]opened in 1710201976 [10:37:49]opened+sec_in_day 1710288376 [10:37:49]quantity*price = 100011 [10:37:49]sum+1 = 100012 [10:37:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 46 12.03.2024 10:37 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95116 ФПД: 158059895922163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T103754&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95116&fm=158059895922163&tin=02508201610067®Number=0000000000090555&sum=100000 [10:37:50]StoreToDocumentArchive [10:37:50]shift 327 fd 95116 [10:37:50]save to /storage/0327/doc_00095116 [10:37:50]save last doc name /storage/0327/doc_00095116 to /storage/kkm_last_doc_name [10:37:50]save OK [10:37:50]Clear old archive folders... [10:37:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:50]tlvbuf is 01A80480 [10:37:50]SAM_PROTO_ClearQueue [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 09 00 00 [10:37:50]Write to MH i2c: E2 08 00 80 22 80 09 00 00 00 00 00 00 14 [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 80 22 00 90 00 16 [10:37:50]RAPDU: 90 00 [10:37:50]wFMCommunicate OK [10:37:50]SAM_PROTO_ClearQueue done [10:37:50]KKMCreateOFDPacket [10:37:50]OFDProtocolAddRootSTLVToBuf [10:37:50]FM_MakeSignedData [10:37:50]FM_MakeSignedData [10:37:50]SAM_PROTO_SignData [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 0D 01 02 [10:37:50]Write to MH i2c: E2 08 00 81 22 80 0D 01 02 00 00 00 00 1C [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:50]Read from MH i2c: E2 03 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 81 22 00 90 00 17 [10:37:50]RAPDU: 90 00 [10:37:50]wFMCommunicate OK [10:37:50]wFMCommunicate request_size=255 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 82 30 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8C 73 01 00 35 04 06 00 8F [10:37:50]Write to MH i2c: E2 02 01 82 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 82 30 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8C 73 01 00 35 04 06 00 8F 00 00 D0 [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 82 22 00 90 00 18 [10:37:50]RAPDU: 90 00 [10:37:50]wFMCommunicate OK [10:37:50]wFMCommunicate request_size=10 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 0D 02 02 05 C1 2F F3 1D F3 [10:37:50]Write to MH i2c: E2 0D 00 83 22 80 0D 02 02 05 00 C1 2F F3 1D F3 00 00 1C [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 83 22 00 90 00 19 [10:37:50]RAPDU: 90 00 [10:37:50]wFMCommunicate OK [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 0D 03 02 [10:37:50]Write to MH i2c: E2 08 00 84 22 80 0D 03 02 00 00 00 00 21 [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 0B 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 0B 00 84 22 00 99 C7 52 F2 6E D7 1E 24 90 00 4D [10:37:50]RAPDU: 99 C7 52 F2 6E D7 1E 24 90 00 [10:37:50]wFMCommunicate OK [10:37:50]SAM_PROTO_SignData done [10:37:50]FM_MakeSignedData done [10:37:50]CreateOFDProtocolMessage [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 11 00 00 [10:37:50]Write to MH i2c: E2 08 00 85 22 80 11 00 00 00 00 00 00 21 [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:51]Read from MH i2c: E2 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: E2 17 00 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: E2 17 00 85 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 71 [10:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:37:51]wFMCommunicate OK [10:37:51]CreateOFDProtocolMessage done [10:37:51]OFDSenderStorePacket 95116 [10:37:51]StoreOFDPacket docnum=95116 [10:37:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 82 27 07 01 11 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 82 30 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8C 73 01 00 35 04 06 00 8F C1 2F F3 1D F3 99 C7 52 F2 6E D7 1E 24 [10:37:51]CheckFolder [10:37:51]dirname=/storage/ofd_packets [10:37:51]CheckFolder done [10:37:51]ProducePacketName [10:37:51]name=ofd_packets/00095116 [10:37:51]NVStorageSaveData ofd_packets/00095116 [10:37:51]File name is /storage/ofd_packets/00095116 [10:37:51]Write 301 bytes [10:37:51]NVStorageSaveData done [10:37:51]OFDSenderStorePacket done [10:37:51]KKMCreateOFDPacket done [10:37:51]NVStorageSaveData kkm_last_timestamp [10:37:51]File name is /storage/kkm_last_timestamp [10:37:51]Write 4 bytes [10:37:51]NVStorageSaveData done [10:37:51]ExternCall_PrintAddStr [10:37:51]wPrintStart [10:37:51]Write to MH i2c: 01 00 00 86 22 A8 [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: 01 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: 01 07 00 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: 01 07 00 86 22 00 80 00 00 00 FF 0F 3D [10:37:51]RasterBufferAndPrint [10:37:51]line Счет N : (1)196082 [10:37:51]line ИНН: 02508201610067 [10:37:51]line Контрольно-Кассовый Чек [10:37:51]line ПРОДАЖА [10:37:51]line ТРК (МРК, ГНК) : 22 [10:37:51]line Товар: 2710124130 [10:37:51]line Аи-92-К-5 [10:37:51]line 15.900 * 62.90 [10:37:51]line = 1000.11 [10:37:51]line НДС 12% НСП 1% [10:37:51]line > о реализуемом товаре [10:37:51]line ОКРУГЛЕНИЕ: -0.11 [10:37:51]line ИТОГО: 1000.00 [10:37:51]line Внесено: 1000.00 [10:37:51]line СДАЧА: 0.00 [10:37:51]line НСП 1% : 8.85 [10:37:51]line НДС 12% : 106.21 [10:37:51]line Наличными: 1000.00 [10:37:51]line Безнал.: 0.00 [10:37:51]line Место: АЗС № 6 "Партнер Нефть" [10:37:51]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:37:51]line СНО: Общий режим [10:37:51]line Чек 46 12.03.2024 10:37 [10:37:51]line Смена: 327 ФФД: 1.0 [10:37:51]line ЗНМ: 0300000009 [10:37:51]line РНМ: 0000000000090555 [10:37:51]line Версия ККМ: 001 [10:37:51]line ФМ: 0000000000874811 [10:37:51]line ФД: 95116 [10:37:51]line ФПД: 158059895922163 [10:37:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T103754&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95116&fm=158059895922163&tin=02508201610067®Number=0000000000090555&sum=100000 [10:37:51]OFD Sender: Processing packet 95116 [packets to send 30, broken 29] [10:37:51]ProducePacketName [10:37:51]name=ofd_packets/00095116 [10:37:51]OFD Sender: To server: pG, [10:37:51]CommunicateWithHost lk.salyk.kg:30040 [10:37:51]ConnectInit lk.salyk.kg [10:37:51]written 0, free lines is 4095 [10:37:51]Connected sock=10 [10:37:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 82 27 07 01 11 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 82 30 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8C 73 01 00 35 04 06 00 8F C1 2F F3 1D F3 99 C7 52 F2 6E D7 1E 24 [10:37:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 3E 73 47 00 70 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8C 73 01 00 F4 03 04 00 D8 DB EF 65 B6 04 01 00 00 81 98 EF D8 96 8B B1 BE [10:37:51]CommunicateWithHost err = 0 [10:37:51]CheckOFDResponse [10:37:51]1017 (14) - 77093643461234 [10:37:51]1041 (16) - 0000000000874811 [10:37:51]1040 (4) - 95116 [10:37:51]1012 (4) - 12.03.2024 04:36 [10:37:51]1206 (1) - 0 [10:37:51]OFD Sender: Remove packet 95116 [10:37:51]ProducePacketName [10:37:51]name=ofd_packets/00095116 [10:37:51]NVStorageDeleteData [10:37:51]Write to MH i2c: 01 00 00 B1 22 D3 [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: 01 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: 01 07 00 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: 01 07 00 B1 22 00 80 00 00 00 4E 0D B5 [10:37:51]RasterBufferAndPrint [10:37:51]line [10:37:51]line [10:37:51]line [10:37:51]line [10:37:51]line [10:37:51]written 0, free lines is 3412 [10:37:51]process_action close_receipt done [10:37:51]requested_data is exist [10:37:51]produce_requested_data [10:37:51]requested_item fm.sn is exist - process it [10:37:51]wFMCommunicate request_size=4 [10:37:51]MH_SAM_APDU [10:37:51]CAPDU: 80 11 00 00 [10:37:51]Write to MH i2c: E2 08 00 B8 22 80 11 00 00 00 00 00 00 54 [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:51]Read from MH i2c: E2 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: E2 17 00 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: E2 17 00 B8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A4 [10:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:37:51]wFMCommunicate OK [10:37:51]requested_item fd.num is exist - process it [10:37:51]SAM_PROTO_GetFieldsCounters [10:37:51]wFMCommunicate request_size=4 [10:37:51]MH_SAM_APDU [10:37:51]CAPDU: 80 13 00 00 [10:37:51]Write to MH i2c: E2 08 00 B9 22 80 13 00 00 00 00 00 00 57 [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:52]Read from MH i2c: E2 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: E2 62 00 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: E2 62 00 B9 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8C 73 01 00 0E 04 04 00 47 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 46 [10:37:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8C 73 01 00 0E 04 04 00 47 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:37:52]wFMCommunicate OK [10:37:52]SAM_PROTO_GetFieldsCounters done [10:37:52]requested_item shift.num is exist - process it [10:37:52]requested_item shift.opened is exist - process it [10:37:52]req_shift_opened [10:37:52]FM_GetShiftState [10:37:52]SAM_PROTO_GetShiftState [10:37:52]wFMCommunicate request_size=4 [10:37:52]MH_SAM_APDU [10:37:52]CAPDU: 80 13 01 00 [10:37:52]Write to MH i2c: E2 08 00 BA 22 80 13 01 00 00 00 00 00 59 [10:37:52]Write i2c OK [10:37:52]MH_I2C_Read... [10:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:52]Read from MH i2c: E2 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: E2 0E 00 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: E2 0E 00 BA 22 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CD [10:37:52]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:37:52]wFMCommunicate OK [10:37:52]SAM_PROTO_GetShiftState done [10:37:52]FM_GetShiftState done [10:37:52]req_shift_opened done [10:37:52]requested_item shift.open_date is exist - process it [10:37:52]req_shift_open_date [10:37:52]req_shift_open_date done [10:37:52]produce_requested_data done [10:37:52]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95116,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [10:37:52]process_action_free close_receipt [10:37:52]json_value_free [10:37:52]json_value_free done [10:37:52]process_json_proto returns [10:37:52]Send response to host [10:37:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95116,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [10:37:52]free response buf [10:37:52]execute_script done [10:37:52]execute_script returns [10:37:52]free content buf [10:37:52]Sock 9.Close socket [10:37:52]Sock 9.Thread stoped [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:41:59]accept exits with 8 [10:41:59]New connection [10:41:59]New thread 3066813796 created [10:41:59]Thread 3066957156 joined [10:41:59]Waiting for new connection... [10:41:59] Sock 8.Parse request [10:41:59]Sock 8.Check first char [10:41:59]Sock 8.First char is OK [10:41:59]request: POST /json_proto HTTP/1.0 [10:41:59]Method: POST [10:41:59]URL: /json_proto [10:41:59]Method is POST - this is cgi request [10:41:59]url: /json_proto [10:41:59]query_string will be loaded in cgi processing [10:41:59]execute_cgi json_proto POST (null) [10:41:59]execute_cgi path=json_proto method=POST [10:41:59]POST find Content-Length [10:41:59]Host: 172.17.62.67:8080 [10:41:59]Content-Length: 661 [10:41:59]Content-Type: application/json [10:41:59] [10:41:59]POST finish read [10:41:59]Found Content-Length = 661 [10:41:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:59]execute_script... [10:41:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:59]POST & json_proto [10:41:59]process_json_proto [10:41:59]json parsed OK: [10:41:59]protocol is kg_v1.0 [10:41:59]action value=close_receipt [10:41:59]process_action close_receipt [10:41:59]cmd_close_receipt [10:41:59]MH_GetDate [10:41:59]Write to MH i2c: F0 00 00 BB 22 CC [10:41:59]Write i2c OK [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: F0 [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: F0 05 00 [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: F0 05 00 BB 22 00 7C 31 F0 65 D3 [10:41:59]GetLastDocTimeStamp 1710239874 [10:41:59]current date 1710240124 [10:41:59]FM_GetShiftState [10:41:59]SAM_PROTO_GetShiftState [10:41:59]wFMCommunicate request_size=4 [10:41:59]MH_SAM_APDU [10:41:59]CAPDU: 80 13 01 00 [10:41:59]Write to MH i2c: E2 08 00 BC 22 80 13 01 00 00 00 00 00 5B [10:41:59]Write i2c OK [10:41:59]MH_I2C_Read... [10:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:59]Read from MH i2c: E2 [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: E2 0E 00 [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: E2 0E 00 BC 22 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CF [10:41:59]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:41:59]wFMCommunicate OK [10:41:59]SAM_PROTO_GetShiftState done [10:41:59]FM_GetShiftState done [10:41:59]opened in 1710201976 [10:41:59]opened+sec_in_day 1710288376 [10:41:59]quantity*price = 62900 [10:41:59]sum+1 = 62901 [10:41:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 Внесено: 2000.00 СДАЧА: 1371.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 629.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 47 12.03.2024 10:42 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95117 ФПД: 174127626947309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T104204&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95117&fm=174127626947309&tin=02508201610067®Number=0000000000090555&sum=62900 [10:42:00]StoreToDocumentArchive [10:42:00]shift 327 fd 95117 [10:42:00]save to /storage/0327/doc_00095117 [10:42:00]save last doc name /storage/0327/doc_00095117 to /storage/kkm_last_doc_name [10:42:00]save OK [10:42:00]Clear old archive folders... [10:42:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:00]tlvbuf is 01A46350 [10:42:00]SAM_PROTO_ClearQueue [10:42:00]wFMCommunicate request_size=4 [10:42:00]MH_SAM_APDU [10:42:00]CAPDU: 80 09 00 00 [10:42:00]Write to MH i2c: E2 08 00 C9 22 80 09 00 00 00 00 00 00 5D [10:42:00]Write i2c OK [10:42:00]MH_I2C_Read... [10:42:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:00]Read from MH i2c: E2 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 03 00 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 03 00 C9 22 00 90 00 5F [10:42:00]RAPDU: 90 00 [10:42:00]wFMCommunicate OK [10:42:00]SAM_PROTO_ClearQueue done [10:42:00]KKMCreateOFDPacket [10:42:00]OFDProtocolAddRootSTLVToBuf [10:42:00]FM_MakeSignedData [10:42:00]FM_MakeSignedData [10:42:00]SAM_PROTO_SignData [10:42:00]wFMCommunicate request_size=4 [10:42:00]MH_SAM_APDU [10:42:00]CAPDU: 80 0D 01 02 [10:42:00]Write to MH i2c: E2 08 00 CA 22 80 0D 01 02 00 00 00 00 65 [10:42:00]Write i2c OK [10:42:00]MH_I2C_Read... [10:42:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:00]Read from MH i2c: E2 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 03 00 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 03 00 CA 22 00 90 00 60 [10:42:00]RAPDU: 90 00 [10:42:00]wFMCommunicate OK [10:42:00]wFMCommunicate request_size=255 [10:42:00]MH_SAM_APDU [10:42:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 7C 31 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8D 73 01 00 35 04 06 00 9E [10:42:00]Write to MH i2c: E2 02 01 CB 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 7C 31 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8D 73 01 00 35 04 06 00 9E 00 00 C0 [10:42:00]Write i2c OK [10:42:00]MH_I2C_Read... [10:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:01]Read from MH i2c: E2 [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: E2 03 00 [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: E2 03 00 CB 22 00 90 00 61 [10:42:01]RAPDU: 90 00 [10:42:01]wFMCommunicate OK [10:42:01]wFMCommunicate request_size=10 [10:42:01]MH_SAM_APDU [10:42:01]CAPDU: 80 0D 02 02 05 5E 3F 59 8A ED [10:42:01]Write to MH i2c: E2 0D 00 CC 22 80 0D 02 02 05 00 5E 3F 59 8A ED 00 00 DF [10:42:01]Write i2c OK [10:42:01]MH_I2C_Read... [10:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:01]Read from MH i2c: E2 [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: E2 03 00 [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: E2 03 00 CC 22 00 90 00 62 [10:42:01]RAPDU: 90 00 [10:42:01]wFMCommunicate OK [10:42:01]wFMCommunicate request_size=4 [10:42:01]MH_SAM_APDU [10:42:01]CAPDU: 80 0D 03 02 [10:42:01]Write to MH i2c: E2 08 00 CD 22 80 0D 03 02 00 00 00 00 6A [10:42:01]Write i2c OK [10:42:01]MH_I2C_Read... [10:42:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:01]Read from MH i2c: E2 [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: E2 0B 00 [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: E2 0B 00 CD 22 00 FA 09 E6 A2 FB D5 37 CB 90 00 C8 [10:42:01]RAPDU: FA 09 E6 A2 FB D5 37 CB 90 00 [10:42:01]wFMCommunicate OK [10:42:01]SAM_PROTO_SignData done [10:42:01]FM_MakeSignedData done [10:42:01]CreateOFDProtocolMessage [10:42:01]wFMCommunicate request_size=4 [10:42:01]MH_SAM_APDU [10:42:01]CAPDU: 80 11 00 00 [10:42:01]Write to MH i2c: E2 08 00 CE 22 80 11 00 00 00 00 00 00 6A [10:42:01]Write i2c OK [10:42:01]MH_I2C_Read... [10:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:01]Read from MH i2c: E2 [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: E2 17 00 [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: E2 17 00 CE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BA [10:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:42:01]wFMCommunicate OK [10:42:01]CreateOFDProtocolMessage done [10:42:01]OFDSenderStorePacket 95117 [10:42:01]StoreOFDPacket docnum=95117 [10:42:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CE 0E 07 01 68 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 7C 31 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8D 73 01 00 35 04 06 00 9E 5E 3F 59 8A ED FA 09 E6 A2 FB D5 37 CB [10:42:01]CheckFolder [10:42:01]dirname=/storage/ofd_packets [10:42:01]CheckFolder done [10:42:01]ProducePacketName [10:42:01]name=ofd_packets/00095117 [10:42:01]NVStorageSaveData ofd_packets/00095117 [10:42:01]File name is /storage/ofd_packets/00095117 [10:42:01]Write 301 bytes [10:42:01]NVStorageSaveData done [10:42:01]OFDSenderStorePacket done [10:42:01]KKMCreateOFDPacket done [10:42:01]NVStorageSaveData kkm_last_timestamp [10:42:01]File name is /storage/kkm_last_timestamp [10:42:01]Write 4 bytes [10:42:01]NVStorageSaveData done [10:42:01]ExternCall_PrintAddStr [10:42:01]wPrintStart [10:42:01]Write to MH i2c: 01 00 00 CF 22 F1 [10:42:01]Write i2c OK [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: 01 [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: 01 07 00 [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: 01 07 00 CF 22 00 80 00 00 00 FF 0F 86 [10:42:01]RasterBufferAndPrint [10:42:01]line Счет N : (1)196083 [10:42:01]line ИНН: 02508201610067 [10:42:01]line Контрольно-Кассовый Чек [10:42:01]line ПРОДАЖА [10:42:01]line ТРК (МРК, ГНК) : 42 [10:42:01]line Товар: 2710124130 [10:42:01]line Аи-92-К-5 [10:42:01]line 10.000 * 62.90 [10:42:01]line = 629.00 [10:42:01]line НДС 12% НСП 1% [10:42:01]line > о реализуемом товаре [10:42:01]line ИТОГО: 629.00 [10:42:01]line Внесено: 2000.00 [10:42:01]line СДАЧА: 1371.00 [10:42:01]line НСП 1% : 5.57 [10:42:01]line НДС 12% : 66.80 [10:42:01]line Наличными: 629.00 [10:42:01]line Безнал.: 0.00 [10:42:01]line Место: АЗС № 6 "Партнер Нефть" [10:42:01]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:42:01]line СНО: Общий режим [10:42:01]line Чек 47 12.03.2024 10:42 [10:42:01]line Смена: 327 ФФД: 1.0 [10:42:01]line ЗНМ: 0300000009 [10:42:01]line РНМ: 0000000000090555 [10:42:01]line Версия ККМ: 001 [10:42:01]line ФМ: 0000000000874811 [10:42:01]line ФД: 95117 [10:42:01]line ФПД: 174127626947309 [10:42:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T104204&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95117&fm=174127626947309&tin=02508201610067®Number=0000000000090555&sum=62900 [10:42:01]OFD Sender: Processing packet 95117 [packets to send 30, broken 29] [10:42:01]ProducePacketName [10:42:01]name=ofd_packets/00095117 [10:42:01]OFD Sender: To server: pG, [10:42:01]CommunicateWithHost lk.salyk.kg:30040 [10:42:01]ConnectInit lk.salyk.kg [10:42:01]written 0, free lines is 4095 [10:42:01]Connected sock=10 [10:42:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CE 0E 07 01 68 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 7C 31 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8D 73 01 00 35 04 06 00 9E 5E 3F 59 8A ED FA 09 E6 A2 FB D5 37 CB [10:42:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 4A 9E 47 00 05 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8D 73 01 00 F4 03 04 00 D2 DC EF 65 B6 04 01 00 00 B2 21 17 6D F9 DC 0E 4C [10:42:01]CommunicateWithHost err = 0 [10:42:01]CheckOFDResponse [10:42:01]1017 (14) - 77093643461234 [10:42:01]1041 (16) - 0000000000874811 [10:42:01]1040 (4) - 95117 [10:42:01]1012 (4) - 12.03.2024 04:40 [10:42:01]1206 (1) - 0 [10:42:01]OFD Sender: Remove packet 95117 [10:42:01]ProducePacketName [10:42:01]name=ofd_packets/00095117 [10:42:01]NVStorageDeleteData [10:42:01]Write to MH i2c: 01 00 00 F9 22 1B [10:42:01]Write i2c OK [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: 01 [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: 01 07 00 [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: 01 07 00 F9 22 00 80 00 00 00 63 0D 12 [10:42:01]RasterBufferAndPrint [10:42:01]line [10:42:01]line [10:42:01]line [10:42:01]line [10:42:01]line [10:42:01]written 0, free lines is 3433 [10:42:02]process_action close_receipt done [10:42:02]requested_data is exist [10:42:02]produce_requested_data [10:42:02]requested_item fm.sn is exist - process it [10:42:02]wFMCommunicate request_size=4 [10:42:02]MH_SAM_APDU [10:42:02]CAPDU: 80 11 00 00 [10:42:02]Write to MH i2c: E2 08 00 00 23 80 11 00 00 00 00 00 00 9D [10:42:02]Write i2c OK [10:42:02]MH_I2C_Read... [10:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:02]Read from MH i2c: E2 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: E2 17 00 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: E2 17 00 00 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 ED [10:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:42:02]wFMCommunicate OK [10:42:02]requested_item fd.num is exist - process it [10:42:02]SAM_PROTO_GetFieldsCounters [10:42:02]wFMCommunicate request_size=4 [10:42:02]MH_SAM_APDU [10:42:02]CAPDU: 80 13 00 00 [10:42:02]Write to MH i2c: E2 08 00 01 23 80 13 00 00 00 00 00 00 A0 [10:42:02]Write i2c OK [10:42:02]MH_I2C_Read... [10:42:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:02]Read from MH i2c: E2 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: E2 62 00 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: E2 62 00 01 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8D 73 01 00 0E 04 04 00 47 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 93 [10:42:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8D 73 01 00 0E 04 04 00 47 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:42:02]wFMCommunicate OK [10:42:02]SAM_PROTO_GetFieldsCounters done [10:42:02]requested_item shift.num is exist - process it [10:42:02]requested_item shift.opened is exist - process it [10:42:02]req_shift_opened [10:42:02]FM_GetShiftState [10:42:02]SAM_PROTO_GetShiftState [10:42:02]wFMCommunicate request_size=4 [10:42:02]MH_SAM_APDU [10:42:02]CAPDU: 80 13 01 00 [10:42:02]Write to MH i2c: E2 08 00 02 23 80 13 01 00 00 00 00 00 A2 [10:42:02]Write i2c OK [10:42:02]MH_I2C_Read... [10:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:02]Read from MH i2c: E2 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: E2 0E 00 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: E2 0E 00 02 23 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 16 [10:42:02]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:42:02]wFMCommunicate OK [10:42:02]SAM_PROTO_GetShiftState done [10:42:02]FM_GetShiftState done [10:42:02]req_shift_opened done [10:42:02]requested_item shift.open_date is exist - process it [10:42:02]req_shift_open_date [10:42:02]req_shift_open_date done [10:42:02]produce_requested_data done [10:42:02]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95117,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [10:42:02]process_action_free close_receipt [10:42:02]json_value_free [10:42:02]json_value_free done [10:42:02]process_json_proto returns [10:42:02]Send response to host [10:42:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95117,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [10:42:02]free response buf [10:42:02]execute_script done [10:42:02]execute_script returns [10:42:02]free content buf [10:42:02]Sock 8.Close socket [10:42:02]Sock 8.Thread stoped [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:22]accept exits with 9 [10:43:22]New connection [10:43:22]New thread 3066957156 created [10:43:22]Thread 3066813796 joined [10:43:22]Waiting for new connection... [10:43:22] Sock 9.Parse request [10:43:22]Sock 9.Check first char [10:43:22]Sock 9.First char is OK [10:43:22]request: POST /json_proto HTTP/1.0 [10:43:22]Method: POST [10:43:22]URL: /json_proto [10:43:22]Method is POST - this is cgi request [10:43:22]url: /json_proto [10:43:22]query_string will be loaded in cgi processing [10:43:22]execute_cgi json_proto POST (null) [10:43:22]execute_cgi path=json_proto method=POST [10:43:22]POST find Content-Length [10:43:22]Host: 172.17.62.67:8080 [10:43:22]Content-Length: 670 [10:43:22]Content-Type: application/json [10:43:22] [10:43:22]POST finish read [10:43:22]Found Content-Length = 670 [10:43:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 7.830, "sum" : 500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:22]execute_script... [10:43: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)196084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 7.830, "sum" : 500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:22]POST & json_proto [10:43:22]process_json_proto [10:43:22]json parsed OK: [10:43:22]protocol is kg_v1.0 [10:43:22]action value=close_receipt [10:43:22]process_action close_receipt [10:43:22]cmd_close_receipt [10:43:22]MH_GetDate [10:43:22]Write to MH i2c: F0 00 00 03 23 15 [10:43:22]Write i2c OK [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: F0 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: F0 05 00 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: F0 05 00 03 23 00 CF 31 F0 65 6F [10:43:22]GetLastDocTimeStamp 1710240124 [10:43:22]current date 1710240207 [10:43:22]FM_GetShiftState [10:43:22]SAM_PROTO_GetShiftState [10:43:22]wFMCommunicate request_size=4 [10:43:22]MH_SAM_APDU [10:43:22]CAPDU: 80 13 01 00 [10:43:22]Write to MH i2c: E2 08 00 04 23 80 13 01 00 00 00 00 00 A4 [10:43:22]Write i2c OK [10:43:22]MH_I2C_Read... [10:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:22]Read from MH i2c: E2 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: E2 0E 00 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: E2 0E 00 04 23 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 18 [10:43:22]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:43:22]wFMCommunicate OK [10:43:22]SAM_PROTO_GetShiftState done [10:43:22]FM_GetShiftState done [10:43:22]opened in 1710201976 [10:43:22]opened+sec_in_day 1710288376 [10:43:22]quantity*price = 50033 [10:43:22]sum+1 = 50035 [10:43:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 48 12.03.2024 10:43 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95118 ФПД: 221381693008137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T104327&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95118&fm=221381693008137&tin=02508201610067®Number=0000000000090555&sum=50000 [10:43:23]StoreToDocumentArchive [10:43:23]shift 327 fd 95118 [10:43:23]save to /storage/0327/doc_00095118 [10:43:23]save last doc name /storage/0327/doc_00095118 to /storage/kkm_last_doc_name [10:43:23]save OK [10:43:23]Clear old archive folders... [10:43:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:43:23]tlvbuf is 01A71100 [10:43:23]SAM_PROTO_ClearQueue [10:43:23]wFMCommunicate request_size=4 [10:43:23]MH_SAM_APDU [10:43:23]CAPDU: 80 09 00 00 [10:43:23]Write to MH i2c: E2 08 00 11 23 80 09 00 00 00 00 00 00 A6 [10:43:23]Write i2c OK [10:43:23]MH_I2C_Read... [10:43:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:23]Read from MH i2c: E2 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 03 00 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 03 00 11 23 00 90 00 A8 [10:43:23]RAPDU: 90 00 [10:43:23]wFMCommunicate OK [10:43:23]SAM_PROTO_ClearQueue done [10:43:23]KKMCreateOFDPacket [10:43:23]OFDProtocolAddRootSTLVToBuf [10:43:23]FM_MakeSignedData [10:43:23]FM_MakeSignedData [10:43:23]SAM_PROTO_SignData [10:43:23]wFMCommunicate request_size=4 [10:43:23]MH_SAM_APDU [10:43:23]CAPDU: 80 0D 01 02 [10:43:23]Write to MH i2c: E2 08 00 12 23 80 0D 01 02 00 00 00 00 AE [10:43:23]Write i2c OK [10:43:23]MH_I2C_Read... [10:43:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:23]Read from MH i2c: E2 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 03 00 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 03 00 12 23 00 90 00 A9 [10:43:23]RAPDU: 90 00 [10:43:23]wFMCommunicate OK [10:43:23]wFMCommunicate request_size=255 [10:43:23]MH_SAM_APDU [10:43:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 CF 31 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8E 73 01 00 35 04 06 00 [10:43:23]Write to MH i2c: E2 02 01 13 23 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 CF 31 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8E 73 01 00 35 04 06 00 00 00 CE [10:43:23]Write i2c OK [10:43:23]MH_I2C_Read... [10:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:23]Read from MH i2c: E2 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 03 00 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 03 00 13 23 00 90 00 AA [10:43:23]RAPDU: 90 00 [10:43:23]wFMCommunicate OK [10:43:23]wFMCommunicate request_size=11 [10:43:23]MH_SAM_APDU [10:43:23]CAPDU: 80 0D 02 02 06 C9 58 71 2B E9 09 [10:43:23]Write to MH i2c: E2 0E 00 14 23 80 0D 02 02 06 00 C9 58 71 2B E9 09 00 00 6C [10:43:23]Write i2c OK [10:43:23]MH_I2C_Read... [10:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:23]Read from MH i2c: E2 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 03 00 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 03 00 14 23 00 90 00 AB [10:43:23]RAPDU: 90 00 [10:43:23]wFMCommunicate OK [10:43:23]wFMCommunicate request_size=4 [10:43:23]MH_SAM_APDU [10:43:23]CAPDU: 80 0D 03 02 [10:43:23]Write to MH i2c: E2 08 00 15 23 80 0D 03 02 00 00 00 00 B3 [10:43:23]Write i2c OK [10:43:23]MH_I2C_Read... [10:43:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:24]Read from MH i2c: E2 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: E2 0B 00 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: E2 0B 00 15 23 00 3F 8F 28 B1 3E AA 61 5D 90 00 01 [10:43:24]RAPDU: 3F 8F 28 B1 3E AA 61 5D 90 00 [10:43:24]wFMCommunicate OK [10:43:24]SAM_PROTO_SignData done [10:43:24]FM_MakeSignedData done [10:43:24]CreateOFDProtocolMessage [10:43:24]wFMCommunicate request_size=4 [10:43:24]MH_SAM_APDU [10:43:24]CAPDU: 80 11 00 00 [10:43:24]Write to MH i2c: E2 08 00 16 23 80 11 00 00 00 00 00 00 B3 [10:43:24]Write i2c OK [10:43:24]MH_I2C_Read... [10:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:24]Read from MH i2c: E2 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: E2 17 00 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: E2 17 00 16 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 03 [10:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:43:24]wFMCommunicate OK [10:43:24]CreateOFDProtocolMessage done [10:43:24]OFDSenderStorePacket 95118 [10:43:24]StoreOFDPacket docnum=95118 [10:43:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 E9 66 08 01 DC B8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 CF 31 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8E 73 01 00 35 04 06 00 C9 58 71 2B E9 09 3F 8F 28 B1 3E AA 61 5D [10:43:24]CheckFolder [10:43:24]dirname=/storage/ofd_packets [10:43:24]CheckFolder done [10:43:24]ProducePacketName [10:43:24]name=ofd_packets/00095118 [10:43:24]NVStorageSaveData ofd_packets/00095118 [10:43:24]File name is /storage/ofd_packets/00095118 [10:43:24]Write 302 bytes [10:43:24]NVStorageSaveData done [10:43:24]OFDSenderStorePacket done [10:43:24]KKMCreateOFDPacket done [10:43:24]NVStorageSaveData kkm_last_timestamp [10:43:24]File name is /storage/kkm_last_timestamp [10:43:24]Write 4 bytes [10:43:24]NVStorageSaveData done [10:43:24]ExternCall_PrintAddStr [10:43:24]wPrintStart [10:43:24]Write to MH i2c: 01 00 00 17 23 3A [10:43:24]Write i2c OK [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: 01 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: 01 07 00 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: 01 07 00 17 23 00 80 00 00 00 FF 0F CF [10:43:24]RasterBufferAndPrint [10:43:24]line Счет N : (1)196084 [10:43:24]line ИНН: 02508201610067 [10:43:24]line Контрольно-Кассовый Чек [10:43:24]line ПРОДАЖА [10:43:24]line ТРК (МРК, ГНК) : 23 [10:43:24]line Товар: 2710124130 [10:43:24]line SUPER 92-К-5 [10:43:24]line 7.830 * 63.90 [10:43:24]line = 500.34 [10:43:24]line НДС 12% НСП 1% [10:43:24]line > о реализуемом товаре [10:43:24]line ОКРУГЛЕНИЕ: -0.34 [10:43:24]line ИТОГО: 500.00 [10:43:24]line Внесено: 500.00 [10:43:24]line СДАЧА: 0.00 [10:43:24]line НСП 1% : 4.43 [10:43:24]line НДС 12% : 53.13 [10:43:24]line Наличными: 500.00 [10:43:24]line Безнал.: 0.00 [10:43:24]line Место: АЗС № 6 "Партнер Нефть" [10:43:24]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:43:24]line СНО: Общий режим [10:43:24]line Чек 48 12.03.2024 10:43 [10:43:24]line Смена: 327 ФФД: 1.0 [10:43:24]line ЗНМ: 0300000009 [10:43:24]line РНМ: 0000000000090555 [10:43:24]line Версия ККМ: 001 [10:43:24]line ФМ: 0000000000874811 [10:43:24]line ФД: 95118 [10:43:24]line ФПД: 221381693008137 [10:43:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T104327&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95118&fm=221381693008137&tin=02508201610067®Number=0000000000090555&sum=50000 [10:43:24]OFD Sender: Processing packet 95118 [packets to send 30, broken 29] [10:43:24]ProducePacketName [10:43:24]name=ofd_packets/00095118 [10:43:24]OFD Sender: To server: pG, [10:43:24]CommunicateWithHost lk.salyk.kg:30040 [10:43:24]ConnectInit lk.salyk.kg [10:43:24]written 0, free lines is 4095 [10:43:24]Connected sock=10 [10:43:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 E9 66 08 01 DC B8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 CF 31 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8E 73 01 00 35 04 06 00 C9 58 71 2B E9 09 3F 8F 28 B1 3E AA 61 5D [10:43:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 50 88 47 00 E7 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8E 73 01 00 F4 03 04 00 25 DD EF 65 B6 04 01 00 00 2A 6E 56 B7 9D CB 36 2B [10:43:24]CommunicateWithHost err = 0 [10:43:24]CheckOFDResponse [10:43:24]1017 (14) - 77093643461234 [10:43:24]1041 (16) - 0000000000874811 [10:43:24]1040 (4) - 95118 [10:43:24]1012 (4) - 12.03.2024 04:42 [10:43:24]1206 (1) - 0 [10:43:24]OFD Sender: Remove packet 95118 [10:43:24]ProducePacketName [10:43:24]name=ofd_packets/00095118 [10:43:24]NVStorageDeleteData [10:43:24]Write to MH i2c: 01 00 00 42 23 65 [10:43:24]Write i2c OK [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: 01 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: 01 07 00 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: 01 07 00 42 23 00 80 00 00 00 52 0D 4B [10:43:24]RasterBufferAndPrint [10:43:24]line [10:43:24]line [10:43:24]line [10:43:24]line [10:43:24]line [10:43:24]written 0, free lines is 3416 [10:43:24]process_action close_receipt done [10:43:24]requested_data is exist [10:43:24]produce_requested_data [10:43:24]requested_item fm.sn is exist - process it [10:43:24]wFMCommunicate request_size=4 [10:43:24]MH_SAM_APDU [10:43:24]CAPDU: 80 11 00 00 [10:43:24]Write to MH i2c: E2 08 00 49 23 80 11 00 00 00 00 00 00 E6 [10:43:24]Write i2c OK [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: E2 [10:43:25]MH_I2C_Read... [10:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:25]Read from MH i2c: E2 17 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 17 00 49 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 36 [10:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:43:25]wFMCommunicate OK [10:43:25]requested_item fd.num is exist - process it [10:43:25]SAM_PROTO_GetFieldsCounters [10:43:25]wFMCommunicate request_size=4 [10:43:25]MH_SAM_APDU [10:43:25]CAPDU: 80 13 00 00 [10:43:25]Write to MH i2c: E2 08 00 4A 23 80 13 00 00 00 00 00 00 E9 [10:43:25]Write i2c OK [10:43:25]MH_I2C_Read... [10:43:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:25]Read from MH i2c: E2 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 62 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 62 00 4A 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8E 73 01 00 0E 04 04 00 47 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 E0 [10:43:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8E 73 01 00 0E 04 04 00 47 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:43:25]wFMCommunicate OK [10:43:25]SAM_PROTO_GetFieldsCounters done [10:43:25]requested_item shift.num is exist - process it [10:43:25]requested_item shift.opened is exist - process it [10:43:25]req_shift_opened [10:43:25]FM_GetShiftState [10:43:25]SAM_PROTO_GetShiftState [10:43:25]wFMCommunicate request_size=4 [10:43:25]MH_SAM_APDU [10:43:25]CAPDU: 80 13 01 00 [10:43:25]Write to MH i2c: E2 08 00 4B 23 80 13 01 00 00 00 00 00 EB [10:43:25]Write i2c OK [10:43:25]MH_I2C_Read... [10:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:25]OFD Sender: No OFD packet to send [10:43:25]Read from MH i2c: E2 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 0E 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 0E 00 4B 23 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 5F [10:43:25]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:43:25]wFMCommunicate OK [10:43:25]SAM_PROTO_GetShiftState done [10:43:25]FM_GetShiftState done [10:43:25]req_shift_opened done [10:43:25]requested_item shift.open_date is exist - process it [10:43:25]req_shift_open_date [10:43:25]req_shift_open_date done [10:43:25]produce_requested_data done [10:43:25]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95118,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [10:43:25]process_action_free close_receipt [10:43:25]json_value_free [10:43:25]json_value_free done [10:43:25]process_json_proto returns [10:43:25]Send response to host [10:43:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95118,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [10:43:25]free response buf [10:43:25]execute_script done [10:43:25]execute_script returns [10:43:25]free content buf [10:43:25]Sock 9.Close socket [10:43:25]Sock 9.Thread stoped [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:40]OFD Sender: No OFD packet to send [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:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:29]accept exits with 8 [10:50:29]New connection [10:50:29]New thread 3066813796 created [10:50:29]Thread 3066957156 joined [10:50:29]Waiting for new connection... [10:50:29] Sock 8.Parse request [10:50:29]Sock 8.Check first char [10:50:29]Sock 8.First char is OK [10:50:29]request: POST /json_proto HTTP/1.0 [10:50:29]Method: POST [10:50:29]URL: /json_proto [10:50:29]Method is POST - this is cgi request [10:50:29]url: /json_proto [10:50:29]query_string will be loaded in cgi processing [10:50:29]execute_cgi json_proto POST (null) [10:50:29]execute_cgi path=json_proto method=POST [10:50:29]POST find Content-Length [10:50:29]Host: 172.17.62.67:8080 [10:50:29]Content-Length: 808 [10:50:29]Content-Type: application/json [10:50:29] [10:50:29]POST finish read [10:50:29]Found Content-Length = 808 [10:50:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:29]execute_script... [10:50: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)196086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:29]POST & json_proto [10:50:29]process_json_proto [10:50:29]json parsed OK: [10:50:29]protocol is kg_v1.0 [10:50:29]action value=close_receipt [10:50:29]process_action close_receipt [10:50:29]cmd_close_receipt [10:50:29]MH_GetDate [10:50:29]Write to MH i2c: F0 00 00 4C 23 5E [10:50:29]Write i2c OK [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: F0 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: F0 05 00 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: F0 05 00 4C 23 00 7A 33 F0 65 65 [10:50:29]GetLastDocTimeStamp 1710240207 [10:50:29]current date 1710240634 [10:50:29]FM_GetShiftState [10:50:29]SAM_PROTO_GetShiftState [10:50:29]wFMCommunicate request_size=4 [10:50:29]MH_SAM_APDU [10:50:29]CAPDU: 80 13 01 00 [10:50:29]Write to MH i2c: E2 08 00 4D 23 80 13 01 00 00 00 00 00 ED [10:50:29]Write i2c OK [10:50:29]MH_I2C_Read... [10:50:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:29]Read from MH i2c: E2 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 0E 00 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 0E 00 4D 23 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 61 [10:50:29]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:50:29]wFMCommunicate OK [10:50:29]SAM_PROTO_GetShiftState done [10:50:29]FM_GetShiftState done [10:50:29]opened in 1710201976 [10:50:29]opened+sec_in_day 1710288376 [10:50:29]quantity*price = 200021 [10:50:29]sum+1 = 200022 [10:50:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.21 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 0.00 Безнал.: 2000.21 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 49 12.03.2024 10:50 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95119 ФПД: 89026687048839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T105034&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95119&fm=89026687048839&tin=02508201610067®Number=0000000000090555&sum=200021 [10:50:30]StoreToDocumentArchive [10:50:30]shift 327 fd 95119 [10:50:30]save to /storage/0327/doc_00095119 [10:50:30]save last doc name /storage/0327/doc_00095119 to /storage/kkm_last_doc_name [10:50:30]save OK [10:50:30]Clear old archive folders... [10:50:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:30]tlvbuf is 01A63DC0 [10:50:30]SAM_PROTO_ClearQueue [10:50:30]wFMCommunicate request_size=4 [10:50:30]MH_SAM_APDU [10:50:30]CAPDU: 80 09 00 00 [10:50:30]Write to MH i2c: E2 08 00 5A 23 80 09 00 00 00 00 00 00 EF [10:50:30]Write i2c OK [10:50:30]MH_I2C_Read... [10:50:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:30]Read from MH i2c: E2 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 03 00 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 03 00 5A 23 00 90 00 F1 [10:50:30]RAPDU: 90 00 [10:50:30]wFMCommunicate OK [10:50:30]SAM_PROTO_ClearQueue done [10:50:30]KKMCreateOFDPacket [10:50:30]OFDProtocolAddRootSTLVToBuf [10:50:30]FM_MakeSignedData [10:50:30]FM_MakeSignedData [10:50:30]SAM_PROTO_SignData [10:50:30]wFMCommunicate request_size=4 [10:50:30]MH_SAM_APDU [10:50:30]CAPDU: 80 0D 01 02 [10:50:30]Write to MH i2c: E2 08 00 5B 23 80 0D 01 02 00 00 00 00 F7 [10:50:30]Write i2c OK [10:50:30]MH_I2C_Read... [10:50:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:30]Read from MH i2c: E2 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 03 00 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 03 00 5B 23 00 90 00 F2 [10:50:30]RAPDU: 90 00 [10:50:30]wFMCommunicate OK [10:50:30]wFMCommunicate request_size=255 [10:50:30]MH_SAM_APDU [10:50:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 7A 33 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8F 73 01 00 35 04 06 00 50 [10:50:30]Write to MH i2c: E2 02 01 5C 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 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 7A 33 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8F 73 01 00 35 04 06 00 50 00 00 56 [10:50:30]Write i2c OK [10:50:30]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 5C 23 00 90 00 F3 [10:50:31]RAPDU: 90 00 [10:50:31]wFMCommunicate OK [10:50:31]wFMCommunicate request_size=10 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 0D 02 02 05 F8 24 0E 9C 87 [10:50:31]Write to MH i2c: E2 0D 00 5D 23 80 0D 02 02 05 00 F8 24 0E 9C 87 00 00 51 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 5D 23 00 90 00 F4 [10:50:31]RAPDU: 90 00 [10:50:31]wFMCommunicate OK [10:50:31]wFMCommunicate request_size=4 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 0D 03 02 [10:50:31]Write to MH i2c: E2 08 00 5E 23 80 0D 03 02 00 00 00 00 FC [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 0B 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 0B 00 5E 23 00 58 8E 8C A3 B0 D1 85 CD 90 00 E5 [10:50:31]RAPDU: 58 8E 8C A3 B0 D1 85 CD 90 00 [10:50:31]wFMCommunicate OK [10:50:31]SAM_PROTO_SignData done [10:50:31]FM_MakeSignedData done [10:50:31]CreateOFDProtocolMessage [10:50:31]wFMCommunicate request_size=4 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 11 00 00 [10:50:31]Write to MH i2c: E2 08 00 5F 23 80 11 00 00 00 00 00 00 FC [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 17 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 17 00 5F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4C [10:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:50:31]wFMCommunicate OK [10:50:31]CreateOFDProtocolMessage done [10:50:31]OFDSenderStorePacket 95119 [10:50:31]StoreOFDPacket docnum=95119 [10:50:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 15 19 07 01 56 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 7A 33 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8F 73 01 00 35 04 06 00 50 F8 24 0E 9C 87 58 8E 8C A3 B0 D1 85 CD [10:50:31]CheckFolder [10:50:31]dirname=/storage/ofd_packets [10:50:31]CheckFolder done [10:50:31]ProducePacketName [10:50:31]name=ofd_packets/00095119 [10:50:31]NVStorageSaveData ofd_packets/00095119 [10:50:31]File name is /storage/ofd_packets/00095119 [10:50:31]Write 301 bytes [10:50:31]NVStorageSaveData done [10:50:31]OFDSenderStorePacket done [10:50:31]KKMCreateOFDPacket done [10:50:31]NVStorageSaveData kkm_last_timestamp [10:50:31]File name is /storage/kkm_last_timestamp [10:50:31]Write 4 bytes [10:50:31]NVStorageSaveData done [10:50:31]ExternCall_PrintAddStr [10:50:31]wPrintStart [10:50:31]Write to MH i2c: 01 00 00 60 23 83 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: 01 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: 01 07 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: 01 07 00 60 23 00 80 00 00 00 FF 0F 18 [10:50:31]RasterBufferAndPrint [10:50:31]line Счет N : (1)196086 [10:50:31]line ИНН: 02508201610067 [10:50:31]line Контрольно-Кассовый Чек [10:50:31]line ПРОДАЖА [10:50:31]line ТРК (МРК, ГНК) : 41 [10:50:31]line Товар: 2710124500 [10:50:31]line Аи-95-К-5 [10:50:31]line 28.780 * 69.50 [10:50:31]line = 2000.21 [10:50:31]line НДС 12% НСП 1% [10:50:31]line > о реализуемом товаре [10:50:31]line ИТОГО: 2000.21 [10:50:31]line НСП 1% : 17.70 [10:50:31]line НДС 12% : 212.41 [10:50:31]line Наличными: 0.00 [10:50:31]line Безнал.: 2000.21 [10:50:31]line Место: АЗС № 6 "Партнер Нефть" [10:50:31]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:50:31]line СНО: Общий режим [10:50:31]line Чек 49 12.03.2024 10:50 [10:50:31]line Смена: 327 ФФД: 1.0 [10:50:31]line ЗНМ: 0300000009 [10:50:31]line РНМ: 0000000000090555 [10:50:31]line Версия ККМ: 001 [10:50:31]line Платежная система: О! деньги [10:50:31]line ФМ: 0000000000874811 [10:50:31]line ФД: 95119 [10:50:31]line ФПД: 89026687048839 [10:50:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T105034&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95119&fm=89026687048839&tin=02508201610067®Number=0000000000090555&sum=200021 [10:50:31]OFD Sender: Processing packet 95119 [packets to send 30, broken 29] [10:50:31]ProducePacketName [10:50:31]name=ofd_packets/00095119 [10:50:31]OFD Sender: To server: pG, [10:50:31]CommunicateWithHost lk.salyk.kg:30040 [10:50:31]ConnectInit lk.salyk.kg [10:50:31]written 0, free lines is 4095 [10:50:31]Connected sock=10 [10:50:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 15 19 07 01 56 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 7A 33 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8F 73 01 00 35 04 06 00 50 F8 24 0E 9C 87 58 8E 8C A3 B0 D1 85 CD [10:50:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E9 EF 47 00 EB 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8F 73 01 00 F4 03 04 00 D0 DE EF 65 B6 04 01 00 00 10 AF 6A 90 91 4D 6B 4D [10:50:31]CommunicateWithHost err = 0 [10:50:31]CheckOFDResponse [10:50:31]1017 (14) - 77093643461234 [10:50:31]1041 (16) - 0000000000874811 [10:50:31]1040 (4) - 95119 [10:50:31]1012 (4) - 12.03.2024 04:49 [10:50:31]1206 (1) - 0 [10:50:31]OFD Sender: Remove packet 95119 [10:50:31]ProducePacketName [10:50:31]name=ofd_packets/00095119 [10:50:31]NVStorageDeleteData [10:50:31]Write to MH i2c: 01 00 00 8A 23 AD [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: 01 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: 01 07 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: 01 07 00 8A 23 00 80 00 00 00 63 0D A4 [10:50:31]RasterBufferAndPrint [10:50:31]line [10:50:31]line [10:50:31]line [10:50:31]line [10:50:31]line [10:50:31]written 0, free lines is 3433 [10:50:32]process_action close_receipt done [10:50:32]requested_data is exist [10:50:32]produce_requested_data [10:50:32]requested_item fm.sn is exist - process it [10:50:32]wFMCommunicate request_size=4 [10:50:32]MH_SAM_APDU [10:50:32]CAPDU: 80 11 00 00 [10:50:32]Write to MH i2c: E2 08 00 91 23 80 11 00 00 00 00 00 00 2E [10:50:32]Write i2c OK [10:50:32]MH_I2C_Read... [10:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:32]Read from MH i2c: E2 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: E2 17 00 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: E2 17 00 91 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7E [10:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:50:32]wFMCommunicate OK [10:50:32]requested_item fd.num is exist - process it [10:50:32]SAM_PROTO_GetFieldsCounters [10:50:32]wFMCommunicate request_size=4 [10:50:32]MH_SAM_APDU [10:50:32]CAPDU: 80 13 00 00 [10:50:32]Write to MH i2c: E2 08 00 92 23 80 13 00 00 00 00 00 00 31 [10:50:32]Write i2c OK [10:50:32]MH_I2C_Read... [10:50:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:32]Read from MH i2c: E2 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: E2 62 00 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: E2 62 00 92 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8F 73 01 00 0E 04 04 00 47 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 2C [10:50:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8F 73 01 00 0E 04 04 00 47 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:50:32]wFMCommunicate OK [10:50:32]SAM_PROTO_GetFieldsCounters done [10:50:32]requested_item shift.num is exist - process it [10:50:32]requested_item shift.opened is exist - process it [10:50:32]req_shift_opened [10:50:32]FM_GetShiftState [10:50:32]SAM_PROTO_GetShiftState [10:50:32]wFMCommunicate request_size=4 [10:50:32]MH_SAM_APDU [10:50:32]CAPDU: 80 13 01 00 [10:50:32]Write to MH i2c: E2 08 00 93 23 80 13 01 00 00 00 00 00 33 [10:50:32]Write i2c OK [10:50:32]MH_I2C_Read... [10:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:32]Read from MH i2c: E2 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: E2 0E 00 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: E2 0E 00 93 23 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A7 [10:50:32]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:50:32]wFMCommunicate OK [10:50:32]SAM_PROTO_GetShiftState done [10:50:32]FM_GetShiftState done [10:50:32]req_shift_opened done [10:50:32]requested_item shift.open_date is exist - process it [10:50:32]req_shift_open_date [10:50:32]req_shift_open_date done [10:50:32]produce_requested_data done [10:50:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95119,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [10:50:32]process_action_free close_receipt [10:50:32]json_value_free [10:50:32]json_value_free done [10:50:32]process_json_proto returns [10:50:32]Send response to host [10:50:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95119,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [10:50:32]free response buf [10:50:32]execute_script done [10:50:32]execute_script returns [10:50:32]free content buf [10:50:32]Sock 8.Close socket [10:50:32]Sock 8.Thread stoped [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:08]ConnectInit Can't connect to host [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58: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:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]OFD Sender: No OFD packet to send [10:59:52]accept exits with 9 [10:59:52]New connection [10:59:52]New thread 3066957156 created [10:59:52]Thread 3066813796 joined [10:59:52]Waiting for new connection... [10:59:52] Sock 9.Parse request [10:59:52]Sock 9.Check first char [10:59:52]Sock 9.First char is OK [10:59:52]request: POST /json_proto HTTP/1.0 [10:59:52]Method: POST [10:59:52]URL: /json_proto [10:59:52]Method is POST - this is cgi request [10:59:52]url: /json_proto [10:59:52]query_string will be loaded in cgi processing [10:59:52]execute_cgi json_proto POST (null) [10:59:52]execute_cgi path=json_proto method=POST [10:59:52]POST find Content-Length [10:59:52]Host: 172.17.62.67:8080 [10:59:52]Content-Length: 1201 [10:59:52]Content-Type: application/json [10:59:52] [10:59:52]POST finish read [10:59:52]Found Content-Length = 1201 [10:59:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196087\u000A12.03.2024 10:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A3583119\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:52]execute_script... [10:59:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196087\u000A12.03.2024 10:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A3583119\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:52]POST & json_proto [10:59:52]process_json_proto [10:59:52]json parsed OK: [10:59:52]protocol is kg_v1.0 [10:59:52]action value=print_text [10:59:52]process_action print_text [10:59:52]cmd_print_text [10:59:52]ExternCall_PrintAddStr [10:59:52]wPrintStart [10:59:52]Write to MH i2c: 01 00 00 94 23 B7 [10:59:52]Write i2c OK [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: 01 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: 01 07 00 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: 01 07 00 94 23 00 80 00 00 00 FF 0F 4C [10:59:52]RasterBufferAndPrint [10:59:52]line *****ТОВАРНЫЙ ЧЕК***** [10:59:52]line АЗС 6 [10:59:52]line Партнер нефть [10:59:52]line 02508201610067 [10:59:52]line Кассир : Мыктыбекова И. [10:59:52]line Счет N : (1)196087 [10:59:52]line 12.03.2024 10:54 [10:59:52]line ПРОДАЖА [10:59:52]line ТРК (МРК, ГНК): 12 [10:59:52]line Вид ГСМ : 2710124130 [10:59:52]line Аи-92-К-5 [10:59:52]line 20.000 x 62.90 [10:59:52]line ИТОГ: 1258.00 [10:59:52]line Тип оплаты: Талоны: Партнер нефть [10:59:52]line 3583119 [10:59:52]line ______________________ [10:59:52]line (подпись) [10:59:52]written 0, free lines is 4095 [10:59:52]OFD Sender: No OFD packet to send [10:59:52]Write to MH i2c: 01 00 00 A8 23 CB [10:59:52]Write i2c OK [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: 01 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: 01 07 00 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: 01 07 00 A8 23 00 80 00 00 00 6B 0E CB [10:59:52]RasterBufferAndPrint [10:59:52]line [10:59:52]line [10:59:52]line [10:59:52]line [10:59:52]line [10:59:52]written 0, free lines is 3694 [10:59:52]process_action print_text done [10:59:52]requested_data is exist [10:59:52]produce_requested_data [10:59:52]requested_item fm.sn is exist - process it [10:59:52]wFMCommunicate request_size=4 [10:59:52]MH_SAM_APDU [10:59:52]CAPDU: 80 11 00 00 [10:59:52]Write to MH i2c: E2 08 00 AF 23 80 11 00 00 00 00 00 00 4C [10:59:52]Write i2c OK [10:59:52]MH_I2C_Read... [10:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:52]Read from MH i2c: E2 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: E2 17 00 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: E2 17 00 AF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9C [10:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:59:52]wFMCommunicate OK [10:59:52]requested_item fd.num is exist - process it [10:59:52]SAM_PROTO_GetFieldsCounters [10:59:52]wFMCommunicate request_size=4 [10:59:52]MH_SAM_APDU [10:59:52]CAPDU: 80 13 00 00 [10:59:52]Write to MH i2c: E2 08 00 B0 23 80 13 00 00 00 00 00 00 4F [10:59:52]Write i2c OK [10:59:52]MH_I2C_Read... [10:59:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:53]Read from MH i2c: E2 [10:59:53]MH_I2C_Read... [10:59:53]Read from MH i2c: E2 62 00 [10:59:53]MH_I2C_Read... [10:59:53]Read from MH i2c: E2 62 00 B0 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8F 73 01 00 0E 04 04 00 47 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 4A [10:59:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8F 73 01 00 0E 04 04 00 47 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:53]wFMCommunicate OK [10:59:53]SAM_PROTO_GetFieldsCounters done [10:59:53]requested_item shift.num is exist - process it [10:59:53]requested_item shift.opened is exist - process it [10:59:53]req_shift_opened [10:59:53]FM_GetShiftState [10:59:53]SAM_PROTO_GetShiftState [10:59:53]wFMCommunicate request_size=4 [10:59:53]MH_SAM_APDU [10:59:53]CAPDU: 80 13 01 00 [10:59:53]Write to MH i2c: E2 08 00 B1 23 80 13 01 00 00 00 00 00 51 [10:59:53]Write i2c OK [10:59:53]MH_I2C_Read... [10:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:53]Read from MH i2c: E2 [10:59:53]MH_I2C_Read... [10:59:53]Read from MH i2c: E2 0E 00 [10:59:53]MH_I2C_Read... [10:59:53]Read from MH i2c: E2 0E 00 B1 23 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C5 [10:59:53]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [10:59:53]wFMCommunicate OK [10:59:53]SAM_PROTO_GetShiftState done [10:59:53]FM_GetShiftState done [10:59:53]req_shift_opened done [10:59:53]requested_item shift.open_date is exist - process it [10:59:53]req_shift_open_date [10:59:53]req_shift_open_date done [10:59:53]produce_requested_data done [10:59:53]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95119,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [10:59:53]process_action_free print_text [10:59:53]json_value_free [10:59:53]json_value_free done [10:59:53]process_json_proto returns [10:59:53]Send response to host [10:59:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95119,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [10:59:53]free response buf [10:59:53]execute_script done [10:59:53]execute_script returns [10:59:53]free content buf [10:59:53]Sock 9.Close socket [10:59:53]Sock 9.Thread stoped [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:32]accept exits with 8 [11:18:32]New connection [11:18:32]New thread 3066813796 created [11:18:32]Thread 3066957156 joined [11:18:32]Waiting for new connection... [11:18:32] Sock 8.Parse request [11:18:32]Sock 8.Check first char [11:18:32]Sock 8.First char is OK [11:18:32]request: POST /json_proto HTTP/1.0 [11:18:32]Method: POST [11:18:32]URL: /json_proto [11:18:32]Method is POST - this is cgi request [11:18:32]url: /json_proto [11:18:32]query_string will be loaded in cgi processing [11:18:32]execute_cgi json_proto POST (null) [11:18:32]execute_cgi path=json_proto method=POST [11:18:32]POST find Content-Length [11:18:32]Host: 172.17.62.67:8080 [11:18:32]Content-Length: 642 [11:18:32]Content-Type: application/json [11:18:32] [11:18:32]POST finish read [11:18:32]Found Content-Length = 642 [11:18:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 20.000, "sum" : 1258.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1258.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:32]execute_script... [11:18:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 20.000, "sum" : 1258.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1258.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:32]POST & json_proto [11:18:32]process_json_proto [11:18:32]json parsed OK: [11:18:32]protocol is kg_v1.0 [11:18:32]action value=close_receipt [11:18:32]process_action close_receipt [11:18:32]cmd_close_receipt [11:18:32]MH_GetDate [11:18:32]Write to MH i2c: F0 00 00 B2 23 C4 [11:18:32]Write i2c OK [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: F0 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: F0 05 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: F0 05 00 B2 23 00 0D 3A F0 65 65 [11:18:32]GetLastDocTimeStamp 1710240634 [11:18:32]current date 1710242317 [11:18:32]FM_GetShiftState [11:18:32]SAM_PROTO_GetShiftState [11:18:32]wFMCommunicate request_size=4 [11:18:32]MH_SAM_APDU [11:18:32]CAPDU: 80 13 01 00 [11:18:32]Write to MH i2c: E2 08 00 B3 23 80 13 01 00 00 00 00 00 53 [11:18:32]Write i2c OK [11:18:32]MH_I2C_Read... [11:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:32]Read from MH i2c: E2 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 0E 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 0E 00 B3 23 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C7 [11:18:32]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:18:32]wFMCommunicate OK [11:18:32]SAM_PROTO_GetShiftState done [11:18:32]FM_GetShiftState done [11:18:32]opened in 1710201976 [11:18:32]opened+sec_in_day 1710288376 [11:18:32]quantity*price = 125800 [11:18:32]sum+1 = 125801 [11:18:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1258.00 НСП 1% : 11.13 НДС 12% : 133.59 Наличными: 1258.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 50 12.03.2024 11:18 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95120 ФПД: 211878149943651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T111837&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95120&fm=211878149943651&tin=02508201610067®Number=0000000000090555&sum=125800 [11:18:33]StoreToDocumentArchive [11:18:33]shift 327 fd 95120 [11:18:33]save to /storage/0327/doc_00095120 [11:18:33]save last doc name /storage/0327/doc_00095120 to /storage/kkm_last_doc_name [11:18:33]save OK [11:18:33]Clear old archive folders... [11:18:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:33]tlvbuf is 01A64650 [11:18:33]SAM_PROTO_ClearQueue [11:18:33]wFMCommunicate request_size=4 [11:18:33]MH_SAM_APDU [11:18:33]CAPDU: 80 09 00 00 [11:18:33]Write to MH i2c: E2 08 00 C0 23 80 09 00 00 00 00 00 00 55 [11:18:33]Write i2c OK [11:18:33]MH_I2C_Read... [11:18:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:33]Read from MH i2c: E2 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 03 00 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 03 00 C0 23 00 90 00 57 [11:18:33]RAPDU: 90 00 [11:18:33]wFMCommunicate OK [11:18:33]SAM_PROTO_ClearQueue done [11:18:33]KKMCreateOFDPacket [11:18:33]OFDProtocolAddRootSTLVToBuf [11:18:33]FM_MakeSignedData [11:18:33]FM_MakeSignedData [11:18:33]SAM_PROTO_SignData [11:18:33]wFMCommunicate request_size=4 [11:18:33]MH_SAM_APDU [11:18:33]CAPDU: 80 0D 01 02 [11:18:33]Write to MH i2c: E2 08 00 C1 23 80 0D 01 02 00 00 00 00 5D [11:18:33]Write i2c OK [11:18:33]MH_I2C_Read... [11:18:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:33]Read from MH i2c: E2 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 03 00 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 03 00 C1 23 00 90 00 58 [11:18:33]RAPDU: 90 00 [11:18:33]wFMCommunicate OK [11:18:33]wFMCommunicate request_size=255 [11:18:33]MH_SAM_APDU [11:18:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 68 EB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 EB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 34 00 00 00 00 07 04 06 00 68 EB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 0D 3A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 90 73 01 00 35 04 06 00 C0 [11:18:33]Write to MH i2c: E2 02 01 C2 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 68 EB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 EB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 34 00 00 00 00 07 04 06 00 68 EB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 0D 3A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 90 73 01 00 35 04 06 00 C0 00 00 11 [11:18:33]Write i2c OK [11:18:33]MH_I2C_Read... [11:18:33]OFD Sender: No OFD packet to send [11:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:33]Read from MH i2c: E2 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 03 00 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 03 00 C2 23 00 90 00 59 [11:18:33]RAPDU: 90 00 [11:18:33]wFMCommunicate OK [11:18:33]wFMCommunicate request_size=10 [11:18:33]MH_SAM_APDU [11:18:33]CAPDU: 80 0D 02 02 05 B3 B9 DC F1 63 [11:18:33]Write to MH i2c: E2 0D 00 C3 23 80 0D 02 02 05 00 B3 B9 DC F1 63 00 00 06 [11:18:33]Write i2c OK [11:18:33]MH_I2C_Read... [11:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:33]Read from MH i2c: E2 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 03 00 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 03 00 C3 23 00 90 00 5A [11:18:33]RAPDU: 90 00 [11:18:33]wFMCommunicate OK [11:18:33]wFMCommunicate request_size=4 [11:18:33]MH_SAM_APDU [11:18:33]CAPDU: 80 0D 03 02 [11:18:33]Write to MH i2c: E2 08 00 C4 23 80 0D 03 02 00 00 00 00 62 [11:18:33]Write i2c OK [11:18:33]MH_I2C_Read... [11:18:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:34]Read from MH i2c: E2 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 0B 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 0B 00 C4 23 00 FD B0 E2 89 9F 65 78 9B 90 00 92 [11:18:34]RAPDU: FD B0 E2 89 9F 65 78 9B 90 00 [11:18:34]wFMCommunicate OK [11:18:34]SAM_PROTO_SignData done [11:18:34]FM_MakeSignedData done [11:18:34]CreateOFDProtocolMessage [11:18:34]wFMCommunicate request_size=4 [11:18:34]MH_SAM_APDU [11:18:34]CAPDU: 80 11 00 00 [11:18:34]Write to MH i2c: E2 08 00 C5 23 80 11 00 00 00 00 00 00 62 [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:34]Read from MH i2c: E2 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 17 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 17 00 C5 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B2 [11:18:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:18:34]wFMCommunicate OK [11:18:34]CreateOFDProtocolMessage done [11:18:34]OFDSenderStorePacket 95120 [11:18:34]StoreOFDPacket docnum=95120 [11:18:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 64 0E 07 01 15 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 68 EB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 EB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 34 00 00 00 00 07 04 06 00 68 EB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 0D 3A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 90 73 01 00 35 04 06 00 C0 B3 B9 DC F1 63 FD B0 E2 89 9F 65 78 9B [11:18:34]CheckFolder [11:18:34]dirname=/storage/ofd_packets [11:18:34]CheckFolder done [11:18:34]ProducePacketName [11:18:34]name=ofd_packets/00095120 [11:18:34]NVStorageSaveData ofd_packets/00095120 [11:18:34]File name is /storage/ofd_packets/00095120 [11:18:34]Write 301 bytes [11:18:34]NVStorageSaveData done [11:18:34]OFDSenderStorePacket done [11:18:34]KKMCreateOFDPacket done [11:18:34]NVStorageSaveData kkm_last_timestamp [11:18:34]File name is /storage/kkm_last_timestamp [11:18:34]Write 4 bytes [11:18:34]NVStorageSaveData done [11:18:34]OFD Sender: Processing packet 95120 [packets to send 30, broken 29] [11:18:34]ProducePacketName [11:18:34]name=ofd_packets/00095120 [11:18:34]OFD Sender: To server: pG, [11:18:34]CommunicateWithHost lk.salyk.kg:30040 [11:18:34]ConnectInit lk.salyk.kg [11:18:34]ExternCall_PrintAddStr [11:18:34]wPrintStart [11:18:34]Write to MH i2c: 01 00 00 C6 23 E9 [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: 01 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: 01 07 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: 01 07 00 C6 23 00 80 00 00 00 FF 0F 7E [11:18:34]RasterBufferAndPrint [11:18:34]line Счет N : (1)196088 [11:18:34]line ИНН: 02508201610067 [11:18:34]line Контрольно-Кассовый Чек [11:18:34]line ПРОДАЖА [11:18:34]line ТРК (МРК, ГНК) : 32 [11:18:34]line Товар: 2710124130 [11:18:34]line Аи-92-К-5 [11:18:34]line 20.000 * 62.90 [11:18:34]line = 1258.00 [11:18:34]line НДС 12% НСП 1% [11:18:34]line > о реализуемом товаре [11:18:34]line ИТОГО: 1258.00 [11:18:34]line НСП 1% : 11.13 [11:18:34]line НДС 12% : 133.59 [11:18:34]line Наличными: 1258.00 [11:18:34]line Безнал.: 0.00 [11:18:34]line Место: АЗС № 6 "Партнер Нефть" [11:18:34]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:18:34]line СНО: Общий режим [11:18:34]line Чек 50 12.03.2024 11:18 [11:18:34]line Смена: 327 ФФД: 1.0 [11:18:34]line ЗНМ: 0300000009 [11:18:34]line РНМ: 0000000000090555 [11:18:34]line Версия ККМ: 001 [11:18:34]line ФМ: 0000000000874811 [11:18:34]line ФД: 95120 [11:18:34]line ФПД: 211878149943651 [11:18:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T111837&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95120&fm=211878149943651&tin=02508201610067®Number=0000000000090555&sum=125800 [11:18:34]Connected sock=11 [11:18:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 64 0E 07 01 15 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 68 EB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 EB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 34 00 00 00 00 07 04 06 00 68 EB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 0D 3A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 90 73 01 00 35 04 06 00 C0 B3 B9 DC F1 63 FD B0 E2 89 9F 65 78 9B [11:18:34]written 0, free lines is 4095 [11:18:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 98 D9 47 00 00 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 90 73 01 00 F4 03 04 00 63 E5 EF 65 B6 04 01 00 00 21 3E 5D A0 52 0B FD 27 [11:18:34]CommunicateWithHost err = 0 [11:18:34]CheckOFDResponse [11:18:34]1017 (14) - 77093643461234 [11:18:34]1041 (16) - 0000000000874811 [11:18:34]1040 (4) - 95120 [11:18:34]1012 (4) - 12.03.2024 05:17 [11:18:34]1206 (1) - 0 [11:18:34]OFD Sender: Remove packet 95120 [11:18:34]ProducePacketName [11:18:34]name=ofd_packets/00095120 [11:18:34]NVStorageDeleteData [11:18:34]Write to MH i2c: 01 00 00 EE 23 11 [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: 01 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: 01 07 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: 01 07 00 EE 23 00 80 00 00 00 7B 0D 20 [11:18:34]RasterBufferAndPrint [11:18:34]line [11:18:34]line [11:18:34]line [11:18:34]line [11:18:34]line [11:18:34]written 0, free lines is 3457 [11:18:34]process_action close_receipt done [11:18:34]requested_data is exist [11:18:34]produce_requested_data [11:18:34]requested_item fm.sn is exist - process it [11:18:34]wFMCommunicate request_size=4 [11:18:34]MH_SAM_APDU [11:18:34]CAPDU: 80 11 00 00 [11:18:34]Write to MH i2c: E2 08 00 F5 23 80 11 00 00 00 00 00 00 92 [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:34]Read from MH i2c: E2 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 17 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 17 00 F5 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E2 [11:18:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:18:34]wFMCommunicate OK [11:18:34]requested_item fd.num is exist - process it [11:18:34]SAM_PROTO_GetFieldsCounters [11:18:34]wFMCommunicate request_size=4 [11:18:34]MH_SAM_APDU [11:18:34]CAPDU: 80 13 00 00 [11:18:34]Write to MH i2c: E2 08 00 F6 23 80 13 00 00 00 00 00 00 95 [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:35]Read from MH i2c: E2 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 62 00 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 62 00 F6 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 90 73 01 00 0E 04 04 00 47 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 94 [11:18:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 90 73 01 00 0E 04 04 00 47 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:18:35]wFMCommunicate OK [11:18:35]SAM_PROTO_GetFieldsCounters done [11:18:35]requested_item shift.num is exist - process it [11:18:35]requested_item shift.opened is exist - process it [11:18:35]req_shift_opened [11:18:35]FM_GetShiftState [11:18:35]SAM_PROTO_GetShiftState [11:18:35]wFMCommunicate request_size=4 [11:18:35]MH_SAM_APDU [11:18:35]CAPDU: 80 13 01 00 [11:18:35]Write to MH i2c: E2 08 00 F7 23 80 13 01 00 00 00 00 00 97 [11:18:35]Write i2c OK [11:18:35]MH_I2C_Read... [11:18:35]OFD Sender: No OFD packet to send [11:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:35]Read from MH i2c: E2 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 0E 00 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 0E 00 F7 23 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 0B [11:18:35]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:18:35]wFMCommunicate OK [11:18:35]SAM_PROTO_GetShiftState done [11:18:35]FM_GetShiftState done [11:18:35]req_shift_opened done [11:18:35]requested_item shift.open_date is exist - process it [11:18:35]req_shift_open_date [11:18:35]req_shift_open_date done [11:18:35]produce_requested_data done [11:18:35]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95120,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [11:18:35]process_action_free close_receipt [11:18:35]json_value_free [11:18:35]json_value_free done [11:18:35]process_json_proto returns [11:18:35]Send response to host [11:18:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95120,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [11:18:35]free response buf [11:18:35]execute_script done [11:18:35]execute_script returns [11:18:35]free content buf [11:18:35]Sock 8.Close socket [11:18:35]Sock 8.Thread stoped [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:15]OFD Sender: No OFD packet to send [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:05]accept exits with 9 [11:20:05]New connection [11:20:05]New thread 3066957156 created [11:20:05]Thread 3066813796 joined [11:20:05]Waiting for new connection... [11:20:05] Sock 9.Parse request [11:20:05]Sock 9.Check first char [11:20:05]Sock 9.First char is OK [11:20:05]request: POST /json_proto HTTP/1.0 [11:20:05]Method: POST [11:20:05]URL: /json_proto [11:20:05]Method is POST - this is cgi request [11:20:05]url: /json_proto [11:20:05]query_string will be loaded in cgi processing [11:20:05]execute_cgi json_proto POST (null) [11:20:05]execute_cgi path=json_proto method=POST [11:20:05]POST find Content-Length [11:20:05]Host: 172.17.62.67:8080 [11:20:05]Content-Length: 632 [11:20:05]Content-Type: application/json [11:20:05] [11:20:05]POST finish read [11:20:05]Found Content-Length = 632 [11:20:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11532", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 128.00, "quantity" : 1.000, "sum" : 128.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 128.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:05]execute_script... [11:20:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11532", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 128.00, "quantity" : 1.000, "sum" : 128.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 128.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:05]POST & json_proto [11:20:05]process_json_proto [11:20:05]json parsed OK: [11:20:05]protocol is kg_v1.0 [11:20:05]action value=close_receipt [11:20:05]process_action close_receipt [11:20:05]cmd_close_receipt [11:20:05]MH_GetDate [11:20:05]Write to MH i2c: F0 00 00 F8 23 0A [11:20:05]Write i2c OK [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: F0 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: F0 05 00 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: F0 05 00 F8 23 00 6A 3A F0 65 08 [11:20:05]GetLastDocTimeStamp 1710242317 [11:20:05]current date 1710242410 [11:20:05]FM_GetShiftState [11:20:05]SAM_PROTO_GetShiftState [11:20:05]wFMCommunicate request_size=4 [11:20:05]MH_SAM_APDU [11:20:05]CAPDU: 80 13 01 00 [11:20:05]Write to MH i2c: E2 08 00 F9 23 80 13 01 00 00 00 00 00 99 [11:20:05]Write i2c OK [11:20:05]MH_I2C_Read... [11:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:05]Read from MH i2c: E2 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: E2 0E 00 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: E2 0E 00 F9 23 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 0D [11:20:05]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:20:05]wFMCommunicate OK [11:20:05]SAM_PROTO_GetShiftState done [11:20:05]FM_GetShiftState done [11:20:05]opened in 1710201976 [11:20:05]opened+sec_in_day 1710288376 [11:20:05]quantity*price = 12800 [11:20:05]sum+1 = 12801 [11:20:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 128.00 НСП 1% : 1.13 НДС 12% : 13.59 Наличными: 128.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 51 12.03.2024 11:20 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95121 ФПД: 136156370029905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T112010&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95121&fm=136156370029905&tin=02508201610067®Number=0000000000090555&sum=12800 0 [11:20:06]StoreToDocumentArchive [11:20:06]shift 327 fd 95121 [11:20:06]save to /storage/0327/doc_00095121 [11:20:06]save last doc name /storage/0327/doc_00095121 to /storage/kkm_last_doc_name [11:20:06]save OK [11:20:06]Clear old archive folders... [11:20:06]ProcessDocumentItem done err = 0, tmpTLVsize=285 [11:20:06]tlvbuf is 01A63A80 [11:20:06]SAM_PROTO_ClearQueue [11:20:06]wFMCommunicate request_size=4 [11:20:06]MH_SAM_APDU [11:20:06]CAPDU: 80 09 00 00 [11:20:06]Write to MH i2c: E2 08 00 06 24 80 09 00 00 00 00 00 00 9C [11:20:07]Write i2c OK [11:20:07]MH_I2C_Read... [11:20:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:07]Read from MH i2c: E2 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: E2 03 00 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: E2 03 00 06 24 00 90 00 9E [11:20:07]RAPDU: 90 00 [11:20:07]wFMCommunicate OK [11:20:07]SAM_PROTO_ClearQueue done [11:20:07]KKMCreateOFDPacket [11:20:07]OFDProtocolAddRootSTLVToBuf [11:20:07]FM_MakeSignedData [11:20:07]FM_MakeSignedData [11:20:07]SAM_PROTO_SignData [11:20:07]wFMCommunicate request_size=4 [11:20:07]MH_SAM_APDU [11:20:07]CAPDU: 80 0D 01 02 [11:20:07]Write to MH i2c: E2 08 00 07 24 80 0D 01 02 00 00 00 00 A4 [11:20:07]Write i2c OK [11:20:07]MH_I2C_Read... [11:20:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:07]Read from MH i2c: E2 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: E2 03 00 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: E2 03 00 07 24 00 90 00 9F [11:20:07]RAPDU: 90 00 [11:20:07]wFMCommunicate OK [11:20:07]wFMCommunicate request_size=255 [11:20:07]MH_SAM_APDU [11:20:07]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 6A 3A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 [11:20:07]Write to MH i2c: E2 02 01 08 24 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 6A 3A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 00 00 A4 [11:20:07]Write i2c OK [11:20:07]MH_I2C_Read... [11:20:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:07]Read from MH i2c: E2 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: E2 03 00 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: E2 03 00 08 24 00 90 00 A0 [11:20:07]RAPDU: 90 00 [11:20:07]wFMCommunicate OK [11:20:07]wFMCommunicate request_size=44 [11:20:07]MH_SAM_APDU [11:20:07]CAPDU: 80 0D 02 02 27 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 91 73 01 00 35 04 06 00 7B D5 60 11 CD 51 [11:20:07]Write to MH i2c: E2 2F 00 09 24 80 0D 02 02 27 00 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 91 73 01 00 35 04 06 00 7B D5 60 11 CD 51 00 00 A7 [11:20:07]Write i2c OK [11:20:07]MH_I2C_Read... [11:20:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:07]Read from MH i2c: E2 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: E2 03 00 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: E2 03 00 09 24 00 90 00 A1 [11:20:07]RAPDU: 90 00 [11:20:07]wFMCommunicate OK [11:20:07]wFMCommunicate request_size=4 [11:20:07]MH_SAM_APDU [11:20:07]CAPDU: 80 0D 03 02 [11:20:07]Write to MH i2c: E2 08 00 0A 24 80 0D 03 02 00 00 00 00 A9 [11:20:07]Write i2c OK [11:20:07]MH_I2C_Read... [11:20:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:07]Read from MH i2c: E2 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: E2 0B 00 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: E2 0B 00 0A 24 00 A9 49 C4 83 1E 1A AD 2B 90 00 F3 [11:20:07]RAPDU: A9 49 C4 83 1E 1A AD 2B 90 00 [11:20:07]wFMCommunicate OK [11:20:07]SAM_PROTO_SignData done [11:20:07]FM_MakeSignedData done [11:20:07]CreateOFDProtocolMessage [11:20:07]wFMCommunicate request_size=4 [11:20:07]MH_SAM_APDU [11:20:07]CAPDU: 80 11 00 00 [11:20:07]Write to MH i2c: E2 08 00 0B 24 80 11 00 00 00 00 00 00 A9 [11:20:07]Write i2c OK [11:20:07]MH_I2C_Read... [11:20:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:07]Read from MH i2c: E2 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: E2 17 00 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: E2 17 00 0B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F9 [11:20:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:20:07]wFMCommunicate OK [11:20:07]CreateOFDProtocolMessage done [11:20:07]OFDSenderStorePacket 95121 [11:20:07]StoreOFDPacket docnum=95121 [11:20:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 31 01 00 00 6E 2E 29 01 AF 11 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 6A 3A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 91 73 01 00 35 04 06 00 7B D5 60 11 CD 51 A9 49 C4 83 1E 1A AD 2B [11:20:07]CheckFolder [11:20:07]dirname=/storage/ofd_packets [11:20:07]CheckFolder done [11:20:07]ProducePacketName [11:20:07]name=ofd_packets/00095121 [11:20:07]NVStorageSaveData ofd_packets/00095121 [11:20:07]File name is /storage/ofd_packets/00095121 [11:20:07]Write 335 bytes [11:20:07]NVStorageSaveData done [11:20:07]OFDSenderStorePacket done [11:20:07]KKMCreateOFDPacket done [11:20:07]NVStorageSaveData kkm_last_timestamp [11:20:07]File name is /storage/kkm_last_timestamp [11:20:07]Write 4 bytes [11:20:07]NVStorageSaveData done [11:20:07]ExternCall_PrintAddStr [11:20:07]wPrintStart [11:20:07]Write to MH i2c: 01 00 00 0C 24 30 [11:20:07]Write i2c OK [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: 01 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: 01 07 00 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: 01 07 00 0C 24 00 80 00 00 00 FF 0F C5 [11:20:07]RasterBufferAndPrint [11:20:07]line Счет N : (3)11532 [11:20:07]line ИНН: 02508201610067 [11:20:07]line Контрольно-Кассовый Чек [11:20:07]line ПРОДАЖА [11:20:07]line Товар: 48745291 [11:20:07]line Сигареты Parliament SOHO NYC COMPACT BLU [11:20:07]line 1.000 * 128.00 [11:20:07]line = 128.00 [11:20:07]line НДС 12% НСП 1% [11:20:07]line > о реализуемом товаре [11:20:07]line ИТОГО: 128.00 [11:20:07]line НСП 1% : 1.13 [11:20:07]line НДС 12% : 13.59 [11:20:07]line Наличными: 128.00 [11:20:07]line Безнал.: 0.00 [11:20:07]line Место: АЗС № 6 "Партнер Нефть" [11:20:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:20:07]line СНО: Общий режим [11:20:07]line Чек 51 12.03.2024 11:20 [11:20:07]line Смена: 327 ФФД: 1.0 [11:20:07]line ЗНМ: 0300000009 [11:20:07]line РНМ: 0000000000090555 [11:20:07]line Версия ККМ: 001 [11:20:07]line ФМ: 0000000000874811 [11:20:07]line ФД: 95121 [11:20:07]line ФПД: 136156370029905 [11:20:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T112010&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95121&fm=136156370029905&tin=02508201610067®Number=0000000000090555&sum=12800 [11:20:07]line 0 [11:20:07]OFD Sender: Processing packet 95121 [packets to send 30, broken 29] [11:20:07]ProducePacketName [11:20:07]name=ofd_packets/00095121 [11:20:07]OFD Sender: To server: pG, [11:20:07]CommunicateWithHost lk.salyk.kg:30040 [11:20:07]ConnectInit lk.salyk.kg [11:20:07]written 0, free lines is 4095 [11:20:07]Connected sock=10 [11:20:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 31 01 00 00 6E 2E 29 01 AF 11 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 6A 3A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 91 73 01 00 35 04 06 00 7B D5 60 11 CD 51 A9 49 C4 83 1E 1A AD 2B [11:20:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 79 0D 47 00 49 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 91 73 01 00 F4 03 04 00 C1 E5 EF 65 B6 04 01 00 00 FA 76 DE D8 72 57 01 F4 [11:20:08]CommunicateWithHost err = 0 [11:20:08]CheckOFDResponse [11:20:08]1017 (14) - 77093643461234 [11:20:08]1041 (16) - 0000000000874811 [11:20:08]1040 (4) - 95121 [11:20:08]1012 (4) - 12.03.2024 05:18 [11:20:08]1206 (1) - 0 [11:20:08]OFD Sender: Remove packet 95121 [11:20:08]ProducePacketName [11:20:08]name=ofd_packets/00095121 [11:20:08]NVStorageDeleteData [11:20:08]Write to MH i2c: 01 00 00 35 24 59 [11:20:08]Write i2c OK [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: 01 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: 01 07 00 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: 01 07 00 35 24 00 80 00 00 00 63 0D 50 [11:20:08]RasterBufferAndPrint [11:20:08]line [11:20:08]line [11:20:08]line [11:20:08]line [11:20:08]line [11:20:08]written 0, free lines is 3433 [11:20:08]process_action close_receipt done [11:20:08]requested_data is exist [11:20:08]produce_requested_data [11:20:08]requested_item fm.sn is exist - process it [11:20:08]wFMCommunicate request_size=4 [11:20:08]MH_SAM_APDU [11:20:08]CAPDU: 80 11 00 00 [11:20:08]Write to MH i2c: E2 08 00 3C 24 80 11 00 00 00 00 00 00 DA [11:20:08]Write i2c OK [11:20:08]MH_I2C_Read... [11:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:08]Read from MH i2c: E2 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: E2 17 00 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: E2 17 00 3C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2A [11:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:20:08]wFMCommunicate OK [11:20:08]requested_item fd.num is exist - process it [11:20:08]SAM_PROTO_GetFieldsCounters [11:20:08]wFMCommunicate request_size=4 [11:20:08]MH_SAM_APDU [11:20:08]CAPDU: 80 13 00 00 [11:20:08]Write to MH i2c: E2 08 00 3D 24 80 13 00 00 00 00 00 00 DD [11:20:08]Write i2c OK [11:20:08]MH_I2C_Read... [11:20:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:08]Read from MH i2c: E2 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: E2 62 00 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: E2 62 00 3D 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 91 73 01 00 0E 04 04 00 47 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 E0 [11:20:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 91 73 01 00 0E 04 04 00 47 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:20:08]wFMCommunicate OK [11:20:08]SAM_PROTO_GetFieldsCounters done [11:20:08]requested_item shift.num is exist - process it [11:20:08]requested_item shift.opened is exist - process it [11:20:08]req_shift_opened [11:20:08]FM_GetShiftState [11:20:08]SAM_PROTO_GetShiftState [11:20:08]wFMCommunicate request_size=4 [11:20:08]MH_SAM_APDU [11:20:08]CAPDU: 80 13 01 00 [11:20:08]Write to MH i2c: E2 08 00 3E 24 80 13 01 00 00 00 00 00 DF [11:20:08]Write i2c OK [11:20:08]MH_I2C_Read... [11:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:08]Read from MH i2c: E2 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: E2 0E 00 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: E2 0E 00 3E 24 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 53 [11:20:08]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:20:08]wFMCommunicate OK [11:20:08]SAM_PROTO_GetShiftState done [11:20:08]FM_GetShiftState done [11:20:08]req_shift_opened done [11:20:08]requested_item shift.open_date is exist - process it [11:20:08]req_shift_open_date [11:20:08]req_shift_open_date done [11:20:08]produce_requested_data done [11:20:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95121,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [11:20:08]process_action_free close_receipt [11:20:08]json_value_free [11:20:08]json_value_free done [11:20:08]process_json_proto returns [11:20:08]Send response to host [11:20:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95121,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [11:20:08]free response buf [11:20:08]execute_script done [11:20:08]execute_script returns [11:20:08]free content buf [11:20:08]Sock 9.Close socket [11:20:08]Sock 9.Thread stoped [11:20:08]OFD Sender: No OFD packet to send [11:20:12]accept exits with 8 [11:20:12]New connection [11:20:12]New thread 3066813796 created [11:20:12]Thread 3066957156 joined [11:20:12]Waiting for new connection... [11:20:12] Sock 8.Parse request [11:20:12]Sock 8.Check first char [11:20:12]Sock 8.First char is OK [11:20:12]request: POST /json_proto HTTP/1.0 [11:20:12]Method: POST [11:20:12]URL: /json_proto [11:20:12]Method is POST - this is cgi request [11:20:12]url: /json_proto [11:20:12]query_string will be loaded in cgi processing [11:20:12]execute_cgi json_proto POST (null) [11:20:12]execute_cgi path=json_proto method=POST [11:20:12]POST find Content-Length [11:20:12]Host: 172.17.62.67:8080 [11:20:12]Content-Length: 1204 [11:20:12]Content-Type: application/json [11:20:12] [11:20:12]POST finish read [11:20:12]Found Content-Length = 1204 [11:20:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196089\u000A12.03.2024 11:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 2516.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\u000A3579819.16\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:12]execute_script... [11:20:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196089\u000A12.03.2024 11:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 2516.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\u000A3579819.16\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:12]POST & json_proto [11:20:12]process_json_proto [11:20:12]json parsed OK: [11:20:12]protocol is kg_v1.0 [11:20:12]action value=print_text [11:20:12]process_action print_text [11:20:12]cmd_print_text [11:20:12]ExternCall_PrintAddStr [11:20:12]wPrintStart [11:20:12]Write to MH i2c: 01 00 00 3F 24 63 [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 07 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 07 00 3F 24 00 80 00 00 00 FF 0F F8 [11:20:12]RasterBufferAndPrint [11:20:12]line *****ТОВАРНЫЙ ЧЕК***** [11:20:12]line АЗС 6 [11:20:12]line Партнер нефть [11:20:12]line 02508201610067 [11:20:12]line Кассир : Мыктыбекова И. [11:20:12]line Счет N : (1)196089 [11:20:12]line 12.03.2024 11:14 [11:20:12]line ПРОДАЖА [11:20:12]line ТРК (МРК, ГНК): 12 [11:20:12]line Вид ГСМ : 2710124130 [11:20:12]line Аи-92-К-5 [11:20:12]line 40.000 x 62.90 [11:20:12]line ИТОГ: 2516.00 [11:20:12]line Тип оплаты: Талоны: Партнер нефть [11:20:12]line 3579819.16 [11:20:12]line ______________________ [11:20:12]line (подпись) [11:20:12]written 0, free lines is 4095 [11:20:13]Write to MH i2c: 01 00 00 53 24 77 [11:20:13]Write i2c OK [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: 01 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: 01 07 00 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: 01 07 00 53 24 00 80 00 00 00 69 0E 75 [11:20:13]RasterBufferAndPrint [11:20:13]line [11:20:13]line [11:20:13]line [11:20:13]line [11:20:13]line [11:20:13]written 0, free lines is 3696 [11:20:13]process_action print_text done [11:20:13]requested_data is exist [11:20:13]produce_requested_data [11:20:13]requested_item fm.sn is exist - process it [11:20:13]wFMCommunicate request_size=4 [11:20:13]MH_SAM_APDU [11:20:13]CAPDU: 80 11 00 00 [11:20:13]Write to MH i2c: E2 08 00 5A 24 80 11 00 00 00 00 00 00 F8 [11:20:13]Write i2c OK [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 [11:20:13]MH_I2C_Read... [11:20:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:13]Read from MH i2c: E2 17 00 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 17 00 5A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 48 [11:20:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:20:13]wFMCommunicate OK [11:20:13]requested_item fd.num is exist - process it [11:20:13]SAM_PROTO_GetFieldsCounters [11:20:13]wFMCommunicate request_size=4 [11:20:13]MH_SAM_APDU [11:20:13]CAPDU: 80 13 00 00 [11:20:13]Write to MH i2c: E2 08 00 5B 24 80 13 00 00 00 00 00 00 FB [11:20:13]Write i2c OK [11:20:13]MH_I2C_Read... [11:20:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:13]Read from MH i2c: E2 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 62 00 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 62 00 5B 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 91 73 01 00 0E 04 04 00 47 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 FE [11:20:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 91 73 01 00 0E 04 04 00 47 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:20:13]wFMCommunicate OK [11:20:13]SAM_PROTO_GetFieldsCounters done [11:20:13]requested_item shift.num is exist - process it [11:20:13]requested_item shift.opened is exist - process it [11:20:13]req_shift_opened [11:20:13]FM_GetShiftState [11:20:13]SAM_PROTO_GetShiftState [11:20:13]wFMCommunicate request_size=4 [11:20:13]MH_SAM_APDU [11:20:13]CAPDU: 80 13 01 00 [11:20:13]Write to MH i2c: E2 08 00 5C 24 80 13 01 00 00 00 00 00 FD [11:20:13]Write i2c OK [11:20:13]MH_I2C_Read... [11:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:13]Read from MH i2c: E2 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 0E 00 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 0E 00 5C 24 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 71 [11:20:13]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:20:13]wFMCommunicate OK [11:20:13]SAM_PROTO_GetShiftState done [11:20:13]FM_GetShiftState done [11:20:13]req_shift_opened done [11:20:13]requested_item shift.open_date is exist - process it [11:20:13]req_shift_open_date [11:20:13]req_shift_open_date done [11:20:13]produce_requested_data done [11:20:13]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95121,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [11:20:13]process_action_free print_text [11:20:13]json_value_free [11:20:13]json_value_free done [11:20:13]process_json_proto returns [11:20:13]Send response to host [11:20:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95121,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [11:20:13]free response buf [11:20:13]execute_script done [11:20:13]execute_script returns [11:20:13]free content buf [11:20:13]Sock 8.Close socket [11:20:13]Sock 8.Thread stoped [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:06]accept exits with 9 [11:28:06]New connection [11:28:06]New thread 3066957156 created [11:28:06]Thread 3066813796 joined [11:28:06]Waiting for new connection... [11:28:06] Sock 9.Parse request [11:28:06]Sock 9.Check first char [11:28:06]Sock 9.First char is OK [11:28:06]request: POST /json_proto HTTP/1.0 [11:28:06]Method: POST [11:28:06]URL: /json_proto [11:28:06]Method is POST - this is cgi request [11:28:06]url: /json_proto [11:28:06]query_string will be loaded in cgi processing [11:28:06]execute_cgi json_proto POST (null) [11:28:06]execute_cgi path=json_proto method=POST [11:28:06]POST find Content-Length [11:28:06]Host: 172.17.62.67:8080 [11:28:06]Content-Length: 679 [11:28:06]Content-Type: application/json [11:28:06] [11:28:06]POST finish read [11:28:06]Found Content-Length = 679 [11:28:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 25.390, "sum" : 1800.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:06]execute_script... [11:28: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)196090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 25.390, "sum" : 1800.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:06]POST & json_proto [11:28:06]process_json_proto [11:28:06]json parsed OK: [11:28:06]protocol is kg_v1.0 [11:28:06]action value=close_receipt [11:28:06]process_action close_receipt [11:28:06]cmd_close_receipt [11:28:06]MH_GetDate [11:28:06]Write to MH i2c: F0 00 00 5D 24 70 [11:28:06]Write i2c OK [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: F0 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: F0 05 00 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: F0 05 00 5D 24 00 4B 3C F0 65 51 [11:28:06]GetLastDocTimeStamp 1710242410 [11:28:06]current date 1710242891 [11:28:06]FM_GetShiftState [11:28:06]SAM_PROTO_GetShiftState [11:28:06]wFMCommunicate request_size=4 [11:28:06]MH_SAM_APDU [11:28:06]CAPDU: 80 13 01 00 [11:28:06]Write to MH i2c: E2 08 00 5E 24 80 13 01 00 00 00 00 00 FF [11:28:06]Write i2c OK [11:28:06]MH_I2C_Read... [11:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:06]Read from MH i2c: E2 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 0E 00 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 0E 00 5E 24 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 73 [11:28:06]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:28:06]wFMCommunicate OK [11:28:06]SAM_PROTO_GetShiftState done [11:28:06]FM_GetShiftState done [11:28:06]opened in 1710201976 [11:28:06]opened+sec_in_day 1710288376 [11:28:06]quantity*price = 180015 [11:28:06]sum+1 = 180016 [11:28:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.17 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 52 12.03.2024 11:28 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95122 ФПД: 4287097605047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T112811&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95122&fm=4287097605047&tin=02508201610067®Number=0000000000090555&sum=180000 [11:28:07]StoreToDocumentArchive [11:28:07]shift 327 fd 95122 [11:28:07]save to /storage/0327/doc_00095122 [11:28:07]save last doc name /storage/0327/doc_00095122 to /storage/kkm_last_doc_name [11:28:07]save OK [11:28:07]Clear old archive folders... [11:28:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:28:07]tlvbuf is 01A4C700 [11:28:07]SAM_PROTO_ClearQueue [11:28:07]wFMCommunicate request_size=4 [11:28:07]MH_SAM_APDU [11:28:07]CAPDU: 80 09 00 00 [11:28:07]Write to MH i2c: E2 08 00 6B 24 80 09 00 00 00 00 00 00 01 [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:07]Read from MH i2c: E2 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 03 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 03 00 6B 24 00 90 00 03 [11:28:07]RAPDU: 90 00 [11:28:07]wFMCommunicate OK [11:28:07]SAM_PROTO_ClearQueue done [11:28:07]KKMCreateOFDPacket [11:28:07]OFDProtocolAddRootSTLVToBuf [11:28:07]FM_MakeSignedData [11:28:07]FM_MakeSignedData [11:28:07]SAM_PROTO_SignData [11:28:07]wFMCommunicate request_size=4 [11:28:07]MH_SAM_APDU [11:28:07]CAPDU: 80 0D 01 02 [11:28:07]Write to MH i2c: E2 08 00 6C 24 80 0D 01 02 00 00 00 00 09 [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:07]Read from MH i2c: E2 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 03 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 03 00 6C 24 00 90 00 04 [11:28:07]RAPDU: 90 00 [11:28:07]wFMCommunicate OK [11:28:07]wFMCommunicate request_size=255 [11:28:07]MH_SAM_APDU [11:28:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4B 3C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 92 73 01 00 35 04 06 00 03 E6 2A EE [11:28:07]Write to MH i2c: E2 02 01 6D 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4B 3C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 92 73 01 00 35 04 06 00 03 E6 2A EE 00 00 07 [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 6D 24 00 90 00 05 [11:28:08]RAPDU: 90 00 [11:28:08]wFMCommunicate OK [11:28:08]wFMCommunicate request_size=7 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 0D 02 02 02 0B B7 [11:28:08]Write to MH i2c: E2 0A 00 6E 24 80 0D 02 02 02 00 0B B7 00 00 D2 [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 6E 24 00 90 00 06 [11:28:08]RAPDU: 90 00 [11:28:08]wFMCommunicate OK [11:28:08]wFMCommunicate request_size=4 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 0D 03 02 [11:28:08]Write to MH i2c: E2 08 00 6F 24 80 0D 03 02 00 00 00 00 0E [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 0B 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 0B 00 6F 24 00 84 77 CB DF 95 A2 4E 72 90 00 AB [11:28:08]RAPDU: 84 77 CB DF 95 A2 4E 72 90 00 [11:28:08]wFMCommunicate OK [11:28:08]SAM_PROTO_SignData done [11:28:08]FM_MakeSignedData done [11:28:08]CreateOFDProtocolMessage [11:28:08]wFMCommunicate request_size=4 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 11 00 00 [11:28:08]Write to MH i2c: E2 08 00 70 24 80 11 00 00 00 00 00 00 0E [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 17 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 17 00 70 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5E [11:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:28:08]wFMCommunicate OK [11:28:08]CreateOFDProtocolMessage done [11:28:08]OFDSenderStorePacket 95122 [11:28:08]StoreOFDPacket docnum=95122 [11:28:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 1C 6E 04 01 CE 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4B 3C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 92 73 01 00 35 04 06 00 03 E6 2A EE 0B B7 84 77 CB DF 95 A2 4E 72 [11:28:08]CheckFolder [11:28:08]dirname=/storage/ofd_packets [11:28:08]CheckFolder done [11:28:08]ProducePacketName [11:28:08]name=ofd_packets/00095122 [11:28:08]NVStorageSaveData ofd_packets/00095122 [11:28:08]File name is /storage/ofd_packets/00095122 [11:28:08]Write 298 bytes [11:28:08]NVStorageSaveData done [11:28:08]OFDSenderStorePacket done [11:28:08]KKMCreateOFDPacket done [11:28:08]NVStorageSaveData kkm_last_timestamp [11:28:08]File name is /storage/kkm_last_timestamp [11:28:08]Write 4 bytes [11:28:08]NVStorageSaveData done [11:28:08]ExternCall_PrintAddStr [11:28:08]wPrintStart [11:28:08]Write to MH i2c: 01 00 00 71 24 95 [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: 01 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: 01 07 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: 01 07 00 71 24 00 80 00 00 00 FF 0F 2A [11:28:08]RasterBufferAndPrint [11:28:08]line Счет N : (1)196090 [11:28:08]line ИНН: 02508201610067 [11:28:08]line Контрольно-Кассовый Чек [11:28:08]line ПРОДАЖА [11:28:08]line ТРК (МРК, ГНК) : 51 [11:28:08]line Товар: 2710194210 [11:28:08]line ДТ-К-5 [11:28:08]line 25.390 * 70.90 [11:28:08]line = 1800.15 [11:28:08]line НДС 12% НСП 1% [11:28:08]line > о реализуемом товаре [11:28:08]line ОКРУГЛЕНИЕ: -0.15 [11:28:08]line ИТОГО: 1800.00 [11:28:08]line Внесено: 1800.00 [11:28:08]line СДАЧА: 0.00 [11:28:08]line НСП 1% : 15.93 [11:28:08]line НДС 12% : 191.17 [11:28:08]line Наличными: 1800.00 [11:28:08]line Безнал.: 0.00 [11:28:08]line Место: АЗС № 6 "Партнер Нефть" [11:28:08]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:28:08]line СНО: Общий режим [11:28:08]line Чек 52 12.03.2024 11:28 [11:28:08]line Смена: 327 ФФД: 1.0 [11:28:08]line ЗНМ: 0300000009 [11:28:08]line РНМ: 0000000000090555 [11:28:08]line Версия ККМ: 001 [11:28:08]line ФМ: 0000000000874811 [11:28:08]line ФД: 95122 [11:28:08]line ФПД: 4287097605047 [11:28:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T112811&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95122&fm=4287097605047&tin=02508201610067®Number=0000000000090555&sum=180000 [11:28:08]OFD Sender: Processing packet 95122 [packets to send 30, broken 29] [11:28:08]ProducePacketName [11:28:08]name=ofd_packets/00095122 [11:28:08]OFD Sender: To server: pG, [11:28:08]CommunicateWithHost lk.salyk.kg:30040 [11:28:08]ConnectInit lk.salyk.kg [11:28:08]written 0, free lines is 4095 [11:28:08]Connected sock=10 [11:28:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 1C 6E 04 01 CE 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4B 3C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 92 73 01 00 35 04 06 00 03 E6 2A EE 0B B7 84 77 CB DF 95 A2 4E 72 [11:28:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 FA 53 47 00 8A 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 92 73 01 00 F4 03 04 00 A1 E7 EF 65 B6 04 01 00 00 50 78 83 E0 D9 54 7D 0F [11:28:08]CommunicateWithHost err = 0 [11:28:08]CheckOFDResponse [11:28:08]1017 (14) - 77093643461234 [11:28:08]1041 (16) - 0000000000874811 [11:28:08]1040 (4) - 95122 [11:28:08]1012 (4) - 12.03.2024 05:26 [11:28:08]1206 (1) - 0 [11:28:08]OFD Sender: Remove packet 95122 [11:28:08]ProducePacketName [11:28:08]name=ofd_packets/00095122 [11:28:08]NVStorageDeleteData [11:28:09]Write to MH i2c: 01 00 00 9C 24 C0 [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 07 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 07 00 9C 24 00 80 00 00 00 45 0D 99 [11:28:09]RasterBufferAndPrint [11:28:09]line [11:28:09]line [11:28:09]line [11:28:09]line [11:28:09]line [11:28:09]written 0, free lines is 3403 [11:28:09]process_action close_receipt done [11:28:09]requested_data is exist [11:28:09]produce_requested_data [11:28:09]requested_item fm.sn is exist - process it [11:28:09]wFMCommunicate request_size=4 [11:28:09]MH_SAM_APDU [11:28:09]CAPDU: 80 11 00 00 [11:28:09]Write to MH i2c: E2 08 00 A3 24 80 11 00 00 00 00 00 00 41 [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:09]Read from MH i2c: E2 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 17 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 17 00 A3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 91 [11:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:28:09]wFMCommunicate OK [11:28:09]requested_item fd.num is exist - process it [11:28:09]SAM_PROTO_GetFieldsCounters [11:28:09]wFMCommunicate request_size=4 [11:28:09]MH_SAM_APDU [11:28:09]CAPDU: 80 13 00 00 [11:28:09]Write to MH i2c: E2 08 00 A4 24 80 13 00 00 00 00 00 00 44 [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:09]Read from MH i2c: E2 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 62 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 62 00 A4 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 92 73 01 00 0E 04 04 00 47 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 4B [11:28:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 92 73 01 00 0E 04 04 00 47 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:28:09]wFMCommunicate OK [11:28:09]SAM_PROTO_GetFieldsCounters done [11:28:09]requested_item shift.num is exist - process it [11:28:09]requested_item shift.opened is exist - process it [11:28:09]req_shift_opened [11:28:09]FM_GetShiftState [11:28:09]SAM_PROTO_GetShiftState [11:28:09]wFMCommunicate request_size=4 [11:28:09]MH_SAM_APDU [11:28:09]CAPDU: 80 13 01 00 [11:28:09]Write to MH i2c: E2 08 00 A5 24 80 13 01 00 00 00 00 00 46 [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:09]Read from MH i2c: E2 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 0E 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 0E 00 A5 24 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 BA [11:28:09]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:28:09]wFMCommunicate OK [11:28:09]SAM_PROTO_GetShiftState done [11:28:09]FM_GetShiftState done [11:28:09]req_shift_opened done [11:28:09]requested_item shift.open_date is exist - process it [11:28:09]req_shift_open_date [11:28:09]req_shift_open_date done [11:28:09]produce_requested_data done [11:28:09]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95122,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [11:28:09]process_action_free close_receipt [11:28:09]json_value_free [11:28:09]json_value_free done [11:28:09]process_json_proto returns [11:28:09]Send response to host [11:28:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95122,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [11:28:09]free response buf [11:28:09]execute_script done [11:28:09]execute_script returns [11:28:09]free content buf [11:28:09]Sock 9.Close socket [11:28:09]Sock 9.Thread stoped [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:43]accept exits with 8 [11:30:43]New connection [11:30:43]New thread 3066813796 created [11:30:43]Thread 3066957156 joined [11:30:43]Waiting for new connection... [11:30:43] Sock 8.Parse request [11:30:43]Sock 8.Check first char [11:30:43]Sock 8.First char is OK [11:30:43]request: POST /json_proto HTTP/1.0 [11:30:43]Method: POST [11:30:43]URL: /json_proto [11:30:43]Method is POST - this is cgi request [11:30:43]url: /json_proto [11:30:43]query_string will be loaded in cgi processing [11:30:43]execute_cgi json_proto POST (null) [11:30:43]execute_cgi path=json_proto method=POST [11:30:43]POST find Content-Length [11:30:43]Host: 172.17.62.67:8080 [11:30:43]Content-Length: 677 [11:30:43]Content-Type: application/json [11:30:43] [11:30:43]POST finish read [11:30:43]Found Content-Length = 677 [11:30:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:30:43]execute_script... [11:30: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)196091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:30:43]POST & json_proto [11:30:43]process_json_proto [11:30:43]json parsed OK: [11:30:43]protocol is kg_v1.0 [11:30:43]action value=close_receipt [11:30:43]process_action close_receipt [11:30:43]cmd_close_receipt [11:30:43]MH_GetDate [11:30:43]Write to MH i2c: F0 00 00 A6 24 B9 [11:30:43]Write i2c OK [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: F0 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: F0 05 00 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: F0 05 00 A6 24 00 E8 3C F0 65 37 [11:30:43]GetLastDocTimeStamp 1710242891 [11:30:43]current date 1710243048 [11:30:43]FM_GetShiftState [11:30:43]SAM_PROTO_GetShiftState [11:30:43]wFMCommunicate request_size=4 [11:30:43]MH_SAM_APDU [11:30:43]CAPDU: 80 13 01 00 [11:30:43]Write to MH i2c: E2 08 00 A7 24 80 13 01 00 00 00 00 00 48 [11:30:43]Write i2c OK [11:30:43]MH_I2C_Read... [11:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:43]Read from MH i2c: E2 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 0E 00 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 0E 00 A7 24 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 BC [11:30:43]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:30:43]wFMCommunicate OK [11:30:43]SAM_PROTO_GetShiftState done [11:30:43]FM_GetShiftState done [11:30:43]opened in 1710201976 [11:30:43]opened+sec_in_day 1710288376 [11:30:43]quantity*price = 50005 [11:30:43]sum+1 = 50007 [11:30:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 53 12.03.2024 11:30 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95123 ФПД: 54554121310984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T113048&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95123&fm=54554121310984&tin=02508201610067®Number=0000000000090555&sum=50000 [11:30:44]StoreToDocumentArchive [11:30:44]shift 327 fd 95123 [11:30:44]save to /storage/0327/doc_00095123 [11:30:44]save last doc name /storage/0327/doc_00095123 to /storage/kkm_last_doc_name [11:30:44]save OK [11:30:44]Clear old archive folders... [11:30:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:44]tlvbuf is 01A4C810 [11:30:44]SAM_PROTO_ClearQueue [11:30:44]wFMCommunicate request_size=4 [11:30:44]MH_SAM_APDU [11:30:44]CAPDU: 80 09 00 00 [11:30:44]Write to MH i2c: E2 08 00 B4 24 80 09 00 00 00 00 00 00 4A [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:44]Read from MH i2c: E2 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 03 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 03 00 B4 24 00 90 00 4C [11:30:44]RAPDU: 90 00 [11:30:44]wFMCommunicate OK [11:30:44]SAM_PROTO_ClearQueue done [11:30:44]KKMCreateOFDPacket [11:30:44]OFDProtocolAddRootSTLVToBuf [11:30:44]FM_MakeSignedData [11:30:44]FM_MakeSignedData [11:30:44]SAM_PROTO_SignData [11:30:44]wFMCommunicate request_size=4 [11:30:44]MH_SAM_APDU [11:30:44]CAPDU: 80 0D 01 02 [11:30:44]Write to MH i2c: E2 08 00 B5 24 80 0D 01 02 00 00 00 00 52 [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:44]Read from MH i2c: E2 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 03 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 03 00 B5 24 00 90 00 4D [11:30:44]RAPDU: 90 00 [11:30:44]wFMCommunicate OK [11:30:44]wFMCommunicate request_size=255 [11:30:44]MH_SAM_APDU [11:30:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 E8 3C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 93 73 01 00 35 04 06 00 31 [11:30:44]Write to MH i2c: E2 02 01 B6 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 E8 3C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 93 73 01 00 35 04 06 00 31 00 00 29 [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:44]OFD Sender: No OFD packet to send [11:30:44]Read from MH i2c: E2 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 03 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 03 00 B6 24 00 90 00 4E [11:30:44]RAPDU: 90 00 [11:30:44]wFMCommunicate OK [11:30:44]wFMCommunicate request_size=10 [11:30:44]MH_SAM_APDU [11:30:44]CAPDU: 80 0D 02 02 05 9D DF 05 93 08 [11:30:44]Write to MH i2c: E2 0D 00 B7 24 80 0D 02 02 05 00 9D DF 05 93 08 00 00 7B [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:44]Read from MH i2c: E2 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 03 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 03 00 B7 24 00 90 00 4F [11:30:44]RAPDU: 90 00 [11:30:44]wFMCommunicate OK [11:30:44]wFMCommunicate request_size=4 [11:30:44]MH_SAM_APDU [11:30:44]CAPDU: 80 0D 03 02 [11:30:44]Write to MH i2c: E2 08 00 B8 24 80 0D 03 02 00 00 00 00 57 [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:44]Read from MH i2c: E2 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 0B 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 0B 00 B8 24 00 17 F7 1E 83 3E 24 27 7D 90 00 0D [11:30:44]RAPDU: 17 F7 1E 83 3E 24 27 7D 90 00 [11:30:44]wFMCommunicate OK [11:30:44]SAM_PROTO_SignData done [11:30:44]FM_MakeSignedData done [11:30:44]CreateOFDProtocolMessage [11:30:44]wFMCommunicate request_size=4 [11:30:44]MH_SAM_APDU [11:30:44]CAPDU: 80 11 00 00 [11:30:44]Write to MH i2c: E2 08 00 B9 24 80 11 00 00 00 00 00 00 57 [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:44]Read from MH i2c: E2 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 17 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 17 00 B9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A7 [11:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:30:44]wFMCommunicate OK [11:30:44]CreateOFDProtocolMessage done [11:30:44]OFDSenderStorePacket 95123 [11:30:44]StoreOFDPacket docnum=95123 [11:30:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 89 68 07 01 84 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 E8 3C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 93 73 01 00 35 04 06 00 31 9D DF 05 93 08 17 F7 1E 83 3E 24 27 7D [11:30:44]CheckFolder [11:30:44]dirname=/storage/ofd_packets [11:30:44]CheckFolder done [11:30:44]ProducePacketName [11:30:44]name=ofd_packets/00095123 [11:30:44]NVStorageSaveData ofd_packets/00095123 [11:30:44]File name is /storage/ofd_packets/00095123 [11:30:44]Write 301 bytes [11:30:44]NVStorageSaveData done [11:30:44]OFDSenderStorePacket done [11:30:44]KKMCreateOFDPacket done [11:30:44]NVStorageSaveData kkm_last_timestamp [11:30:44]File name is /storage/kkm_last_timestamp [11:30:44]Write 4 bytes [11:30:44]NVStorageSaveData done [11:30:44]ExternCall_PrintAddStr [11:30:44]wPrintStart [11:30:44]Write to MH i2c: 01 00 00 BA 24 DE [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: 01 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: 01 07 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: 01 07 00 BA 24 00 80 00 00 00 FF 0F 73 [11:30:44]RasterBufferAndPrint [11:30:44]line Счет N : (1)196091 [11:30:44]line ИНН: 02508201610067 [11:30:44]line Контрольно-Кассовый Чек [11:30:44]line ПРОДАЖА [11:30:44]line ТРК (МРК, ГНК) : 12 [11:30:44]line Товар: 2710124130 [11:30:44]line Аи-92-К-5 [11:30:44]line 7.950 * 62.90 [11:30:44]line = 500.06 [11:30:44]line НДС 12% НСП 1% [11:30:44]line > о реализуемом товаре [11:30:44]line ОКРУГЛЕНИЕ: -0.06 [11:30:44]line ИТОГО: 500.00 [11:30:44]line Внесено: 500.00 [11:30:44]line СДАЧА: 0.00 [11:30:44]line НСП 1% : 4.42 [11:30:44]line НДС 12% : 53.10 [11:30:44]line Наличными: 500.00 [11:30:44]line Безнал.: 0.00 [11:30:44]line Место: АЗС № 6 "Партнер Нефть" [11:30:44]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:30:44]line СНО: Общий режим [11:30:44]line Чек 53 12.03.2024 11:30 [11:30:44]line Смена: 327 ФФД: 1.0 [11:30:44]line ЗНМ: 0300000009 [11:30:44]line РНМ: 0000000000090555 [11:30:44]line Версия ККМ: 001 [11:30:44]line ФМ: 0000000000874811 [11:30:44]line ФД: 95123 [11:30:44]line ФПД: 54554121310984 [11:30:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T113048&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95123&fm=54554121310984&tin=02508201610067®Number=0000000000090555&sum=50000 [11:30:45]OFD Sender: Processing packet 95123 [packets to send 30, broken 29] [11:30:45]ProducePacketName [11:30:45]name=ofd_packets/00095123 [11:30:45]OFD Sender: To server: pG, [11:30:45]CommunicateWithHost lk.salyk.kg:30040 [11:30:45]ConnectInit lk.salyk.kg [11:30:45]written 0, free lines is 4095 [11:30:45]Connected sock=10 [11:30:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 89 68 07 01 84 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 E8 3C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 93 73 01 00 35 04 06 00 31 9D DF 05 93 08 17 F7 1E 83 3E 24 27 7D [11:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 21 F6 47 00 C8 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 93 73 01 00 F4 03 04 00 3E E8 EF 65 B6 04 01 00 00 5B 50 57 6B 4A 03 33 26 [11:30:45]CommunicateWithHost err = 0 [11:30:45]CheckOFDResponse [11:30:45]1017 (14) - 77093643461234 [11:30:45]1041 (16) - 0000000000874811 [11:30:45]1040 (4) - 95123 [11:30:45]1012 (4) - 12.03.2024 05:29 [11:30:45]1206 (1) - 0 [11:30:45]OFD Sender: Remove packet 95123 [11:30:45]ProducePacketName [11:30:45]name=ofd_packets/00095123 [11:30:45]NVStorageDeleteData [11:30:45]Write to MH i2c: 01 00 00 E5 24 09 [11:30:45]Write i2c OK [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: 01 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: 01 07 00 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: 01 07 00 E5 24 00 80 00 00 00 40 0D DD [11:30:45]RasterBufferAndPrint [11:30:45]line [11:30:45]line [11:30:45]line [11:30:45]line [11:30:45]line [11:30:45]written 0, free lines is 3400 [11:30:45]process_action close_receipt done [11:30:45]requested_data is exist [11:30:45]produce_requested_data [11:30:45]requested_item fm.sn is exist - process it [11:30:45]wFMCommunicate request_size=4 [11:30:45]MH_SAM_APDU [11:30:45]CAPDU: 80 11 00 00 [11:30:45]Write to MH i2c: E2 08 00 EC 24 80 11 00 00 00 00 00 00 8A [11:30:45]Write i2c OK [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 [11:30:45]MH_I2C_Read... [11:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:45]Read from MH i2c: E2 17 00 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 17 00 EC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DA [11:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:30:45]wFMCommunicate OK [11:30:45]requested_item fd.num is exist - process it [11:30:45]SAM_PROTO_GetFieldsCounters [11:30:45]wFMCommunicate request_size=4 [11:30:45]MH_SAM_APDU [11:30:45]CAPDU: 80 13 00 00 [11:30:45]Write to MH i2c: E2 08 00 ED 24 80 13 00 00 00 00 00 00 8D [11:30:45]Write i2c OK [11:30:45]MH_I2C_Read... [11:30:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:45]Read from MH i2c: E2 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 62 00 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 62 00 ED 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 93 73 01 00 0E 04 04 00 47 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 98 [11:30:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 93 73 01 00 0E 04 04 00 47 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:30:45]wFMCommunicate OK [11:30:45]SAM_PROTO_GetFieldsCounters done [11:30:45]requested_item shift.num is exist - process it [11:30:45]requested_item shift.opened is exist - process it [11:30:45]req_shift_opened [11:30:45]FM_GetShiftState [11:30:45]SAM_PROTO_GetShiftState [11:30:45]wFMCommunicate request_size=4 [11:30:45]MH_SAM_APDU [11:30:45]CAPDU: 80 13 01 00 [11:30:45]Write to MH i2c: E2 08 00 EE 24 80 13 01 00 00 00 00 00 8F [11:30:45]Write i2c OK [11:30:45]MH_I2C_Read... [11:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:45]Read from MH i2c: E2 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 0E 00 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 0E 00 EE 24 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 03 [11:30:45]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:30:45]wFMCommunicate OK [11:30:45]SAM_PROTO_GetShiftState done [11:30:45]FM_GetShiftState done [11:30:45]req_shift_opened done [11:30:45]requested_item shift.open_date is exist - process it [11:30:45]req_shift_open_date [11:30:45]req_shift_open_date done [11:30:45]produce_requested_data done [11:30:45]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95123,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [11:30:45]process_action_free close_receipt [11:30:45]json_value_free [11:30:45]json_value_free done [11:30:45]process_json_proto returns [11:30:45]Send response to host [11:30:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95123,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [11:30:45]free response buf [11:30:45]execute_script done [11:30:45]execute_script returns [11:30:45]free content buf [11:30:45]Sock 8.Close socket [11:30:45]Sock 8.Thread stoped [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:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:27]accept exits with 9 [11:38:27]New connection [11:38:27]New thread 3066957156 created [11:38:27]Thread 3066813796 joined [11:38:27]Waiting for new connection... [11:38:27] Sock 9.Parse request [11:38:27]Sock 9.Check first char [11:38:27]Sock 9.First char is OK [11:38:27]request: POST /json_proto HTTP/1.0 [11:38:27]Method: POST [11:38:27]URL: /json_proto [11:38:27]Method is POST - this is cgi request [11:38:27]url: /json_proto [11:38:27]query_string will be loaded in cgi processing [11:38:27]execute_cgi json_proto POST (null) [11:38:27]execute_cgi path=json_proto method=POST [11:38:27]POST find Content-Length [11:38:27]Host: 172.17.62.67:8080 [11:38:27]Content-Length: 679 [11:38:27]Content-Type: application/json [11:38:27] [11:38:27]POST finish read [11:38:27]Found Content-Length = 679 [11:38:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:27]execute_script... [11:38: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)196092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:27]POST & json_proto [11:38:27]process_json_proto [11:38:27]json parsed OK: [11:38:27]protocol is kg_v1.0 [11:38:27]action value=close_receipt [11:38:27]process_action close_receipt [11:38:27]cmd_close_receipt [11:38:27]MH_GetDate [11:38:27]Write to MH i2c: F0 00 00 EF 24 02 [11:38:27]Write i2c OK [11:38:27]MH_I2C_Read... [11:38:27]Read from MH i2c: F0 [11:38:27]MH_I2C_Read... [11:38:27]Read from MH i2c: F0 05 00 [11:38:27]MH_I2C_Read... [11:38:27]Read from MH i2c: F0 05 00 EF 24 00 B8 3E F0 65 52 [11:38:27]GetLastDocTimeStamp 1710243048 [11:38:27]current date 1710243512 [11:38:27]FM_GetShiftState [11:38:27]SAM_PROTO_GetShiftState [11:38:27]wFMCommunicate request_size=4 [11:38:27]MH_SAM_APDU [11:38:27]CAPDU: 80 13 01 00 [11:38:27]Write to MH i2c: E2 08 00 F0 24 80 13 01 00 00 00 00 00 91 [11:38:27]Write i2c OK [11:38:28]MH_I2C_Read... [11:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:28]Read from MH i2c: E2 [11:38:28]MH_I2C_Read... [11:38:28]Read from MH i2c: E2 0E 00 [11:38:28]MH_I2C_Read... [11:38:28]Read from MH i2c: E2 0E 00 F0 24 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 05 [11:38:28]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:38:28]wFMCommunicate OK [11:38:28]SAM_PROTO_GetShiftState done [11:38:28]FM_GetShiftState done [11:38:28]opened in 1710201976 [11:38:28]opened+sec_in_day 1710288376 [11:38:28]quantity*price = 100039 [11:38:28]sum+1 = 100041 [11:38:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 54 12.03.2024 11:38 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95124 ФПД: 139022607611685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T113832&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95124&fm=139022607611685&tin=02508201610067®Number=0000000000090555&sum=100000 [11:38:29]StoreToDocumentArchive [11:38:29]shift 327 fd 95124 [11:38:29]save to /storage/0327/doc_00095124 [11:38:29]save last doc name /storage/0327/doc_00095124 to /storage/kkm_last_doc_name [11:38:29]save OK [11:38:29]Clear old archive folders... [11:38:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:38:29]tlvbuf is 01A71370 [11:38:29]SAM_PROTO_ClearQueue [11:38:29]wFMCommunicate request_size=4 [11:38:29]MH_SAM_APDU [11:38:29]CAPDU: 80 09 00 00 [11:38:29]Write to MH i2c: E2 08 00 FD 24 80 09 00 00 00 00 00 00 93 [11:38:29]Write i2c OK [11:38:29]MH_I2C_Read... [11:38:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:29]Read from MH i2c: E2 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 03 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 03 00 FD 24 00 90 00 95 [11:38:29]RAPDU: 90 00 [11:38:29]wFMCommunicate OK [11:38:29]SAM_PROTO_ClearQueue done [11:38:29]KKMCreateOFDPacket [11:38:29]OFDProtocolAddRootSTLVToBuf [11:38:29]FM_MakeSignedData [11:38:29]FM_MakeSignedData [11:38:29]SAM_PROTO_SignData [11:38:29]wFMCommunicate request_size=4 [11:38:29]MH_SAM_APDU [11:38:29]CAPDU: 80 0D 01 02 [11:38:29]Write to MH i2c: E2 08 00 FE 24 80 0D 01 02 00 00 00 00 9B [11:38:29]Write i2c OK [11:38:29]MH_I2C_Read... [11:38:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:29]Read from MH i2c: E2 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 03 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 03 00 FE 24 00 90 00 96 [11:38:29]RAPDU: 90 00 [11:38:29]wFMCommunicate OK [11:38:29]wFMCommunicate request_size=255 [11:38:29]MH_SAM_APDU [11:38:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B8 3E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 94 73 01 00 35 04 06 00 7E 70 B9 24 [11:38:29]Write to MH i2c: E2 02 01 FF 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B8 3E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 94 73 01 00 35 04 06 00 7E 70 B9 24 00 00 70 [11:38:29]Write i2c OK [11:38:29]MH_I2C_Read... [11:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:29]Read from MH i2c: E2 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 03 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 03 00 FF 24 00 90 00 97 [11:38:29]RAPDU: 90 00 [11:38:29]wFMCommunicate OK [11:38:29]wFMCommunicate request_size=7 [11:38:29]MH_SAM_APDU [11:38:29]CAPDU: 80 0D 02 02 02 77 25 [11:38:29]Write to MH i2c: E2 0A 00 00 25 80 0D 02 02 02 00 77 25 00 00 3F [11:38:29]Write i2c OK [11:38:29]MH_I2C_Read... [11:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:29]Read from MH i2c: E2 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 03 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 03 00 00 25 00 90 00 99 [11:38:29]RAPDU: 90 00 [11:38:29]wFMCommunicate OK [11:38:29]wFMCommunicate request_size=4 [11:38:29]MH_SAM_APDU [11:38:29]CAPDU: 80 0D 03 02 [11:38:29]Write to MH i2c: E2 08 00 01 25 80 0D 03 02 00 00 00 00 A1 [11:38:29]Write i2c OK [11:38:29]MH_I2C_Read... [11:38:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:29]Read from MH i2c: E2 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 0B 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 0B 00 01 25 00 23 F1 62 17 D7 4B 6C E2 90 00 9F [11:38:29]RAPDU: 23 F1 62 17 D7 4B 6C E2 90 00 [11:38:29]wFMCommunicate OK [11:38:29]SAM_PROTO_SignData done [11:38:29]FM_MakeSignedData done [11:38:29]CreateOFDProtocolMessage [11:38:29]wFMCommunicate request_size=4 [11:38:29]MH_SAM_APDU [11:38:29]CAPDU: 80 11 00 00 [11:38:29]Write to MH i2c: E2 08 00 02 25 80 11 00 00 00 00 00 00 A1 [11:38:29]Write i2c OK [11:38:29]MH_I2C_Read... [11:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:29]Read from MH i2c: E2 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 17 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 17 00 02 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F1 [11:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:38:29]wFMCommunicate OK [11:38:29]CreateOFDProtocolMessage done [11:38:29]OFDSenderStorePacket 95124 [11:38:29]StoreOFDPacket docnum=95124 [11:38:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 1D 2E 04 01 52 D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B8 3E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 94 73 01 00 35 04 06 00 7E 70 B9 24 77 25 23 F1 62 17 D7 4B 6C E2 [11:38:29]CheckFolder [11:38:29]dirname=/storage/ofd_packets [11:38:29]CheckFolder done [11:38:29]ProducePacketName [11:38:29]name=ofd_packets/00095124 [11:38:29]NVStorageSaveData ofd_packets/00095124 [11:38:29]File name is /storage/ofd_packets/00095124 [11:38:29]Write 298 bytes [11:38:29]NVStorageSaveData done [11:38:29]OFDSenderStorePacket done [11:38:29]KKMCreateOFDPacket done [11:38:29]NVStorageSaveData kkm_last_timestamp [11:38:29]File name is /storage/kkm_last_timestamp [11:38:29]Write 4 bytes [11:38:29]NVStorageSaveData done [11:38:29]ExternCall_PrintAddStr [11:38:29]wPrintStart [11:38:29]Write to MH i2c: 01 00 00 03 25 28 [11:38:29]Write i2c OK [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: 01 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: 01 07 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: 01 07 00 03 25 00 80 00 00 00 FF 0F BD [11:38:29]RasterBufferAndPrint [11:38:29]line Счет N : (1)196092 [11:38:29]line ИНН: 02508201610067 [11:38:29]line Контрольно-Кассовый Чек [11:38:29]line ПРОДАЖА [11:38:29]line ТРК (МРК, ГНК) : 61 [11:38:29]line Товар: 2710194210 [11:38:29]line ДТ-К-5 [11:38:29]line 14.110 * 70.90 [11:38:29]line = 1000.40 [11:38:29]line НДС 12% НСП 1% [11:38:29]line > о реализуемом товаре [11:38:29]line ОКРУГЛЕНИЕ: -0.40 [11:38:29]line ИТОГО: 1000.00 [11:38:29]line Внесено: 1000.00 [11:38:29]line СДАЧА: 0.00 [11:38:29]line НСП 1% : 8.85 [11:38:29]line НДС 12% : 106.24 [11:38:29]line Наличными: 1000.00 [11:38:29]line Безнал.: 0.00 [11:38:29]line Место: АЗС № 6 "Партнер Нефть" [11:38:29]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:38:29]line СНО: Общий режим [11:38:29]line Чек 54 12.03.2024 11:38 [11:38:29]line Смена: 327 ФФД: 1.0 [11:38:29]line ЗНМ: 0300000009 [11:38:29]line РНМ: 0000000000090555 [11:38:29]line Версия ККМ: 001 [11:38:29]line ФМ: 0000000000874811 [11:38:29]line ФД: 95124 [11:38:29]line ФПД: 139022607611685 [11:38:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T113832&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95124&fm=139022607611685&tin=02508201610067®Number=0000000000090555&sum=100000 [11:38:30]OFD Sender: Processing packet 95124 [packets to send 30, broken 29] [11:38:30]ProducePacketName [11:38:30]name=ofd_packets/00095124 [11:38:30]OFD Sender: To server: pG, [11:38:30]CommunicateWithHost lk.salyk.kg:30040 [11:38:30]ConnectInit lk.salyk.kg [11:38:30]written 0, free lines is 4095 [11:38:30]Connected sock=10 [11:38:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 1D 2E 04 01 52 D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B8 3E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 94 73 01 00 35 04 06 00 7E 70 B9 24 77 25 23 F1 62 17 D7 4B 6C E2 [11:38:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B6 34 47 00 6C C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 94 73 01 00 F4 03 04 00 0F EA EF 65 B6 04 01 00 00 27 5A 27 15 FC F0 EB E8 [11:38:30]CommunicateWithHost err = 0 [11:38:30]CheckOFDResponse [11:38:30]1017 (14) - 77093643461234 [11:38:30]1041 (16) - 0000000000874811 [11:38:30]1040 (4) - 95124 [11:38:30]1012 (4) - 12.03.2024 05:37 [11:38:30]1206 (1) - 0 [11:38:30]OFD Sender: Remove packet 95124 [11:38:30]ProducePacketName [11:38:30]name=ofd_packets/00095124 [11:38:30]NVStorageDeleteData [11:38:30]Write to MH i2c: 01 00 00 2E 25 53 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: 01 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: 01 07 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: 01 07 00 2E 25 00 80 00 00 00 43 0D 2A [11:38:30]RasterBufferAndPrint [11:38:30]line [11:38:30]line [11:38:30]line [11:38:30]line [11:38:30]line [11:38:30]written 0, free lines is 3401 [11:38:30]process_action close_receipt done [11:38:30]requested_data is exist [11:38:30]produce_requested_data [11:38:30]requested_item fm.sn is exist - process it [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 11 00 00 [11:38:30]Write to MH i2c: E2 08 00 35 25 80 11 00 00 00 00 00 00 D4 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:30]Read from MH i2c: E2 17 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 17 00 35 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 24 [11:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:38:30]wFMCommunicate OK [11:38:30]requested_item fd.num is exist - process it [11:38:30]SAM_PROTO_GetFieldsCounters [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 13 00 00 [11:38:30]Write to MH i2c: E2 08 00 36 25 80 13 00 00 00 00 00 00 D7 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 62 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 62 00 36 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 94 73 01 00 0E 04 04 00 47 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 E6 [11:38:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 94 73 01 00 0E 04 04 00 47 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:38:30]wFMCommunicate OK [11:38:30]SAM_PROTO_GetFieldsCounters done [11:38:30]requested_item shift.num is exist - process it [11:38:30]requested_item shift.opened is exist - process it [11:38:30]req_shift_opened [11:38:30]FM_GetShiftState [11:38:30]SAM_PROTO_GetShiftState [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 13 01 00 [11:38:30]Write to MH i2c: E2 08 00 37 25 80 13 01 00 00 00 00 00 D9 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:30]OFD Sender: No OFD packet to send [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 0E 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 0E 00 37 25 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 4D [11:38:30]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:38:30]wFMCommunicate OK [11:38:30]SAM_PROTO_GetShiftState done [11:38:30]FM_GetShiftState done [11:38:30]req_shift_opened done [11:38:30]requested_item shift.open_date is exist - process it [11:38:30]req_shift_open_date [11:38:30]req_shift_open_date done [11:38:30]produce_requested_data done [11:38:30]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95124,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [11:38:30]process_action_free close_receipt [11:38:30]json_value_free [11:38:30]json_value_free done [11:38:30]process_json_proto returns [11:38:30]Send response to host [11:38:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95124,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [11:38:30]free response buf [11:38:30]execute_script done [11:38:30]execute_script returns [11:38:30]free content buf [11:38:30]Sock 9.Close socket [11:38:30]Sock 9.Thread stoped [11:38:35]OFD Sender: No OFD packet to send [11:38:39]accept exits with 8 [11:38:39]New connection [11:38:39]New thread 3066813796 created [11:38:39]Thread 3066957156 joined [11:38:39]Waiting for new connection... [11:38:39] Sock 8.Parse request [11:38:39]Sock 8.Check first char [11:38:39]Sock 8.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.62.67:8080 [11:38:39]Content-Length: 735 [11:38:39]Content-Type: application/json [11:38:39] [11:38:39]POST finish read [11:38:39]Found Content-Length = 735 [11:38:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95124, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11: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_refund", "base_FD": 95124, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11: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 38 25 4C [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 05 00 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: F0 05 00 38 25 00 C4 3E F0 65 A8 [11:38:39]GetLastDocTimeStamp 1710243512 [11:38:39]current date 1710243524 [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 39 25 80 13 01 00 00 00 00 00 DB [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 39 25 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 4F [11:38:39]RAPDU: 09 00 01 78 9C EF 65 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 1710201976 [11:38:39]opened+sec_in_day 1710288376 [11:38:39]quantity*price = 100039 [11:38:39]sum+1 = 100041 [11:38:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 55 12.03.2024 11:38 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95124 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95125 ФПД: 161937363462609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T113844&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95125&fm=161937363462609&tin=02508201610067®Number=0000000000090555&sum=100000 [11:38:40]StoreToDocumentArchive [11:38:40]shift 327 fd 95125 [11:38:40]save to /storage/0327/doc_00095125 [11:38:40]save last doc name /storage/0327/doc_00095125 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=276 [11:38:40]tlvbuf is 01A05960 [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 48 25 80 09 00 00 00 00 00 00 DF [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 48 25 00 90 00 E1 [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 49 25 80 0D 01 02 00 00 00 00 E7 [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 49 25 00 90 00 E2 [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 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C4 3E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 94 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 [11:38:40]Write to MH i2c: E2 02 01 4A 25 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C4 3E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 94 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 00 00 F0 [11:38:40]Write i2c OK [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 [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 03 00 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 03 00 4A 25 00 90 00 E3 [11:38:40]RAPDU: 90 00 [11:38:40]wFMCommunicate OK [11:38:40]wFMCommunicate request_size=35 [11:38:40]MH_SAM_APDU [11:38:40]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 95 73 01 00 35 04 06 00 93 47 FB 06 69 D1 [11:38:40]Write to MH i2c: E2 26 00 4B 25 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 95 73 01 00 35 04 06 00 93 47 FB 06 69 D1 00 00 F8 [11:38:40]Write i2c OK [11:38:40]MH_I2C_Read... [11:38:40]OFD Sender: No OFD packet to send [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 4B 25 00 90 00 E4 [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 4C 25 80 0D 03 02 00 00 00 00 EC [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 4C 25 00 A3 32 40 95 1E 98 2C 9B 90 00 14 [11:38:40]RAPDU: A3 32 40 95 1E 98 2C 9B 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 4D 25 80 11 00 00 00 00 00 00 EC [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 4D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3C [11:38:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:38:40]wFMCommunicate OK [11:38:40]CreateOFDProtocolMessage done [11:38:40]OFDSenderStorePacket 95125 [11:38:40]StoreOFDPacket docnum=95125 [11:38:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 28 01 00 00 ED DD 20 01 B6 BC 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C4 3E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 94 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 95 73 01 00 35 04 06 00 93 47 FB 06 69 D1 A3 32 40 95 1E 98 2C 9B [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/00095125 [11:38:40]NVStorageSaveData ofd_packets/00095125 [11:38:40]File name is /storage/ofd_packets/00095125 [11:38:40]Write 326 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 4E 25 73 [11:38:40]Write i2c OK [11:38:40]MH_I2C_Read... [11:38:40]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 4E 25 00 80 00 00 00 FF 0F 08 [11:38:41]RasterBufferAndPrint [11:38:41]line Счет N : (1)196092 [11:38:41]line ИНН: 02508201610067 [11:38:41]line Контрольно-Кассовый Чек [11:38:41]line ВОЗВРАТ ПРОДАЖИ [11:38:41]line ТРК (МРК, ГНК) : 61 [11:38:41]line Товар: 2710194210 [11:38:41]line ДТ-К-5 [11:38:41]line 14.110 * 70.90 [11:38:41]line = 1000.40 [11:38:41]line НДС 12% НСП 1% [11:38:41]line > о реализуемом товаре [11:38:41]line ОКРУГЛЕНИЕ: -0.40 [11:38:41]line ИТОГО: 1000.00 [11:38:41]line НСП 1% : 8.85 [11:38:41]line НДС 12% : 106.24 [11:38:41]line Наличными: 1000.00 [11:38:41]line Безнал.: 0.00 [11:38:41]line Место: АЗС № 6 "Партнер Нефть" [11:38:41]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:38:41]line СНО: Общий режим [11:38:41]line Чек 55 12.03.2024 11:38 [11:38:41]line Смена: 327 ФФД: 1.0 [11:38:41]line ЗНМ: 0300000009 [11:38:41]line РНМ: 0000000000090555 [11:38:41]line Версия ККМ: 001 [11:38:41]line ФД осн.: 95124 [11:38:41]line ФМ осн.: 0000000000874811 [11:38:41]line ФМ: 0000000000874811 [11:38:41]line ФД: 95125 [11:38:41]line ФПД: 161937363462609 [11:38:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T113844&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95125&fm=161937363462609&tin=02508201610067®Number=0000000000090555&sum=100000 [11:38:41]written 0, free lines is 4095 [11:38:41]OFD Sender: Processing packet 95125 [packets to send 30, broken 29] [11:38:41]ProducePacketName [11:38:41]name=ofd_packets/00095125 [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]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 38 37 34 38 31 31 28 01 00 00 ED DD 20 01 B6 BC 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C4 3E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 94 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 95 73 01 00 35 04 06 00 93 47 FB 06 69 D1 A3 32 40 95 1E 98 2C 9B [11:38:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B3 29 47 00 CF 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 95 73 01 00 F4 03 04 00 1A EA EF 65 B6 04 01 00 00 39 F8 86 34 D1 7B 90 79 [11:38:41]CommunicateWithHost err = 0 [11:38:41]CheckOFDResponse [11:38:41]1017 (14) - 77093643461234 [11:38:41]1041 (16) - 0000000000874811 [11:38:41]1040 (4) - 95125 [11:38:41]1012 (4) - 12.03.2024 05:37 [11:38:41]1206 (1) - 0 [11:38:41]OFD Sender: Remove packet 95125 [11:38:41]ProducePacketName [11:38:41]name=ofd_packets/00095125 [11:38:41]NVStorageDeleteData [11:38:41]Write to MH i2c: 01 00 00 79 25 9E [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 79 25 00 80 00 00 00 60 0D 92 [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 3434 [11:38:41]process_action close_receipt done [11:38:41]requested_data is exist [11:38:41]produce_requested_data [11:38:41]requested_item fm.sn is exist - process it [11:38:41]wFMCommunicate request_size=4 [11:38:41]MH_SAM_APDU [11:38:41]CAPDU: 80 11 00 00 [11:38:41]Write to MH i2c: E2 08 00 80 25 80 11 00 00 00 00 00 00 1F [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:41]Read from MH i2c: E2 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 17 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 17 00 80 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6F [11:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:38:41]wFMCommunicate OK [11:38:41]requested_item fd.num is exist - process it [11:38:41]SAM_PROTO_GetFieldsCounters [11:38:41]wFMCommunicate request_size=4 [11:38:41]MH_SAM_APDU [11:38:41]CAPDU: 80 13 00 00 [11:38:41]Write to MH i2c: E2 08 00 81 25 80 13 00 00 00 00 00 00 22 [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:41]Read from MH i2c: E2 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 62 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 62 00 81 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 95 73 01 00 0E 04 04 00 47 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 35 [11:38:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 95 73 01 00 0E 04 04 00 47 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:38:41]wFMCommunicate OK [11:38:41]SAM_PROTO_GetFieldsCounters done [11:38:41]requested_item shift.num is exist - process it [11:38:41]requested_item shift.opened is exist - process it [11:38:41]req_shift_opened [11:38:41]FM_GetShiftState [11:38:41]SAM_PROTO_GetShiftState [11:38:41]wFMCommunicate request_size=4 [11:38:41]MH_SAM_APDU [11:38:41]CAPDU: 80 13 01 00 [11:38:41]Write to MH i2c: E2 08 00 82 25 80 13 01 00 00 00 00 00 24 [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:41]Read from MH i2c: E2 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 0E 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 0E 00 82 25 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 98 [11:38:41]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:38:41]wFMCommunicate OK [11:38:41]SAM_PROTO_GetShiftState done [11:38:41]FM_GetShiftState done [11:38:41]req_shift_opened done [11:38:41]requested_item shift.open_date is exist - process it [11:38:41]req_shift_open_date [11:38:41]req_shift_open_date done [11:38:41]produce_requested_data done [11:38:41]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95125,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [11:38:41]process_action_free close_receipt [11:38:41]json_value_free [11:38:41]json_value_free done [11:38:41]process_json_proto returns [11:38:41]Send response to host [11:38:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95125,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [11:38:41]free response buf [11:38:41]execute_script done [11:38:41]execute_script returns [11:38:41]free content buf [11:38:41]Sock 8.Close socket [11:38:41]Sock 8.Thread stoped [11:38:41]OFD Sender: No OFD packet to send [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:32]accept exits with 9 [11:39:32]New connection [11:39:32]New thread 3066957156 created [11:39:32]Thread 3066813796 joined [11:39:32]Waiting for new connection... [11:39:32] Sock 9.Parse request [11:39:32]Sock 9.Check first char [11:39:32]Sock 9.First char is OK [11:39:32]request: POST /json_proto HTTP/1.0 [11:39:32]Method: POST [11:39:32]URL: /json_proto [11:39:32]Method is POST - this is cgi request [11:39:32]url: /json_proto [11:39:32]query_string will be loaded in cgi processing [11:39:32]execute_cgi json_proto POST (null) [11:39:32]execute_cgi path=json_proto method=POST [11:39:32]POST find Content-Length [11:39:32]Host: 172.17.62.67:8080 [11:39:32]Content-Length: 1197 [11:39:32]Content-Type: application/json [11:39:32] [11:39:32]POST finish read [11:39:32]Found Content-Length = 1197 [11:39:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196093\u000A12.03.2024 11:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.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\u000A3699915\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:32]execute_script... [11:39:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196093\u000A12.03.2024 11:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.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\u000A3699915\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:32]POST & json_proto [11:39:32]process_json_proto [11:39:32]json parsed OK: [11:39:32]protocol is kg_v1.0 [11:39:32]action value=print_text [11:39:32]process_action print_text [11:39:32]cmd_print_text [11:39:32]ExternCall_PrintAddStr [11:39:32]wPrintStart [11:39:32]Write to MH i2c: 01 00 00 83 25 A8 [11:39:32]Write i2c OK [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: 01 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: 01 07 00 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: 01 07 00 83 25 00 80 00 00 00 FF 0F 3D [11:39:32]RasterBufferAndPrint [11:39:32]line *****ТОВАРНЫЙ ЧЕК***** [11:39:32]line АЗС 6 [11:39:32]line Партнер нефть [11:39:32]line 02508201610067 [11:39:32]line Кассир : Мыктыбекова И. [11:39:32]line Счет N : (1)196093 [11:39:32]line 12.03.2024 11:33 [11:39:32]line ПРОДАЖА [11:39:32]line ТРК (МРК, ГНК): 61 [11:39:32]line Вид ГСМ : 2710194210 [11:39:32]line ДТ-К-5 [11:39:32]line 10.000 x 70.90 [11:39:32]line ИТОГ: 709.00 [11:39:32]line Тип оплаты: Талоны: Партнер нефть [11:39:32]line 3699915 [11:39:32]line ______________________ [11:39:32]line (подпись) [11:39:32]written 0, free lines is 4095 [11:39:32]Write to MH i2c: 01 00 00 97 25 BC [11:39:32]Write i2c OK [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: 01 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: 01 07 00 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: 01 07 00 97 25 00 80 00 00 00 61 0E B2 [11:39:32]RasterBufferAndPrint [11:39:32]line [11:39:32]line [11:39:32]line [11:39:32]line [11:39:32]line [11:39:32]written 0, free lines is 3685 [11:39:32]process_action print_text done [11:39:32]requested_data is exist [11:39:32]produce_requested_data [11:39:32]requested_item fm.sn is exist - process it [11:39:32]wFMCommunicate request_size=4 [11:39:32]MH_SAM_APDU [11:39:32]CAPDU: 80 11 00 00 [11:39:32]Write to MH i2c: E2 08 00 9E 25 80 11 00 00 00 00 00 00 3D [11:39:32]Write i2c OK [11:39:32]MH_I2C_Read... [11:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:32]Read from MH i2c: E2 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: E2 17 00 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: E2 17 00 9E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8D [11:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:39:32]wFMCommunicate OK [11:39:32]requested_item fd.num is exist - process it [11:39:32]SAM_PROTO_GetFieldsCounters [11:39:32]wFMCommunicate request_size=4 [11:39:32]MH_SAM_APDU [11:39:32]CAPDU: 80 13 00 00 [11:39:32]Write to MH i2c: E2 08 00 9F 25 80 13 00 00 00 00 00 00 40 [11:39:32]Write i2c OK [11:39:32]MH_I2C_Read... [11:39:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:32]Read from MH i2c: E2 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: E2 62 00 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: E2 62 00 9F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 95 73 01 00 0E 04 04 00 47 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 53 [11:39:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 95 73 01 00 0E 04 04 00 47 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:39:32]wFMCommunicate OK [11:39:32]SAM_PROTO_GetFieldsCounters done [11:39:32]requested_item shift.num is exist - process it [11:39:32]requested_item shift.opened is exist - process it [11:39:32]req_shift_opened [11:39:32]FM_GetShiftState [11:39:32]SAM_PROTO_GetShiftState [11:39:32]wFMCommunicate request_size=4 [11:39:32]MH_SAM_APDU [11:39:32]CAPDU: 80 13 01 00 [11:39:32]Write to MH i2c: E2 08 00 A0 25 80 13 01 00 00 00 00 00 42 [11:39:32]Write i2c OK [11:39:32]MH_I2C_Read... [11:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:32]Read from MH i2c: E2 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: E2 0E 00 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: E2 0E 00 A0 25 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B6 [11:39:32]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:39:32]wFMCommunicate OK [11:39:32]SAM_PROTO_GetShiftState done [11:39:32]FM_GetShiftState done [11:39:32]req_shift_opened done [11:39:32]requested_item shift.open_date is exist - process it [11:39:32]req_shift_open_date [11:39:32]req_shift_open_date done [11:39:32]produce_requested_data done [11:39:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95125,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [11:39:32]process_action_free print_text [11:39:32]json_value_free [11:39:32]json_value_free done [11:39:32]process_json_proto returns [11:39:32]Send response to host [11:39:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95125,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [11:39:32]free response buf [11:39:32]execute_script done [11:39:32]execute_script returns [11:39:32]free content buf [11:39:32]Sock 9.Close socket [11:39:32]Sock 9.Thread stoped [11:39:36]OFD Sender: No OFD packet to send [11:39:38]accept exits with 8 [11:39:38]New connection [11:39:38]New thread 3066813796 created [11:39:38]Thread 3066957156 joined [11:39:38]Waiting for new connection... [11:39:38] Sock 8.Parse request [11:39:38]Sock 8.Check first char [11:39:38]Sock 8.First char is OK [11:39:38]request: POST /json_proto HTTP/1.0 [11:39:38]Method: POST [11:39:38]URL: /json_proto [11:39:38]Method is POST - this is cgi request [11:39:38]url: /json_proto [11:39:38]query_string will be loaded in cgi processing [11:39:38]execute_cgi json_proto POST (null) [11:39:38]execute_cgi path=json_proto method=POST [11:39:38]POST find Content-Length [11:39:38]Host: 172.17.62.67:8080 [11:39:38]Content-Length: 674 [11:39:38]Content-Type: application/json [11:39:38] [11:39:38]POST finish read [11:39:38]Found Content-Length = 674 [11:39:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 4.110, "sum" : 291.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 291.00, "total" : 291.00, "payments": [ { "type": 0, "sum" : 291.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:38]execute_script... [11:39:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 4.110, "sum" : 291.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 291.00, "total" : 291.00, "payments": [ { "type": 0, "sum" : 291.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:38]POST & json_proto [11:39:38]process_json_proto [11:39:38]json parsed OK: [11:39:38]protocol is kg_v1.0 [11:39:38]action value=close_receipt [11:39:38]process_action close_receipt [11:39:38]cmd_close_receipt [11:39:38]MH_GetDate [11:39:38]Write to MH i2c: F0 00 00 A1 25 B5 [11:39:38]Write i2c OK [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: F0 [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: F0 05 00 [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: F0 05 00 A1 25 00 FF 3E F0 65 4C [11:39:38]GetLastDocTimeStamp 1710243524 [11:39:38]current date 1710243583 [11:39:38]FM_GetShiftState [11:39:38]SAM_PROTO_GetShiftState [11:39:38]wFMCommunicate request_size=4 [11:39:38]MH_SAM_APDU [11:39:38]CAPDU: 80 13 01 00 [11:39:38]Write to MH i2c: E2 08 00 A2 25 80 13 01 00 00 00 00 00 44 [11:39:38]Write i2c OK [11:39:38]MH_I2C_Read... [11:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:38]Read from MH i2c: E2 [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: E2 0E 00 [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: E2 0E 00 A2 25 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B8 [11:39:38]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:39:38]wFMCommunicate OK [11:39:38]SAM_PROTO_GetShiftState done [11:39:38]FM_GetShiftState done [11:39:38]opened in 1710201976 [11:39:38]opened+sec_in_day 1710288376 [11:39:38]quantity*price = 29139 [11:39:38]sum+1 = 29141 [11:39:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 291.00 Внесено: 291.00 СДАЧА: 0.00 НСП 1% : 2.58 НДС 12% : 30.94 Наличными: 291.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 56 12.03.2024 11:39 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95126 ФПД: 65691064428275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T113943&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95126&fm=65691064428275&tin=02508201610067®Number=0000000000090555&sum=29100 [11:39:39]StoreToDocumentArchive [11:39:39]shift 327 fd 95126 [11:39:39]save to /storage/0327/doc_00095126 [11:39:39]save last doc name /storage/0327/doc_00095126 to /storage/kkm_last_doc_name [11:39:39]save OK [11:39:39]Clear old archive folders... [11:39:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:39:39]tlvbuf is 01A4C430 [11:39:39]SAM_PROTO_ClearQueue [11:39:39]wFMCommunicate request_size=4 [11:39:39]MH_SAM_APDU [11:39:39]CAPDU: 80 09 00 00 [11:39:39]Write to MH i2c: E2 08 00 AF 25 80 09 00 00 00 00 00 00 46 [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:39]Read from MH i2c: E2 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 03 00 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 03 00 AF 25 00 90 00 48 [11:39:39]RAPDU: 90 00 [11:39:39]wFMCommunicate OK [11:39:39]SAM_PROTO_ClearQueue done [11:39:39]KKMCreateOFDPacket [11:39:39]OFDProtocolAddRootSTLVToBuf [11:39:39]FM_MakeSignedData [11:39:39]FM_MakeSignedData [11:39:39]SAM_PROTO_SignData [11:39:39]wFMCommunicate request_size=4 [11:39:39]MH_SAM_APDU [11:39:39]CAPDU: 80 0D 01 02 [11:39:39]Write to MH i2c: E2 08 00 B0 25 80 0D 01 02 00 00 00 00 4E [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:39]Read from MH i2c: E2 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 03 00 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 03 00 B0 25 00 90 00 49 [11:39:39]RAPDU: 90 00 [11:39:39]wFMCommunicate OK [11:39:39]wFMCommunicate request_size=255 [11:39:39]MH_SAM_APDU [11:39:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 10 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D4 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 0C 00 00 00 00 07 04 06 00 AC 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 FF 3E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 96 73 01 00 35 04 06 00 3B BE E4 8F [11:39:39]Write to MH i2c: E2 02 01 B1 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 10 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D4 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 0C 00 00 00 00 07 04 06 00 AC 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 FF 3E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 96 73 01 00 35 04 06 00 3B BE E4 8F 00 00 BE [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:39]Read from MH i2c: E2 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 03 00 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 03 00 B1 25 00 90 00 4A [11:39:39]RAPDU: 90 00 [11:39:39]wFMCommunicate OK [11:39:39]wFMCommunicate request_size=7 [11:39:39]MH_SAM_APDU [11:39:39]CAPDU: 80 0D 02 02 02 66 F3 [11:39:39]Write to MH i2c: E2 0A 00 B2 25 80 0D 02 02 02 00 66 F3 00 00 AE [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:39]Read from MH i2c: E2 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 03 00 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 03 00 B2 25 00 90 00 4B [11:39:39]RAPDU: 90 00 [11:39:39]wFMCommunicate OK [11:39:39]wFMCommunicate request_size=4 [11:39:39]MH_SAM_APDU [11:39:39]CAPDU: 80 0D 03 02 [11:39:39]Write to MH i2c: E2 08 00 B3 25 80 0D 03 02 00 00 00 00 53 [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:39]Read from MH i2c: E2 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 0B 00 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 0B 00 B3 25 00 CB 71 CB 6E EA C2 9F 77 90 00 8B [11:39:39]RAPDU: CB 71 CB 6E EA C2 9F 77 90 00 [11:39:39]wFMCommunicate OK [11:39:39]SAM_PROTO_SignData done [11:39:39]FM_MakeSignedData done [11:39:39]CreateOFDProtocolMessage [11:39:39]wFMCommunicate request_size=4 [11:39:39]MH_SAM_APDU [11:39:39]CAPDU: 80 11 00 00 [11:39:39]Write to MH i2c: E2 08 00 B4 25 80 11 00 00 00 00 00 00 53 [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:39]Read from MH i2c: E2 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 17 00 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 17 00 B4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A3 [11:39:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:39:39]wFMCommunicate OK [11:39:39]CreateOFDProtocolMessage done [11:39:39]OFDSenderStorePacket 95126 [11:39:39]StoreOFDPacket docnum=95126 [11:39:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 1D 3F 04 01 75 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 10 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D4 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 0C 00 00 00 00 07 04 06 00 AC 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 FF 3E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 96 73 01 00 35 04 06 00 3B BE E4 8F 66 F3 CB 71 CB 6E EA C2 9F 77 [11:39:39]CheckFolder [11:39:39]dirname=/storage/ofd_packets [11:39:39]CheckFolder done [11:39:39]ProducePacketName [11:39:39]name=ofd_packets/00095126 [11:39:39]NVStorageSaveData ofd_packets/00095126 [11:39:39]File name is /storage/ofd_packets/00095126 [11:39:39]Write 298 bytes [11:39:39]NVStorageSaveData done [11:39:39]OFDSenderStorePacket done [11:39:39]KKMCreateOFDPacket done [11:39:39]NVStorageSaveData kkm_last_timestamp [11:39:39]File name is /storage/kkm_last_timestamp [11:39:39]Write 4 bytes [11:39:39]NVStorageSaveData done [11:39:39]ExternCall_PrintAddStr [11:39:39]wPrintStart [11:39:39]Write to MH i2c: 01 00 00 B5 25 DA [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: 01 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: 01 07 00 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: 01 07 00 B5 25 00 80 00 00 00 FF 0F 6F [11:39:39]RasterBufferAndPrint [11:39:39]line Счет N : (1)196094 [11:39:39]line ИНН: 02508201610067 [11:39:39]line Контрольно-Кассовый Чек [11:39:39]line ПРОДАЖА [11:39:39]line ТРК (МРК, ГНК) : 61 [11:39:39]line Товар: 2710194210 [11:39:39]line ДТ-К-5 [11:39:39]line 4.110 * 70.90 [11:39:40]line = 291.40 [11:39:40]line НДС 12% НСП 1% [11:39:40]line > о реализуемом товаре [11:39:40]line ОКРУГЛЕНИЕ: -0.40 [11:39:40]line ИТОГО: 291.00 [11:39:40]line Внесено: 291.00 [11:39:40]line СДАЧА: 0.00 [11:39:40]line НСП 1% : 2.58 [11:39:40]line НДС 12% : 30.94 [11:39:40]line Наличными: 291.00 [11:39:40]line Безнал.: 0.00 [11:39:40]line Место: АЗС № 6 "Партнер Нефть" [11:39:40]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:39:40]line СНО: Общий режим [11:39:40]line Чек 56 12.03.2024 11:39 [11:39:40]line Смена: 327 ФФД: 1.0 [11:39:40]line ЗНМ: 0300000009 [11:39:40]line РНМ: 0000000000090555 [11:39:40]line Версия ККМ: 001 [11:39:40]line ФМ: 0000000000874811 [11:39:40]line ФД: 95126 [11:39:40]line ФПД: 65691064428275 [11:39:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T113943&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95126&fm=65691064428275&tin=02508201610067®Number=0000000000090555&sum=29100 [11:39:40]OFD Sender: Processing packet 95126 [packets to send 30, broken 29] [11:39:40]ProducePacketName [11:39:40]name=ofd_packets/00095126 [11:39:40]OFD Sender: To server: pG, [11:39:40]CommunicateWithHost lk.salyk.kg:30040 [11:39:40]ConnectInit lk.salyk.kg [11:39:40]written 0, free lines is 4095 [11:39:40]Connected sock=10 [11:39:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 1D 3F 04 01 75 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 10 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D4 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 0C 00 00 00 00 07 04 06 00 AC 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 FF 3E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 96 73 01 00 35 04 06 00 3B BE E4 8F 66 F3 CB 71 CB 6E EA C2 9F 77 [11:39:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 01 E5 47 00 92 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 96 73 01 00 F4 03 04 00 55 EA EF 65 B6 04 01 00 00 67 DA 58 35 59 90 A5 F7 [11:39:40]CommunicateWithHost err = 0 [11:39:40]CheckOFDResponse [11:39:40]1017 (14) - 77093643461234 [11:39:40]1041 (16) - 0000000000874811 [11:39:40]1040 (4) - 95126 [11:39:40]1012 (4) - 12.03.2024 05:38 [11:39:40]1206 (1) - 0 [11:39:40]OFD Sender: Remove packet 95126 [11:39:40]ProducePacketName [11:39:40]name=ofd_packets/00095126 [11:39:40]NVStorageDeleteData [11:39:40]Write to MH i2c: 01 00 00 E0 25 05 [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: 01 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: 01 07 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: 01 07 00 E0 25 00 80 00 00 00 52 0D EB [11:39:40]RasterBufferAndPrint [11:39:40]line [11:39:40]line [11:39:40]line [11:39:40]line [11:39:40]line [11:39:40]written 0, free lines is 3415 [11:39:40]process_action close_receipt done [11:39:40]requested_data is exist [11:39:40]produce_requested_data [11:39:40]requested_item fm.sn is exist - process it [11:39:40]wFMCommunicate request_size=4 [11:39:40]MH_SAM_APDU [11:39:40]CAPDU: 80 11 00 00 [11:39:40]Write to MH i2c: E2 08 00 E7 25 80 11 00 00 00 00 00 00 86 [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 17 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 17 00 E7 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D6 [11:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:39:40]wFMCommunicate OK [11:39:40]requested_item fd.num is exist - process it [11:39:40]SAM_PROTO_GetFieldsCounters [11:39:40]wFMCommunicate request_size=4 [11:39:40]MH_SAM_APDU [11:39:40]CAPDU: 80 13 00 00 [11:39:40]Write to MH i2c: E2 08 00 E8 25 80 13 00 00 00 00 00 00 89 [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 62 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 62 00 E8 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 96 73 01 00 0E 04 04 00 47 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 A0 [11:39:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 96 73 01 00 0E 04 04 00 47 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:39:40]wFMCommunicate OK [11:39:40]SAM_PROTO_GetFieldsCounters done [11:39:40]requested_item shift.num is exist - process it [11:39:40]requested_item shift.opened is exist - process it [11:39:40]req_shift_opened [11:39:40]FM_GetShiftState [11:39:40]SAM_PROTO_GetShiftState [11:39:40]wFMCommunicate request_size=4 [11:39:40]MH_SAM_APDU [11:39:40]CAPDU: 80 13 01 00 [11:39:40]Write to MH i2c: E2 08 00 E9 25 80 13 01 00 00 00 00 00 8B [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 0E 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 0E 00 E9 25 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 FF [11:39:40]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:39:40]wFMCommunicate OK [11:39:40]SAM_PROTO_GetShiftState done [11:39:40]FM_GetShiftState done [11:39:40]req_shift_opened done [11:39:40]requested_item shift.open_date is exist - process it [11:39:40]req_shift_open_date [11:39:40]req_shift_open_date done [11:39:40]produce_requested_data done [11:39:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95126,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [11:39:40]process_action_free close_receipt [11:39:40]json_value_free [11:39:40]json_value_free done [11:39:40]process_json_proto returns [11:39:40]Send response to host [11:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95126,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [11:39:40]free response buf [11:39:40]execute_script done [11:39:40]execute_script returns [11:39:40]free content buf [11:39:40]Sock 8.Close socket [11:39:40]Sock 8.Thread stoped [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:22]accept exits with 9 [11:40:22]New connection [11:40:22]New thread 3066957156 created [11:40:22]Thread 3066813796 joined [11:40:22]Waiting for new connection... [11:40:22] Sock 9.Parse request [11:40:22]Sock 9.Check first char [11:40:22]Sock 9.First char is OK [11:40:22]request: POST /json_proto HTTP/1.0 [11:40:22]Method: POST [11:40:22]URL: /json_proto [11:40:22]Method is POST - this is cgi request [11:40:22]url: /json_proto [11:40:22]query_string will be loaded in cgi processing [11:40:22]execute_cgi json_proto POST (null) [11:40:22]execute_cgi path=json_proto method=POST [11:40:22]POST find Content-Length [11:40:22]Host: 172.17.62.67:8080 [11:40:22]Content-Length: 674 [11:40:22]Content-Type: application/json [11:40:22] [11:40:22]POST finish read [11:40:22]Found Content-Length = 674 [11:40:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 4.110, "sum" : 291.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 291.00, "total" : 291.00, "payments": [ { "type": 0, "sum" : 291.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:22]execute_script... [11:40: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)196095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 4.110, "sum" : 291.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 291.00, "total" : 291.00, "payments": [ { "type": 0, "sum" : 291.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:22]POST & json_proto [11:40:22]process_json_proto [11:40:22]json parsed OK: [11:40:22]protocol is kg_v1.0 [11:40:22]action value=close_receipt [11:40:22]process_action close_receipt [11:40:22]cmd_close_receipt [11:40:22]MH_GetDate [11:40:22]Write to MH i2c: F0 00 00 EA 25 FE [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: F0 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: F0 05 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: F0 05 00 EA 25 00 2B 3F F0 65 C2 [11:40:22]GetLastDocTimeStamp 1710243583 [11:40:22]current date 1710243627 [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 EB 25 80 13 01 00 00 00 00 00 8D [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 EB 25 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 01 [11:40:22]RAPDU: 09 00 01 78 9C EF 65 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]opened in 1710201976 [11:40:22]opened+sec_in_day 1710288376 [11:40:22]quantity*price = 29139 [11:40:22]sum+1 = 29141 [11:40:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 291.00 Внесено: 291.00 СДАЧА: 0.00 НСП 1% : 2.58 НДС 12% : 30.94 Наличными: 291.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 57 12.03.2024 11:40 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95127 ФПД: 221355686145911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T114027&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95127&fm=221355686145911&tin=02508201610067®Number=0000000000090555&sum=29100 [11:40:23]StoreToDocumentArchive [11:40:23]shift 327 fd 95127 [11:40:23]save to /storage/0327/doc_00095127 [11:40:23]save last doc name /storage/0327/doc_00095127 to /storage/kkm_last_doc_name [11:40:23]save OK [11:40:23]Clear old archive folders... [11:40:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:40:23]tlvbuf is 01A8DB70 [11:40:23]SAM_PROTO_ClearQueue [11:40:23]wFMCommunicate request_size=4 [11:40:23]MH_SAM_APDU [11:40:23]CAPDU: 80 09 00 00 [11:40:23]Write to MH i2c: E2 08 00 F8 25 80 09 00 00 00 00 00 00 8F [11:40:23]Write i2c OK [11:40:23]MH_I2C_Read... [11:40:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:23]Read from MH i2c: E2 [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: E2 03 00 [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: E2 03 00 F8 25 00 90 00 91 [11:40:23]RAPDU: 90 00 [11:40:23]wFMCommunicate OK [11:40:23]SAM_PROTO_ClearQueue done [11:40:23]KKMCreateOFDPacket [11:40:23]OFDProtocolAddRootSTLVToBuf [11:40:23]FM_MakeSignedData [11:40:23]FM_MakeSignedData [11:40:23]SAM_PROTO_SignData [11:40:23]wFMCommunicate request_size=4 [11:40:23]MH_SAM_APDU [11:40:23]CAPDU: 80 0D 01 02 [11:40:23]Write to MH i2c: E2 08 00 F9 25 80 0D 01 02 00 00 00 00 97 [11:40:23]Write i2c OK [11:40:23]MH_I2C_Read... [11:40:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:23]Read from MH i2c: E2 [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: E2 03 00 [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: E2 03 00 F9 25 00 90 00 92 [11:40:23]RAPDU: 90 00 [11:40:23]wFMCommunicate OK [11:40:23]wFMCommunicate request_size=255 [11:40:23]MH_SAM_APDU [11:40:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 10 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D4 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 0C 00 00 00 00 07 04 06 00 AC 71 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 2B 3F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 97 73 01 00 35 04 06 00 C9 52 63 0A [11:40:23]Write to MH i2c: E2 02 01 FA 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 10 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D4 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 0C 00 00 00 00 07 04 06 00 AC 71 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 2B 3F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 97 73 01 00 35 04 06 00 C9 52 63 0A 00 00 52 [11:40:23]Write i2c OK [11:40:23]MH_I2C_Read... [11:40:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:24]Read from MH i2c: E2 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 03 00 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 03 00 FA 25 00 90 00 93 [11:40:24]RAPDU: 90 00 [11:40:24]wFMCommunicate OK [11:40:24]wFMCommunicate request_size=7 [11:40:24]MH_SAM_APDU [11:40:24]CAPDU: 80 0D 02 02 02 AF 77 [11:40:24]Write to MH i2c: E2 0A 00 FB 25 80 0D 02 02 02 00 AF 77 00 00 C4 [11:40:24]Write i2c OK [11:40:24]MH_I2C_Read... [11:40:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:24]Read from MH i2c: E2 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 03 00 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 03 00 FB 25 00 90 00 94 [11:40:24]RAPDU: 90 00 [11:40:24]wFMCommunicate OK [11:40:24]wFMCommunicate request_size=4 [11:40:24]MH_SAM_APDU [11:40:24]CAPDU: 80 0D 03 02 [11:40:24]Write to MH i2c: E2 08 00 FC 25 80 0D 03 02 00 00 00 00 9C [11:40:24]Write i2c OK [11:40:24]MH_I2C_Read... [11:40:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:24]Read from MH i2c: E2 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 0B 00 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 0B 00 FC 25 00 09 DE CD FE 2E 89 6D 3C 90 00 AF [11:40:24]RAPDU: 09 DE CD FE 2E 89 6D 3C 90 00 [11:40:24]wFMCommunicate OK [11:40:24]SAM_PROTO_SignData done [11:40:24]FM_MakeSignedData done [11:40:24]CreateOFDProtocolMessage [11:40:24]wFMCommunicate request_size=4 [11:40:24]MH_SAM_APDU [11:40:24]CAPDU: 80 11 00 00 [11:40:24]Write to MH i2c: E2 08 00 FD 25 80 11 00 00 00 00 00 00 9C [11:40:24]Write i2c OK [11:40:24]MH_I2C_Read... [11:40:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:24]Read from MH i2c: E2 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 17 00 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 17 00 FD 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EC [11:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:40:24]wFMCommunicate OK [11:40:24]CreateOFDProtocolMessage done [11:40:24]OFDSenderStorePacket 95127 [11:40:24]StoreOFDPacket docnum=95127 [11:40:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 D6 AE 04 01 BB AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 10 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D4 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 0C 00 00 00 00 07 04 06 00 AC 71 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 2B 3F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 97 73 01 00 35 04 06 00 C9 52 63 0A AF 77 09 DE CD FE 2E 89 6D 3C [11:40:24]CheckFolder [11:40:24]dirname=/storage/ofd_packets [11:40:24]CheckFolder done [11:40:24]ProducePacketName [11:40:24]name=ofd_packets/00095127 [11:40:24]NVStorageSaveData ofd_packets/00095127 [11:40:24]File name is /storage/ofd_packets/00095127 [11:40:24]Write 298 bytes [11:40:24]NVStorageSaveData done [11:40:24]OFDSenderStorePacket done [11:40:24]KKMCreateOFDPacket done [11:40:24]NVStorageSaveData kkm_last_timestamp [11:40:24]File name is /storage/kkm_last_timestamp [11:40:24]Write 4 bytes [11:40:24]NVStorageSaveData done [11:40:24]OFD Sender: Processing packet 95127 [packets to send 30, broken 29] [11:40:24]ProducePacketName [11:40:24]name=ofd_packets/00095127 [11:40:24]OFD Sender: To server: pG, [11:40:24]CommunicateWithHost lk.salyk.kg:30040 [11:40:24]ConnectInit lk.salyk.kg [11:40:24]ExternCall_PrintAddStr [11:40:24]wPrintStart [11:40:24]Write to MH i2c: 01 00 00 FE 25 23 [11:40:24]Write i2c OK [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: 01 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: 01 07 00 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: 01 07 00 FE 25 00 80 00 00 00 FF 0F B8 [11:40:24]RasterBufferAndPrint [11:40:24]line Счет N : (1)196095 [11:40:24]line ИНН: 02508201610067 [11:40:24]line Контрольно-Кассовый Чек [11:40:24]line ПРОДАЖА [11:40:24]line ТРК (МРК, ГНК) : 61 [11:40:24]line Товар: 2710194210 [11:40:24]line ДТ-К-5 [11:40:24]line 4.110 * 70.90 [11:40:24]line = 291.40 [11:40:24]line НДС 12% НСП 1% [11:40:24]line > о реализуемом товаре [11:40:24]line ОКРУГЛЕНИЕ: -0.40 [11:40:24]line ИТОГО: 291.00 [11:40:24]line Внесено: 291.00 [11:40:24]line СДАЧА: 0.00 [11:40:24]line НСП 1% : 2.58 [11:40:24]line НДС 12% : 30.94 [11:40:24]line Наличными: 291.00 [11:40:24]line Безнал.: 0.00 [11:40:24]line Место: АЗС № 6 "Партнер Нефть" [11:40:24]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:40:24]line СНО: Общий режим [11:40:24]line Чек 57 12.03.2024 11:40 [11:40:24]line Смена: 327 ФФД: 1.0 [11:40:24]line ЗНМ: 0300000009 [11:40:24]line РНМ: 0000000000090555 [11:40:24]line Версия ККМ: 001 [11:40:24]line ФМ: 0000000000874811 [11:40:24]line ФД: 95127 [11:40:24]line ФПД: 221355686145911 [11:40:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T114027&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95127&fm=221355686145911&tin=02508201610067®Number=0000000000090555&sum=29100 [11:40:24]Connected sock=11 [11:40:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 D6 AE 04 01 BB AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 10 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D4 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 0C 00 00 00 00 07 04 06 00 AC 71 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 2B 3F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 97 73 01 00 35 04 06 00 C9 52 63 0A AF 77 09 DE CD FE 2E 89 6D 3C [11:40:24]written 0, free lines is 4095 [11:40:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 DB 39 47 00 48 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 97 73 01 00 F4 03 04 00 81 EA EF 65 B6 04 01 00 00 84 E3 DF 9C 4C 4F DD DD [11:40:24]CommunicateWithHost err = 0 [11:40:24]CheckOFDResponse [11:40:24]1017 (14) - 77093643461234 [11:40:24]1041 (16) - 0000000000874811 [11:40:24]1040 (4) - 95127 [11:40:24]1012 (4) - 12.03.2024 05:39 [11:40:24]1206 (1) - 0 [11:40:24]OFD Sender: Remove packet 95127 [11:40:24]ProducePacketName [11:40:24]name=ofd_packets/00095127 [11:40:24]NVStorageDeleteData [11:40:25]Write to MH i2c: 01 00 00 29 26 4F [11:40:25]Write i2c OK [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: 01 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: 01 07 00 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: 01 07 00 29 26 00 80 00 00 00 49 0D 2C [11:40:25]RasterBufferAndPrint [11:40:25]line [11:40:25]line [11:40:25]line [11:40:25]line [11:40:25]line [11:40:25]written 0, free lines is 3409 [11:40:25]process_action close_receipt done [11:40:25]requested_data is exist [11:40:25]produce_requested_data [11:40:25]requested_item fm.sn is exist - process it [11:40:25]wFMCommunicate request_size=4 [11:40:25]MH_SAM_APDU [11:40:25]CAPDU: 80 11 00 00 [11:40:25]Write to MH i2c: E2 08 00 30 26 80 11 00 00 00 00 00 00 D0 [11:40:25]Write i2c OK [11:40:25]MH_I2C_Read... [11:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:25]Read from MH i2c: E2 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 17 00 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 17 00 30 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 20 [11:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:40:25]wFMCommunicate OK [11:40:25]requested_item fd.num is exist - process it [11:40:25]SAM_PROTO_GetFieldsCounters [11:40:25]wFMCommunicate request_size=4 [11:40:25]MH_SAM_APDU [11:40:25]CAPDU: 80 13 00 00 [11:40:25]Write to MH i2c: E2 08 00 31 26 80 13 00 00 00 00 00 00 D3 [11:40:25]Write i2c OK [11:40:25]MH_I2C_Read... [11:40:25]OFD Sender: No OFD packet to send [11:40:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:25]Read from MH i2c: E2 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 62 00 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 62 00 31 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 97 73 01 00 0E 04 04 00 47 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 EE [11:40:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 97 73 01 00 0E 04 04 00 47 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:40:25]wFMCommunicate OK [11:40:25]SAM_PROTO_GetFieldsCounters done [11:40:25]requested_item shift.num is exist - process it [11:40:25]requested_item shift.opened is exist - process it [11:40:25]req_shift_opened [11:40:25]FM_GetShiftState [11:40:25]SAM_PROTO_GetShiftState [11:40:25]wFMCommunicate request_size=4 [11:40:25]MH_SAM_APDU [11:40:25]CAPDU: 80 13 01 00 [11:40:25]Write to MH i2c: E2 08 00 32 26 80 13 01 00 00 00 00 00 D5 [11:40:25]Write i2c OK [11:40:25]MH_I2C_Read... [11:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:25]Read from MH i2c: E2 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 0E 00 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 0E 00 32 26 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 49 [11:40:25]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:40:25]wFMCommunicate OK [11:40:25]SAM_PROTO_GetShiftState done [11:40:25]FM_GetShiftState done [11:40:25]req_shift_opened done [11:40:25]requested_item shift.open_date is exist - process it [11:40:25]req_shift_open_date [11:40:25]req_shift_open_date done [11:40:25]produce_requested_data done [11:40:25]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95127,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [11:40:25]process_action_free close_receipt [11:40:25]json_value_free [11:40:25]json_value_free done [11:40:25]process_json_proto returns [11:40:25]Send response to host [11:40:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95127,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [11:40:25]free response buf [11:40:25]execute_script done [11:40:25]execute_script returns [11:40:25]free content buf [11:40:25]Sock 9.Close socket [11:40:25]Sock 9.Thread stoped [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:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:04]accept exits with 8 [11:44:04]New connection [11:44:04]New thread 3066813796 created [11:44:04]Thread 3066957156 joined [11:44:04]Waiting for new connection... [11:44:04] Sock 8.Parse request [11:44:04]Sock 8.Check first char [11:44:04]Sock 8.First char is OK [11:44:04]request: POST /json_proto HTTP/1.0 [11:44:04]Method: POST [11:44:04]URL: /json_proto [11:44:04]Method is POST - this is cgi request [11:44:04]url: /json_proto [11:44:04]query_string will be loaded in cgi processing [11:44:04]execute_cgi json_proto POST (null) [11:44:04]execute_cgi path=json_proto method=POST [11:44:04]POST find Content-Length [11:44:04]Host: 172.17.62.67:8080 [11:44:04]Content-Length: 677 [11:44:04]Content-Type: application/json [11:44:04] [11:44:04]POST finish read [11:44:04]Found Content-Length = 677 [11:44:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:04]execute_script... [11:44: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)196096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:04]POST & json_proto [11:44:04]process_json_proto [11:44:04]json parsed OK: [11:44:04]protocol is kg_v1.0 [11:44:04]action value=close_receipt [11:44:04]process_action close_receipt [11:44:04]cmd_close_receipt [11:44:04]MH_GetDate [11:44:04]Write to MH i2c: F0 00 00 33 26 48 [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: F0 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: F0 05 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: F0 05 00 33 26 00 09 40 F0 65 EB [11:44:04]GetLastDocTimeStamp 1710243627 [11:44:04]current date 1710243849 [11:44:04]FM_GetShiftState [11:44:04]SAM_PROTO_GetShiftState [11:44:04]wFMCommunicate request_size=4 [11:44:04]MH_SAM_APDU [11:44:04]CAPDU: 80 13 01 00 [11:44:04]Write to MH i2c: E2 08 00 34 26 80 13 01 00 00 00 00 00 D7 [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:04]Read from MH i2c: E2 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 0E 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 0E 00 34 26 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 4B [11:44:04]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:44:04]wFMCommunicate OK [11:44:04]SAM_PROTO_GetShiftState done [11:44:04]FM_GetShiftState done [11:44:04]opened in 1710201976 [11:44:04]opened+sec_in_day 1710288376 [11:44:04]quantity*price = 60006 [11:44:04]sum+1 = 60008 [11:44:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 58 12.03.2024 11:44 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95128 ФПД: 187803307949780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T114409&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95128&fm=187803307949780&tin=02508201610067®Number=0000000000090555&sum=60000 [11:44:05]StoreToDocumentArchive [11:44:05]shift 327 fd 95128 [11:44:05]save to /storage/0327/doc_00095128 [11:44:05]save last doc name /storage/0327/doc_00095128 to /storage/kkm_last_doc_name [11:44:05]save OK [11:44:05]Clear old archive folders... [11:44:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:05]tlvbuf is 01A28140 [11:44:05]SAM_PROTO_ClearQueue [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 09 00 00 [11:44:05]Write to MH i2c: E2 08 00 41 26 80 09 00 00 00 00 00 00 D9 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 41 26 00 90 00 DB [11:44:05]RAPDU: 90 00 [11:44:05]wFMCommunicate OK [11:44:05]SAM_PROTO_ClearQueue done [11:44:05]KKMCreateOFDPacket [11:44:05]OFDProtocolAddRootSTLVToBuf [11:44:05]FM_MakeSignedData [11:44:05]FM_MakeSignedData [11:44:05]SAM_PROTO_SignData [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 0D 01 02 [11:44:05]Write to MH i2c: E2 08 00 42 26 80 0D 01 02 00 00 00 00 E1 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 42 26 00 90 00 DC [11:44:05]RAPDU: 90 00 [11:44:05]wFMCommunicate OK [11:44:05]wFMCommunicate request_size=255 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 09 40 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 98 73 01 00 35 04 06 00 AA [11:44:05]Write to MH i2c: E2 02 01 43 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 09 40 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 98 73 01 00 35 04 06 00 AA 00 00 C6 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]OFD Sender: No OFD packet to send [11:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 43 26 00 90 00 DD [11:44:05]RAPDU: 90 00 [11:44:05]wFMCommunicate OK [11:44:05]wFMCommunicate request_size=10 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 0D 02 02 05 CE 5D 75 3E D4 [11:44:05]Write to MH i2c: E2 0D 00 44 26 80 0D 02 02 05 00 CE 5D 75 3E D4 00 00 A0 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 44 26 00 90 00 DE [11:44:05]RAPDU: 90 00 [11:44:05]wFMCommunicate OK [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 0D 03 02 [11:44:05]Write to MH i2c: E2 08 00 45 26 80 0D 03 02 00 00 00 00 E6 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 0B 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 0B 00 45 26 00 08 AF 61 47 73 7C A8 40 90 00 1D [11:44:05]RAPDU: 08 AF 61 47 73 7C A8 40 90 00 [11:44:05]wFMCommunicate OK [11:44:05]SAM_PROTO_SignData done [11:44:05]FM_MakeSignedData done [11:44:05]CreateOFDProtocolMessage [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 11 00 00 [11:44:05]Write to MH i2c: E2 08 00 46 26 80 11 00 00 00 00 00 00 E6 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 17 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 17 00 46 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 36 [11:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:44:05]wFMCommunicate OK [11:44:05]CreateOFDProtocolMessage done [11:44:05]OFDSenderStorePacket 95128 [11:44:05]StoreOFDPacket docnum=95128 [11:44:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8D CF 07 01 7C 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 09 40 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 98 73 01 00 35 04 06 00 AA CE 5D 75 3E D4 08 AF 61 47 73 7C A8 40 [11:44:05]CheckFolder [11:44:05]dirname=/storage/ofd_packets [11:44:05]CheckFolder done [11:44:05]ProducePacketName [11:44:05]name=ofd_packets/00095128 [11:44:05]NVStorageSaveData ofd_packets/00095128 [11:44:05]File name is /storage/ofd_packets/00095128 [11:44:05]Write 301 bytes [11:44:05]NVStorageSaveData done [11:44:05]OFDSenderStorePacket done [11:44:05]KKMCreateOFDPacket done [11:44:05]NVStorageSaveData kkm_last_timestamp [11:44:05]File name is /storage/kkm_last_timestamp [11:44:05]Write 4 bytes [11:44:05]NVStorageSaveData done [11:44:05]OFD Sender: Processing packet 95128 [packets to send 30, broken 29] [11:44:05]ProducePacketName [11:44:05]name=ofd_packets/00095128 [11:44:05]OFD Sender: To server: pG, [11:44:05]CommunicateWithHost lk.salyk.kg:30040 [11:44:05]ConnectInit lk.salyk.kg [11:44:05]ExternCall_PrintAddStr [11:44:05]wPrintStart [11:44:05]Write to MH i2c: 01 00 00 47 26 6D [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: 01 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: 01 07 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: 01 07 00 47 26 00 80 00 00 00 FF 0F 02 [11:44:05]RasterBufferAndPrint [11:44:05]line Счет N : (1)196096 [11:44:05]line ИНН: 02508201610067 [11:44:05]line Контрольно-Кассовый Чек [11:44:05]line ПРОДАЖА [11:44:05]line ТРК (МРК, ГНК) : 12 [11:44:05]line Товар: 2710124130 [11:44:05]line Аи-92-К-5 [11:44:05]line 9.540 * 62.90 [11:44:05]line = 600.07 [11:44:05]line НДС 12% НСП 1% [11:44:05]line > о реализуемом товаре [11:44:05]line ОКРУГЛЕНИЕ: -0.07 [11:44:05]line ИТОГО: 600.00 [11:44:05]line Внесено: 600.00 [11:44:05]line СДАЧА: 0.00 [11:44:05]line НСП 1% : 5.31 [11:44:05]line НДС 12% : 63.72 [11:44:05]line Наличными: 600.00 [11:44:05]line Безнал.: 0.00 [11:44:05]line Место: АЗС № 6 "Партнер Нефть" [11:44:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:44:05]line СНО: Общий режим [11:44:05]line Чек 58 12.03.2024 11:44 [11:44:05]line Смена: 327 ФФД: 1.0 [11:44:05]line ЗНМ: 0300000009 [11:44:06]line РНМ: 0000000000090555 [11:44:06]line Версия ККМ: 001 [11:44:06]line ФМ: 0000000000874811 [11:44:06]line ФД: 95128 [11:44:06]line ФПД: 187803307949780 [11:44:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T114409&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95128&fm=187803307949780&tin=02508201610067®Number=0000000000090555&sum=60000 [11:44:06]Connected sock=11 [11:44:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8D CF 07 01 7C 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 09 40 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 98 73 01 00 35 04 06 00 AA CE 5D 75 3E D4 08 AF 61 47 73 7C A8 40 [11:44:06]written 0, free lines is 4095 [11:44:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 9B A2 47 00 9D 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 98 73 01 00 F4 03 04 00 5F EB EF 65 B6 04 01 00 00 61 AE 24 F0 27 56 87 F3 [11:44:06]CommunicateWithHost err = 0 [11:44:06]CheckOFDResponse [11:44:06]1017 (14) - 77093643461234 [11:44:06]1041 (16) - 0000000000874811 [11:44:06]1040 (4) - 95128 [11:44:06]1012 (4) - 12.03.2024 05:42 [11:44:06]1206 (1) - 0 [11:44:06]OFD Sender: Remove packet 95128 [11:44:06]ProducePacketName [11:44:06]name=ofd_packets/00095128 [11:44:06]NVStorageDeleteData [11:44:06]Write to MH i2c: 01 00 00 72 26 98 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 72 26 00 80 00 00 00 4F 0D 7B [11:44:06]RasterBufferAndPrint [11:44:06]line [11:44:06]line [11:44:06]line [11:44:06]line [11:44:06]line [11:44:06]written 0, free lines is 3413 [11:44:06]process_action close_receipt done [11:44:06]requested_data is exist [11:44:06]produce_requested_data [11:44:06]requested_item fm.sn is exist - process it [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 11 00 00 [11:44:06]Write to MH i2c: E2 08 00 79 26 80 11 00 00 00 00 00 00 19 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 17 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 17 00 79 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 69 [11:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:44:06]wFMCommunicate OK [11:44:06]requested_item fd.num is exist - process it [11:44:06]SAM_PROTO_GetFieldsCounters [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 13 00 00 [11:44:06]Write to MH i2c: E2 08 00 7A 26 80 13 00 00 00 00 00 00 1C [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]OFD Sender: No OFD packet to send [11:44:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 62 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 62 00 7A 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 98 73 01 00 0E 04 04 00 47 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 3B [11:44:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 98 73 01 00 0E 04 04 00 47 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:44:06]wFMCommunicate OK [11:44:06]SAM_PROTO_GetFieldsCounters done [11:44:06]requested_item shift.num is exist - process it [11:44:06]requested_item shift.opened is exist - process it [11:44:06]req_shift_opened [11:44:06]FM_GetShiftState [11:44:06]SAM_PROTO_GetShiftState [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 13 01 00 [11:44:06]Write to MH i2c: E2 08 00 7B 26 80 13 01 00 00 00 00 00 1E [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 0E 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 0E 00 7B 26 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 92 [11:44:06]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:44:06]wFMCommunicate OK [11:44:06]SAM_PROTO_GetShiftState done [11:44:06]FM_GetShiftState done [11:44:06]req_shift_opened done [11:44:06]requested_item shift.open_date is exist - process it [11:44:06]req_shift_open_date [11:44:06]req_shift_open_date done [11:44:06]produce_requested_data done [11:44:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95128,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [11:44:06]process_action_free close_receipt [11:44:06]json_value_free [11:44:06]json_value_free done [11:44:06]process_json_proto returns [11:44:06]Send response to host [11:44:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95128,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [11:44:06]free response buf [11:44:06]execute_script done [11:44:06]execute_script returns [11:44:06]free content buf [11:44:06]Sock 8.Close socket [11:44:06]Sock 8.Thread stoped [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:06]OFD Sender: No OFD packet to send [11:46:11]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:17]accept exits with 9 [11:47:17]New connection [11:47:17]New thread 3066957156 created [11:47:17]Thread 3066813796 joined [11:47:17]Waiting for new connection... [11:47:17] Sock 9.Parse request [11:47:17]Sock 9.Check first char [11:47:17]Sock 9.First char is OK [11:47:17]request: POST /json_proto HTTP/1.0 [11:47:17]Method: POST [11:47:17]URL: /json_proto [11:47:17]Method is POST - this is cgi request [11:47:17]url: /json_proto [11:47:17]query_string will be loaded in cgi processing [11:47:17]execute_cgi json_proto POST (null) [11:47:17]execute_cgi path=json_proto method=POST [11:47:17]POST find Content-Length [11:47:17]Host: 172.17.62.67:8080 [11:47:17]Content-Length: 677 [11:47:17]Content-Type: application/json [11:47:17] [11:47:17]POST finish read [11:47:17]Found Content-Length = 677 [11:47:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.760, "sum" : 488.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 488.00, "total" : 488.00, "payments": [ { "type": 0, "sum" : 488.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:17]execute_script... [11:47: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)196097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.760, "sum" : 488.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 488.00, "total" : 488.00, "payments": [ { "type": 0, "sum" : 488.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:17]POST & json_proto [11:47:17]process_json_proto [11:47:17]json parsed OK: [11:47:17]protocol is kg_v1.0 [11:47:17]action value=close_receipt [11:47:17]process_action close_receipt [11:47:17]cmd_close_receipt [11:47:17]MH_GetDate [11:47:17]Write to MH i2c: F0 00 00 7C 26 91 [11:47:17]Write i2c OK [11:47:17]MH_I2C_Read... [11:47:17]Read from MH i2c: F0 [11:47:17]MH_I2C_Read... [11:47:17]Read from MH i2c: F0 05 00 [11:47:17]MH_I2C_Read... [11:47:17]Read from MH i2c: F0 05 00 7C 26 00 CA 40 F0 65 F5 [11:47:17]GetLastDocTimeStamp 1710243849 [11:47:17]current date 1710244042 [11:47:17]FM_GetShiftState [11:47:17]SAM_PROTO_GetShiftState [11:47:17]wFMCommunicate request_size=4 [11:47:17]MH_SAM_APDU [11:47:17]CAPDU: 80 13 01 00 [11:47:17]Write to MH i2c: E2 08 00 7D 26 80 13 01 00 00 00 00 00 20 [11:47:17]Write i2c OK [11:47:17]MH_I2C_Read... [11:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:17]Read from MH i2c: E2 [11:47:17]MH_I2C_Read... [11:47:17]Read from MH i2c: E2 0E 00 [11:47:17]MH_I2C_Read... [11:47:17]Read from MH i2c: E2 0E 00 7D 26 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 94 [11:47:17]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:47:17]wFMCommunicate OK [11:47:17]SAM_PROTO_GetShiftState done [11:47:17]FM_GetShiftState done [11:47:17]opened in 1710201976 [11:47:17]opened+sec_in_day 1710288376 [11:47:17]quantity*price = 48810 [11:47:17]sum+1 = 48811 [11:47:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 488.00 Внесено: 488.00 СДАЧА: 0.00 НСП 1% : 4.32 НДС 12% : 51.83 Наличными: 488.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 59 12.03.2024 11:47 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95129 ФПД: 190812791130640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T114722&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95129&fm=190812791130640&tin=02508201610067®Number=0000000000090555&sum=48800 [11:47:18]StoreToDocumentArchive [11:47:18]shift 327 fd 95129 [11:47:18]save to /storage/0327/doc_00095129 [11:47:18]save last doc name /storage/0327/doc_00095129 to /storage/kkm_last_doc_name [11:47:18]save OK [11:47:18]Clear old archive folders... [11:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:18]tlvbuf is 01A45E60 [11:47:18]SAM_PROTO_ClearQueue [11:47:18]wFMCommunicate request_size=4 [11:47:18]MH_SAM_APDU [11:47:18]CAPDU: 80 09 00 00 [11:47:18]Write to MH i2c: E2 08 00 8A 26 80 09 00 00 00 00 00 00 22 [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:18]Read from MH i2c: E2 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 03 00 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 03 00 8A 26 00 90 00 24 [11:47:18]RAPDU: 90 00 [11:47:18]wFMCommunicate OK [11:47:18]SAM_PROTO_ClearQueue done [11:47:18]KKMCreateOFDPacket [11:47:18]OFDProtocolAddRootSTLVToBuf [11:47:18]FM_MakeSignedData [11:47:18]FM_MakeSignedData [11:47:18]SAM_PROTO_SignData [11:47:18]wFMCommunicate request_size=4 [11:47:18]MH_SAM_APDU [11:47:18]CAPDU: 80 0D 01 02 [11:47:18]Write to MH i2c: E2 08 00 8B 26 80 0D 01 02 00 00 00 00 2A [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:18]Read from MH i2c: E2 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 03 00 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 03 00 8B 26 00 90 00 25 [11:47:18]RAPDU: 90 00 [11:47:18]wFMCommunicate OK [11:47:18]wFMCommunicate request_size=255 [11:47:18]MH_SAM_APDU [11:47:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 1E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AA BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 14 00 00 00 00 07 04 06 00 A0 BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CA 40 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 99 73 01 00 35 04 06 00 AD [11:47:18]Write to MH i2c: E2 02 01 8C 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 1E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AA BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 14 00 00 00 00 07 04 06 00 A0 BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CA 40 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 99 73 01 00 35 04 06 00 AD 00 00 0C [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:18]Read from MH i2c: E2 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 03 00 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 03 00 8C 26 00 90 00 26 [11:47:18]RAPDU: 90 00 [11:47:18]wFMCommunicate OK [11:47:18]wFMCommunicate request_size=10 [11:47:18]MH_SAM_APDU [11:47:18]CAPDU: 80 0D 02 02 05 8B 10 A2 4A 10 [11:47:18]Write to MH i2c: E2 0D 00 8D 26 80 0D 02 02 05 00 8B 10 A2 4A 10 00 00 CE [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:18]Read from MH i2c: E2 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 03 00 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 03 00 8D 26 00 90 00 27 [11:47:18]RAPDU: 90 00 [11:47:18]wFMCommunicate OK [11:47:18]wFMCommunicate request_size=4 [11:47:18]MH_SAM_APDU [11:47:18]CAPDU: 80 0D 03 02 [11:47:18]Write to MH i2c: E2 08 00 8E 26 80 0D 03 02 00 00 00 00 2F [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:18]Read from MH i2c: E2 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 0B 00 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 0B 00 8E 26 00 93 78 0D A1 E9 92 44 9B 90 00 43 [11:47:18]RAPDU: 93 78 0D A1 E9 92 44 9B 90 00 [11:47:18]wFMCommunicate OK [11:47:18]SAM_PROTO_SignData done [11:47:18]FM_MakeSignedData done [11:47:18]CreateOFDProtocolMessage [11:47:18]wFMCommunicate request_size=4 [11:47:18]MH_SAM_APDU [11:47:18]CAPDU: 80 11 00 00 [11:47:18]Write to MH i2c: E2 08 00 8F 26 80 11 00 00 00 00 00 00 2F [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:19]Read from MH i2c: E2 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 17 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 17 00 8F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7F [11:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:47:19]wFMCommunicate OK [11:47:19]CreateOFDProtocolMessage done [11:47:19]OFDSenderStorePacket 95129 [11:47:19]StoreOFDPacket docnum=95129 [11:47:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 18 0F 07 01 F7 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 1E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AA BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 14 00 00 00 00 07 04 06 00 A0 BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CA 40 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 99 73 01 00 35 04 06 00 AD 8B 10 A2 4A 10 93 78 0D A1 E9 92 44 9B [11:47:19]CheckFolder [11:47:19]dirname=/storage/ofd_packets [11:47:19]CheckFolder done [11:47:19]ProducePacketName [11:47:19]name=ofd_packets/00095129 [11:47:19]NVStorageSaveData ofd_packets/00095129 [11:47:19]File name is /storage/ofd_packets/00095129 [11:47:19]Write 301 bytes [11:47:19]NVStorageSaveData done [11:47:19]OFDSenderStorePacket done [11:47:19]KKMCreateOFDPacket done [11:47:19]NVStorageSaveData kkm_last_timestamp [11:47:19]File name is /storage/kkm_last_timestamp [11:47:19]Write 4 bytes [11:47:19]NVStorageSaveData done [11:47:19]ExternCall_PrintAddStr [11:47:19]wPrintStart [11:47:19]Write to MH i2c: 01 00 00 90 26 B6 [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: 01 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: 01 07 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: 01 07 00 90 26 00 80 00 00 00 FF 0F 4B [11:47:19]RasterBufferAndPrint [11:47:19]line Счет N : (1)196097 [11:47:19]line ИНН: 02508201610067 [11:47:19]line Контрольно-Кассовый Чек [11:47:19]line ПРОДАЖА [11:47:19]line ТРК (МРК, ГНК) : 32 [11:47:19]line Товар: 2710124130 [11:47:19]line Аи-92-К-5 [11:47:19]line 7.760 * 62.90 [11:47:19]line = 488.10 [11:47:19]line НДС 12% НСП 1% [11:47:19]line > о реализуемом товаре [11:47:19]line ОКРУГЛЕНИЕ: -0.10 [11:47:19]line ИТОГО: 488.00 [11:47:19]line Внесено: 488.00 [11:47:19]line СДАЧА: 0.00 [11:47:19]line НСП 1% : 4.32 [11:47:19]line НДС 12% : 51.83 [11:47:19]line Наличными: 488.00 [11:47:19]line Безнал.: 0.00 [11:47:19]line Место: АЗС № 6 "Партнер Нефть" [11:47:19]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:47:19]line СНО: Общий режим [11:47:19]line Чек 59 12.03.2024 11:47 [11:47:19]line Смена: 327 ФФД: 1.0 [11:47:19]line ЗНМ: 0300000009 [11:47:19]line РНМ: 0000000000090555 [11:47:19]line Версия ККМ: 001 [11:47:19]line ФМ: 0000000000874811 [11:47:19]line ФД: 95129 [11:47:19]line ФПД: 190812791130640 [11:47:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T114722&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95129&fm=190812791130640&tin=02508201610067®Number=0000000000090555&sum=48800 [11:47:19]OFD Sender: Processing packet 95129 [packets to send 30, broken 29] [11:47:19]ProducePacketName [11:47:19]name=ofd_packets/00095129 [11:47:19]OFD Sender: To server: pG, [11:47:19]CommunicateWithHost lk.salyk.kg:30040 [11:47:19]ConnectInit lk.salyk.kg [11:47:19]written 0, free lines is 4095 [11:47:19]Connected sock=10 [11:47:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 18 0F 07 01 F7 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 1E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AA BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 14 00 00 00 00 07 04 06 00 A0 BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CA 40 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 99 73 01 00 35 04 06 00 AD 8B 10 A2 4A 10 93 78 0D A1 E9 92 44 9B [11:47:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 32 8F 47 00 43 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 99 73 01 00 F4 03 04 00 20 EC EF 65 B6 04 01 00 00 60 F2 A1 D7 31 CE 54 0C [11:47:19]CommunicateWithHost err = 0 [11:47:19]CheckOFDResponse [11:47:19]1017 (14) - 77093643461234 [11:47:19]1041 (16) - 0000000000874811 [11:47:19]1040 (4) - 95129 [11:47:19]1012 (4) - 12.03.2024 05:46 [11:47:19]1206 (1) - 0 [11:47:19]OFD Sender: Remove packet 95129 [11:47:19]ProducePacketName [11:47:19]name=ofd_packets/00095129 [11:47:19]NVStorageDeleteData [11:47:19]Write to MH i2c: 01 00 00 BB 26 E1 [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: 01 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: 01 07 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: 01 07 00 BB 26 00 80 00 00 00 47 0D BC [11:47:19]RasterBufferAndPrint [11:47:19]line [11:47:19]line [11:47:19]line [11:47:19]line [11:47:19]line [11:47:19]written 0, free lines is 3405 [11:47:19]process_action close_receipt done [11:47:19]requested_data is exist [11:47:19]produce_requested_data [11:47:19]requested_item fm.sn is exist - process it [11:47:19]wFMCommunicate request_size=4 [11:47:19]MH_SAM_APDU [11:47:19]CAPDU: 80 11 00 00 [11:47:19]Write to MH i2c: E2 08 00 C2 26 80 11 00 00 00 00 00 00 62 [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:19]Read from MH i2c: E2 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 17 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 17 00 C2 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B2 [11:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:47:19]wFMCommunicate OK [11:47:19]requested_item fd.num is exist - process it [11:47:19]SAM_PROTO_GetFieldsCounters [11:47:19]wFMCommunicate request_size=4 [11:47:19]MH_SAM_APDU [11:47:19]CAPDU: 80 13 00 00 [11:47:19]Write to MH i2c: E2 08 00 C3 26 80 13 00 00 00 00 00 00 65 [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:20]Read from MH i2c: E2 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 62 00 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 62 00 C3 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 99 73 01 00 0E 04 04 00 47 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 88 [11:47:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 99 73 01 00 0E 04 04 00 47 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:47:20]wFMCommunicate OK [11:47:20]SAM_PROTO_GetFieldsCounters done [11:47:20]requested_item shift.num is exist - process it [11:47:20]requested_item shift.opened is exist - process it [11:47:20]req_shift_opened [11:47:20]FM_GetShiftState [11:47:20]SAM_PROTO_GetShiftState [11:47:20]wFMCommunicate request_size=4 [11:47:20]MH_SAM_APDU [11:47:20]CAPDU: 80 13 01 00 [11:47:20]Write to MH i2c: E2 08 00 C4 26 80 13 01 00 00 00 00 00 67 [11:47:20]Write i2c OK [11:47:20]MH_I2C_Read... [11:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:20]Read from MH i2c: E2 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 0E 00 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 0E 00 C4 26 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 DB [11:47:20]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [11:47:20]wFMCommunicate OK [11:47:20]SAM_PROTO_GetShiftState done [11:47:20]FM_GetShiftState done [11:47:20]req_shift_opened done [11:47:20]requested_item shift.open_date is exist - process it [11:47:20]req_shift_open_date [11:47:20]req_shift_open_date done [11:47:20]produce_requested_data done [11:47:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95129,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [11:47:20]process_action_free close_receipt [11:47:20]json_value_free [11:47:20]json_value_free done [11:47:20]process_json_proto returns [11:47:20]Send response to host [11:47:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95129,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [11:47:20]free response buf [11:47:20]execute_script done [11:47:20]execute_script returns [11:47:20]free content buf [11:47:20]Sock 9.Close socket [11:47:20]Sock 9.Thread stoped [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:20]OFD Sender: No OFD packet to send [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:15]OFD Sender: No OFD packet to send [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:29]accept exits with 8 [12:04:29]New connection [12:04:29]New thread 3066813796 created [12:04:29]Thread 3066957156 joined [12:04:29]Waiting for new connection... [12:04:29] Sock 8.Parse request [12:04:29]Sock 8.Check first char [12:04:29]Sock 8.First char is OK [12:04:29]request: POST /json_proto HTTP/1.0 [12:04:29]Method: POST [12:04:29]URL: /json_proto [12:04:29]Method is POST - this is cgi request [12:04:29]url: /json_proto [12:04:29]query_string will be loaded in cgi processing [12:04:29]execute_cgi json_proto POST (null) [12:04:29]execute_cgi path=json_proto method=POST [12:04:29]POST find Content-Length [12:04:29]Host: 172.17.62.67:8080 [12:04:29]Content-Length: 677 [12:04:29]Content-Type: application/json [12:04:29] [12:04:29]POST finish read [12:04:29]Found Content-Length = 677 [12:04:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:04:29]execute_script... [12:04: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)196098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:04:29]POST & json_proto [12:04:29]process_json_proto [12:04:29]json parsed OK: [12:04:29]protocol is kg_v1.0 [12:04:29]action value=close_receipt [12:04:29]process_action close_receipt [12:04:29]cmd_close_receipt [12:04:29]MH_GetDate [12:04:29]Write to MH i2c: F0 00 00 C5 26 DA [12:04:29]Write i2c OK [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: F0 [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: F0 05 00 [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: F0 05 00 C5 26 00 D2 44 F0 65 4A [12:04:29]GetLastDocTimeStamp 1710244042 [12:04:29]current date 1710245074 [12:04:29]FM_GetShiftState [12:04:29]SAM_PROTO_GetShiftState [12:04:29]wFMCommunicate request_size=4 [12:04:29]MH_SAM_APDU [12:04:29]CAPDU: 80 13 01 00 [12:04:29]Write to MH i2c: E2 08 00 C6 26 80 13 01 00 00 00 00 00 69 [12:04:29]Write i2c OK [12:04:29]MH_I2C_Read... [12:04:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:29]Read from MH i2c: E2 [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: E2 0E 00 [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: E2 0E 00 C6 26 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 DD [12:04:29]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:04:29]wFMCommunicate OK [12:04:29]SAM_PROTO_GetShiftState done [12:04:29]FM_GetShiftState done [12:04:29]opened in 1710201976 [12:04:29]opened+sec_in_day 1710288376 [12:04:29]quantity*price = 50005 [12:04:29]sum+1 = 50007 [12:04:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 60 12.03.2024 12:04 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95130 ФПД: 235091869849786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T120434&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95130&fm=235091869849786&tin=02508201610067®Number=0000000000090555&sum=50000 [12:04:30]StoreToDocumentArchive [12:04:30]shift 327 fd 95130 [12:04:30]save to /storage/0327/doc_00095130 [12:04:30]save last doc name /storage/0327/doc_00095130 to /storage/kkm_last_doc_name [12:04:30]save OK [12:04:30]Clear old archive folders... [12:04:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:30]tlvbuf is 01A26200 [12:04:30]SAM_PROTO_ClearQueue [12:04:30]wFMCommunicate request_size=4 [12:04:30]MH_SAM_APDU [12:04:30]CAPDU: 80 09 00 00 [12:04:30]Write to MH i2c: E2 08 00 D3 26 80 09 00 00 00 00 00 00 6B [12:04:30]Write i2c OK [12:04:30]MH_I2C_Read... [12:04:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:30]Read from MH i2c: E2 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 03 00 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 03 00 D3 26 00 90 00 6D [12:04:30]RAPDU: 90 00 [12:04:30]wFMCommunicate OK [12:04:30]SAM_PROTO_ClearQueue done [12:04:30]KKMCreateOFDPacket [12:04:30]OFDProtocolAddRootSTLVToBuf [12:04:30]FM_MakeSignedData [12:04:30]FM_MakeSignedData [12:04:30]SAM_PROTO_SignData [12:04:30]wFMCommunicate request_size=4 [12:04:30]MH_SAM_APDU [12:04:30]CAPDU: 80 0D 01 02 [12:04:30]Write to MH i2c: E2 08 00 D4 26 80 0D 01 02 00 00 00 00 73 [12:04:30]Write i2c OK [12:04:30]MH_I2C_Read... [12:04:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:30]Read from MH i2c: E2 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 03 00 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 03 00 D4 26 00 90 00 6E [12:04:30]RAPDU: 90 00 [12:04:30]wFMCommunicate OK [12:04:30]wFMCommunicate request_size=255 [12:04:30]MH_SAM_APDU [12:04:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 D2 44 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9A 73 01 00 35 04 06 00 D5 [12:04:30]Write to MH i2c: E2 02 01 D5 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 D2 44 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9A 73 01 00 35 04 06 00 D5 00 00 EE [12:04:30]Write i2c OK [12:04:30]MH_I2C_Read... [12:04:31]OFD Sender: No OFD packet to send [12:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:31]Read from MH i2c: E2 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 03 00 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 03 00 D5 26 00 90 00 6F [12:04:31]RAPDU: 90 00 [12:04:31]wFMCommunicate OK [12:04:31]wFMCommunicate request_size=10 [12:04:31]MH_SAM_APDU [12:04:31]CAPDU: 80 0D 02 02 05 D0 97 64 58 BA [12:04:31]Write to MH i2c: E2 0D 00 D6 26 80 0D 02 02 05 00 D0 97 64 58 BA 00 00 5D [12:04:31]Write i2c OK [12:04:31]MH_I2C_Read... [12:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:31]Read from MH i2c: E2 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 03 00 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 03 00 D6 26 00 90 00 70 [12:04:31]RAPDU: 90 00 [12:04:31]wFMCommunicate OK [12:04:31]wFMCommunicate request_size=4 [12:04:31]MH_SAM_APDU [12:04:31]CAPDU: 80 0D 03 02 [12:04:31]Write to MH i2c: E2 08 00 D7 26 80 0D 03 02 00 00 00 00 78 [12:04:31]Write i2c OK [12:04:31]MH_I2C_Read... [12:04:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:31]Read from MH i2c: E2 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 0B 00 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 0B 00 D7 26 00 83 82 A7 8C F6 33 0A 21 90 00 05 [12:04:31]RAPDU: 83 82 A7 8C F6 33 0A 21 90 00 [12:04:31]wFMCommunicate OK [12:04:31]SAM_PROTO_SignData done [12:04:31]FM_MakeSignedData done [12:04:31]CreateOFDProtocolMessage [12:04:31]wFMCommunicate request_size=4 [12:04:31]MH_SAM_APDU [12:04:31]CAPDU: 80 11 00 00 [12:04:31]Write to MH i2c: E2 08 00 D8 26 80 11 00 00 00 00 00 00 78 [12:04:31]Write i2c OK [12:04:31]MH_I2C_Read... [12:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:31]Read from MH i2c: E2 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 17 00 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 17 00 D8 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C8 [12:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:04:31]wFMCommunicate OK [12:04:31]CreateOFDProtocolMessage done [12:04:31]OFDSenderStorePacket 95130 [12:04:31]StoreOFDPacket docnum=95130 [12:04:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 26 E3 07 01 C3 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 D2 44 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9A 73 01 00 35 04 06 00 D5 D0 97 64 58 BA 83 82 A7 8C F6 33 0A 21 [12:04:31]CheckFolder [12:04:31]dirname=/storage/ofd_packets [12:04:31]CheckFolder done [12:04:31]ProducePacketName [12:04:31]name=ofd_packets/00095130 [12:04:31]NVStorageSaveData ofd_packets/00095130 [12:04:31]File name is /storage/ofd_packets/00095130 [12:04:31]Write 301 bytes [12:04:31]NVStorageSaveData done [12:04:31]OFDSenderStorePacket done [12:04:31]KKMCreateOFDPacket done [12:04:31]NVStorageSaveData kkm_last_timestamp [12:04:31]File name is /storage/kkm_last_timestamp [12:04:31]Write 4 bytes [12:04:31]NVStorageSaveData done [12:04:31]ExternCall_PrintAddStr [12:04:31]wPrintStart [12:04:31]Write to MH i2c: 01 00 00 D9 26 FF [12:04:31]Write i2c OK [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: 01 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: 01 07 00 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: 01 07 00 D9 26 00 80 00 00 00 FF 0F 94 [12:04:31]RasterBufferAndPrint [12:04:31]line Счет N : (1)196098 [12:04:31]line ИНН: 02508201610067 [12:04:31]line Контрольно-Кассовый Чек [12:04:31]line ПРОДАЖА [12:04:31]line ТРК (МРК, ГНК) : 12 [12:04:31]line Товар: 2710124130 [12:04:31]line Аи-92-К-5 [12:04:31]line 7.950 * 62.90 [12:04:31]line = 500.06 [12:04:31]line НДС 12% НСП 1% [12:04:31]line > о реализуемом товаре [12:04:31]line ОКРУГЛЕНИЕ: -0.06 [12:04:31]line ИТОГО: 500.00 [12:04:31]line Внесено: 500.00 [12:04:31]line СДАЧА: 0.00 [12:04:31]line НСП 1% : 4.42 [12:04:31]line НДС 12% : 53.10 [12:04:31]line Наличными: 500.00 [12:04:31]line Безнал.: 0.00 [12:04:31]line Место: АЗС № 6 "Партнер Нефть" [12:04:31]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:04:31]line СНО: Общий режим [12:04:31]line Чек 60 12.03.2024 12:04 [12:04:31]line Смена: 327 ФФД: 1.0 [12:04:31]line ЗНМ: 0300000009 [12:04:31]line РНМ: 0000000000090555 [12:04:31]line Версия ККМ: 001 [12:04:31]line ФМ: 0000000000874811 [12:04:31]line ФД: 95130 [12:04:31]line ФПД: 235091869849786 [12:04:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T120434&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95130&fm=235091869849786&tin=02508201610067®Number=0000000000090555&sum=50000 [12:04:31]OFD Sender: Processing packet 95130 [packets to send 30, broken 29] [12:04:31]ProducePacketName [12:04:31]name=ofd_packets/00095130 [12:04:31]OFD Sender: To server: pG, [12:04:31]CommunicateWithHost lk.salyk.kg:30040 [12:04:31]ConnectInit lk.salyk.kg [12:04:31]written 0, free lines is 4095 [12:04:31]Connected sock=10 [12:04:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 26 E3 07 01 C3 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 D2 44 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9A 73 01 00 35 04 06 00 D5 D0 97 64 58 BA 83 82 A7 8C F6 33 0A 21 [12:04:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 34 F1 47 00 4B 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9A 73 01 00 F4 03 04 00 28 F0 EF 65 B6 04 01 00 00 AF 34 F2 10 2F 7D 3A F6 [12:04:31]CommunicateWithHost err = 0 [12:04:31]CheckOFDResponse [12:04:31]1017 (14) - 77093643461234 [12:04:31]1041 (16) - 0000000000874811 [12:04:31]1040 (4) - 95130 [12:04:31]1012 (4) - 12.03.2024 06:03 [12:04:31]1206 (1) - 0 [12:04:31]OFD Sender: Remove packet 95130 [12:04:31]ProducePacketName [12:04:31]name=ofd_packets/00095130 [12:04:31]NVStorageDeleteData [12:04:32]Write to MH i2c: 01 00 00 04 27 2B [12:04:32]Write i2c OK [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: 01 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: 01 07 00 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: 01 07 00 04 27 00 80 00 00 00 47 0D 06 [12:04:32]RasterBufferAndPrint [12:04:32]line [12:04:32]line [12:04:32]line [12:04:32]line [12:04:32]line [12:04:32]written 0, free lines is 3405 [12:04:32]process_action close_receipt done [12:04:32]requested_data is exist [12:04:32]produce_requested_data [12:04:32]requested_item fm.sn is exist - process it [12:04:32]wFMCommunicate request_size=4 [12:04:32]MH_SAM_APDU [12:04:32]CAPDU: 80 11 00 00 [12:04:32]Write to MH i2c: E2 08 00 0B 27 80 11 00 00 00 00 00 00 AC [12:04:32]Write i2c OK [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: E2 [12:04:32]MH_I2C_Read... [12:04:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:32]Read from MH i2c: E2 17 00 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: E2 17 00 0B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FC [12:04:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:04:32]wFMCommunicate OK [12:04:32]requested_item fd.num is exist - process it [12:04:32]SAM_PROTO_GetFieldsCounters [12:04:32]wFMCommunicate request_size=4 [12:04:32]MH_SAM_APDU [12:04:32]CAPDU: 80 13 00 00 [12:04:32]Write to MH i2c: E2 08 00 0C 27 80 13 00 00 00 00 00 00 AF [12:04:32]Write i2c OK [12:04:32]MH_I2C_Read... [12:04:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:32]Read from MH i2c: E2 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: E2 62 00 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: E2 62 00 0C 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9A 73 01 00 0E 04 04 00 47 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 D6 [12:04:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9A 73 01 00 0E 04 04 00 47 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 [12:04:32]wFMCommunicate OK [12:04:32]SAM_PROTO_GetFieldsCounters done [12:04:32]requested_item shift.num is exist - process it [12:04:32]requested_item shift.opened is exist - process it [12:04:32]req_shift_opened [12:04:32]FM_GetShiftState [12:04:32]SAM_PROTO_GetShiftState [12:04:32]wFMCommunicate request_size=4 [12:04:32]MH_SAM_APDU [12:04:32]CAPDU: 80 13 01 00 [12:04:32]Write to MH i2c: E2 08 00 0D 27 80 13 01 00 00 00 00 00 B1 [12:04:32]Write i2c OK [12:04:32]MH_I2C_Read... [12:04:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:32]Read from MH i2c: E2 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: E2 0E 00 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: E2 0E 00 0D 27 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 25 [12:04:32]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:04:32]wFMCommunicate OK [12:04:32]SAM_PROTO_GetShiftState done [12:04:32]FM_GetShiftState done [12:04:32]req_shift_opened done [12:04:32]requested_item shift.open_date is exist - process it [12:04:32]req_shift_open_date [12:04:32]req_shift_open_date done [12:04:32]produce_requested_data done [12:04:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95130,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:04:32]process_action_free close_receipt [12:04:32]json_value_free [12:04:32]json_value_free done [12:04:32]process_json_proto returns [12:04:32]Send response to host [12:04:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95130,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:04:32]free response buf [12:04:32]execute_script done [12:04:32]execute_script returns [12:04:32]free content buf [12:04:32]Sock 8.Close socket [12:04:32]Sock 8.Thread stoped [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:35]accept exits with 9 [12:06:35]New connection [12:06:35]New thread 3066957156 created [12:06:35]Thread 3066813796 joined [12:06:35]Waiting for new connection... [12:06:35] Sock 9.Parse request [12:06:35]Sock 9.Check first char [12:06:35]Sock 9.First char is OK [12:06:35]request: POST /json_proto HTTP/1.0 [12:06:35]Method: POST [12:06:35]URL: /json_proto [12:06:35]Method is POST - this is cgi request [12:06:35]url: /json_proto [12:06:35]query_string will be loaded in cgi processing [12:06:35]execute_cgi json_proto POST (null) [12:06:35]execute_cgi path=json_proto method=POST [12:06:35]POST find Content-Length [12:06:35]Host: 172.17.62.67:8080 [12:06:35]Content-Length: 805 [12:06:35]Content-Type: application/json [12:06:35] [12:06:35]POST finish read [12:06:35]Found Content-Length = 805 [12:06:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:35]execute_script... [12:06: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)196099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:35]POST & json_proto [12:06:35]process_json_proto [12:06:35]json parsed OK: [12:06:35]protocol is kg_v1.0 [12:06:35]action value=close_receipt [12:06:35]process_action close_receipt [12:06:35]cmd_close_receipt [12:06:35]MH_GetDate [12:06:35]Write to MH i2c: F0 00 00 0E 27 24 [12:06:35]Write i2c OK [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: F0 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: F0 05 00 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: F0 05 00 0E 27 00 50 45 F0 65 13 [12:06:35]GetLastDocTimeStamp 1710245074 [12:06:35]current date 1710245200 [12:06:35]FM_GetShiftState [12:06:35]SAM_PROTO_GetShiftState [12:06:35]wFMCommunicate request_size=4 [12:06:35]MH_SAM_APDU [12:06:35]CAPDU: 80 13 01 00 [12:06:35]Write to MH i2c: E2 08 00 0F 27 80 13 01 00 00 00 00 00 B3 [12:06:35]Write i2c OK [12:06:35]MH_I2C_Read... [12:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:35]Read from MH i2c: E2 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 0E 00 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 0E 00 0F 27 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 27 [12:06:35]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:06:35]wFMCommunicate OK [12:06:35]SAM_PROTO_GetShiftState done [12:06:35]FM_GetShiftState done [12:06:35]opened in 1710201976 [12:06:35]opened+sec_in_day 1710288376 [12:06:35]quantity*price = 20002 [12:06:35]sum+1 = 20003 [12:06:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.02 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.02 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 61 12.03.2024 12:06 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95131 ФПД: 14800010575626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T120640&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95131&fm=14800010575626&tin=02508201610067®Number=0000000000090555&sum=20002 [12:06:36]StoreToDocumentArchive [12:06:36]shift 327 fd 95131 [12:06:36]save to /storage/0327/doc_00095131 [12:06:36]save last doc name /storage/0327/doc_00095131 to /storage/kkm_last_doc_name [12:06:36]save OK [12:06:36]Clear old archive folders... [12:06:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:36]tlvbuf is 01A714F0 [12:06:36]SAM_PROTO_ClearQueue [12:06:36]wFMCommunicate request_size=4 [12:06:36]MH_SAM_APDU [12:06:36]CAPDU: 80 09 00 00 [12:06:36]Write to MH i2c: E2 08 00 1C 27 80 09 00 00 00 00 00 00 B5 [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:36]Read from MH i2c: E2 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 03 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 03 00 1C 27 00 90 00 B7 [12:06:36]RAPDU: 90 00 [12:06:36]wFMCommunicate OK [12:06:36]SAM_PROTO_ClearQueue done [12:06:36]KKMCreateOFDPacket [12:06:36]OFDProtocolAddRootSTLVToBuf [12:06:36]FM_MakeSignedData [12:06:36]FM_MakeSignedData [12:06:36]SAM_PROTO_SignData [12:06:36]wFMCommunicate request_size=4 [12:06:36]MH_SAM_APDU [12:06:36]CAPDU: 80 0D 01 02 [12:06:36]Write to MH i2c: E2 08 00 1D 27 80 0D 01 02 00 00 00 00 BD [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 03 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 03 00 1D 27 00 90 00 B8 [12:06:37]RAPDU: 90 00 [12:06:37]wFMCommunicate OK [12:06:37]wFMCommunicate request_size=255 [12:06:37]MH_SAM_APDU [12:06:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 50 45 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9B 73 01 00 35 04 06 00 0D [12:06:37]Write to MH i2c: E2 02 01 1E 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 50 45 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9B 73 01 00 35 04 06 00 0D 00 00 C5 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 03 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 03 00 1E 27 00 90 00 B9 [12:06:37]RAPDU: 90 00 [12:06:37]wFMCommunicate OK [12:06:37]wFMCommunicate request_size=10 [12:06:37]MH_SAM_APDU [12:06:37]CAPDU: 80 0D 02 02 05 75 E5 5F 7F 0A [12:06:37]Write to MH i2c: E2 0D 00 1F 27 80 0D 02 02 05 00 75 E5 5F 7F 0A 00 00 0C [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 03 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 03 00 1F 27 00 90 00 BA [12:06:37]RAPDU: 90 00 [12:06:37]wFMCommunicate OK [12:06:37]wFMCommunicate request_size=4 [12:06:37]MH_SAM_APDU [12:06:37]CAPDU: 80 0D 03 02 [12:06:37]Write to MH i2c: E2 08 00 20 27 80 0D 03 02 00 00 00 00 C2 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 0B 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 0B 00 20 27 00 0D 62 69 89 16 1A 2F 8B 90 00 0E [12:06:37]RAPDU: 0D 62 69 89 16 1A 2F 8B 90 00 [12:06:37]wFMCommunicate OK [12:06:37]SAM_PROTO_SignData done [12:06:37]FM_MakeSignedData done [12:06:37]CreateOFDProtocolMessage [12:06:37]wFMCommunicate request_size=4 [12:06:37]MH_SAM_APDU [12:06:37]CAPDU: 80 11 00 00 [12:06:37]Write to MH i2c: E2 08 00 21 27 80 11 00 00 00 00 00 00 C2 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 17 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 17 00 21 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 12 [12:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:06:37]wFMCommunicate OK [12:06:37]CreateOFDProtocolMessage done [12:06:37]OFDSenderStorePacket 95131 [12:06:37]StoreOFDPacket docnum=95131 [12:06:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 75 C1 07 01 E2 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 50 45 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9B 73 01 00 35 04 06 00 0D 75 E5 5F 7F 0A 0D 62 69 89 16 1A 2F 8B [12:06:37]CheckFolder [12:06:37]dirname=/storage/ofd_packets [12:06:37]CheckFolder done [12:06:37]ProducePacketName [12:06:37]name=ofd_packets/00095131 [12:06:37]NVStorageSaveData ofd_packets/00095131 [12:06:37]File name is /storage/ofd_packets/00095131 [12:06:37]Write 301 bytes [12:06:37]NVStorageSaveData done [12:06:37]OFDSenderStorePacket done [12:06:37]KKMCreateOFDPacket done [12:06:37]NVStorageSaveData kkm_last_timestamp [12:06:37]File name is /storage/kkm_last_timestamp [12:06:37]Write 4 bytes [12:06:37]NVStorageSaveData done [12:06:37]ExternCall_PrintAddStr [12:06:37]wPrintStart [12:06:37]Write to MH i2c: 01 00 00 22 27 49 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: 01 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: 01 07 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: 01 07 00 22 27 00 80 00 00 00 FF 0F DE [12:06:37]RasterBufferAndPrint [12:06:37]line Счет N : (1)196099 [12:06:37]line ИНН: 02508201610067 [12:06:37]line Контрольно-Кассовый Чек [12:06:37]line ПРОДАЖА [12:06:37]line ТРК (МРК, ГНК) : 22 [12:06:37]line Товар: 2710124130 [12:06:37]line Аи-92-К-5 [12:06:37]line 3.180 * 62.90 [12:06:37]line = 200.02 [12:06:37]line НДС 12% НСП 1% [12:06:37]line > о реализуемом товаре [12:06:37]line ИТОГО: 200.02 [12:06:37]line НСП 1% : 1.77 [12:06:37]line НДС 12% : 21.24 [12:06:37]line Наличными: 0.00 [12:06:37]line Безнал.: 200.02 [12:06:37]line Место: АЗС № 6 "Партнер Нефть" [12:06:37]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:06:37]line СНО: Общий режим [12:06:37]line Чек 61 12.03.2024 12:06 [12:06:37]line Смена: 327 ФФД: 1.0 [12:06:37]line ЗНМ: 0300000009 [12:06:37]line РНМ: 0000000000090555 [12:06:37]line Версия ККМ: 001 [12:06:37]line Платежная система: О! деньги [12:06:37]line ФМ: 0000000000874811 [12:06:37]line ФД: 95131 [12:06:37]line ФПД: 14800010575626 [12:06:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T120640&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95131&fm=14800010575626&tin=02508201610067®Number=0000000000090555&sum=20002 [12:06:37]OFD Sender: Processing packet 95131 [packets to send 30, broken 29] [12:06:37]ProducePacketName [12:06:37]name=ofd_packets/00095131 [12:06:37]OFD Sender: To server: pG, [12:06:37]CommunicateWithHost lk.salyk.kg:30040 [12:06:37]ConnectInit lk.salyk.kg [12:06:37]written 0, free lines is 4095 [12:06:37]Connected sock=10 [12:06:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 75 C1 07 01 E2 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 50 45 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9B 73 01 00 35 04 06 00 0D 75 E5 5F 7F 0A 0D 62 69 89 16 1A 2F 8B [12:06:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 44 24 47 00 EC 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9B 73 01 00 F4 03 04 00 A7 F0 EF 65 B6 04 01 00 00 E0 B4 1A 47 1F 1D 1C E7 [12:06:38]CommunicateWithHost err = 0 [12:06:38]CheckOFDResponse [12:06:38]1017 (14) - 77093643461234 [12:06:38]1041 (16) - 0000000000874811 [12:06:38]1040 (4) - 95131 [12:06:38]1012 (4) - 12.03.2024 06:05 [12:06:38]1206 (1) - 0 [12:06:38]OFD Sender: Remove packet 95131 [12:06:38]ProducePacketName [12:06:38]name=ofd_packets/00095131 [12:06:38]NVStorageDeleteData [12:06:38]Write to MH i2c: 01 00 00 4C 27 73 [12:06:38]Write i2c OK [12:06:38]MH_I2C_Read... [12:06:38]Read from MH i2c: 01 [12:06:38]MH_I2C_Read... [12:06:38]Read from MH i2c: 01 07 00 [12:06:38]MH_I2C_Read... [12:06:38]Read from MH i2c: 01 07 00 4C 27 00 80 00 00 00 56 0D 5D [12:06:38]RasterBufferAndPrint [12:06:38]line [12:06:38]line [12:06:38]line [12:06:38]line [12:06:38]line [12:06:38]written 0, free lines is 3421 [12:06:38]process_action close_receipt done [12:06:38]requested_data is exist [12:06:38]produce_requested_data [12:06:38]requested_item fm.sn is exist - process it [12:06:38]wFMCommunicate request_size=4 [12:06:38]MH_SAM_APDU [12:06:38]CAPDU: 80 11 00 00 [12:06:38]Write to MH i2c: E2 08 00 53 27 80 11 00 00 00 00 00 00 F4 [12:06:38]Write i2c OK [12:06:38]MH_I2C_Read... [12:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:38]Read from MH i2c: E2 [12:06:38]MH_I2C_Read... [12:06:38]Read from MH i2c: E2 17 00 [12:06:38]MH_I2C_Read... [12:06:38]Read from MH i2c: E2 17 00 53 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 44 [12:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:06:38]wFMCommunicate OK [12:06:38]requested_item fd.num is exist - process it [12:06:38]SAM_PROTO_GetFieldsCounters [12:06:38]wFMCommunicate request_size=4 [12:06:38]MH_SAM_APDU [12:06:38]CAPDU: 80 13 00 00 [12:06:38]Write to MH i2c: E2 08 00 54 27 80 13 00 00 00 00 00 00 F7 [12:06:38]Write i2c OK [12:06:38]MH_I2C_Read... [12:06:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:38]Read from MH i2c: E2 [12:06:38]MH_I2C_Read... [12:06:38]Read from MH i2c: E2 62 00 [12:06:38]MH_I2C_Read... [12:06:38]Read from MH i2c: E2 62 00 54 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9B 73 01 00 0E 04 04 00 47 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 22 [12:06:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9B 73 01 00 0E 04 04 00 47 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 [12:06:38]wFMCommunicate OK [12:06:38]SAM_PROTO_GetFieldsCounters done [12:06:38]requested_item shift.num is exist - process it [12:06:38]requested_item shift.opened is exist - process it [12:06:38]req_shift_opened [12:06:38]FM_GetShiftState [12:06:38]SAM_PROTO_GetShiftState [12:06:38]wFMCommunicate request_size=4 [12:06:38]MH_SAM_APDU [12:06:38]CAPDU: 80 13 01 00 [12:06:38]Write to MH i2c: E2 08 00 55 27 80 13 01 00 00 00 00 00 F9 [12:06:38]Write i2c OK [12:06:38]MH_I2C_Read... [12:06:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:38]Read from MH i2c: E2 [12:06:38]MH_I2C_Read... [12:06:38]Read from MH i2c: E2 0E 00 [12:06:38]MH_I2C_Read... [12:06:38]Read from MH i2c: E2 0E 00 55 27 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 6D [12:06:38]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:06:38]wFMCommunicate OK [12:06:38]SAM_PROTO_GetShiftState done [12:06:38]FM_GetShiftState done [12:06:38]req_shift_opened done [12:06:38]requested_item shift.open_date is exist - process it [12:06:38]req_shift_open_date [12:06:38]req_shift_open_date done [12:06:38]produce_requested_data done [12:06:38]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95131,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:06:38]process_action_free close_receipt [12:06:38]json_value_free [12:06:38]json_value_free done [12:06:38]process_json_proto returns [12:06:38]Send response to host [12:06:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95131,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:06:38]free response buf [12:06:38]execute_script done [12:06:38]execute_script returns [12:06:38]free content buf [12:06:38]Sock 9.Close socket [12:06:38]Sock 9.Thread stoped [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:00]accept exits with 8 [12:07:00]New connection [12:07:00]New thread 3066813796 created [12:07:00]Thread 3066957156 joined [12:07:00]Waiting for new connection... [12:07:00] Sock 8.Parse request [12:07:00]Sock 8.Check first char [12:07:00]Sock 8.First char is OK [12:07:00]request: POST /json_proto HTTP/1.0 [12:07:00]Method: POST [12:07:00]URL: /json_proto [12:07:00]Method is POST - this is cgi request [12:07:00]url: /json_proto [12:07:00]query_string will be loaded in cgi processing [12:07:00]execute_cgi json_proto POST (null) [12:07:00]execute_cgi path=json_proto method=POST [12:07:00]POST find Content-Length [12:07:00]Host: 172.17.62.67:8080 [12:07:00]Content-Length: 678 [12:07:00]Content-Type: application/json [12:07:00] [12:07:00]POST finish read [12:07:00]Found Content-Length = 678 [12:07:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.020, "sum" : 630.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:00]execute_script... [12:07: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)196100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.020, "sum" : 630.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:00]POST & json_proto [12:07:00]process_json_proto [12:07:00]json parsed OK: [12:07:00]protocol is kg_v1.0 [12:07:00]action value=close_receipt [12:07:00]process_action close_receipt [12:07:00]cmd_close_receipt [12:07:00]MH_GetDate [12:07:00]Write to MH i2c: F0 00 00 56 27 6C [12:07:00]Write i2c OK [12:07:00]MH_I2C_Read... [12:07:00]Read from MH i2c: F0 [12:07:00]MH_I2C_Read... [12:07:00]Read from MH i2c: F0 05 00 [12:07:00]MH_I2C_Read... [12:07:00]Read from MH i2c: F0 05 00 56 27 00 69 45 F0 65 74 [12:07:00]GetLastDocTimeStamp 1710245200 [12:07:00]current date 1710245225 [12:07:00]FM_GetShiftState [12:07:00]SAM_PROTO_GetShiftState [12:07:00]wFMCommunicate request_size=4 [12:07:00]MH_SAM_APDU [12:07:00]CAPDU: 80 13 01 00 [12:07:00]Write to MH i2c: E2 08 00 57 27 80 13 01 00 00 00 00 00 FB [12:07:00]Write i2c OK [12:07:00]MH_I2C_Read... [12:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:00]Read from MH i2c: E2 [12:07:00]MH_I2C_Read... [12:07:00]Read from MH i2c: E2 0E 00 [12:07:00]MH_I2C_Read... [12:07:00]Read from MH i2c: E2 0E 00 57 27 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 6F [12:07:00]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:07:00]wFMCommunicate OK [12:07:00]SAM_PROTO_GetShiftState done [12:07:00]FM_GetShiftState done [12:07:00]opened in 1710201976 [12:07:00]opened+sec_in_day 1710288376 [12:07:00]quantity*price = 63025 [12:07:00]sum+1 = 63027 [12:07:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 630.00 Внесено: 630.00 СДАЧА: 0.00 НСП 1% : 5.58 НДС 12% : 66.93 Наличными: 630.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 62 12.03.2024 12:07 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95132 ФПД: 127232296735143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T120705&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95132&fm=127232296735143&tin=02508201610067®Number=0000000000090555&sum=63000 [12:07:01]StoreToDocumentArchive [12:07:01]shift 327 fd 95132 [12:07:01]save to /storage/0327/doc_00095132 [12:07:01]save last doc name /storage/0327/doc_00095132 to /storage/kkm_last_doc_name [12:07:01]save OK [12:07:01]Clear old archive folders... [12:07:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:01]tlvbuf is 01AE2630 [12:07:01]SAM_PROTO_ClearQueue [12:07:01]wFMCommunicate request_size=4 [12:07:01]MH_SAM_APDU [12:07:01]CAPDU: 80 09 00 00 [12:07:01]Write to MH i2c: E2 08 00 64 27 80 09 00 00 00 00 00 00 FD [12:07:01]Write i2c OK [12:07:01]MH_I2C_Read... [12:07:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:01]Read from MH i2c: E2 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 03 00 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 03 00 64 27 00 90 00 FF [12:07:01]RAPDU: 90 00 [12:07:01]wFMCommunicate OK [12:07:01]SAM_PROTO_ClearQueue done [12:07:01]KKMCreateOFDPacket [12:07:01]OFDProtocolAddRootSTLVToBuf [12:07:01]FM_MakeSignedData [12:07:01]FM_MakeSignedData [12:07:01]SAM_PROTO_SignData [12:07:01]wFMCommunicate request_size=4 [12:07:01]MH_SAM_APDU [12:07:01]CAPDU: 80 0D 01 02 [12:07:01]Write to MH i2c: E2 08 00 65 27 80 0D 01 02 00 00 00 00 05 [12:07:01]Write i2c OK [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 [12:07:01]MH_I2C_Read... [12:07:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:01]Read from MH i2c: E2 03 00 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 03 00 65 27 00 90 00 00 [12:07:01]RAPDU: 90 00 [12:07:01]wFMCommunicate OK [12:07:01]wFMCommunicate request_size=255 [12:07:01]MH_SAM_APDU [12:07:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 32 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 1A 00 00 00 00 07 04 06 00 18 F6 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 69 45 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9C 73 01 00 35 04 06 00 73 [12:07:01]Write to MH i2c: E2 02 01 66 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 32 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 1A 00 00 00 00 07 04 06 00 18 F6 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 69 45 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9C 73 01 00 35 04 06 00 73 00 00 BF [12:07:01]Write i2c OK [12:07:01]MH_I2C_Read... [12:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:01]Read from MH i2c: E2 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 03 00 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 03 00 66 27 00 90 00 01 [12:07:01]RAPDU: 90 00 [12:07:01]wFMCommunicate OK [12:07:01]wFMCommunicate request_size=10 [12:07:01]MH_SAM_APDU [12:07:01]CAPDU: 80 0D 02 02 05 B7 93 D9 D1 A7 [12:07:01]Write to MH i2c: E2 0D 00 67 27 80 0D 02 02 05 00 B7 93 D9 D1 A7 00 00 AD [12:07:01]Write i2c OK [12:07:01]MH_I2C_Read... [12:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:01]Read from MH i2c: E2 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 03 00 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 03 00 67 27 00 90 00 02 [12:07:01]RAPDU: 90 00 [12:07:01]wFMCommunicate OK [12:07:01]wFMCommunicate request_size=4 [12:07:01]MH_SAM_APDU [12:07:01]CAPDU: 80 0D 03 02 [12:07:01]Write to MH i2c: E2 08 00 68 27 80 0D 03 02 00 00 00 00 0A [12:07:01]Write i2c OK [12:07:01]MH_I2C_Read... [12:07:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:01]Read from MH i2c: E2 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 0B 00 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 0B 00 68 27 00 B7 17 5D 93 AB 80 7C DD 90 00 4D [12:07:01]RAPDU: B7 17 5D 93 AB 80 7C DD 90 00 [12:07:01]wFMCommunicate OK [12:07:01]SAM_PROTO_SignData done [12:07:01]FM_MakeSignedData done [12:07:01]CreateOFDProtocolMessage [12:07:01]wFMCommunicate request_size=4 [12:07:01]MH_SAM_APDU [12:07:01]CAPDU: 80 11 00 00 [12:07:01]Write to MH i2c: E2 08 00 69 27 80 11 00 00 00 00 00 00 0A [12:07:01]Write i2c OK [12:07:01]MH_I2C_Read... [12:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:01]Read from MH i2c: E2 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 17 00 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 17 00 69 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5A [12:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:07:01]wFMCommunicate OK [12:07:01]CreateOFDProtocolMessage done [12:07:01]OFDSenderStorePacket 95132 [12:07:01]StoreOFDPacket docnum=95132 [12:07:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 6F 72 07 01 EC 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 32 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 1A 00 00 00 00 07 04 06 00 18 F6 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 69 45 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9C 73 01 00 35 04 06 00 73 B7 93 D9 D1 A7 B7 17 5D 93 AB 80 7C DD [12:07:01]CheckFolder [12:07:01]dirname=/storage/ofd_packets [12:07:01]CheckFolder done [12:07:01]ProducePacketName [12:07:01]name=ofd_packets/00095132 [12:07:01]NVStorageSaveData ofd_packets/00095132 [12:07:01]File name is /storage/ofd_packets/00095132 [12:07:01]Write 301 bytes [12:07:01]NVStorageSaveData done [12:07:01]OFDSenderStorePacket done [12:07:01]KKMCreateOFDPacket done [12:07:01]NVStorageSaveData kkm_last_timestamp [12:07:01]File name is /storage/kkm_last_timestamp [12:07:01]Write 4 bytes [12:07:01]NVStorageSaveData done [12:07:01]ExternCall_PrintAddStr [12:07:01]wPrintStart [12:07:01]Write to MH i2c: 01 00 00 6A 27 91 [12:07:01]Write i2c OK [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: 01 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: 01 07 00 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: 01 07 00 6A 27 00 80 00 00 00 FF 0F 26 [12:07:01]RasterBufferAndPrint [12:07:01]line Счет N : (1)196100 [12:07:01]line ИНН: 02508201610067 [12:07:01]line Контрольно-Кассовый Чек [12:07:01]line ПРОДАЖА [12:07:01]line ТРК (МРК, ГНК) : 12 [12:07:01]line Товар: 2710124130 [12:07:01]line Аи-92-К-5 [12:07:01]line 10.020 * 62.90 [12:07:01]line = 630.26 [12:07:01]line НДС 12% НСП 1% [12:07:01]line > о реализуемом товаре [12:07:01]line ОКРУГЛЕНИЕ: -0.26 [12:07:01]line ИТОГО: 630.00 [12:07:01]line Внесено: 630.00 [12:07:01]line СДАЧА: 0.00 [12:07:01]line НСП 1% : 5.58 [12:07:01]line НДС 12% : 66.93 [12:07:01]line Наличными: 630.00 [12:07:01]line Безнал.: 0.00 [12:07:01]line Место: АЗС № 6 "Партнер Нефть" [12:07:01]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:07:01]line СНО: Общий режим [12:07:01]line Чек 62 12.03.2024 12:07 [12:07:01]line Смена: 327 ФФД: 1.0 [12:07:01]line ЗНМ: 0300000009 [12:07:01]line РНМ: 0000000000090555 [12:07:01]line Версия ККМ: 001 [12:07:01]line ФМ: 0000000000874811 [12:07:01]line ФД: 95132 [12:07:02]line ФПД: 127232296735143 [12:07:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T120705&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95132&fm=127232296735143&tin=02508201610067®Number=0000000000090555&sum=63000 [12:07:02]OFD Sender: Processing packet 95132 [packets to send 30, broken 29] [12:07:02]ProducePacketName [12:07:02]name=ofd_packets/00095132 [12:07:02]OFD Sender: To server: pG, [12:07:02]CommunicateWithHost lk.salyk.kg:30040 [12:07:02]ConnectInit lk.salyk.kg [12:07:02]written 0, free lines is 4095 [12:07:02]Connected sock=10 [12:07:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 6F 72 07 01 EC 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 32 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 1A 00 00 00 00 07 04 06 00 18 F6 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 69 45 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9C 73 01 00 35 04 06 00 73 B7 93 D9 D1 A7 B7 17 5D 93 AB 80 7C DD [12:07:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E8 D1 47 00 3D 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9C 73 01 00 F4 03 04 00 BF F0 EF 65 B6 04 01 00 00 2C 7F 4D DE 2C F2 B9 C9 [12:07:02]CommunicateWithHost err = 0 [12:07:02]CheckOFDResponse [12:07:02]1017 (14) - 77093643461234 [12:07:02]1041 (16) - 0000000000874811 [12:07:02]1040 (4) - 95132 [12:07:02]1012 (4) - 12.03.2024 06:05 [12:07:02]1206 (1) - 0 [12:07:02]OFD Sender: Remove packet 95132 [12:07:02]ProducePacketName [12:07:02]name=ofd_packets/00095132 [12:07:02]NVStorageDeleteData [12:07:02]Write to MH i2c: 01 00 00 95 27 BC [12:07:02]Write i2c OK [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: 01 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: 01 07 00 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: 01 07 00 95 27 00 80 00 00 00 4F 0D 9F [12:07:02]RasterBufferAndPrint [12:07:02]line [12:07:02]line [12:07:02]line [12:07:02]line [12:07:02]line [12:07:02]written 0, free lines is 3411 [12:07:02]process_action close_receipt done [12:07:02]requested_data is exist [12:07:02]produce_requested_data [12:07:02]requested_item fm.sn is exist - process it [12:07:02]wFMCommunicate request_size=4 [12:07:02]MH_SAM_APDU [12:07:02]CAPDU: 80 11 00 00 [12:07:02]Write to MH i2c: E2 08 00 9C 27 80 11 00 00 00 00 00 00 3D [12:07:02]Write i2c OK [12:07:02]MH_I2C_Read... [12:07:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:02]Read from MH i2c: E2 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: E2 17 00 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: E2 17 00 9C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8D [12:07:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:07:02]wFMCommunicate OK [12:07:02]requested_item fd.num is exist - process it [12:07:02]SAM_PROTO_GetFieldsCounters [12:07:02]wFMCommunicate request_size=4 [12:07:02]MH_SAM_APDU [12:07:02]CAPDU: 80 13 00 00 [12:07:02]Write to MH i2c: E2 08 00 9D 27 80 13 00 00 00 00 00 00 40 [12:07:02]Write i2c OK [12:07:02]MH_I2C_Read... [12:07:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:02]Read from MH i2c: E2 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: E2 62 00 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: E2 62 00 9D 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9C 73 01 00 0E 04 04 00 47 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 6F [12:07:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9C 73 01 00 0E 04 04 00 47 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 [12:07:02]wFMCommunicate OK [12:07:02]SAM_PROTO_GetFieldsCounters done [12:07:02]requested_item shift.num is exist - process it [12:07:02]requested_item shift.opened is exist - process it [12:07:02]req_shift_opened [12:07:02]FM_GetShiftState [12:07:02]SAM_PROTO_GetShiftState [12:07:02]wFMCommunicate request_size=4 [12:07:02]MH_SAM_APDU [12:07:02]CAPDU: 80 13 01 00 [12:07:02]Write to MH i2c: E2 08 00 9E 27 80 13 01 00 00 00 00 00 42 [12:07:02]Write i2c OK [12:07:02]MH_I2C_Read... [12:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:03]Read from MH i2c: E2 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: E2 0E 00 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: E2 0E 00 9E 27 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B6 [12:07:03]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:07:03]wFMCommunicate OK [12:07:03]SAM_PROTO_GetShiftState done [12:07:03]FM_GetShiftState done [12:07:03]req_shift_opened done [12:07:03]requested_item shift.open_date is exist - process it [12:07:03]req_shift_open_date [12:07:03]req_shift_open_date done [12:07:03]produce_requested_data done [12:07:03]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95132,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:07:03]process_action_free close_receipt [12:07:03]json_value_free [12:07:03]json_value_free done [12:07:03]process_json_proto returns [12:07:03]Send response to host [12:07:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95132,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:07:03]free response buf [12:07:03]execute_script done [12:07:03]execute_script returns [12:07:03]free content buf [12:07:03]Sock 8.Close socket [12:07:03]Sock 8.Thread stoped [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:03]accept exits with 9 [12:09:03]New connection [12:09:03]New thread 3066957156 created [12:09:03]Thread 3066813796 joined [12:09:03]Waiting for new connection... [12:09:03] Sock 9.Parse request [12:09:03]Sock 9.Check first char [12:09:03]Sock 9.First char is OK [12:09:03]request: POST /json_proto HTTP/1.0 [12:09:03]Method: POST [12:09:03]URL: /json_proto [12:09:03]Method is POST - this is cgi request [12:09:03]url: /json_proto [12:09:03]query_string will be loaded in cgi processing [12:09:03]execute_cgi json_proto POST (null) [12:09:03]execute_cgi path=json_proto method=POST [12:09:03]POST find Content-Length [12:09:03]Host: 172.17.62.67:8080 [12:09:03]Content-Length: 678 [12:09:03]Content-Type: application/json [12:09:03] [12:09:03]POST finish read [12:09:03]Found Content-Length = 678 [12:09:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.340, "sum" : 650.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:03]execute_script... [12:09:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.340, "sum" : 650.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:03]POST & json_proto [12:09:03]process_json_proto [12:09:03]json parsed OK: [12:09:03]protocol is kg_v1.0 [12:09:03]action value=close_receipt [12:09:03]process_action close_receipt [12:09:03]cmd_close_receipt [12:09:03]MH_GetDate [12:09:03]Write to MH i2c: F0 00 00 9F 27 B5 [12:09:03]Write i2c OK [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: F0 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: F0 05 00 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: F0 05 00 9F 27 00 E4 45 F0 65 38 [12:09:03]GetLastDocTimeStamp 1710245225 [12:09:03]current date 1710245348 [12:09:03]FM_GetShiftState [12:09:03]SAM_PROTO_GetShiftState [12:09:03]wFMCommunicate request_size=4 [12:09:03]MH_SAM_APDU [12:09:03]CAPDU: 80 13 01 00 [12:09:03]Write to MH i2c: E2 08 00 A0 27 80 13 01 00 00 00 00 00 44 [12:09:03]Write i2c OK [12:09:03]MH_I2C_Read... [12:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:03]Read from MH i2c: E2 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 0E 00 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 0E 00 A0 27 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B8 [12:09:03]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:09:03]wFMCommunicate OK [12:09:03]SAM_PROTO_GetShiftState done [12:09:03]FM_GetShiftState done [12:09:03]opened in 1710201976 [12:09:03]opened+sec_in_day 1710288376 [12:09:03]quantity*price = 65038 [12:09:03]sum+1 = 65040 [12:09:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.07 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 63 12.03.2024 12:09 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95133 ФПД: 136059833535366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T120908&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95133&fm=136059833535366&tin=02508201610067®Number=0000000000090555&sum=65000 [12:09:04]StoreToDocumentArchive [12:09:04]shift 327 fd 95133 [12:09:04]save to /storage/0327/doc_00095133 [12:09:04]save last doc name /storage/0327/doc_00095133 to /storage/kkm_last_doc_name [12:09:04]save OK [12:09:04]Clear old archive folders... [12:09:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:04]tlvbuf is 01A8DAC0 [12:09:04]SAM_PROTO_ClearQueue [12:09:04]wFMCommunicate request_size=4 [12:09:04]MH_SAM_APDU [12:09:04]CAPDU: 80 09 00 00 [12:09:04]Write to MH i2c: E2 08 00 AD 27 80 09 00 00 00 00 00 00 46 [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:04]Read from MH i2c: E2 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 03 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 03 00 AD 27 00 90 00 48 [12:09:04]RAPDU: 90 00 [12:09:04]wFMCommunicate OK [12:09:04]SAM_PROTO_ClearQueue done [12:09:04]KKMCreateOFDPacket [12:09:04]OFDProtocolAddRootSTLVToBuf [12:09:04]FM_MakeSignedData [12:09:04]FM_MakeSignedData [12:09:04]SAM_PROTO_SignData [12:09:04]wFMCommunicate request_size=4 [12:09:04]MH_SAM_APDU [12:09:04]CAPDU: 80 0D 01 02 [12:09:04]Write to MH i2c: E2 08 00 AE 27 80 0D 01 02 00 00 00 00 4E [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:04]Read from MH i2c: E2 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 03 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 03 00 AE 27 00 90 00 49 [12:09:04]RAPDU: 90 00 [12:09:04]wFMCommunicate OK [12:09:04]wFMCommunicate request_size=255 [12:09:04]MH_SAM_APDU [12:09:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 0F FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 E4 45 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9D 73 01 00 35 04 06 00 7B [12:09:04]Write to MH i2c: E2 02 01 AF 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 0F FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 E4 45 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9D 73 01 00 35 04 06 00 7B 00 00 49 [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:05]Read from MH i2c: E2 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 03 00 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 03 00 AF 27 00 90 00 4A [12:09:05]RAPDU: 90 00 [12:09:05]wFMCommunicate OK [12:09:05]wFMCommunicate request_size=10 [12:09:05]MH_SAM_APDU [12:09:05]CAPDU: 80 0D 02 02 05 BE E6 0B CB 86 [12:09:05]Write to MH i2c: E2 0D 00 B0 27 80 0D 02 02 05 00 BE E6 0B CB 86 00 00 5B [12:09:05]Write i2c OK [12:09:05]MH_I2C_Read... [12:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:05]Read from MH i2c: E2 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 03 00 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 03 00 B0 27 00 90 00 4B [12:09:05]RAPDU: 90 00 [12:09:05]wFMCommunicate OK [12:09:05]wFMCommunicate request_size=4 [12:09:05]MH_SAM_APDU [12:09:05]CAPDU: 80 0D 03 02 [12:09:05]Write to MH i2c: E2 08 00 B1 27 80 0D 03 02 00 00 00 00 53 [12:09:05]Write i2c OK [12:09:05]MH_I2C_Read... [12:09:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:05]Read from MH i2c: E2 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 0B 00 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 0B 00 B1 27 00 7B 1A 4A 37 47 55 78 2A 90 00 A8 [12:09:05]RAPDU: 7B 1A 4A 37 47 55 78 2A 90 00 [12:09:05]wFMCommunicate OK [12:09:05]SAM_PROTO_SignData done [12:09:05]FM_MakeSignedData done [12:09:05]CreateOFDProtocolMessage [12:09:05]wFMCommunicate request_size=4 [12:09:05]MH_SAM_APDU [12:09:05]CAPDU: 80 11 00 00 [12:09:05]Write to MH i2c: E2 08 00 B2 27 80 11 00 00 00 00 00 00 53 [12:09:05]Write i2c OK [12:09:05]MH_I2C_Read... [12:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:05]Read from MH i2c: E2 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 17 00 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 17 00 B2 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A3 [12:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:09:05]wFMCommunicate OK [12:09:05]CreateOFDProtocolMessage done [12:09:05]OFDSenderStorePacket 95133 [12:09:05]StoreOFDPacket docnum=95133 [12:09:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 06 C9 07 01 73 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 0F FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 E4 45 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9D 73 01 00 35 04 06 00 7B BE E6 0B CB 86 7B 1A 4A 37 47 55 78 2A [12:09:05]CheckFolder [12:09:05]dirname=/storage/ofd_packets [12:09:05]CheckFolder done [12:09:05]ProducePacketName [12:09:05]name=ofd_packets/00095133 [12:09:05]NVStorageSaveData ofd_packets/00095133 [12:09:05]File name is /storage/ofd_packets/00095133 [12:09:05]Write 301 bytes [12:09:05]NVStorageSaveData done [12:09:05]OFDSenderStorePacket done [12:09:05]KKMCreateOFDPacket done [12:09:05]NVStorageSaveData kkm_last_timestamp [12:09:05]File name is /storage/kkm_last_timestamp [12:09:05]Write 4 bytes [12:09:05]NVStorageSaveData done [12:09:05]ExternCall_PrintAddStr [12:09:05]wPrintStart [12:09:05]Write to MH i2c: 01 00 00 B3 27 DA [12:09:05]Write i2c OK [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: 01 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: 01 07 00 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: 01 07 00 B3 27 00 80 00 00 00 FF 0F 6F [12:09:05]RasterBufferAndPrint [12:09:05]line Счет N : (1)196101 [12:09:05]line ИНН: 02508201610067 [12:09:05]line Контрольно-Кассовый Чек [12:09:05]line ПРОДАЖА [12:09:05]line ТРК (МРК, ГНК) : 22 [12:09:05]line Товар: 2710124130 [12:09:05]line Аи-92-К-5 [12:09:05]line 10.340 * 62.90 [12:09:05]line = 650.39 [12:09:05]line НДС 12% НСП 1% [12:09:05]line > о реализуемом товаре [12:09:05]line ОКРУГЛЕНИЕ: -0.39 [12:09:05]line ИТОГО: 650.00 [12:09:05]line Внесено: 650.00 [12:09:05]line СДАЧА: 0.00 [12:09:05]line НСП 1% : 5.76 [12:09:05]line НДС 12% : 69.07 [12:09:05]line Наличными: 650.00 [12:09:05]line Безнал.: 0.00 [12:09:05]line Место: АЗС № 6 "Партнер Нефть" [12:09:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:09:05]line СНО: Общий режим [12:09:05]line Чек 63 12.03.2024 12:09 [12:09:05]line Смена: 327 ФФД: 1.0 [12:09:05]line ЗНМ: 0300000009 [12:09:05]line РНМ: 0000000000090555 [12:09:05]line Версия ККМ: 001 [12:09:05]line ФМ: 0000000000874811 [12:09:05]line ФД: 95133 [12:09:05]line ФПД: 136059833535366 [12:09:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T120908&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95133&fm=136059833535366&tin=02508201610067®Number=0000000000090555&sum=65000 [12:09:05]OFD Sender: Processing packet 95133 [packets to send 30, broken 29] [12:09:05]ProducePacketName [12:09:05]name=ofd_packets/00095133 [12:09:05]OFD Sender: To server: pG, [12:09:05]CommunicateWithHost lk.salyk.kg:30040 [12:09:05]ConnectInit lk.salyk.kg [12:09:05]written 0, free lines is 4095 [12:09:05]Connected sock=10 [12:09:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 06 C9 07 01 73 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 0F FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 E4 45 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9D 73 01 00 35 04 06 00 7B BE E6 0B CB 86 7B 1A 4A 37 47 55 78 2A [12:09:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 14 8E 47 00 B7 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9D 73 01 00 F4 03 04 00 3A F1 EF 65 B6 04 01 00 00 E3 DC 42 23 D3 FE 77 14 [12:09:05]CommunicateWithHost err = 0 [12:09:05]CheckOFDResponse [12:09:05]1017 (14) - 77093643461234 [12:09:05]1041 (16) - 0000000000874811 [12:09:05]1040 (4) - 95133 [12:09:05]1012 (4) - 12.03.2024 06:07 [12:09:05]1206 (1) - 0 [12:09:05]OFD Sender: Remove packet 95133 [12:09:05]ProducePacketName [12:09:05]name=ofd_packets/00095133 [12:09:05]NVStorageDeleteData [12:09:06]Write to MH i2c: 01 00 00 DE 27 05 [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: 01 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: 01 07 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: 01 07 00 DE 27 00 80 00 00 00 5A 0D F3 [12:09:06]RasterBufferAndPrint [12:09:06]line [12:09:06]line [12:09:06]line [12:09:06]line [12:09:06]line [12:09:06]written 0, free lines is 3424 [12:09:06]process_action close_receipt done [12:09:06]requested_data is exist [12:09:06]produce_requested_data [12:09:06]requested_item fm.sn is exist - process it [12:09:06]wFMCommunicate request_size=4 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 11 00 00 [12:09:06]Write to MH i2c: E2 08 00 E5 27 80 11 00 00 00 00 00 00 86 [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 17 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 17 00 E5 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D6 [12:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:09:06]wFMCommunicate OK [12:09:06]requested_item fd.num is exist - process it [12:09:06]SAM_PROTO_GetFieldsCounters [12:09:06]wFMCommunicate request_size=4 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 13 00 00 [12:09:06]Write to MH i2c: E2 08 00 E6 27 80 13 00 00 00 00 00 00 89 [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 62 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 62 00 E6 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9D 73 01 00 0E 04 04 00 47 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 BC [12:09:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9D 73 01 00 0E 04 04 00 47 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:09:06]wFMCommunicate OK [12:09:06]SAM_PROTO_GetFieldsCounters done [12:09:06]requested_item shift.num is exist - process it [12:09:06]requested_item shift.opened is exist - process it [12:09:06]req_shift_opened [12:09:06]FM_GetShiftState [12:09:06]SAM_PROTO_GetShiftState [12:09:06]wFMCommunicate request_size=4 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 13 01 00 [12:09:06]Write to MH i2c: E2 08 00 E7 27 80 13 01 00 00 00 00 00 8B [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 0E 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 0E 00 E7 27 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 FF [12:09:06]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:09:06]wFMCommunicate OK [12:09:06]SAM_PROTO_GetShiftState done [12:09:06]FM_GetShiftState done [12:09:06]req_shift_opened done [12:09:06]requested_item shift.open_date is exist - process it [12:09:06]req_shift_open_date [12:09:06]req_shift_open_date done [12:09:06]produce_requested_data done [12:09:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95133,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:09:06]process_action_free close_receipt [12:09:06]json_value_free [12:09:06]json_value_free done [12:09:06]process_json_proto returns [12:09:06]Send response to host [12:09:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95133,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:09:06]free response buf [12:09:06]execute_script done [12:09:06]execute_script returns [12:09:06]free content buf [12:09:06]Sock 9.Close socket [12:09:06]Sock 9.Thread stoped [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:17]accept exits with 8 [12:10:17]New connection [12:10:17]New thread 3066813796 created [12:10:17]Thread 3066957156 joined [12:10:17]Waiting for new connection... [12:10:17] Sock 8.Parse request [12:10:17]Sock 8.Check first char [12:10:17]Sock 8.First char is OK [12:10:17]request: POST /json_proto HTTP/1.0 [12:10:17]Method: POST [12:10:17]URL: /json_proto [12:10:17]Method is POST - this is cgi request [12:10:17]url: /json_proto [12:10:17]query_string will be loaded in cgi processing [12:10:17]execute_cgi json_proto POST (null) [12:10:17]execute_cgi path=json_proto method=POST [12:10:17]POST find Content-Length [12:10:17]Host: 172.17.62.67:8080 [12:10:17]Content-Length: 816 [12:10:17]Content-Type: application/json [12:10:17] [12:10:17]POST finish read [12:10:17]Found Content-Length = 816 [12:10:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:17]execute_script... [12:10: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)196102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:17]POST & json_proto [12:10:17]process_json_proto [12:10:17]json parsed OK: [12:10:17]protocol is kg_v1.0 [12:10:17]action value=close_receipt [12:10:17]process_action close_receipt [12:10:17]cmd_close_receipt [12:10:17]MH_GetDate [12:10:17]Write to MH i2c: F0 00 00 E8 27 FE [12:10:17]Write i2c OK [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: F0 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: F0 05 00 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: F0 05 00 E8 27 00 2E 46 F0 65 CC [12:10:17]GetLastDocTimeStamp 1710245348 [12:10:17]current date 1710245422 [12:10:17]FM_GetShiftState [12:10:17]SAM_PROTO_GetShiftState [12:10:17]wFMCommunicate request_size=4 [12:10:17]MH_SAM_APDU [12:10:17]CAPDU: 80 13 01 00 [12:10:17]Write to MH i2c: E2 08 00 E9 27 80 13 01 00 00 00 00 00 8D [12:10:17]Write i2c OK [12:10:17]MH_I2C_Read... [12:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:17]Read from MH i2c: E2 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: E2 0E 00 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: E2 0E 00 E9 27 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 01 [12:10:17]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:10:17]wFMCommunicate OK [12:10:17]SAM_PROTO_GetShiftState done [12:10:17]FM_GetShiftState done [12:10:17]opened in 1710201976 [12:10:17]opened+sec_in_day 1710288376 [12:10:17]quantity*price = 30003 [12:10:17]sum+1 = 30004 [12:10:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.03 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.03 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 64 12.03.2024 12:10 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95134 ФПД: 203488516749460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T121022&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95134&fm=203488516749460&tin=02508201610067®Number=0000000000090555&sum=30003 [12:10:18]StoreToDocumentArchive [12:10:18]shift 327 fd 95134 [12:10:18]save to /storage/0327/doc_00095134 [12:10:18]save last doc name /storage/0327/doc_00095134 to /storage/kkm_last_doc_name [12:10:18]save OK [12:10:18]Clear old archive folders... [12:10:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:18]tlvbuf is 01AD1EC0 [12:10:18]SAM_PROTO_ClearQueue [12:10:18]wFMCommunicate request_size=4 [12:10:18]MH_SAM_APDU [12:10:18]CAPDU: 80 09 00 00 [12:10:18]Write to MH i2c: E2 08 00 F6 27 80 09 00 00 00 00 00 00 8F [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:18]Read from MH i2c: E2 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 03 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 03 00 F6 27 00 90 00 91 [12:10:18]RAPDU: 90 00 [12:10:18]wFMCommunicate OK [12:10:18]SAM_PROTO_ClearQueue done [12:10:18]KKMCreateOFDPacket [12:10:18]OFDProtocolAddRootSTLVToBuf [12:10:18]FM_MakeSignedData [12:10:18]FM_MakeSignedData [12:10:18]SAM_PROTO_SignData [12:10:18]wFMCommunicate request_size=4 [12:10:18]MH_SAM_APDU [12:10:18]CAPDU: 80 0D 01 02 [12:10:18]Write to MH i2c: E2 08 00 F7 27 80 0D 01 02 00 00 00 00 97 [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:18]Read from MH i2c: E2 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 03 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 03 00 F7 27 00 90 00 92 [12:10:18]RAPDU: 90 00 [12:10:18]wFMCommunicate OK [12:10:18]wFMCommunicate request_size=255 [12:10:18]MH_SAM_APDU [12:10:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 33 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 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2E 46 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9E 73 01 00 35 04 06 00 B9 [12:10:18]Write to MH i2c: E2 02 01 F8 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 33 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 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2E 46 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9E 73 01 00 35 04 06 00 B9 00 00 97 [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:18]Read from MH i2c: E2 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 03 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 03 00 F8 27 00 90 00 93 [12:10:18]RAPDU: 90 00 [12:10:18]wFMCommunicate OK [12:10:18]wFMCommunicate request_size=10 [12:10:18]MH_SAM_APDU [12:10:18]CAPDU: 80 0D 02 02 05 12 5C C1 B8 94 [12:10:18]Write to MH i2c: E2 0D 00 F9 27 80 0D 02 02 05 00 12 5C C1 B8 94 00 00 1F [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:18]Read from MH i2c: E2 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 03 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 03 00 F9 27 00 90 00 94 [12:10:18]RAPDU: 90 00 [12:10:18]wFMCommunicate OK [12:10:18]wFMCommunicate request_size=4 [12:10:18]MH_SAM_APDU [12:10:18]CAPDU: 80 0D 03 02 [12:10:18]Write to MH i2c: E2 08 00 FA 27 80 0D 03 02 00 00 00 00 9C [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:18]Read from MH i2c: E2 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 0B 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 0B 00 FA 27 00 E8 DB 27 CF FC AB 24 A9 90 00 CA [12:10:18]RAPDU: E8 DB 27 CF FC AB 24 A9 90 00 [12:10:18]wFMCommunicate OK [12:10:18]SAM_PROTO_SignData done [12:10:18]FM_MakeSignedData done [12:10:18]CreateOFDProtocolMessage [12:10:18]wFMCommunicate request_size=4 [12:10:18]MH_SAM_APDU [12:10:18]CAPDU: 80 11 00 00 [12:10:18]Write to MH i2c: E2 08 00 FB 27 80 11 00 00 00 00 00 00 9C [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:18]Read from MH i2c: E2 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 17 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 17 00 FB 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EC [12:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:10:18]wFMCommunicate OK [12:10:18]CreateOFDProtocolMessage done [12:10:18]OFDSenderStorePacket 95134 [12:10:18]StoreOFDPacket docnum=95134 [12:10:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E9 A8 07 01 1F 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 33 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 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2E 46 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9E 73 01 00 35 04 06 00 B9 12 5C C1 B8 94 E8 DB 27 CF FC AB 24 A9 [12:10:18]CheckFolder [12:10:18]dirname=/storage/ofd_packets [12:10:18]CheckFolder done [12:10:18]ProducePacketName [12:10:18]name=ofd_packets/00095134 [12:10:18]NVStorageSaveData ofd_packets/00095134 [12:10:18]File name is /storage/ofd_packets/00095134 [12:10:18]Write 301 bytes [12:10:18]NVStorageSaveData done [12:10:18]OFDSenderStorePacket done [12:10:18]KKMCreateOFDPacket done [12:10:18]NVStorageSaveData kkm_last_timestamp [12:10:18]File name is /storage/kkm_last_timestamp [12:10:18]Write 4 bytes [12:10:18]NVStorageSaveData done [12:10:18]ExternCall_PrintAddStr [12:10:18]wPrintStart [12:10:18]Write to MH i2c: 01 00 00 FC 27 23 [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: 01 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: 01 07 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: 01 07 00 FC 27 00 80 00 00 00 FF 0F B8 [12:10:18]RasterBufferAndPrint [12:10:18]line Счет N : (1)196102 [12:10:18]line ИНН: 02508201610067 [12:10:18]line Контрольно-Кассовый Чек [12:10:18]line ПРОДАЖА [12:10:18]line ТРК (МРК, ГНК) : 12 [12:10:18]line Товар: 2710124130 [12:10:18]line Аи-92-К-5 [12:10:18]line 4.770 * 62.90 [12:10:18]line = 300.03 [12:10:18]line НДС 12% НСП 1% [12:10:18]line > о реализуемом товаре [12:10:18]line ИТОГО: 300.03 [12:10:18]line НСП 1% : 2.65 [12:10:18]line НДС 12% : 31.86 [12:10:18]line Наличными: 0.00 [12:10:18]line Безнал.: 300.03 [12:10:18]line Место: АЗС № 6 "Партнер Нефть" [12:10:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:10:18]line СНО: Общий режим [12:10:18]line Чек 64 12.03.2024 12:10 [12:10:18]line Смена: 327 ФФД: 1.0 [12:10:18]line ЗНМ: 0300000009 [12:10:18]line РНМ: 0000000000090555 [12:10:18]line Версия ККМ: 001 [12:10:18]line Платежная система: Бакай Банк [12:10:18]line ФМ: 0000000000874811 [12:10:18]line ФД: 95134 [12:10:18]line ФПД: 203488516749460 [12:10:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T121022&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95134&fm=203488516749460&tin=02508201610067®Number=0000000000090555&sum=30003 [12:10:19]OFD Sender: Processing packet 95134 [packets to send 30, broken 29] [12:10:19]ProducePacketName [12:10:19]name=ofd_packets/00095134 [12:10:19]OFD Sender: To server: pG, [12:10:19]CommunicateWithHost lk.salyk.kg:30040 [12:10:19]ConnectInit lk.salyk.kg [12:10:19]written 0, free lines is 4095 [12:10:19]Connected sock=9 [12:10:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E9 A8 07 01 1F 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 33 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 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2E 46 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9E 73 01 00 35 04 06 00 B9 12 5C C1 B8 94 E8 DB 27 CF FC AB 24 A9 [12:10:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 51 07 47 00 0D 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9E 73 01 00 F4 03 04 00 84 F1 EF 65 B6 04 01 00 00 CE 61 B2 EB EA 26 4F 4C [12:10:19]CommunicateWithHost err = 0 [12:10:19]CheckOFDResponse [12:10:19]1017 (14) - 77093643461234 [12:10:19]1041 (16) - 0000000000874811 [12:10:19]1040 (4) - 95134 [12:10:19]1012 (4) - 12.03.2024 06:09 [12:10:19]1206 (1) - 0 [12:10:19]OFD Sender: Remove packet 95134 [12:10:19]ProducePacketName [12:10:19]name=ofd_packets/00095134 [12:10:19]NVStorageDeleteData [12:10:19]Write to MH i2c: 01 00 00 26 28 4E [12:10:19]Write i2c OK [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: 01 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: 01 07 00 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: 01 07 00 26 28 00 80 00 00 00 5A 0D 3C [12:10:19]RasterBufferAndPrint [12:10:19]line [12:10:19]line [12:10:19]line [12:10:19]line [12:10:19]line [12:10:19]written 0, free lines is 3424 [12:10:19]process_action close_receipt done [12:10:19]requested_data is exist [12:10:19]produce_requested_data [12:10:19]requested_item fm.sn is exist - process it [12:10:19]wFMCommunicate request_size=4 [12:10:19]MH_SAM_APDU [12:10:19]CAPDU: 80 11 00 00 [12:10:19]Write to MH i2c: E2 08 00 2D 28 80 11 00 00 00 00 00 00 CF [12:10:19]Write i2c OK [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 [12:10:19]MH_I2C_Read... [12:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:19]Read from MH i2c: E2 17 00 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 17 00 2D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1F [12:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:10:19]wFMCommunicate OK [12:10:19]requested_item fd.num is exist - process it [12:10:19]SAM_PROTO_GetFieldsCounters [12:10:19]wFMCommunicate request_size=4 [12:10:19]MH_SAM_APDU [12:10:19]CAPDU: 80 13 00 00 [12:10:19]Write to MH i2c: E2 08 00 2E 28 80 13 00 00 00 00 00 00 D2 [12:10:19]Write i2c OK [12:10:19]MH_I2C_Read... [12:10:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:19]Read from MH i2c: E2 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 62 00 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 62 00 2E 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9E 73 01 00 0E 04 04 00 47 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 09 [12:10:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9E 73 01 00 0E 04 04 00 47 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:10:19]wFMCommunicate OK [12:10:19]SAM_PROTO_GetFieldsCounters done [12:10:19]requested_item shift.num is exist - process it [12:10:19]requested_item shift.opened is exist - process it [12:10:19]req_shift_opened [12:10:19]FM_GetShiftState [12:10:19]SAM_PROTO_GetShiftState [12:10:19]wFMCommunicate request_size=4 [12:10:19]MH_SAM_APDU [12:10:19]CAPDU: 80 13 01 00 [12:10:19]Write to MH i2c: E2 08 00 2F 28 80 13 01 00 00 00 00 00 D4 [12:10:19]Write i2c OK [12:10:19]MH_I2C_Read... [12:10:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:19]Read from MH i2c: E2 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 0E 00 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 0E 00 2F 28 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 48 [12:10:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:10:19]wFMCommunicate OK [12:10:19]SAM_PROTO_GetShiftState done [12:10:19]FM_GetShiftState done [12:10:19]req_shift_opened done [12:10:19]requested_item shift.open_date is exist - process it [12:10:19]req_shift_open_date [12:10:19]req_shift_open_date done [12:10:19]produce_requested_data done [12:10:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95134,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:10:19]process_action_free close_receipt [12:10:19]json_value_free [12:10:19]json_value_free done [12:10:19]process_json_proto returns [12:10:19]Send response to host [12:10:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95134,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:10:19]free response buf [12:10:19]execute_script done [12:10:19]execute_script returns [12:10:19]free content buf [12:10:19]Sock 8.Close socket [12:10:19]Sock 8.Thread stoped [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:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:33]accept exits with 10 [12:12:33]New connection [12:12:33]New thread 3066957156 created [12:12:33]Thread 3066813796 joined [12:12:33]Waiting for new connection... [12:12:33] Sock 10.Parse request [12:12:33]Sock 10.Check first char [12:12:33]Sock 10.First char is OK [12:12:33]request: POST /json_proto HTTP/1.0 [12:12:33]Method: POST [12:12:33]URL: /json_proto [12:12:33]Method is POST - this is cgi request [12:12:33]url: /json_proto [12:12:33]query_string will be loaded in cgi processing [12:12:33]execute_cgi json_proto POST (null) [12:12:33]execute_cgi path=json_proto method=POST [12:12:33]POST find Content-Length [12:12:33]Host: 172.17.62.67:8080 [12:12:33]Content-Length: 1200 [12:12:33]Content-Type: application/json [12:12:33] [12:12:33]POST finish read [12:12:33]Found Content-Length = 1200 [12:12: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196103\u000A12.03.2024 12:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3661999\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:33]execute_script... [12:12: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196103\u000A12.03.2024 12:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3661999\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:33]POST & json_proto [12:12:33]process_json_proto [12:12:33]json parsed OK: [12:12:33]protocol is kg_v1.0 [12:12:33]action value=print_text [12:12:33]process_action print_text [12:12:33]cmd_print_text [12:12:33]ExternCall_PrintAddStr [12:12:33]wPrintStart [12:12:33]Write to MH i2c: 01 00 00 30 28 58 [12:12:33]Write i2c OK [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: 01 [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: 01 07 00 [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: 01 07 00 30 28 00 80 00 00 00 FF 0F ED [12:12:33]RasterBufferAndPrint [12:12:33]line *****ТОВАРНЫЙ ЧЕК***** [12:12:33]line АЗС 6 [12:12:33]line Партнер нефть [12:12:33]line 02508201610067 [12:12:33]line Кассир : Мыктыбекова И. [12:12:33]line Счет N : (1)196103 [12:12:33]line 12.03.2024 12:06 [12:12:33]line ПРОДАЖА [12:12:33]line ТРК (МРК, ГНК): 32 [12:12:33]line Вид ГСМ : 2710124130 [12:12:33]line Аи-92-К-5 [12:12:33]line 10.000 x 62.90 [12:12:33]line ИТОГ: 629.00 [12:12:33]line Тип оплаты: Талоны: Партнер нефть [12:12:33]line 3661999 [12:12:33]line ______________________ [12:12:33]line (подпись) [12:12:33]written 0, free lines is 4095 [12:12:33]Write to MH i2c: 01 00 00 44 28 6C [12:12:33]Write i2c OK [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: 01 [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: 01 07 00 [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: 01 07 00 44 28 00 80 00 00 00 67 0E 68 [12:12:33]RasterBufferAndPrint [12:12:33]line [12:12:33]line [12:12:33]line [12:12:33]line [12:12:33]line [12:12:33]written 0, free lines is 3690 [12:12:33]process_action print_text done [12:12:33]requested_data is exist [12:12:33]produce_requested_data [12:12:33]requested_item fm.sn is exist - process it [12:12:33]wFMCommunicate request_size=4 [12:12:33]MH_SAM_APDU [12:12:33]CAPDU: 80 11 00 00 [12:12:33]Write to MH i2c: E2 08 00 4B 28 80 11 00 00 00 00 00 00 ED [12:12:33]Write i2c OK [12:12:33]MH_I2C_Read... [12:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:33]Read from MH i2c: E2 [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: E2 17 00 [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: E2 17 00 4B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3D [12:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:12:33]wFMCommunicate OK [12:12:33]requested_item fd.num is exist - process it [12:12:33]SAM_PROTO_GetFieldsCounters [12:12:33]wFMCommunicate request_size=4 [12:12:33]MH_SAM_APDU [12:12:33]CAPDU: 80 13 00 00 [12:12:33]Write to MH i2c: E2 08 00 4C 28 80 13 00 00 00 00 00 00 F0 [12:12:33]Write i2c OK [12:12:33]MH_I2C_Read... [12:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:33]Read from MH i2c: E2 [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: E2 62 00 [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: E2 62 00 4C 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9E 73 01 00 0E 04 04 00 47 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 27 [12:12:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9E 73 01 00 0E 04 04 00 47 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:12:33]wFMCommunicate OK [12:12:33]SAM_PROTO_GetFieldsCounters done [12:12:33]requested_item shift.num is exist - process it [12:12:33]requested_item shift.opened is exist - process it [12:12:33]req_shift_opened [12:12:33]FM_GetShiftState [12:12:33]SAM_PROTO_GetShiftState [12:12:33]wFMCommunicate request_size=4 [12:12:33]MH_SAM_APDU [12:12:33]CAPDU: 80 13 01 00 [12:12:33]Write to MH i2c: E2 08 00 4D 28 80 13 01 00 00 00 00 00 F2 [12:12:33]Write i2c OK [12:12:33]MH_I2C_Read... [12:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:33]Read from MH i2c: E2 [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: E2 0E 00 [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: E2 0E 00 4D 28 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 66 [12:12:33]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:12:33]wFMCommunicate OK [12:12:33]SAM_PROTO_GetShiftState done [12:12:33]FM_GetShiftState done [12:12:33]req_shift_opened done [12:12:33]requested_item shift.open_date is exist - process it [12:12:33]req_shift_open_date [12:12:33]req_shift_open_date done [12:12:33]produce_requested_data done [12:12:33]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95134,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:12:33]process_action_free print_text [12:12:33]json_value_free [12:12:33]json_value_free done [12:12:33]process_json_proto returns [12:12:33]Send response to host [12:12:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95134,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:12:33]free response buf [12:12:33]execute_script done [12:12:33]execute_script returns [12:12:33]free content buf [12:12:33]Sock 10.Close socket [12:12:33]Sock 10.Thread stoped [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:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:49]accept exits with 8 [12:15:49]New connection [12:15:49]New thread 3066813796 created [12:15:49]Thread 3066957156 joined [12:15:49]Waiting for new connection... [12:15:49] Sock 8.Parse request [12:15:49]Sock 8.Check first char [12:15:49]Sock 8.First char is OK [12:15:49]request: POST /json_proto HTTP/1.0 [12:15:49]Method: POST [12:15:49]URL: /json_proto [12:15:49]Method is POST - this is cgi request [12:15:49]url: /json_proto [12:15:49]query_string will be loaded in cgi processing [12:15:49]execute_cgi json_proto POST (null) [12:15:49]execute_cgi path=json_proto method=POST [12:15:49]POST find Content-Length [12:15:49]Host: 172.17.62.67:8080 [12:15:49]Content-Length: 805 [12:15:49]Content-Type: application/json [12:15:49] [12:15:49]POST finish read [12:15:49]Found Content-Length = 805 [12:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:49]execute_script... [12:15: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)196104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:49]POST & json_proto [12:15:49]process_json_proto [12:15:49]json parsed OK: [12:15:49]protocol is kg_v1.0 [12:15:49]action value=close_receipt [12:15:49]process_action close_receipt [12:15:49]cmd_close_receipt [12:15:49]MH_GetDate [12:15:49]Write to MH i2c: F0 00 00 4E 28 65 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: F0 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: F0 05 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: F0 05 00 4E 28 00 7A 47 F0 65 80 [12:15:49]GetLastDocTimeStamp 1710245422 [12:15:49]current date 1710245754 [12:15:49]FM_GetShiftState [12:15:49]SAM_PROTO_GetShiftState [12:15:49]wFMCommunicate request_size=4 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 13 01 00 [12:15:49]Write to MH i2c: E2 08 00 4F 28 80 13 01 00 00 00 00 00 F4 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 0E 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 0E 00 4F 28 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 68 [12:15:49]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:15:49]wFMCommunicate OK [12:15:49]SAM_PROTO_GetShiftState done [12:15:49]FM_GetShiftState done [12:15:49]opened in 1710201976 [12:15:49]opened+sec_in_day 1710288376 [12:15:49]quantity*price = 60006 [12:15:49]sum+1 = 60008 [12:15:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.07 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.07 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 65 12.03.2024 12:15 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95135 ФПД: 255800071396039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T121554&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95135&fm=255800071396039&tin=02508201610067®Number=0000000000090555&sum=60007 [12:15:51]StoreToDocumentArchive [12:15:51]shift 327 fd 95135 [12:15:51]save to /storage/0327/doc_00095135 [12:15:51]save last doc name /storage/0327/doc_00095135 to /storage/kkm_last_doc_name [12:15:51]save OK [12:15:51]Clear old archive folders... [12:15:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:51]tlvbuf is 01A8E1C0 [12:15:51]SAM_PROTO_ClearQueue [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 09 00 00 [12:15:51]Write to MH i2c: E2 08 00 5C 28 80 09 00 00 00 00 00 00 F6 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 03 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 03 00 5C 28 00 90 00 F8 [12:15:51]RAPDU: 90 00 [12:15:51]wFMCommunicate OK [12:15:51]SAM_PROTO_ClearQueue done [12:15:51]KKMCreateOFDPacket [12:15:51]OFDProtocolAddRootSTLVToBuf [12:15:51]FM_MakeSignedData [12:15:51]FM_MakeSignedData [12:15:51]SAM_PROTO_SignData [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 0D 01 02 [12:15:51]Write to MH i2c: E2 08 00 5D 28 80 0D 01 02 00 00 00 00 FE [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 03 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 03 00 5D 28 00 90 00 F9 [12:15:51]RAPDU: 90 00 [12:15:51]wFMCommunicate OK [12:15:51]wFMCommunicate request_size=255 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 7A 47 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9F 73 01 00 35 04 06 00 E8 [12:15:51]Write to MH i2c: E2 02 01 5E 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 7A 47 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9F 73 01 00 35 04 06 00 E8 00 00 B5 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 03 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 03 00 5E 28 00 90 00 FA [12:15:51]RAPDU: 90 00 [12:15:51]wFMCommunicate OK [12:15:51]wFMCommunicate request_size=10 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 0D 02 02 05 A6 18 63 9A C7 [12:15:51]Write to MH i2c: E2 0D 00 5F 28 80 0D 02 02 05 00 A6 18 63 9A C7 00 00 8D [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 03 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 03 00 5F 28 00 90 00 FB [12:15:51]RAPDU: 90 00 [12:15:51]wFMCommunicate OK [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 0D 03 02 [12:15:51]Write to MH i2c: E2 08 00 60 28 80 0D 03 02 00 00 00 00 03 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 0B 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 0B 00 60 28 00 3B 4C 4B A2 82 DD 19 1B 90 00 0B [12:15:51]RAPDU: 3B 4C 4B A2 82 DD 19 1B 90 00 [12:15:51]wFMCommunicate OK [12:15:51]SAM_PROTO_SignData done [12:15:51]FM_MakeSignedData done [12:15:51]CreateOFDProtocolMessage [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 11 00 00 [12:15:51]Write to MH i2c: E2 08 00 61 28 80 11 00 00 00 00 00 00 03 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 17 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 17 00 61 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 53 [12:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:15:51]wFMCommunicate OK [12:15:51]CreateOFDProtocolMessage done [12:15:51]OFDSenderStorePacket 95135 [12:15:51]StoreOFDPacket docnum=95135 [12:15:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8F 43 07 01 3F 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 7A 47 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9F 73 01 00 35 04 06 00 E8 A6 18 63 9A C7 3B 4C 4B A2 82 DD 19 1B [12:15:51]CheckFolder [12:15:51]dirname=/storage/ofd_packets [12:15:51]CheckFolder done [12:15:51]ProducePacketName [12:15:51]name=ofd_packets/00095135 [12:15:51]NVStorageSaveData ofd_packets/00095135 [12:15:51]File name is /storage/ofd_packets/00095135 [12:15:51]Write 301 bytes [12:15:51]NVStorageSaveData done [12:15:51]OFDSenderStorePacket done [12:15:51]KKMCreateOFDPacket done [12:15:51]NVStorageSaveData kkm_last_timestamp [12:15:51]File name is /storage/kkm_last_timestamp [12:15:51]Write 4 bytes [12:15:51]NVStorageSaveData done [12:15:51]ExternCall_PrintAddStr [12:15:51]wPrintStart [12:15:51]Write to MH i2c: 01 00 00 62 28 8A [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: 01 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: 01 07 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: 01 07 00 62 28 00 80 00 00 00 FF 0F 1F [12:15:51]RasterBufferAndPrint [12:15:51]line Счет N : (1)196104 [12:15:51]line ИНН: 02508201610067 [12:15:51]line Контрольно-Кассовый Чек [12:15:51]line ПРОДАЖА [12:15:51]line ТРК (МРК, ГНК) : 42 [12:15:51]line Товар: 2710124130 [12:15:51]line Аи-92-К-5 [12:15:51]line 9.540 * 62.90 [12:15:51]line = 600.07 [12:15:51]line НДС 12% НСП 1% [12:15:51]line > о реализуемом товаре [12:15:51]line ИТОГО: 600.07 [12:15:51]line НСП 1% : 5.31 [12:15:51]line НДС 12% : 63.72 [12:15:51]line Наличными: 0.00 [12:15:51]line Безнал.: 600.07 [12:15:51]line Место: АЗС № 6 "Партнер Нефть" [12:15:51]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:15:51]line СНО: Общий режим [12:15:51]line Чек 65 12.03.2024 12:15 [12:15:51]line Смена: 327 ФФД: 1.0 [12:15:51]line ЗНМ: 0300000009 [12:15:51]line РНМ: 0000000000090555 [12:15:51]line Версия ККМ: 001 [12:15:51]line Платежная система: О! деньги [12:15:51]line ФМ: 0000000000874811 [12:15:51]line ФД: 95135 [12:15:51]line ФПД: 255800071396039 [12:15:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T121554&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95135&fm=255800071396039&tin=02508201610067®Number=0000000000090555&sum=60007 [12:15:51]OFD Sender: Processing packet 95135 [packets to send 30, broken 29] [12:15:51]ProducePacketName [12:15:51]name=ofd_packets/00095135 [12:15:51]OFD Sender: To server: pG, [12:15:51]CommunicateWithHost lk.salyk.kg:30040 [12:15:51]ConnectInit lk.salyk.kg [12:15:51]written 0, free lines is 4095 [12:15:51]Connected sock=10 [12:15:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8F 43 07 01 3F 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 7A 47 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9F 73 01 00 35 04 06 00 E8 A6 18 63 9A C7 3B 4C 4B A2 82 DD 19 1B [12:15:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B2 28 47 00 B9 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9F 73 01 00 F4 03 04 00 D1 F2 EF 65 B6 04 01 00 00 C4 57 C2 E8 28 2A 35 2D [12:15:52]CommunicateWithHost err = 0 [12:15:52]CheckOFDResponse [12:15:52]1017 (14) - 77093643461234 [12:15:52]1041 (16) - 0000000000874811 [12:15:52]1040 (4) - 95135 [12:15:52]1012 (4) - 12.03.2024 06:14 [12:15:52]1206 (1) - 0 [12:15:52]OFD Sender: Remove packet 95135 [12:15:52]ProducePacketName [12:15:52]name=ofd_packets/00095135 [12:15:52]NVStorageDeleteData [12:15:52]Write to MH i2c: 01 00 00 8C 28 B4 [12:15:52]Write i2c OK [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: 01 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: 01 07 00 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: 01 07 00 8C 28 00 80 00 00 00 66 0D AE [12:15:52]RasterBufferAndPrint [12:15:52]line [12:15:52]line [12:15:52]line [12:15:52]line [12:15:52]line [12:15:52]written 0, free lines is 3436 [12:15:52]process_action close_receipt done [12:15:52]requested_data is exist [12:15:52]produce_requested_data [12:15:52]requested_item fm.sn is exist - process it [12:15:52]wFMCommunicate request_size=4 [12:15:52]MH_SAM_APDU [12:15:52]CAPDU: 80 11 00 00 [12:15:52]Write to MH i2c: E2 08 00 93 28 80 11 00 00 00 00 00 00 35 [12:15:52]Write i2c OK [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 [12:15:52]MH_I2C_Read... [12:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:52]Read from MH i2c: E2 17 00 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 17 00 93 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 85 [12:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:15:52]wFMCommunicate OK [12:15:52]requested_item fd.num is exist - process it [12:15:52]SAM_PROTO_GetFieldsCounters [12:15:52]wFMCommunicate request_size=4 [12:15:52]MH_SAM_APDU [12:15:52]CAPDU: 80 13 00 00 [12:15:52]Write to MH i2c: E2 08 00 94 28 80 13 00 00 00 00 00 00 38 [12:15:52]Write i2c OK [12:15:52]MH_I2C_Read... [12:15:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:52]Read from MH i2c: E2 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 62 00 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 62 00 94 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9F 73 01 00 0E 04 04 00 47 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 73 [12:15:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9F 73 01 00 0E 04 04 00 47 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:15:52]wFMCommunicate OK [12:15:52]SAM_PROTO_GetFieldsCounters done [12:15:52]requested_item shift.num is exist - process it [12:15:52]requested_item shift.opened is exist - process it [12:15:52]req_shift_opened [12:15:52]FM_GetShiftState [12:15:52]SAM_PROTO_GetShiftState [12:15:52]wFMCommunicate request_size=4 [12:15:52]MH_SAM_APDU [12:15:52]CAPDU: 80 13 01 00 [12:15:52]Write to MH i2c: E2 08 00 95 28 80 13 01 00 00 00 00 00 3A [12:15:52]Write i2c OK [12:15:52]MH_I2C_Read... [12:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:52]Read from MH i2c: E2 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 0E 00 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 0E 00 95 28 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 AE [12:15:52]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:15:52]wFMCommunicate OK [12:15:52]SAM_PROTO_GetShiftState done [12:15:52]FM_GetShiftState done [12:15:52]req_shift_opened done [12:15:52]requested_item shift.open_date is exist - process it [12:15:52]req_shift_open_date [12:15:52]req_shift_open_date done [12:15:52]produce_requested_data done [12:15:52]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95135,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:15:52]process_action_free close_receipt [12:15:52]json_value_free [12:15:52]json_value_free done [12:15:52]process_json_proto returns [12:15:52]Send response to host [12:15:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95135,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:15:52]free response buf [12:15:52]execute_script done [12:15:52]execute_script returns [12:15:52]free content buf [12:15:52]Sock 8.Close socket [12:15:52]Sock 8.Thread stoped [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:31]accept exits with 9 [12:17:31]New connection [12:17:31]New thread 3066957156 created [12:17:31]Thread 3066813796 joined [12:17:31]Waiting for new connection... [12:17:31] Sock 9.Parse request [12:17:31]Sock 9.Check first char [12:17:31]Sock 9.First char is OK [12:17:31]request: POST /json_proto HTTP/1.0 [12:17:31]Method: POST [12:17:31]URL: /json_proto [12:17:31]Method is POST - this is cgi request [12:17:31]url: /json_proto [12:17:31]query_string will be loaded in cgi processing [12:17:31]execute_cgi json_proto POST (null) [12:17:31]execute_cgi path=json_proto method=POST [12:17:31]POST find Content-Length [12:17:31]Host: 172.17.62.67:8080 [12:17:31]Content-Length: 1200 [12:17:31]Content-Type: application/json [12:17:31] [12:17:31]POST finish read [12:17:31]Found Content-Length = 1200 [12:17:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196105\u000A12.03.2024 12:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3815548\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:31]execute_script... [12:17:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196105\u000A12.03.2024 12:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3815548\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:31]POST & json_proto [12:17:31]process_json_proto [12:17:31]json parsed OK: [12:17:31]protocol is kg_v1.0 [12:17:31]action value=print_text [12:17:31]process_action print_text [12:17:31]cmd_print_text [12:17:31]ExternCall_PrintAddStr [12:17:31]wPrintStart [12:17:31]Write to MH i2c: 01 00 00 96 28 BE [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 07 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 07 00 96 28 00 80 00 00 00 FF 0F 53 [12:17:31]RasterBufferAndPrint [12:17:31]line *****ТОВАРНЫЙ ЧЕК***** [12:17:31]line АЗС 6 [12:17:31]line Партнер нефть [12:17:31]line 02508201610067 [12:17:31]line Кассир : Мыктыбекова И. [12:17:31]line Счет N : (1)196105 [12:17:31]line 12.03.2024 12:11 [12:17:31]line ПРОДАЖА [12:17:31]line ТРК (МРК, ГНК): 22 [12:17:31]line Вид ГСМ : 2710124130 [12:17:31]line Аи-92-К-5 [12:17:31]line 10.000 x 62.90 [12:17:31]line ИТОГ: 629.00 [12:17:31]line Тип оплаты: Талоны: Партнер нефть [12:17:31]line 3815548 [12:17:31]line ______________________ [12:17:31]line (подпись) [12:17:31]written 0, free lines is 4095 [12:17:31]Write to MH i2c: 01 00 00 AA 28 D2 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 07 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 07 00 AA 28 00 80 00 00 00 66 0E CD [12:17:31]RasterBufferAndPrint [12:17:31]line [12:17:31]line [12:17:31]line [12:17:31]line [12:17:31]line [12:17:31]written 0, free lines is 3689 [12:17:31]process_action print_text done [12:17:31]requested_data is exist [12:17:31]produce_requested_data [12:17:31]requested_item fm.sn is exist - process it [12:17:31]wFMCommunicate request_size=4 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 11 00 00 [12:17:31]Write to MH i2c: E2 08 00 B1 28 80 11 00 00 00 00 00 00 53 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 17 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 17 00 B1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A3 [12:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:17:31]wFMCommunicate OK [12:17:31]requested_item fd.num is exist - process it [12:17:31]SAM_PROTO_GetFieldsCounters [12:17:31]wFMCommunicate request_size=4 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 13 00 00 [12:17:31]Write to MH i2c: E2 08 00 B2 28 80 13 00 00 00 00 00 00 56 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 62 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 62 00 B2 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9F 73 01 00 0E 04 04 00 47 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 91 [12:17:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9F 73 01 00 0E 04 04 00 47 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:17:31]wFMCommunicate OK [12:17:31]SAM_PROTO_GetFieldsCounters done [12:17:31]requested_item shift.num is exist - process it [12:17:31]requested_item shift.opened is exist - process it [12:17:31]req_shift_opened [12:17:31]FM_GetShiftState [12:17:31]SAM_PROTO_GetShiftState [12:17:31]wFMCommunicate request_size=4 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 13 01 00 [12:17:31]Write to MH i2c: E2 08 00 B3 28 80 13 01 00 00 00 00 00 58 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 0E 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 0E 00 B3 28 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CC [12:17:31]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:17:31]wFMCommunicate OK [12:17:31]SAM_PROTO_GetShiftState done [12:17:31]FM_GetShiftState done [12:17:31]req_shift_opened done [12:17:31]requested_item shift.open_date is exist - process it [12:17:31]req_shift_open_date [12:17:31]req_shift_open_date done [12:17:31]produce_requested_data done [12:17:31]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95135,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:17:31]process_action_free print_text [12:17:31]json_value_free [12:17:31]json_value_free done [12:17:31]process_json_proto returns [12:17:31]Send response to host [12:17:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95135,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:17:31]free response buf [12:17:31]execute_script done [12:17:31]execute_script returns [12:17:31]free content buf [12:17:31]Sock 9.Close socket [12:17:31]Sock 9.Thread stoped [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]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: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:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:24]accept exits with 8 [12:22:24]New connection [12:22:24]New thread 3066813796 created [12:22:24]Thread 3066957156 joined [12:22:24]Waiting for new connection... [12:22:24] Sock 8.Parse request [12:22:24]Sock 8.Check first char [12:22:24]Sock 8.First char is OK [12:22:24]request: POST /json_proto HTTP/1.0 [12:22:24]Method: POST [12:22:24]URL: /json_proto [12:22:24]Method is POST - this is cgi request [12:22:24]url: /json_proto [12:22:24]query_string will be loaded in cgi processing [12:22:24]execute_cgi json_proto POST (null) [12:22:24]execute_cgi path=json_proto method=POST [12:22:24]POST find Content-Length [12:22:24]Host: 172.17.62.67:8080 [12:22:24]Content-Length: 682 [12:22:24]Content-Type: application/json [12:22:24] [12:22:24]POST finish read [12:22:24]Found Content-Length = 682 [12:22:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:22:24]execute_script... [12:22: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)196106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:22:24]POST & json_proto [12:22:24]process_json_proto [12:22:24]json parsed OK: [12:22:24]protocol is kg_v1.0 [12:22:24]action value=close_receipt [12:22:24]process_action close_receipt [12:22:24]cmd_close_receipt [12:22:24]MH_GetDate [12:22:24]Write to MH i2c: F0 00 00 B4 28 CB [12:22:24]Write i2c OK [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: F0 [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: F0 05 00 [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: F0 05 00 B4 28 00 05 49 F0 65 73 [12:22:24]GetLastDocTimeStamp 1710245754 [12:22:24]current date 1710246149 [12:22:24]FM_GetShiftState [12:22:24]SAM_PROTO_GetShiftState [12:22:24]wFMCommunicate request_size=4 [12:22:24]MH_SAM_APDU [12:22:24]CAPDU: 80 13 01 00 [12:22:24]Write to MH i2c: E2 08 00 B5 28 80 13 01 00 00 00 00 00 5A [12:22:24]Write i2c OK [12:22:24]MH_I2C_Read... [12:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:24]Read from MH i2c: E2 [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: E2 0E 00 [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: E2 0E 00 B5 28 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CE [12:22:24]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:22:24]wFMCommunicate OK [12:22:24]SAM_PROTO_GetShiftState done [12:22:24]FM_GetShiftState done [12:22:24]opened in 1710201976 [12:22:24]opened+sec_in_day 1710288376 [12:22:24]quantity*price = 100011 [12:22:24]sum+1 = 100012 [12:22:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 66 12.03.2024 12:22 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95136 ФПД: 252295504786992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T122229&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95136&fm=252295504786992&tin=02508201610067®Number=0000000000090555&sum=100000 [12:22:25]StoreToDocumentArchive [12:22:25]shift 327 fd 95136 [12:22:25]save to /storage/0327/doc_00095136 [12:22:25]save last doc name /storage/0327/doc_00095136 to /storage/kkm_last_doc_name [12:22:25]save OK [12:22:25]Clear old archive folders... [12:22:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:25]tlvbuf is 01A8DD60 [12:22:25]SAM_PROTO_ClearQueue [12:22:25]wFMCommunicate request_size=4 [12:22:25]MH_SAM_APDU [12:22:25]CAPDU: 80 09 00 00 [12:22:25]Write to MH i2c: E2 08 00 C2 28 80 09 00 00 00 00 00 00 5C [12:22:25]Write i2c OK [12:22:25]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 03 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 03 00 C2 28 00 90 00 5E [12:22:26]RAPDU: 90 00 [12:22:26]wFMCommunicate OK [12:22:26]SAM_PROTO_ClearQueue done [12:22:26]KKMCreateOFDPacket [12:22:26]OFDProtocolAddRootSTLVToBuf [12:22:26]FM_MakeSignedData [12:22:26]FM_MakeSignedData [12:22:26]SAM_PROTO_SignData [12:22:26]wFMCommunicate request_size=4 [12:22:26]MH_SAM_APDU [12:22:26]CAPDU: 80 0D 01 02 [12:22:26]Write to MH i2c: E2 08 00 C3 28 80 0D 01 02 00 00 00 00 64 [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 03 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 03 00 C3 28 00 90 00 5F [12:22:26]RAPDU: 90 00 [12:22:26]wFMCommunicate OK [12:22:26]wFMCommunicate request_size=255 [12:22:26]MH_SAM_APDU [12:22:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 05 49 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A0 73 01 00 35 04 06 00 E5 [12:22:26]Write to MH i2c: E2 02 01 C4 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 05 49 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A0 73 01 00 35 04 06 00 E5 00 00 32 [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 03 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 03 00 C4 28 00 90 00 60 [12:22:26]RAPDU: 90 00 [12:22:26]wFMCommunicate OK [12:22:26]wFMCommunicate request_size=10 [12:22:26]MH_SAM_APDU [12:22:26]CAPDU: 80 0D 02 02 05 76 1F F0 F6 30 [12:22:26]Write to MH i2c: E2 0D 00 C5 28 80 0D 02 02 05 00 76 1F F0 F6 30 00 00 1C [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 03 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 03 00 C5 28 00 90 00 61 [12:22:26]RAPDU: 90 00 [12:22:26]wFMCommunicate OK [12:22:26]wFMCommunicate request_size=4 [12:22:26]MH_SAM_APDU [12:22:26]CAPDU: 80 0D 03 02 [12:22:26]Write to MH i2c: E2 08 00 C6 28 80 0D 03 02 00 00 00 00 69 [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 0B 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 0B 00 C6 28 00 F1 2D EE 24 1F D0 D3 16 90 00 72 [12:22:26]RAPDU: F1 2D EE 24 1F D0 D3 16 90 00 [12:22:26]wFMCommunicate OK [12:22:26]SAM_PROTO_SignData done [12:22:26]FM_MakeSignedData done [12:22:26]CreateOFDProtocolMessage [12:22:26]wFMCommunicate request_size=4 [12:22:26]MH_SAM_APDU [12:22:26]CAPDU: 80 11 00 00 [12:22:26]Write to MH i2c: E2 08 00 C7 28 80 11 00 00 00 00 00 00 69 [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 17 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 17 00 C7 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B9 [12:22:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:22:26]wFMCommunicate OK [12:22:26]CreateOFDProtocolMessage done [12:22:26]OFDSenderStorePacket 95136 [12:22:26]StoreOFDPacket docnum=95136 [12:22:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CB F2 07 01 FF 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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 05 49 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A0 73 01 00 35 04 06 00 E5 76 1F F0 F6 30 F1 2D EE 24 1F D0 D3 16 [12:22:26]CheckFolder [12:22:26]dirname=/storage/ofd_packets [12:22:26]CheckFolder done [12:22:26]ProducePacketName [12:22:26]name=ofd_packets/00095136 [12:22:26]NVStorageSaveData ofd_packets/00095136 [12:22:26]File name is /storage/ofd_packets/00095136 [12:22:26]Write 301 bytes [12:22:26]NVStorageSaveData done [12:22:26]OFDSenderStorePacket done [12:22:26]KKMCreateOFDPacket done [12:22:26]NVStorageSaveData kkm_last_timestamp [12:22:26]File name is /storage/kkm_last_timestamp [12:22:26]Write 4 bytes [12:22:26]NVStorageSaveData done [12:22:26]ExternCall_PrintAddStr [12:22:26]wPrintStart [12:22:26]Write to MH i2c: 01 00 00 C8 28 F0 [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: 01 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: 01 07 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: 01 07 00 C8 28 00 80 00 00 00 FF 0F 85 [12:22:26]RasterBufferAndPrint [12:22:26]line Счет N : (1)196106 [12:22:26]line ИНН: 02508201610067 [12:22:26]line Контрольно-Кассовый Чек [12:22:26]line ПРОДАЖА [12:22:26]line ТРК (МРК, ГНК) : 12 [12:22:26]line Товар: 2710124130 [12:22:26]line Аи-92-К-5 [12:22:26]line 15.900 * 62.90 [12:22:26]line = 1000.11 [12:22:26]line НДС 12% НСП 1% [12:22:26]line > о реализуемом товаре [12:22:26]line ОКРУГЛЕНИЕ: -0.11 [12:22:26]line ИТОГО: 1000.00 [12:22:26]line Внесено: 1000.00 [12:22:26]line СДАЧА: 0.00 [12:22:26]line НСП 1% : 8.85 [12:22:26]line НДС 12% : 106.21 [12:22:26]line Наличными: 1000.00 [12:22:26]line Безнал.: 0.00 [12:22:26]line Место: АЗС № 6 "Партнер Нефть" [12:22:26]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:22:26]line СНО: Общий режим [12:22:26]line Чек 66 12.03.2024 12:22 [12:22:26]line Смена: 327 ФФД: 1.0 [12:22:26]line ЗНМ: 0300000009 [12:22:26]line РНМ: 0000000000090555 [12:22:26]line Версия ККМ: 001 [12:22:26]line ФМ: 0000000000874811 [12:22:26]line ФД: 95136 [12:22:26]line ФПД: 252295504786992 [12:22:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T122229&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95136&fm=252295504786992&tin=02508201610067®Number=0000000000090555&sum=100000 [12:22:26]OFD Sender: Processing packet 95136 [packets to send 30, broken 29] [12:22:26]ProducePacketName [12:22:26]name=ofd_packets/00095136 [12:22:26]OFD Sender: To server: pG, [12:22:26]CommunicateWithHost lk.salyk.kg:30040 [12:22:26]ConnectInit lk.salyk.kg [12:22:26]written 0, free lines is 4095 [12:22:26]Connected sock=10 [12:22:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CB F2 07 01 FF 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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 05 49 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A0 73 01 00 35 04 06 00 E5 76 1F F0 F6 30 F1 2D EE 24 1F D0 D3 16 [12:22:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 CA AF 47 00 30 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A0 73 01 00 F4 03 04 00 5C F4 EF 65 B6 04 01 00 00 AD 08 10 26 0C EF AE 4A [12:22:27]CommunicateWithHost err = 0 [12:22:27]CheckOFDResponse [12:22:27]1017 (14) - 77093643461234 [12:22:27]1041 (16) - 0000000000874811 [12:22:27]1040 (4) - 95136 [12:22:27]1012 (4) - 12.03.2024 06:21 [12:22:27]1206 (1) - 0 [12:22:27]OFD Sender: Remove packet 95136 [12:22:27]ProducePacketName [12:22:27]name=ofd_packets/00095136 [12:22:27]NVStorageDeleteData [12:22:27]Write to MH i2c: 01 00 00 F3 28 1B [12:22:27]Write i2c OK [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: 01 [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: 01 07 00 [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: 01 07 00 F3 28 00 80 00 00 00 4B 0D FA [12:22:27]RasterBufferAndPrint [12:22:27]line [12:22:27]line [12:22:27]line [12:22:27]line [12:22:27]line [12:22:27]written 0, free lines is 3409 [12:22:27]process_action close_receipt done [12:22:27]requested_data is exist [12:22:27]produce_requested_data [12:22:27]requested_item fm.sn is exist - process it [12:22:27]wFMCommunicate request_size=4 [12:22:27]MH_SAM_APDU [12:22:27]CAPDU: 80 11 00 00 [12:22:27]Write to MH i2c: E2 08 00 FA 28 80 11 00 00 00 00 00 00 9C [12:22:27]Write i2c OK [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: E2 [12:22:27]MH_I2C_Read... [12:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:27]Read from MH i2c: E2 17 00 [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: E2 17 00 FA 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EC [12:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:22:27]wFMCommunicate OK [12:22:27]requested_item fd.num is exist - process it [12:22:27]SAM_PROTO_GetFieldsCounters [12:22:27]wFMCommunicate request_size=4 [12:22:27]MH_SAM_APDU [12:22:27]CAPDU: 80 13 00 00 [12:22:27]Write to MH i2c: E2 08 00 FB 28 80 13 00 00 00 00 00 00 9F [12:22:27]Write i2c OK [12:22:27]MH_I2C_Read... [12:22:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:27]Read from MH i2c: E2 [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: E2 62 00 [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: E2 62 00 FB 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A0 73 01 00 0E 04 04 00 47 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 DE [12:22:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A0 73 01 00 0E 04 04 00 47 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:22:27]wFMCommunicate OK [12:22:27]SAM_PROTO_GetFieldsCounters done [12:22:27]requested_item shift.num is exist - process it [12:22:27]requested_item shift.opened is exist - process it [12:22:27]req_shift_opened [12:22:27]FM_GetShiftState [12:22:27]SAM_PROTO_GetShiftState [12:22:27]wFMCommunicate request_size=4 [12:22:27]MH_SAM_APDU [12:22:27]CAPDU: 80 13 01 00 [12:22:27]Write to MH i2c: E2 08 00 FC 28 80 13 01 00 00 00 00 00 A1 [12:22:27]Write i2c OK [12:22:27]MH_I2C_Read... [12:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:27]OFD Sender: No OFD packet to send [12:22:27]Read from MH i2c: E2 [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: E2 0E 00 [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: E2 0E 00 FC 28 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 15 [12:22:27]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:22:27]wFMCommunicate OK [12:22:27]SAM_PROTO_GetShiftState done [12:22:27]FM_GetShiftState done [12:22:27]req_shift_opened done [12:22:27]requested_item shift.open_date is exist - process it [12:22:27]req_shift_open_date [12:22:27]req_shift_open_date done [12:22:27]produce_requested_data done [12:22:27]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95136,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:22:27]process_action_free close_receipt [12:22:27]json_value_free [12:22:27]json_value_free done [12:22:27]process_json_proto returns [12:22:27]Send response to host [12:22:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95136,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:22:27]free response buf [12:22:27]execute_script done [12:22:27]execute_script returns [12:22:27]free content buf [12:22:27]Sock 8.Close socket [12:22:27]Sock 8.Thread stoped [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]accept exits with 9 [12:24:12]New connection [12:24:12]New thread 3066957156 created [12:24:12]Thread 3066813796 joined [12:24:12]Waiting for new connection... [12:24:12] Sock 9.Parse request [12:24:12]Sock 9.Check first char [12:24:12]Sock 9.First char is OK [12:24:12]request: POST /json_proto HTTP/1.0 [12:24:12]Method: POST [12:24:12]URL: /json_proto [12:24:12]Method is POST - this is cgi request [12:24:12]url: /json_proto [12:24:12]query_string will be loaded in cgi processing [12:24:12]execute_cgi json_proto POST (null) [12:24:12]execute_cgi path=json_proto method=POST [12:24:12]POST find Content-Length [12:24:12]Host: 172.17.62.67:8080 [12:24:12]Content-Length: 674 [12:24:12]Content-Type: application/json [12:24:12] [12:24:12]POST finish read [12:24:12]Found Content-Length = 674 [12:24:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "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:24:12]execute_script... [12:24: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)196108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "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:24:12]POST & json_proto [12:24:12]process_json_proto [12:24:12]json parsed OK: [12:24:12]protocol is kg_v1.0 [12:24:12]action value=close_receipt [12:24:12]process_action close_receipt [12:24:12]cmd_close_receipt [12:24:12]MH_GetDate [12:24:12]Write to MH i2c: F0 00 00 FD 28 14 [12:24:12]Write i2c OK [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: F0 [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: F0 05 00 [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: F0 05 00 FD 28 00 71 49 F0 65 28 [12:24:12]GetLastDocTimeStamp 1710246149 [12:24:12]current date 1710246257 [12:24:12]FM_GetShiftState [12:24:12]SAM_PROTO_GetShiftState [12:24:12]wFMCommunicate request_size=4 [12:24:12]MH_SAM_APDU [12:24:12]CAPDU: 80 13 01 00 [12:24:12]Write to MH i2c: E2 08 00 FE 28 80 13 01 00 00 00 00 00 A3 [12:24:12]Write i2c OK [12:24:12]MH_I2C_Read... [12:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:12]Read from MH i2c: E2 [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: E2 0E 00 [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: E2 0E 00 FE 28 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 17 [12:24:12]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:24:12]wFMCommunicate OK [12:24:12]SAM_PROTO_GetShiftState done [12:24:12]FM_GetShiftState done [12:24:12]opened in 1710201976 [12:24:12]opened+sec_in_day 1710288376 [12:24:12]quantity*price = 50055 [12:24:12]sum+1 = 50056 [12:24:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 67 12.03.2024 12:24 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95137 ФПД: 88671564174058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T122417&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95137&fm=88671564174058&tin=02508201610067®Number=0000000000090555&sum=50000 [12:24:13]StoreToDocumentArchive [12:24:13]shift 327 fd 95137 [12:24:13]save to /storage/0327/doc_00095137 [12:24:13]save last doc name /storage/0327/doc_00095137 to /storage/kkm_last_doc_name [12:24:13]save OK [12:24:13]Clear old archive folders... [12:24:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:24:13]tlvbuf is 01A5F610 [12:24:13]SAM_PROTO_ClearQueue [12:24:13]wFMCommunicate request_size=4 [12:24:13]MH_SAM_APDU [12:24:13]CAPDU: 80 09 00 00 [12:24:13]Write to MH i2c: E2 08 00 0B 29 80 09 00 00 00 00 00 00 A6 [12:24:13]Write i2c OK [12:24:13]MH_I2C_Read... [12:24:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:13]Read from MH i2c: E2 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 03 00 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 03 00 0B 29 00 90 00 A8 [12:24:13]RAPDU: 90 00 [12:24:13]wFMCommunicate OK [12:24:13]SAM_PROTO_ClearQueue done [12:24:13]KKMCreateOFDPacket [12:24:13]OFDProtocolAddRootSTLVToBuf [12:24:13]FM_MakeSignedData [12:24:13]FM_MakeSignedData [12:24:13]SAM_PROTO_SignData [12:24:13]wFMCommunicate request_size=4 [12:24:13]MH_SAM_APDU [12:24:13]CAPDU: 80 0D 01 02 [12:24:13]Write to MH i2c: E2 08 00 0C 29 80 0D 01 02 00 00 00 00 AE [12:24:13]Write i2c OK [12:24:13]MH_I2C_Read... [12:24:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:13]Read from MH i2c: E2 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 03 00 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 03 00 0C 29 00 90 00 A9 [12:24:13]RAPDU: 90 00 [12:24:13]wFMCommunicate OK [12:24:13]wFMCommunicate request_size=255 [12:24:13]MH_SAM_APDU [12:24:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 71 49 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A1 73 01 00 35 04 06 00 50 A5 75 15 [12:24:13]Write to MH i2c: E2 02 01 0D 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 71 49 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A1 73 01 00 35 04 06 00 50 A5 75 15 00 00 B5 [12:24:13]Write i2c OK [12:24:13]MH_I2C_Read... [12:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:13]Read from MH i2c: E2 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 03 00 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 03 00 0D 29 00 90 00 AA [12:24:13]RAPDU: 90 00 [12:24:13]wFMCommunicate OK [12:24:13]wFMCommunicate request_size=7 [12:24:13]MH_SAM_APDU [12:24:13]CAPDU: 80 0D 02 02 02 92 EA [12:24:13]Write to MH i2c: E2 0A 00 0E 29 80 0D 02 02 02 00 92 EA 00 00 31 [12:24:13]Write i2c OK [12:24:13]MH_I2C_Read... [12:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:13]Read from MH i2c: E2 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 03 00 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 03 00 0E 29 00 90 00 AB [12:24:13]RAPDU: 90 00 [12:24:13]wFMCommunicate OK [12:24:13]wFMCommunicate request_size=4 [12:24:13]MH_SAM_APDU [12:24:13]CAPDU: 80 0D 03 02 [12:24:13]Write to MH i2c: E2 08 00 0F 29 80 0D 03 02 00 00 00 00 B3 [12:24:13]Write i2c OK [12:24:13]MH_I2C_Read... [12:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:13]Read from MH i2c: E2 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 0B 00 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 0B 00 0F 29 00 4C 4A 3D 45 1C 6C D9 3B 90 00 68 [12:24:13]RAPDU: 4C 4A 3D 45 1C 6C D9 3B 90 00 [12:24:13]wFMCommunicate OK [12:24:13]SAM_PROTO_SignData done [12:24:13]FM_MakeSignedData done [12:24:13]CreateOFDProtocolMessage [12:24:13]wFMCommunicate request_size=4 [12:24:13]MH_SAM_APDU [12:24:13]CAPDU: 80 11 00 00 [12:24:13]Write to MH i2c: E2 08 00 10 29 80 11 00 00 00 00 00 00 B3 [12:24:13]Write i2c OK [12:24:13]MH_I2C_Read... [12:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:13]Read from MH i2c: E2 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 17 00 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: E2 17 00 10 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 03 [12:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:24:13]wFMCommunicate OK [12:24:13]CreateOFDProtocolMessage done [12:24:13]OFDSenderStorePacket 95137 [12:24:13]StoreOFDPacket docnum=95137 [12:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 E2 7D 04 01 CF E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 71 49 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A1 73 01 00 35 04 06 00 50 A5 75 15 92 EA 4C 4A 3D 45 1C 6C D9 3B [12:24:13]CheckFolder [12:24:13]dirname=/storage/ofd_packets [12:24:13]CheckFolder done [12:24:13]ProducePacketName [12:24:13]name=ofd_packets/00095137 [12:24:13]NVStorageSaveData ofd_packets/00095137 [12:24:13]File name is /storage/ofd_packets/00095137 [12:24:13]Write 298 bytes [12:24:13]NVStorageSaveData done [12:24:13]OFDSenderStorePacket done [12:24:13]KKMCreateOFDPacket done [12:24:13]NVStorageSaveData kkm_last_timestamp [12:24:13]File name is /storage/kkm_last_timestamp [12:24:13]Write 4 bytes [12:24:13]NVStorageSaveData done [12:24:13]ExternCall_PrintAddStr [12:24:13]wPrintStart [12:24:13]Write to MH i2c: 01 00 00 11 29 3A [12:24:13]Write i2c OK [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: 01 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: 01 07 00 [12:24:13]MH_I2C_Read... [12:24:13]Read from MH i2c: 01 07 00 11 29 00 80 00 00 00 FF 0F CF [12:24:13]RasterBufferAndPrint [12:24:13]line Счет N : (1)196108 [12:24:13]line ИНН: 02508201610067 [12:24:13]line Контрольно-Кассовый Чек [12:24:13]line ПРОДАЖА [12:24:13]line ТРК (МРК, ГНК) : 61 [12:24:13]line Товар: 2710194210 [12:24:13]line ДТ-К-5 [12:24:13]line 7.060 * 70.90 [12:24:13]line = 500.55 [12:24:13]line НДС 12% НСП 1% [12:24:13]line > о реализуемом товаре [12:24:13]line ОКРУГЛЕНИЕ: -0.55 [12:24:13]line ИТОГО: 500.00 [12:24:13]line Внесено: 500.00 [12:24:13]line СДАЧА: 0.00 [12:24:13]line НСП 1% : 4.43 [12:24:13]line НДС 12% : 53.16 [12:24:13]line Наличными: 500.00 [12:24:13]line Безнал.: 0.00 [12:24:13]line Место: АЗС № 6 "Партнер Нефть" [12:24:13]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:24:13]line СНО: Общий режим [12:24:13]line Чек 67 12.03.2024 12:24 [12:24:13]line Смена: 327 ФФД: 1.0 [12:24:13]line ЗНМ: 0300000009 [12:24:13]line РНМ: 0000000000090555 [12:24:13]line Версия ККМ: 001 [12:24:13]line ФМ: 0000000000874811 [12:24:13]line ФД: 95137 [12:24:13]line ФПД: 88671564174058 [12:24:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T122417&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95137&fm=88671564174058&tin=02508201610067®Number=0000000000090555&sum=50000 [12:24:14]OFD Sender: Processing packet 95137 [packets to send 30, broken 29] [12:24:14]ProducePacketName [12:24:14]name=ofd_packets/00095137 [12:24:14]OFD Sender: To server: pG, [12:24:14]CommunicateWithHost lk.salyk.kg:30040 [12:24:14]ConnectInit lk.salyk.kg [12:24:14]written 0, free lines is 4095 [12:24:14]Connected sock=10 [12:24:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 E2 7D 04 01 CF E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 71 49 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A1 73 01 00 35 04 06 00 50 A5 75 15 92 EA 4C 4A 3D 45 1C 6C D9 3B [12:24:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 66 E8 47 00 0A 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A1 73 01 00 F4 03 04 00 C7 F4 EF 65 B6 04 01 00 00 AC D9 6E 70 F3 B6 DD 3E [12:24:14]CommunicateWithHost err = 0 [12:24:14]CheckOFDResponse [12:24:14]1017 (14) - 77093643461234 [12:24:14]1041 (16) - 0000000000874811 [12:24:14]1040 (4) - 95137 [12:24:14]1012 (4) - 12.03.2024 06:23 [12:24:14]1206 (1) - 0 [12:24:14]OFD Sender: Remove packet 95137 [12:24:14]ProducePacketName [12:24:14]name=ofd_packets/00095137 [12:24:14]NVStorageDeleteData [12:24:14]Write to MH i2c: 01 00 00 3C 29 65 [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: 01 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: 01 07 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: 01 07 00 3C 29 00 80 00 00 00 48 0D 41 [12:24:14]RasterBufferAndPrint [12:24:14]line [12:24:14]line [12:24:14]line [12:24:14]line [12:24:14]line [12:24:14]written 0, free lines is 3406 [12:24:14]process_action close_receipt done [12:24:14]requested_data is exist [12:24:14]produce_requested_data [12:24:14]requested_item fm.sn is exist - process it [12:24:14]wFMCommunicate request_size=4 [12:24:14]MH_SAM_APDU [12:24:14]CAPDU: 80 11 00 00 [12:24:14]Write to MH i2c: E2 08 00 43 29 80 11 00 00 00 00 00 00 E6 [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:14]Read from MH i2c: E2 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 17 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 17 00 43 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 36 [12:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:24:14]wFMCommunicate OK [12:24:14]requested_item fd.num is exist - process it [12:24:14]SAM_PROTO_GetFieldsCounters [12:24:14]wFMCommunicate request_size=4 [12:24:14]MH_SAM_APDU [12:24:14]CAPDU: 80 13 00 00 [12:24:14]Write to MH i2c: E2 08 00 44 29 80 13 00 00 00 00 00 00 E9 [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:14]Read from MH i2c: E2 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 62 00 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 62 00 44 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A1 73 01 00 0E 04 04 00 47 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 2C [12:24:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A1 73 01 00 0E 04 04 00 47 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:24:15]wFMCommunicate OK [12:24:15]SAM_PROTO_GetFieldsCounters done [12:24:15]requested_item shift.num is exist - process it [12:24:15]requested_item shift.opened is exist - process it [12:24:15]req_shift_opened [12:24:15]FM_GetShiftState [12:24:15]SAM_PROTO_GetShiftState [12:24:15]wFMCommunicate request_size=4 [12:24:15]MH_SAM_APDU [12:24:15]CAPDU: 80 13 01 00 [12:24:15]Write to MH i2c: E2 08 00 45 29 80 13 01 00 00 00 00 00 EB [12:24:15]Write i2c OK [12:24:15]MH_I2C_Read... [12:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:15]Read from MH i2c: E2 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 0E 00 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 0E 00 45 29 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 5F [12:24:15]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:24:15]wFMCommunicate OK [12:24:15]SAM_PROTO_GetShiftState done [12:24:15]FM_GetShiftState done [12:24:15]req_shift_opened done [12:24:15]requested_item shift.open_date is exist - process it [12:24:15]req_shift_open_date [12:24:15]req_shift_open_date done [12:24:15]produce_requested_data done [12:24:15]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95137,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:24:15]process_action_free close_receipt [12:24:15]json_value_free [12:24:15]json_value_free done [12:24:15]process_json_proto returns [12:24:15]Send response to host [12:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95137,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:24:15]free response buf [12:24:15]execute_script done [12:24:15]execute_script returns [12:24:15]free content buf [12:24:15]Sock 9.Close socket [12:24:15]Sock 9.Thread stoped [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:44]accept exits with 8 [12:24:44]New connection [12:24:44]New thread 3066813796 created [12:24:44]Thread 3066957156 joined [12:24:44]Waiting for new connection... [12:24:44] Sock 8.Parse request [12:24:44]Sock 8.Check first char [12:24:44]Sock 8.First char is OK [12:24:44]request: POST /json_proto HTTP/1.0 [12:24:44]Method: POST [12:24:44]URL: /json_proto [12:24:44]Method is POST - this is cgi request [12:24:44]url: /json_proto [12:24:44]query_string will be loaded in cgi processing [12:24:44]execute_cgi json_proto POST (null) [12:24:44]execute_cgi path=json_proto method=POST [12:24:44]POST find Content-Length [12:24:44]Host: 172.17.62.67:8080 [12:24:44]Content-Length: 1204 [12:24:44]Content-Type: application/json [12:24:44] [12:24:44]POST finish read [12:24:44]Found Content-Length = 1204 [12:24:44]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196107\u000A12.03.2024 12:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A3826710.09\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:44]execute_script... [12:24:44]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196107\u000A12.03.2024 12:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A3826710.09\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:44]POST & json_proto [12:24:44]process_json_proto [12:24:44]json parsed OK: [12:24:44]protocol is kg_v1.0 [12:24:44]action value=print_text [12:24:44]process_action print_text [12:24:44]cmd_print_text [12:24:44]ExternCall_PrintAddStr [12:24:44]wPrintStart [12:24:44]Write to MH i2c: 01 00 00 46 29 6F [12:24:44]Write i2c OK [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: 01 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: 01 07 00 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: 01 07 00 46 29 00 80 00 00 00 FF 0F 04 [12:24:44]RasterBufferAndPrint [12:24:44]line *****ТОВАРНЫЙ ЧЕК***** [12:24:44]line АЗС 6 [12:24:44]line Партнер нефть [12:24:44]line 02508201610067 [12:24:44]line Кассир : Мыктыбекова И. [12:24:44]line Счет N : (1)196107 [12:24:44]line 12.03.2024 12:18 [12:24:44]line ПРОДАЖА [12:24:44]line ТРК (МРК, ГНК): 22 [12:24:44]line Вид ГСМ : 2710124130 [12:24:44]line Аи-92-К-5 [12:24:44]line 20.000 x 62.90 [12:24:44]line ИТОГ: 1258.00 [12:24:44]line Тип оплаты: Талоны: Партнер нефть [12:24:44]line 3826710.09 [12:24:44]line ______________________ [12:24:44]line (подпись) [12:24:44]written 0, free lines is 4095 [12:24:44]Write to MH i2c: 01 00 00 5A 29 83 [12:24:44]Write i2c OK [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: 01 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: 01 07 00 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: 01 07 00 5A 29 00 80 00 00 00 6B 0E 83 [12:24:44]RasterBufferAndPrint [12:24:44]line [12:24:44]line [12:24:44]line [12:24:44]line [12:24:44]line [12:24:44]written 0, free lines is 3694 [12:24:44]process_action print_text done [12:24:44]requested_data is exist [12:24:44]produce_requested_data [12:24:44]requested_item fm.sn is exist - process it [12:24:44]wFMCommunicate request_size=4 [12:24:44]MH_SAM_APDU [12:24:44]CAPDU: 80 11 00 00 [12:24:44]Write to MH i2c: E2 08 00 61 29 80 11 00 00 00 00 00 00 04 [12:24:44]Write i2c OK [12:24:44]MH_I2C_Read... [12:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:44]Read from MH i2c: E2 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: E2 17 00 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: E2 17 00 61 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 54 [12:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:24:44]wFMCommunicate OK [12:24:44]requested_item fd.num is exist - process it [12:24:44]SAM_PROTO_GetFieldsCounters [12:24:44]wFMCommunicate request_size=4 [12:24:44]MH_SAM_APDU [12:24:44]CAPDU: 80 13 00 00 [12:24:44]Write to MH i2c: E2 08 00 62 29 80 13 00 00 00 00 00 00 07 [12:24:44]Write i2c OK [12:24:44]MH_I2C_Read... [12:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:44]Read from MH i2c: E2 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: E2 62 00 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: E2 62 00 62 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A1 73 01 00 0E 04 04 00 47 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 4A [12:24:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A1 73 01 00 0E 04 04 00 47 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:24:44]wFMCommunicate OK [12:24:44]SAM_PROTO_GetFieldsCounters done [12:24:44]requested_item shift.num is exist - process it [12:24:44]requested_item shift.opened is exist - process it [12:24:44]req_shift_opened [12:24:44]FM_GetShiftState [12:24:44]SAM_PROTO_GetShiftState [12:24:44]wFMCommunicate request_size=4 [12:24:44]MH_SAM_APDU [12:24:44]CAPDU: 80 13 01 00 [12:24:44]Write to MH i2c: E2 08 00 63 29 80 13 01 00 00 00 00 00 09 [12:24:44]Write i2c OK [12:24:44]MH_I2C_Read... [12:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:44]Read from MH i2c: E2 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: E2 0E 00 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: E2 0E 00 63 29 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 7D [12:24:44]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:24:44]wFMCommunicate OK [12:24:44]SAM_PROTO_GetShiftState done [12:24:44]FM_GetShiftState done [12:24:44]req_shift_opened done [12:24:44]requested_item shift.open_date is exist - process it [12:24:44]req_shift_open_date [12:24:44]req_shift_open_date done [12:24:44]produce_requested_data done [12:24:44]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95137,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:24:44]process_action_free print_text [12:24:44]json_value_free [12:24:44]json_value_free done [12:24:44]process_json_proto returns [12:24:44]Send response to host [12:24:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95137,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:24:44]free response buf [12:24:44]execute_script done [12:24:44]execute_script returns [12:24:44]free content buf [12:24:44]Sock 8.Close socket [12:24:44]Sock 8.Thread stoped [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:04]accept exits with 9 [12:25:04]New connection [12:25:04]New thread 3066957156 created [12:25:04]Thread 3066813796 joined [12:25:04]Waiting for new connection... [12:25:04] Sock 9.Parse request [12:25:04]Sock 9.Check first char [12:25:04]Sock 9.First char is OK [12:25:04]request: POST /json_proto HTTP/1.0 [12:25:04]Method: POST [12:25:04]URL: /json_proto [12:25:04]Method is POST - this is cgi request [12:25:04]url: /json_proto [12:25:04]query_string will be loaded in cgi processing [12:25:04]execute_cgi json_proto POST (null) [12:25:04]execute_cgi path=json_proto method=POST [12:25:04]POST find Content-Length [12:25:04]Host: 172.17.62.67:8080 [12:25:04]Content-Length: 661 [12:25:04]Content-Type: application/json [12:25:04] [12:25:04]POST finish read [12:25:04]Found Content-Length = 661 [12:25:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:04]execute_script... [12:25: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)196109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:04]POST & json_proto [12:25:04]process_json_proto [12:25:04]json parsed OK: [12:25:04]protocol is kg_v1.0 [12:25:04]action value=close_receipt [12:25:04]process_action close_receipt [12:25:04]cmd_close_receipt [12:25:04]MH_GetDate [12:25:04]Write to MH i2c: F0 00 00 64 29 7C [12:25:04]Write i2c OK [12:25:04]MH_I2C_Read... [12:25:04]Read from MH i2c: F0 [12:25:04]MH_I2C_Read... [12:25:04]Read from MH i2c: F0 05 00 [12:25:04]MH_I2C_Read... [12:25:04]Read from MH i2c: F0 05 00 64 29 00 A5 49 F0 65 C4 [12:25:04]GetLastDocTimeStamp 1710246257 [12:25:04]current date 1710246309 [12:25:04]FM_GetShiftState [12:25:04]SAM_PROTO_GetShiftState [12:25:04]wFMCommunicate request_size=4 [12:25:04]MH_SAM_APDU [12:25:04]CAPDU: 80 13 01 00 [12:25:04]Write to MH i2c: E2 08 00 65 29 80 13 01 00 00 00 00 00 0B [12:25:04]Write i2c OK [12:25:04]MH_I2C_Read... [12:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:04]Read from MH i2c: E2 [12:25:04]MH_I2C_Read... [12:25:04]Read from MH i2c: E2 0E 00 [12:25:04]MH_I2C_Read... [12:25:04]Read from MH i2c: E2 0E 00 65 29 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 7F [12:25:04]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:25:04]wFMCommunicate OK [12:25:04]SAM_PROTO_GetShiftState done [12:25:04]FM_GetShiftState done [12:25:04]opened in 1710201976 [12:25:04]opened+sec_in_day 1710288376 [12:25:04]quantity*price = 62900 [12:25:04]sum+1 = 62901 [12:25:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 Внесено: 1000.00 СДАЧА: 371.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 629.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 68 12.03.2024 12:25 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95138 ФПД: 46813390035612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T122509&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95138&fm=46813390035612&tin=02508201610067®Number=0000000000090555&sum=62900 [12:25:05]StoreToDocumentArchive [12:25:05]shift 327 fd 95138 [12:25:05]save to /storage/0327/doc_00095138 [12:25:05]save last doc name /storage/0327/doc_00095138 to /storage/kkm_last_doc_name [12:25:05]save OK [12:25:05]Clear old archive folders... [12:25:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:05]tlvbuf is 01A9B100 [12:25:05]SAM_PROTO_ClearQueue [12:25:05]wFMCommunicate request_size=4 [12:25:05]MH_SAM_APDU [12:25:05]CAPDU: 80 09 00 00 [12:25:05]Write to MH i2c: E2 08 00 72 29 80 09 00 00 00 00 00 00 0D [12:25:05]Write i2c OK [12:25:05]MH_I2C_Read... [12:25:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:05]Read from MH i2c: E2 [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: E2 03 00 [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: E2 03 00 72 29 00 90 00 0F [12:25:05]RAPDU: 90 00 [12:25:05]wFMCommunicate OK [12:25:05]SAM_PROTO_ClearQueue done [12:25:05]KKMCreateOFDPacket [12:25:05]OFDProtocolAddRootSTLVToBuf [12:25:05]FM_MakeSignedData [12:25:05]FM_MakeSignedData [12:25:05]SAM_PROTO_SignData [12:25:05]wFMCommunicate request_size=4 [12:25:05]MH_SAM_APDU [12:25:05]CAPDU: 80 0D 01 02 [12:25:05]Write to MH i2c: E2 08 00 73 29 80 0D 01 02 00 00 00 00 15 [12:25:05]Write i2c OK [12:25:05]MH_I2C_Read... [12:25:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:05]Read from MH i2c: E2 [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: E2 03 00 [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: E2 03 00 73 29 00 90 00 10 [12:25:05]RAPDU: 90 00 [12:25:05]wFMCommunicate OK [12:25:05]wFMCommunicate request_size=255 [12:25:05]MH_SAM_APDU [12:25:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A5 49 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A2 73 01 00 35 04 06 00 2A [12:25:05]Write to MH i2c: E2 02 01 74 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A5 49 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A2 73 01 00 35 04 06 00 2A 00 00 67 [12:25:05]Write i2c OK [12:25:05]MH_I2C_Read... [12:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:06]Read from MH i2c: E2 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 03 00 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 03 00 74 29 00 90 00 11 [12:25:06]RAPDU: 90 00 [12:25:06]wFMCommunicate OK [12:25:06]wFMCommunicate request_size=10 [12:25:06]MH_SAM_APDU [12:25:06]CAPDU: 80 0D 02 02 05 93 97 7B DA 9C [12:25:06]Write to MH i2c: E2 0D 00 75 29 80 0D 02 02 05 00 93 97 7B DA 9C 00 00 3D [12:25:06]Write i2c OK [12:25:06]MH_I2C_Read... [12:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:06]Read from MH i2c: E2 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 03 00 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 03 00 75 29 00 90 00 12 [12:25:06]RAPDU: 90 00 [12:25:06]wFMCommunicate OK [12:25:06]wFMCommunicate request_size=4 [12:25:06]MH_SAM_APDU [12:25:06]CAPDU: 80 0D 03 02 [12:25:06]Write to MH i2c: E2 08 00 76 29 80 0D 03 02 00 00 00 00 1A [12:25:06]Write i2c OK [12:25:06]MH_I2C_Read... [12:25:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:06]Read from MH i2c: E2 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 0B 00 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 0B 00 76 29 00 37 E4 7D 52 5B 6C C4 9D 90 00 2D [12:25:06]RAPDU: 37 E4 7D 52 5B 6C C4 9D 90 00 [12:25:06]wFMCommunicate OK [12:25:06]SAM_PROTO_SignData done [12:25:06]FM_MakeSignedData done [12:25:06]CreateOFDProtocolMessage [12:25:06]wFMCommunicate request_size=4 [12:25:06]MH_SAM_APDU [12:25:06]CAPDU: 80 11 00 00 [12:25:06]Write to MH i2c: E2 08 00 77 29 80 11 00 00 00 00 00 00 1A [12:25:06]Write i2c OK [12:25:06]MH_I2C_Read... [12:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:06]Read from MH i2c: E2 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 17 00 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 17 00 77 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6A [12:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:25:06]wFMCommunicate OK [12:25:06]CreateOFDProtocolMessage done [12:25:06]OFDSenderStorePacket 95138 [12:25:06]StoreOFDPacket docnum=95138 [12:25:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 87 14 07 01 7E 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A5 49 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A2 73 01 00 35 04 06 00 2A 93 97 7B DA 9C 37 E4 7D 52 5B 6C C4 9D [12:25:06]CheckFolder [12:25:06]dirname=/storage/ofd_packets [12:25:06]CheckFolder done [12:25:06]ProducePacketName [12:25:06]name=ofd_packets/00095138 [12:25:06]NVStorageSaveData ofd_packets/00095138 [12:25:06]File name is /storage/ofd_packets/00095138 [12:25:06]Write 301 bytes [12:25:06]NVStorageSaveData done [12:25:06]OFDSenderStorePacket done [12:25:06]KKMCreateOFDPacket done [12:25:06]NVStorageSaveData kkm_last_timestamp [12:25:06]File name is /storage/kkm_last_timestamp [12:25:06]Write 4 bytes [12:25:06]NVStorageSaveData done [12:25:06]ExternCall_PrintAddStr [12:25:06]wPrintStart [12:25:06]Write to MH i2c: 01 00 00 78 29 A1 [12:25:06]Write i2c OK [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: 01 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: 01 07 00 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: 01 07 00 78 29 00 80 00 00 00 FF 0F 36 [12:25:06]RasterBufferAndPrint [12:25:06]line Счет N : (1)196109 [12:25:06]line ИНН: 02508201610067 [12:25:06]line Контрольно-Кассовый Чек [12:25:06]line ПРОДАЖА [12:25:06]line ТРК (МРК, ГНК) : 12 [12:25:06]line Товар: 2710124130 [12:25:06]line Аи-92-К-5 [12:25:06]line 10.000 * 62.90 [12:25:06]line = 629.00 [12:25:06]line НДС 12% НСП 1% [12:25:06]line > о реализуемом товаре [12:25:06]line ИТОГО: 629.00 [12:25:06]line Внесено: 1000.00 [12:25:06]line СДАЧА: 371.00 [12:25:06]line НСП 1% : 5.57 [12:25:06]line НДС 12% : 66.80 [12:25:06]line Наличными: 629.00 [12:25:06]line Безнал.: 0.00 [12:25:06]line Место: АЗС № 6 "Партнер Нефть" [12:25:06]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:25:06]line СНО: Общий режим [12:25:06]line Чек 68 12.03.2024 12:25 [12:25:06]line Смена: 327 ФФД: 1.0 [12:25:06]line ЗНМ: 0300000009 [12:25:06]line РНМ: 0000000000090555 [12:25:06]line Версия ККМ: 001 [12:25:06]line ФМ: 0000000000874811 [12:25:06]line ФД: 95138 [12:25:06]line ФПД: 46813390035612 [12:25:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T122509&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95138&fm=46813390035612&tin=02508201610067®Number=0000000000090555&sum=62900 [12:25:06]OFD Sender: Processing packet 95138 [packets to send 30, broken 29] [12:25:06]ProducePacketName [12:25:06]name=ofd_packets/00095138 [12:25:06]OFD Sender: To server: pG, [12:25:06]CommunicateWithHost lk.salyk.kg:30040 [12:25:06]ConnectInit lk.salyk.kg [12:25:06]written 0, free lines is 4095 [12:25:06]Connected sock=10 [12:25:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 87 14 07 01 7E 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A5 49 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A2 73 01 00 35 04 06 00 2A 93 97 7B DA 9C 37 E4 7D 52 5B 6C C4 9D [12:25:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 52 58 47 00 F2 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A2 73 01 00 F4 03 04 00 FB F4 EF 65 B6 04 01 00 00 0B 66 F5 73 60 7F D3 BB [12:25:06]CommunicateWithHost err = 0 [12:25:06]CheckOFDResponse [12:25:06]1017 (14) - 77093643461234 [12:25:06]1041 (16) - 0000000000874811 [12:25:06]1040 (4) - 95138 [12:25:06]1012 (4) - 12.03.2024 06:23 [12:25:06]1206 (1) - 0 [12:25:06]OFD Sender: Remove packet 95138 [12:25:06]ProducePacketName [12:25:06]name=ofd_packets/00095138 [12:25:06]NVStorageDeleteData [12:25:07]Write to MH i2c: 01 00 00 A2 29 CB [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: 01 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: 01 07 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: 01 07 00 A2 29 00 80 00 00 00 5E 0D BD [12:25:07]RasterBufferAndPrint [12:25:07]line [12:25:07]line [12:25:07]line [12:25:07]line [12:25:07]line [12:25:07]written 0, free lines is 3428 [12:25:07]process_action close_receipt done [12:25:07]requested_data is exist [12:25:07]produce_requested_data [12:25:07]requested_item fm.sn is exist - process it [12:25:07]wFMCommunicate request_size=4 [12:25:07]MH_SAM_APDU [12:25:07]CAPDU: 80 11 00 00 [12:25:07]Write to MH i2c: E2 08 00 A9 29 80 11 00 00 00 00 00 00 4C [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:07]Read from MH i2c: E2 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 17 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 17 00 A9 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9C [12:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:25:07]wFMCommunicate OK [12:25:07]requested_item fd.num is exist - process it [12:25:07]SAM_PROTO_GetFieldsCounters [12:25:07]wFMCommunicate request_size=4 [12:25:07]MH_SAM_APDU [12:25:07]CAPDU: 80 13 00 00 [12:25:07]Write to MH i2c: E2 08 00 AA 29 80 13 00 00 00 00 00 00 4F [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:07]Read from MH i2c: E2 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 62 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 62 00 AA 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A2 73 01 00 0E 04 04 00 47 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 96 [12:25:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A2 73 01 00 0E 04 04 00 47 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:25:07]wFMCommunicate OK [12:25:07]SAM_PROTO_GetFieldsCounters done [12:25:07]requested_item shift.num is exist - process it [12:25:07]requested_item shift.opened is exist - process it [12:25:07]req_shift_opened [12:25:07]FM_GetShiftState [12:25:07]SAM_PROTO_GetShiftState [12:25:07]wFMCommunicate request_size=4 [12:25:07]MH_SAM_APDU [12:25:07]CAPDU: 80 13 01 00 [12:25:07]Write to MH i2c: E2 08 00 AB 29 80 13 01 00 00 00 00 00 51 [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:07]Read from MH i2c: E2 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 0E 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 0E 00 AB 29 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C5 [12:25:07]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:25:07]wFMCommunicate OK [12:25:07]SAM_PROTO_GetShiftState done [12:25:07]FM_GetShiftState done [12:25:07]req_shift_opened done [12:25:07]requested_item shift.open_date is exist - process it [12:25:07]req_shift_open_date [12:25:07]req_shift_open_date done [12:25:07]produce_requested_data done [12:25:07]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95138,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:25:07]process_action_free close_receipt [12:25:07]json_value_free [12:25:07]json_value_free done [12:25:07]process_json_proto returns [12:25:07]Send response to host [12:25:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95138,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:25:07]free response buf [12:25:07]execute_script done [12:25:07]execute_script returns [12:25:07]free content buf [12:25:07]Sock 9.Close socket [12:25:07]Sock 9.Thread stoped [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:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:20]accept exits with 8 [12:31:20]New connection [12:31:20]New thread 3066813796 created [12:31:20]Thread 3066957156 joined [12:31:20]Waiting for new connection... [12:31:20] Sock 8.Parse request [12:31:20]Sock 8.Check first char [12:31:20]Sock 8.First char is OK [12:31:20]request: POST /json_proto HTTP/1.0 [12:31:20]Method: POST [12:31:20]URL: /json_proto [12:31:20]Method is POST - this is cgi request [12:31:20]url: /json_proto [12:31:20]query_string will be loaded in cgi processing [12:31:20]execute_cgi json_proto POST (null) [12:31:20]execute_cgi path=json_proto method=POST [12:31:20]POST find Content-Length [12:31:20]Host: 172.17.62.67:8080 [12:31:20]Content-Length: 677 [12:31:20]Content-Type: application/json [12:31:20] [12:31:20]POST finish read [12:31:20]Found Content-Length = 677 [12:31:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:31:20]execute_script... [12:31: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)196110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:31:20]POST & json_proto [12:31:20]process_json_proto [12:31:20]json parsed OK: [12:31:20]protocol is kg_v1.0 [12:31:20]action value=close_receipt [12:31:20]process_action close_receipt [12:31:20]cmd_close_receipt [12:31:20]MH_GetDate [12:31:20]Write to MH i2c: F0 00 00 AC 29 C4 [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: F0 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: F0 05 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: F0 05 00 AC 29 00 1D 4B F0 65 86 [12:31:20]GetLastDocTimeStamp 1710246309 [12:31:20]current date 1710246685 [12:31:20]FM_GetShiftState [12:31:20]SAM_PROTO_GetShiftState [12:31:20]wFMCommunicate request_size=4 [12:31:20]MH_SAM_APDU [12:31:20]CAPDU: 80 13 01 00 [12:31:20]Write to MH i2c: E2 08 00 AD 29 80 13 01 00 00 00 00 00 53 [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:20]Read from MH i2c: E2 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 0E 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 0E 00 AD 29 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C7 [12:31:20]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:31:20]wFMCommunicate OK [12:31:20]SAM_PROTO_GetShiftState done [12:31:20]FM_GetShiftState done [12:31:20]opened in 1710201976 [12:31:20]opened+sec_in_day 1710288376 [12:31:20]quantity*price = 50005 [12:31:20]sum+1 = 50007 [12:31:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 69 12.03.2024 12:31 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95139 ФПД: 254003645164719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T123125&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95139&fm=254003645164719&tin=02508201610067®Number=0000000000090555&sum=50000 [12:31:21]StoreToDocumentArchive [12:31:21]shift 327 fd 95139 [12:31:21]save to /storage/0327/doc_00095139 [12:31:21]save last doc name /storage/0327/doc_00095139 to /storage/kkm_last_doc_name [12:31:21]save OK [12:31:21]Clear old archive folders... [12:31:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:21]tlvbuf is 01A26200 [12:31:21]SAM_PROTO_ClearQueue [12:31:21]wFMCommunicate request_size=4 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 09 00 00 [12:31:21]Write to MH i2c: E2 08 00 BA 29 80 09 00 00 00 00 00 00 55 [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:21]Read from MH i2c: E2 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 BA 29 00 90 00 57 [12:31:21]RAPDU: 90 00 [12:31:21]wFMCommunicate OK [12:31:21]SAM_PROTO_ClearQueue done [12:31:21]KKMCreateOFDPacket [12:31:21]OFDProtocolAddRootSTLVToBuf [12:31:21]FM_MakeSignedData [12:31:21]FM_MakeSignedData [12:31:21]SAM_PROTO_SignData [12:31:21]wFMCommunicate request_size=4 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 0D 01 02 [12:31:21]Write to MH i2c: E2 08 00 BB 29 80 0D 01 02 00 00 00 00 5D [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:21]Read from MH i2c: E2 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 BB 29 00 90 00 58 [12:31:21]RAPDU: 90 00 [12:31:21]wFMCommunicate OK [12:31:21]wFMCommunicate request_size=255 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 1D 4B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A3 73 01 00 35 04 06 00 E7 [12:31:21]Write to MH i2c: E2 02 01 BC 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 1D 4B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A3 73 01 00 35 04 06 00 E7 00 00 4E [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:21]Read from MH i2c: E2 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 BC 29 00 90 00 59 [12:31:21]RAPDU: 90 00 [12:31:21]wFMCommunicate OK [12:31:21]wFMCommunicate request_size=10 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 0D 02 02 05 03 D5 0A AC AF [12:31:21]Write to MH i2c: E2 0D 00 BD 29 80 0D 02 02 05 00 03 D5 0A AC AF 00 00 A7 [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 03 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 03 00 BD 29 00 90 00 5A [12:31:22]RAPDU: 90 00 [12:31:22]wFMCommunicate OK [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 0D 03 02 [12:31:22]Write to MH i2c: E2 08 00 BE 29 80 0D 03 02 00 00 00 00 62 [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 0B 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 0B 00 BE 29 00 B3 EB 45 63 E7 8E DB B6 90 00 AF [12:31:22]RAPDU: B3 EB 45 63 E7 8E DB B6 90 00 [12:31:22]wFMCommunicate OK [12:31:22]SAM_PROTO_SignData done [12:31:22]FM_MakeSignedData done [12:31:22]CreateOFDProtocolMessage [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 11 00 00 [12:31:22]Write to MH i2c: E2 08 00 BF 29 80 11 00 00 00 00 00 00 62 [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 17 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 17 00 BF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B2 [12:31:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:31:22]wFMCommunicate OK [12:31:22]CreateOFDProtocolMessage done [12:31:22]OFDSenderStorePacket 95139 [12:31:22]StoreOFDPacket docnum=95139 [12:31:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 44 C3 07 01 87 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 1D 4B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A3 73 01 00 35 04 06 00 E7 03 D5 0A AC AF B3 EB 45 63 E7 8E DB B6 [12:31:22]CheckFolder [12:31:22]dirname=/storage/ofd_packets [12:31:22]CheckFolder done [12:31:22]ProducePacketName [12:31:22]name=ofd_packets/00095139 [12:31:22]NVStorageSaveData ofd_packets/00095139 [12:31:22]File name is /storage/ofd_packets/00095139 [12:31:22]Write 301 bytes [12:31:22]NVStorageSaveData done [12:31:22]OFDSenderStorePacket done [12:31:22]KKMCreateOFDPacket done [12:31:22]NVStorageSaveData kkm_last_timestamp [12:31:22]File name is /storage/kkm_last_timestamp [12:31:22]Write 4 bytes [12:31:22]NVStorageSaveData done [12:31:22]ExternCall_PrintAddStr [12:31:22]wPrintStart [12:31:22]Write to MH i2c: 01 00 00 C0 29 E9 [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: 01 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: 01 07 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: 01 07 00 C0 29 00 80 00 00 00 FF 0F 7E [12:31:22]RasterBufferAndPrint [12:31:22]line Счет N : (1)196110 [12:31:22]line ИНН: 02508201610067 [12:31:22]line Контрольно-Кассовый Чек [12:31:22]line ПРОДАЖА [12:31:22]line ТРК (МРК, ГНК) : 32 [12:31:22]line Товар: 2710124130 [12:31:22]line Аи-92-К-5 [12:31:22]line 7.950 * 62.90 [12:31:22]line = 500.06 [12:31:22]line НДС 12% НСП 1% [12:31:22]line > о реализуемом товаре [12:31:22]line ОКРУГЛЕНИЕ: -0.06 [12:31:22]line ИТОГО: 500.00 [12:31:22]line Внесено: 500.00 [12:31:22]line СДАЧА: 0.00 [12:31:22]line НСП 1% : 4.42 [12:31:22]line НДС 12% : 53.10 [12:31:22]line Наличными: 500.00 [12:31:22]line Безнал.: 0.00 [12:31:22]line Место: АЗС № 6 "Партнер Нефть" [12:31:22]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:31:22]line СНО: Общий режим [12:31:22]line Чек 69 12.03.2024 12:31 [12:31:22]line Смена: 327 ФФД: 1.0 [12:31:22]line ЗНМ: 0300000009 [12:31:22]line РНМ: 0000000000090555 [12:31:22]line Версия ККМ: 001 [12:31:22]line ФМ: 0000000000874811 [12:31:22]line ФД: 95139 [12:31:22]line ФПД: 254003645164719 [12:31:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T123125&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95139&fm=254003645164719&tin=02508201610067®Number=0000000000090555&sum=50000 [12:31:22]written 0, free lines is 4095 [12:31:22]OFD Sender: Processing packet 95139 [packets to send 30, broken 29] [12:31:22]ProducePacketName [12:31:22]name=ofd_packets/00095139 [12:31:22]OFD Sender: To server: pG, [12:31:22]CommunicateWithHost lk.salyk.kg:30040 [12:31:22]ConnectInit lk.salyk.kg [12:31:22]Connected sock=10 [12:31:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 44 C3 07 01 87 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 1D 4B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A3 73 01 00 35 04 06 00 E7 03 D5 0A AC AF B3 EB 45 63 E7 8E DB B6 [12:31:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 50 87 47 00 4E B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A3 73 01 00 F4 03 04 00 73 F6 EF 65 B6 04 01 00 00 0A 99 9F 6D 8E A4 03 54 [12:31:22]CommunicateWithHost err = 0 [12:31:22]CheckOFDResponse [12:31:22]1017 (14) - 77093643461234 [12:31:22]1041 (16) - 0000000000874811 [12:31:22]1040 (4) - 95139 [12:31:22]1012 (4) - 12.03.2024 06:30 [12:31:22]1206 (1) - 0 [12:31:22]OFD Sender: Remove packet 95139 [12:31:22]ProducePacketName [12:31:22]name=ofd_packets/00095139 [12:31:22]NVStorageDeleteData [12:31:22]Write to MH i2c: 01 00 00 EB 29 14 [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: 01 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: 01 07 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: 01 07 00 EB 29 00 80 00 00 00 42 0D EA [12:31:22]RasterBufferAndPrint [12:31:22]line [12:31:22]line [12:31:22]line [12:31:22]line [12:31:22]line [12:31:22]written 0, free lines is 3400 [12:31:22]process_action close_receipt done [12:31:22]requested_data is exist [12:31:22]produce_requested_data [12:31:22]requested_item fm.sn is exist - process it [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 11 00 00 [12:31:22]Write to MH i2c: E2 08 00 F2 29 80 11 00 00 00 00 00 00 95 [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:23]Read from MH i2c: E2 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 17 00 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 17 00 F2 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E5 [12:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:31:23]wFMCommunicate OK [12:31:23]requested_item fd.num is exist - process it [12:31:23]SAM_PROTO_GetFieldsCounters [12:31:23]wFMCommunicate request_size=4 [12:31:23]MH_SAM_APDU [12:31:23]CAPDU: 80 13 00 00 [12:31:23]Write to MH i2c: E2 08 00 F3 29 80 13 00 00 00 00 00 00 98 [12:31:23]Write i2c OK [12:31:23]MH_I2C_Read... [12:31:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:23]Read from MH i2c: E2 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 62 00 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 62 00 F3 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A3 73 01 00 0E 04 04 00 47 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 E3 [12:31:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A3 73 01 00 0E 04 04 00 47 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:31:23]wFMCommunicate OK [12:31:23]SAM_PROTO_GetFieldsCounters done [12:31:23]requested_item shift.num is exist - process it [12:31:23]requested_item shift.opened is exist - process it [12:31:23]req_shift_opened [12:31:23]FM_GetShiftState [12:31:23]SAM_PROTO_GetShiftState [12:31:23]wFMCommunicate request_size=4 [12:31:23]MH_SAM_APDU [12:31:23]CAPDU: 80 13 01 00 [12:31:23]Write to MH i2c: E2 08 00 F4 29 80 13 01 00 00 00 00 00 9A [12:31:23]Write i2c OK [12:31:23]MH_I2C_Read... [12:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:23]Read from MH i2c: E2 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 0E 00 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 0E 00 F4 29 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 0E [12:31:23]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:31:23]wFMCommunicate OK [12:31:23]SAM_PROTO_GetShiftState done [12:31:23]FM_GetShiftState done [12:31:23]req_shift_opened done [12:31:23]requested_item shift.open_date is exist - process it [12:31:23]req_shift_open_date [12:31:23]req_shift_open_date done [12:31:23]produce_requested_data done [12:31:23]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95139,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:31:23]process_action_free close_receipt [12:31:23]json_value_free [12:31:23]json_value_free done [12:31:23]process_json_proto returns [12:31:23]Send response to host [12:31:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95139,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:31:23]free response buf [12:31:23]execute_script done [12:31:23]execute_script returns [12:31:23]free content buf [12:31:23]Sock 8.Close socket [12:31:23]Sock 8.Thread stoped [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [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]accept exits with 9 [12:42:03]New connection [12:42:03]New thread 3066957156 created [12:42:03]Thread 3066813796 joined [12:42:03]Waiting for new connection... [12:42:03] Sock 9.Parse request [12:42:03]Sock 9.Check first char [12:42:03]Sock 9.First char is OK [12:42:03]request: POST /json_proto HTTP/1.0 [12:42:03]Method: POST [12:42:03]URL: /json_proto [12:42:03]Method is POST - this is cgi request [12:42:03]url: /json_proto [12:42:03]query_string will be loaded in cgi processing [12:42:03]execute_cgi json_proto POST (null) [12:42:03]execute_cgi path=json_proto method=POST [12:42:03]POST find Content-Length [12:42:03]Host: 172.17.62.67:8080 [12:42:03]Content-Length: 682 [12:42:03]Content-Type: application/json [12:42:03] [12:42:03]POST finish read [12:42:03]Found Content-Length = 682 [12:42:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:42:03]execute_script... [12:42: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)196111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:42:03]POST & json_proto [12:42:03]process_json_proto [12:42:03]json parsed OK: [12:42:03]protocol is kg_v1.0 [12:42:03]action value=close_receipt [12:42:03]process_action close_receipt [12:42:03]cmd_close_receipt [12:42:03]MH_GetDate [12:42:03]Write to MH i2c: F0 00 00 F5 29 0D [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: F0 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: F0 05 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: F0 05 00 F5 29 00 A0 4D F0 65 54 [12:42:03]GetLastDocTimeStamp 1710246685 [12:42:03]current date 1710247328 [12:42:03]FM_GetShiftState [12:42:03]SAM_PROTO_GetShiftState [12:42:03]wFMCommunicate request_size=4 [12:42:03]MH_SAM_APDU [12:42:03]CAPDU: 80 13 01 00 [12:42:03]Write to MH i2c: E2 08 00 F6 29 80 13 01 00 00 00 00 00 9C [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]OFD Sender: No OFD packet to send [12:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:03]Read from MH i2c: E2 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 0E 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 0E 00 F6 29 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 10 [12:42:03]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:42:03]wFMCommunicate OK [12:42:03]SAM_PROTO_GetShiftState done [12:42:03]FM_GetShiftState done [12:42:03]opened in 1710201976 [12:42:03]opened+sec_in_day 1710288376 [12:42:03]quantity*price = 100011 [12:42:03]sum+1 = 100012 [12:42:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 70 12.03.2024 12:42 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95140 ФПД: 123732983902715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T124209&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95140&fm=123732983902715&tin=02508201610067®Number=0000000000090555&sum=100000 [12:42:04]StoreToDocumentArchive [12:42:04]shift 327 fd 95140 [12:42:04]save to /storage/0327/doc_00095140 [12:42:04]save last doc name /storage/0327/doc_00095140 to /storage/kkm_last_doc_name [12:42:04]save OK [12:42:04]Clear old archive folders... [12:42:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:04]tlvbuf is 01A405E0 [12:42:04]SAM_PROTO_ClearQueue [12:42:04]wFMCommunicate request_size=4 [12:42:04]MH_SAM_APDU [12:42:04]CAPDU: 80 09 00 00 [12:42:04]Write to MH i2c: E2 08 00 03 2A 80 09 00 00 00 00 00 00 9F [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:05]Read from MH i2c: E2 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: E2 03 00 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: E2 03 00 03 2A 00 90 00 A1 [12:42:05]RAPDU: 90 00 [12:42:05]wFMCommunicate OK [12:42:05]SAM_PROTO_ClearQueue done [12:42:05]KKMCreateOFDPacket [12:42:05]OFDProtocolAddRootSTLVToBuf [12:42:05]FM_MakeSignedData [12:42:05]FM_MakeSignedData [12:42:05]SAM_PROTO_SignData [12:42:05]wFMCommunicate request_size=4 [12:42:05]MH_SAM_APDU [12:42:05]CAPDU: 80 0D 01 02 [12:42:05]Write to MH i2c: E2 08 00 04 2A 80 0D 01 02 00 00 00 00 A7 [12:42:05]Write i2c OK [12:42:05]MH_I2C_Read... [12:42:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:05]Read from MH i2c: E2 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: E2 03 00 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: E2 03 00 04 2A 00 90 00 A2 [12:42:05]RAPDU: 90 00 [12:42:05]wFMCommunicate OK [12:42:05]wFMCommunicate request_size=255 [12:42:05]MH_SAM_APDU [12:42:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A1 4D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A4 73 01 00 35 04 06 00 70 [12:42:05]Write to MH i2c: E2 02 01 05 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A1 4D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A4 73 01 00 35 04 06 00 70 00 00 A8 [12:42:05]Write i2c OK [12:42:05]MH_I2C_Read... [12:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:05]Read from MH i2c: E2 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: E2 03 00 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: E2 03 00 05 2A 00 90 00 A3 [12:42:05]RAPDU: 90 00 [12:42:05]wFMCommunicate OK [12:42:05]wFMCommunicate request_size=10 [12:42:05]MH_SAM_APDU [12:42:05]CAPDU: 80 0D 02 02 05 88 D4 8D 71 FB [12:42:05]Write to MH i2c: E2 0D 00 06 2A 80 0D 02 02 05 00 88 D4 8D 71 FB 00 00 09 [12:42:05]Write i2c OK [12:42:05]MH_I2C_Read... [12:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:05]Read from MH i2c: E2 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: E2 03 00 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: E2 03 00 06 2A 00 90 00 A4 [12:42:05]RAPDU: 90 00 [12:42:05]wFMCommunicate OK [12:42:05]wFMCommunicate request_size=4 [12:42:05]MH_SAM_APDU [12:42:05]CAPDU: 80 0D 03 02 [12:42:05]Write to MH i2c: E2 08 00 07 2A 80 0D 03 02 00 00 00 00 AC [12:42:05]Write i2c OK [12:42:05]MH_I2C_Read... [12:42:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:05]Read from MH i2c: E2 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: E2 0B 00 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: E2 0B 00 07 2A 00 05 52 44 A3 34 AA F8 3B 90 00 FC [12:42:05]RAPDU: 05 52 44 A3 34 AA F8 3B 90 00 [12:42:05]wFMCommunicate OK [12:42:05]SAM_PROTO_SignData done [12:42:05]FM_MakeSignedData done [12:42:05]CreateOFDProtocolMessage [12:42:05]wFMCommunicate request_size=4 [12:42:05]MH_SAM_APDU [12:42:05]CAPDU: 80 11 00 00 [12:42:05]Write to MH i2c: E2 08 00 08 2A 80 11 00 00 00 00 00 00 AC [12:42:05]Write i2c OK [12:42:05]MH_I2C_Read... [12:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:05]Read from MH i2c: E2 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: E2 17 00 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: E2 17 00 08 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FC [12:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:42:05]wFMCommunicate OK [12:42:05]CreateOFDProtocolMessage done [12:42:05]OFDSenderStorePacket 95140 [12:42:05]StoreOFDPacket docnum=95140 [12:42:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 0C 36 07 01 FF 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A1 4D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A4 73 01 00 35 04 06 00 70 88 D4 8D 71 FB 05 52 44 A3 34 AA F8 3B [12:42:05]CheckFolder [12:42:05]dirname=/storage/ofd_packets [12:42:05]CheckFolder done [12:42:05]ProducePacketName [12:42:05]name=ofd_packets/00095140 [12:42:05]NVStorageSaveData ofd_packets/00095140 [12:42:05]File name is /storage/ofd_packets/00095140 [12:42:05]Write 301 bytes [12:42:05]NVStorageSaveData done [12:42:05]OFDSenderStorePacket done [12:42:05]KKMCreateOFDPacket done [12:42:05]NVStorageSaveData kkm_last_timestamp [12:42:05]File name is /storage/kkm_last_timestamp [12:42:05]Write 4 bytes [12:42:05]NVStorageSaveData done [12:42:05]ExternCall_PrintAddStr [12:42:05]wPrintStart [12:42:05]Write to MH i2c: 01 00 00 09 2A 33 [12:42:05]Write i2c OK [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: 01 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: 01 07 00 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: 01 07 00 09 2A 00 80 00 00 00 FF 0F C8 [12:42:05]RasterBufferAndPrint [12:42:05]line Счет N : (1)196111 [12:42:05]line ИНН: 02508201610067 [12:42:05]line Контрольно-Кассовый Чек [12:42:05]line ПРОДАЖА [12:42:05]line ТРК (МРК, ГНК) : 32 [12:42:05]line Товар: 2710124130 [12:42:05]line Аи-92-К-5 [12:42:05]line 15.900 * 62.90 [12:42:05]line = 1000.11 [12:42:05]line НДС 12% НСП 1% [12:42:05]line > о реализуемом товаре [12:42:05]line ОКРУГЛЕНИЕ: -0.11 [12:42:05]line ИТОГО: 1000.00 [12:42:05]line Внесено: 1000.00 [12:42:05]line СДАЧА: 0.00 [12:42:05]line НСП 1% : 8.85 [12:42:05]line НДС 12% : 106.21 [12:42:05]line Наличными: 1000.00 [12:42:05]line Безнал.: 0.00 [12:42:05]line Место: АЗС № 6 "Партнер Нефть" [12:42:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:42:05]line СНО: Общий режим [12:42:05]line Чек 70 12.03.2024 12:42 [12:42:05]line Смена: 327 ФФД: 1.0 [12:42:05]line ЗНМ: 0300000009 [12:42:05]line РНМ: 0000000000090555 [12:42:05]line Версия ККМ: 001 [12:42:05]line ФМ: 0000000000874811 [12:42:05]line ФД: 95140 [12:42:05]line ФПД: 123732983902715 [12:42:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T124209&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95140&fm=123732983902715&tin=02508201610067®Number=0000000000090555&sum=100000 [12:42:05]OFD Sender: Processing packet 95140 [packets to send 30, broken 29] [12:42:05]ProducePacketName [12:42:05]name=ofd_packets/00095140 [12:42:05]OFD Sender: To server: pG, [12:42:05]CommunicateWithHost lk.salyk.kg:30040 [12:42:05]ConnectInit lk.salyk.kg [12:42:05]written 0, free lines is 4095 [12:42:05]Connected sock=10 [12:42:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 0C 36 07 01 FF 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A1 4D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A4 73 01 00 35 04 06 00 70 88 D4 8D 71 FB 05 52 44 A3 34 AA F8 3B [12:42:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F2 BF 47 00 31 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A4 73 01 00 F4 03 04 00 F7 F8 EF 65 B6 04 01 00 00 D6 07 60 67 D8 E0 E6 D1 [12:42:06]CommunicateWithHost err = 0 [12:42:06]CheckOFDResponse [12:42:06]1017 (14) - 77093643461234 [12:42:06]1041 (16) - 0000000000874811 [12:42:06]1040 (4) - 95140 [12:42:06]1012 (4) - 12.03.2024 06:40 [12:42:06]1206 (1) - 0 [12:42:06]OFD Sender: Remove packet 95140 [12:42:06]ProducePacketName [12:42:06]name=ofd_packets/00095140 [12:42:06]NVStorageDeleteData [12:42:06]Write to MH i2c: 01 00 00 34 2A 5E [12:42:06]Write i2c OK [12:42:06]MH_I2C_Read... [12:42:06]Read from MH i2c: 01 [12:42:06]MH_I2C_Read... [12:42:06]Read from MH i2c: 01 07 00 [12:42:06]MH_I2C_Read... [12:42:06]Read from MH i2c: 01 07 00 34 2A 00 80 00 00 00 51 0D 43 [12:42:06]RasterBufferAndPrint [12:42:06]line [12:42:06]line [12:42:06]line [12:42:06]line [12:42:06]line [12:42:06]written 0, free lines is 3416 [12:42:06]process_action close_receipt done [12:42:06]requested_data is exist [12:42:06]produce_requested_data [12:42:06]requested_item fm.sn is exist - process it [12:42:06]wFMCommunicate request_size=4 [12:42:06]MH_SAM_APDU [12:42:06]CAPDU: 80 11 00 00 [12:42:06]Write to MH i2c: E2 08 00 3B 2A 80 11 00 00 00 00 00 00 DF [12:42:06]Write i2c OK [12:42:06]MH_I2C_Read... [12:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:06]Read from MH i2c: E2 [12:42:06]MH_I2C_Read... [12:42:06]Read from MH i2c: E2 17 00 [12:42:06]MH_I2C_Read... [12:42:06]Read from MH i2c: E2 17 00 3B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2F [12:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:42:06]wFMCommunicate OK [12:42:06]requested_item fd.num is exist - process it [12:42:06]SAM_PROTO_GetFieldsCounters [12:42:06]wFMCommunicate request_size=4 [12:42:06]MH_SAM_APDU [12:42:06]CAPDU: 80 13 00 00 [12:42:06]Write to MH i2c: E2 08 00 3C 2A 80 13 00 00 00 00 00 00 E2 [12:42:06]Write i2c OK [12:42:06]MH_I2C_Read... [12:42:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:06]Read from MH i2c: E2 [12:42:06]MH_I2C_Read... [12:42:06]Read from MH i2c: E2 62 00 [12:42:06]MH_I2C_Read... [12:42:06]Read from MH i2c: E2 62 00 3C 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A4 73 01 00 0E 04 04 00 47 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 31 [12:42:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A4 73 01 00 0E 04 04 00 47 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:42:06]wFMCommunicate OK [12:42:06]SAM_PROTO_GetFieldsCounters done [12:42:06]requested_item shift.num is exist - process it [12:42:06]requested_item shift.opened is exist - process it [12:42:06]req_shift_opened [12:42:06]FM_GetShiftState [12:42:06]SAM_PROTO_GetShiftState [12:42:06]wFMCommunicate request_size=4 [12:42:06]MH_SAM_APDU [12:42:06]CAPDU: 80 13 01 00 [12:42:06]Write to MH i2c: E2 08 00 3D 2A 80 13 01 00 00 00 00 00 E4 [12:42:06]Write i2c OK [12:42:06]MH_I2C_Read... [12:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:06]Read from MH i2c: E2 [12:42:06]MH_I2C_Read... [12:42:06]Read from MH i2c: E2 0E 00 [12:42:06]MH_I2C_Read... [12:42:06]Read from MH i2c: E2 0E 00 3D 2A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 58 [12:42:06]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:42:06]wFMCommunicate OK [12:42:06]SAM_PROTO_GetShiftState done [12:42:06]FM_GetShiftState done [12:42:06]req_shift_opened done [12:42:06]requested_item shift.open_date is exist - process it [12:42:06]req_shift_open_date [12:42:06]req_shift_open_date done [12:42:06]produce_requested_data done [12:42:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95140,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:42:06]process_action_free close_receipt [12:42:06]json_value_free [12:42:06]json_value_free done [12:42:06]process_json_proto returns [12:42:06]Send response to host [12:42:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95140,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:42:06]free response buf [12:42:06]execute_script done [12:42:06]execute_script returns [12:42:06]free content buf [12:42:06]Sock 9.Close socket [12:42:06]Sock 9.Thread stoped [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:15]accept exits with 8 [12:43:15]New connection [12:43:15]New thread 3066813796 created [12:43:15]Thread 3066957156 joined [12:43:15]Waiting for new connection... [12:43:15] Sock 8.Parse request [12:43:15]Sock 8.Check first char [12:43:15]Sock 8.First char is OK [12:43:15]request: POST /json_proto HTTP/1.0 [12:43:15]Method: POST [12:43:15]URL: /json_proto [12:43:15]Method is POST - this is cgi request [12:43:15]url: /json_proto [12:43:15]query_string will be loaded in cgi processing [12:43:15]execute_cgi json_proto POST (null) [12:43:15]execute_cgi path=json_proto method=POST [12:43:15]POST find Content-Length [12:43:15]Host: 172.17.62.67:8080 [12:43:15]Content-Length: 612 [12:43:15]Content-Type: application/json [12:43:15] [12:43:15]POST finish read [12:43:15]Found Content-Length = 612 [12:43:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11533", "tax_sys" : 0, "items" : [ { "code": "46196798", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 126.00, "quantity" : 2.000, "sum" : 252.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 252.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:15]execute_script... [12:43:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11533", "tax_sys" : 0, "items" : [ { "code": "46196798", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 126.00, "quantity" : 2.000, "sum" : 252.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 252.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:15]POST & json_proto [12:43:15]process_json_proto [12:43:15]json parsed OK: [12:43:15]protocol is kg_v1.0 [12:43:15]action value=close_receipt [12:43:15]process_action close_receipt [12:43:15]cmd_close_receipt [12:43:15]MH_GetDate [12:43:15]Write to MH i2c: F0 00 00 3E 2A 57 [12:43:15]Write i2c OK [12:43:15]MH_I2C_Read... [12:43:15]Read from MH i2c: F0 [12:43:15]MH_I2C_Read... [12:43:15]Read from MH i2c: F0 05 00 [12:43:15]MH_I2C_Read... [12:43:15]Read from MH i2c: F0 05 00 3E 2A 00 E8 4D F0 65 E6 [12:43:15]GetLastDocTimeStamp 1710247329 [12:43:15]current date 1710247400 [12:43:15]FM_GetShiftState [12:43:15]SAM_PROTO_GetShiftState [12:43:15]wFMCommunicate request_size=4 [12:43:15]MH_SAM_APDU [12:43:15]CAPDU: 80 13 01 00 [12:43:15]Write to MH i2c: E2 08 00 3F 2A 80 13 01 00 00 00 00 00 E6 [12:43:15]Write i2c OK [12:43:15]MH_I2C_Read... [12:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:15]Read from MH i2c: E2 [12:43:15]MH_I2C_Read... [12:43:15]Read from MH i2c: E2 0E 00 [12:43:15]MH_I2C_Read... [12:43:15]Read from MH i2c: E2 0E 00 3F 2A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 5A [12:43:15]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:43:15]wFMCommunicate OK [12:43:15]SAM_PROTO_GetShiftState done [12:43:15]FM_GetShiftState done [12:43:15]opened in 1710201976 [12:43:15]opened+sec_in_day 1710288376 [12:43:15]quantity*price = 25200 [12:43:15]sum+1 = 25201 [12:43:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 252.00 НСП 1% : 2.23 НДС 12% : 26.76 Наличными: 252.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 71 12.03.2024 12:43 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95141 ФПД: 163279979186237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T124320&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95141&fm=163279979186237&tin=02508201610067®Number=0000000000090555&sum=25200 0 [12:43:16]StoreToDocumentArchive [12:43:16]shift 327 fd 95141 [12:43:16]save to /storage/0327/doc_00095141 [12:43:16]save last doc name /storage/0327/doc_00095141 to /storage/kkm_last_doc_name [12:43:16]save OK [12:43:16]Clear old archive folders... [12:43:16]ProcessDocumentItem done err = 0, tmpTLVsize=265 [12:43:16]tlvbuf is 01A340C0 [12:43:16]SAM_PROTO_ClearQueue [12:43:16]wFMCommunicate request_size=4 [12:43:16]MH_SAM_APDU [12:43:16]CAPDU: 80 09 00 00 [12:43:16]Write to MH i2c: E2 08 00 4C 2A 80 09 00 00 00 00 00 00 E8 [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:16]Read from MH i2c: E2 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 03 00 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 03 00 4C 2A 00 90 00 EA [12:43:16]RAPDU: 90 00 [12:43:16]wFMCommunicate OK [12:43:16]SAM_PROTO_ClearQueue done [12:43:16]KKMCreateOFDPacket [12:43:16]OFDProtocolAddRootSTLVToBuf [12:43:16]FM_MakeSignedData [12:43:16]FM_MakeSignedData [12:43:16]SAM_PROTO_SignData [12:43:16]wFMCommunicate request_size=4 [12:43:16]MH_SAM_APDU [12:43:16]CAPDU: 80 0D 01 02 [12:43:16]Write to MH i2c: E2 08 00 4D 2A 80 0D 01 02 00 00 00 00 F0 [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:16]Read from MH i2c: E2 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 03 00 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 03 00 4D 2A 00 90 00 EB [12:43:16]RAPDU: 90 00 [12:43:16]wFMCommunicate OK [12:43:16]wFMCommunicate request_size=255 [12:43:16]MH_SAM_APDU [12:43:16]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 36 31 39 36 37 39 38 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 38 31 00 00 00 00 13 04 06 00 70 62 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0A 00 00 00 00 07 04 06 00 70 62 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 E8 4D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 [12:43:16]Write to MH i2c: E2 02 01 4E 2A 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 36 31 39 36 37 39 38 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 38 31 00 00 00 00 13 04 06 00 70 62 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0A 00 00 00 00 07 04 06 00 70 62 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 E8 4D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 00 00 DF [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:16]OFD Sender: No OFD packet to send [12:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:16]Read from MH i2c: E2 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 03 00 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 03 00 4E 2A 00 90 00 EC [12:43:16]RAPDU: 90 00 [12:43:16]wFMCommunicate OK [12:43:16]wFMCommunicate request_size=24 [12:43:16]MH_SAM_APDU [12:43:16]CAPDU: 80 0D 02 02 13 31 10 04 04 00 A5 73 01 00 35 04 06 00 94 80 95 28 88 3D [12:43:16]Write to MH i2c: E2 1B 00 4F 2A 80 0D 02 02 13 00 31 10 04 04 00 A5 73 01 00 35 04 06 00 94 80 95 28 88 3D 00 00 50 [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:16]Read from MH i2c: E2 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 03 00 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 03 00 4F 2A 00 90 00 ED [12:43:16]RAPDU: 90 00 [12:43:16]wFMCommunicate OK [12:43:16]wFMCommunicate request_size=4 [12:43:16]MH_SAM_APDU [12:43:16]CAPDU: 80 0D 03 02 [12:43:16]Write to MH i2c: E2 08 00 50 2A 80 0D 03 02 00 00 00 00 F5 [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:17]Read from MH i2c: E2 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 0B 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 0B 00 50 2A 00 2A 4B 4A 21 54 52 72 EA 90 00 D8 [12:43:17]RAPDU: 2A 4B 4A 21 54 52 72 EA 90 00 [12:43:17]wFMCommunicate OK [12:43:17]SAM_PROTO_SignData done [12:43:17]FM_MakeSignedData done [12:43:17]CreateOFDProtocolMessage [12:43:17]wFMCommunicate request_size=4 [12:43:17]MH_SAM_APDU [12:43:17]CAPDU: 80 11 00 00 [12:43:17]Write to MH i2c: E2 08 00 51 2A 80 11 00 00 00 00 00 00 F5 [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:17]Read from MH i2c: E2 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 17 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 17 00 51 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 45 [12:43:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:43:17]wFMCommunicate OK [12:43:17]CreateOFDProtocolMessage done [12:43:17]OFDSenderStorePacket 95141 [12:43:17]StoreOFDPacket docnum=95141 [12:43:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 1D 01 00 00 06 B1 15 01 E2 07 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 36 31 39 36 37 39 38 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 38 31 00 00 00 00 13 04 06 00 70 62 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0A 00 00 00 00 07 04 06 00 70 62 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 E8 4D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A5 73 01 00 35 04 06 00 94 80 95 28 88 3D 2A 4B 4A 21 54 52 72 EA [12:43:17]CheckFolder [12:43:17]dirname=/storage/ofd_packets [12:43:17]CheckFolder done [12:43:17]ProducePacketName [12:43:17]name=ofd_packets/00095141 [12:43:17]NVStorageSaveData ofd_packets/00095141 [12:43:17]File name is /storage/ofd_packets/00095141 [12:43:17]Write 315 bytes [12:43:17]NVStorageSaveData done [12:43:17]OFDSenderStorePacket done [12:43:17]KKMCreateOFDPacket done [12:43:17]NVStorageSaveData kkm_last_timestamp [12:43:17]File name is /storage/kkm_last_timestamp [12:43:17]Write 4 bytes [12:43:17]NVStorageSaveData done [12:43:17]ExternCall_PrintAddStr [12:43:17]wPrintStart [12:43:17]Write to MH i2c: 01 00 00 52 2A 7C [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: 01 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: 01 07 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: 01 07 00 52 2A 00 80 00 00 00 FF 0F 11 [12:43:17]RasterBufferAndPrint [12:43:17]line Счет N : (3)11533 [12:43:17]line ИНН: 02508201610067 [12:43:17]line Контрольно-Кассовый Чек [12:43:17]line ПРОДАЖА [12:43:17]line Товар: 46196798 [12:43:17]line Сигареты Mevius Revo [12:43:17]line 2.000 * 126.00 [12:43:17]line = 252.00 [12:43:17]line НДС 12% НСП 1% [12:43:17]line > о реализуемом товаре [12:43:17]line ИТОГО: 252.00 [12:43:17]line НСП 1% : 2.23 [12:43:17]line НДС 12% : 26.76 [12:43:17]line Наличными: 252.00 [12:43:17]line Безнал.: 0.00 [12:43:17]line Место: АЗС № 6 "Партнер Нефть" [12:43:17]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:43:17]line СНО: Общий режим [12:43:17]line Чек 71 12.03.2024 12:43 [12:43:17]line Смена: 327 ФФД: 1.0 [12:43:17]line ЗНМ: 0300000009 [12:43:17]line РНМ: 0000000000090555 [12:43:17]line Версия ККМ: 001 [12:43:17]line ФМ: 0000000000874811 [12:43:17]line ФД: 95141 [12:43:17]line ФПД: 163279979186237 [12:43:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T124320&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95141&fm=163279979186237&tin=02508201610067®Number=0000000000090555&sum=25200 [12:43:17]line 0 [12:43:17]OFD Sender: Processing packet 95141 [packets to send 30, broken 29] [12:43:17]ProducePacketName [12:43:17]name=ofd_packets/00095141 [12:43:17]OFD Sender: To server: pG, [12:43:17]CommunicateWithHost lk.salyk.kg:30040 [12:43:17]ConnectInit lk.salyk.kg [12:43:17]written 0, free lines is 4095 [12:43:17]Connected sock=10 [12:43:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 1D 01 00 00 06 B1 15 01 E2 07 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 36 31 39 36 37 39 38 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 38 31 00 00 00 00 13 04 06 00 70 62 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0A 00 00 00 00 07 04 06 00 70 62 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 E8 4D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A5 73 01 00 35 04 06 00 94 80 95 28 88 3D 2A 4B 4A 21 54 52 72 EA [12:43:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 4D 47 47 00 9E 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A5 73 01 00 F4 03 04 00 3E F9 EF 65 B6 04 01 00 00 11 28 C7 EF 34 77 B2 FA [12:43:17]CommunicateWithHost err = 0 [12:43:17]CheckOFDResponse [12:43:17]1017 (14) - 77093643461234 [12:43:17]1041 (16) - 0000000000874811 [12:43:17]1040 (4) - 95141 [12:43:17]1012 (4) - 12.03.2024 06:42 [12:43:17]1206 (1) - 0 [12:43:17]OFD Sender: Remove packet 95141 [12:43:17]ProducePacketName [12:43:17]name=ofd_packets/00095141 [12:43:17]NVStorageDeleteData [12:43:17]Write to MH i2c: 01 00 00 7A 2A A4 [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: 01 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: 01 07 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: 01 07 00 7A 2A 00 80 00 00 00 77 0D AF [12:43:17]RasterBufferAndPrint [12:43:17]line [12:43:17]line [12:43:17]line [12:43:17]line [12:43:17]line [12:43:17]written 0, free lines is 3453 [12:43:17]process_action close_receipt done [12:43:17]requested_data is exist [12:43:17]produce_requested_data [12:43:17]requested_item fm.sn is exist - process it [12:43:17]wFMCommunicate request_size=4 [12:43:17]MH_SAM_APDU [12:43:17]CAPDU: 80 11 00 00 [12:43:17]Write to MH i2c: E2 08 00 81 2A 80 11 00 00 00 00 00 00 25 [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:17]Read from MH i2c: E2 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 17 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 17 00 81 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 75 [12:43:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:43:17]wFMCommunicate OK [12:43:17]requested_item fd.num is exist - process it [12:43:17]SAM_PROTO_GetFieldsCounters [12:43:17]wFMCommunicate request_size=4 [12:43:17]MH_SAM_APDU [12:43:17]CAPDU: 80 13 00 00 [12:43:17]Write to MH i2c: E2 08 00 82 2A 80 13 00 00 00 00 00 00 28 [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 62 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 62 00 82 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A5 73 01 00 0E 04 04 00 47 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 7B [12:43:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A5 73 01 00 0E 04 04 00 47 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:43:18]wFMCommunicate OK [12:43:18]SAM_PROTO_GetFieldsCounters done [12:43:18]requested_item shift.num is exist - process it [12:43:18]requested_item shift.opened is exist - process it [12:43:18]req_shift_opened [12:43:18]FM_GetShiftState [12:43:18]SAM_PROTO_GetShiftState [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 13 01 00 [12:43:18]Write to MH i2c: E2 08 00 83 2A 80 13 01 00 00 00 00 00 2A [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 0E 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 0E 00 83 2A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 9E [12:43:18]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:43:18]wFMCommunicate OK [12:43:18]SAM_PROTO_GetShiftState done [12:43:18]FM_GetShiftState done [12:43:18]req_shift_opened done [12:43:18]requested_item shift.open_date is exist - process it [12:43:18]req_shift_open_date [12:43:18]req_shift_open_date done [12:43:18]produce_requested_data done [12:43:18]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95141,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:43:18]process_action_free close_receipt [12:43:18]json_value_free [12:43:18]json_value_free done [12:43:18]process_json_proto returns [12:43:18]Send response to host [12:43:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95141,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:43:18]free response buf [12:43:18]execute_script done [12:43:18]execute_script returns [12:43:18]free content buf [12:43:18]Sock 8.Close socket [12:43:18]Sock 8.Thread stoped [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]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:55]accept exits with 9 [12:44:55]New connection [12:44:55]New thread 3066957156 created [12:44:55]Thread 3066813796 joined [12:44:55]Waiting for new connection... [12:44:55] Sock 9.Parse request [12:44:55]Sock 9.Check first char [12:44:55]Sock 9.First char is OK [12:44:55]request: POST /json_proto HTTP/1.0 [12:44:55]Method: POST [12:44:55]URL: /json_proto [12:44:55]Method is POST - this is cgi request [12:44:55]url: /json_proto [12:44:55]query_string will be loaded in cgi processing [12:44:55]execute_cgi json_proto POST (null) [12:44:55]execute_cgi path=json_proto method=POST [12:44:55]POST find Content-Length [12:44:55]Host: 172.17.62.67:8080 [12:44:55]Content-Length: 682 [12:44:55]Content-Type: application/json [12:44:55] [12:44:55]POST finish read [12:44:55]Found Content-Length = 682 [12:44:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:44:55]execute_script... [12:44: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)196112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:44:55]POST & json_proto [12:44:55]process_json_proto [12:44:55]json parsed OK: [12:44:55]protocol is kg_v1.0 [12:44:55]action value=close_receipt [12:44:55]process_action close_receipt [12:44:55]cmd_close_receipt [12:44:55]MH_GetDate [12:44:55]Write to MH i2c: F0 00 00 84 2A 9D [12:44:55]Write i2c OK [12:44:55]MH_I2C_Read... [12:44:55]Read from MH i2c: F0 [12:44:55]MH_I2C_Read... [12:44:55]Read from MH i2c: F0 05 00 [12:44:55]MH_I2C_Read... [12:44:55]Read from MH i2c: F0 05 00 84 2A 00 4C 4E F0 65 91 [12:44:55]GetLastDocTimeStamp 1710247400 [12:44:55]current date 1710247500 [12:44:55]FM_GetShiftState [12:44:55]SAM_PROTO_GetShiftState [12:44:55]wFMCommunicate request_size=4 [12:44:55]MH_SAM_APDU [12:44:55]CAPDU: 80 13 01 00 [12:44:55]Write to MH i2c: E2 08 00 85 2A 80 13 01 00 00 00 00 00 2C [12:44:55]Write i2c OK [12:44:55]MH_I2C_Read... [12:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:55]Read from MH i2c: E2 [12:44:55]MH_I2C_Read... [12:44:55]Read from MH i2c: E2 0E 00 [12:44:55]MH_I2C_Read... [12:44:55]Read from MH i2c: E2 0E 00 85 2A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A0 [12:44:55]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:44:55]wFMCommunicate OK [12:44:55]SAM_PROTO_GetShiftState done [12:44:55]FM_GetShiftState done [12:44:55]opened in 1710201976 [12:44:55]opened+sec_in_day 1710288376 [12:44:55]quantity*price = 100011 [12:44:55]sum+1 = 100012 [12:44:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 72 12.03.2024 12:45 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95142 ФПД: 176635118389967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T124500&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95142&fm=176635118389967&tin=02508201610067®Number=0000000000090555&sum=100000 [12:44:56]StoreToDocumentArchive [12:44:56]shift 327 fd 95142 [12:44:56]save to /storage/0327/doc_00095142 [12:44:56]save last doc name /storage/0327/doc_00095142 to /storage/kkm_last_doc_name [12:44:56]save OK [12:44:56]Clear old archive folders... [12:44:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:56]tlvbuf is 01AED0C0 [12:44:56]SAM_PROTO_ClearQueue [12:44:56]wFMCommunicate request_size=4 [12:44:56]MH_SAM_APDU [12:44:56]CAPDU: 80 09 00 00 [12:44:56]Write to MH i2c: E2 08 00 92 2A 80 09 00 00 00 00 00 00 2E [12:44:56]Write i2c OK [12:44:56]MH_I2C_Read... [12:44:56]Read from MH i2c: E2 [12:44:56]MH_I2C_Read... [12:44:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:56]Read from MH i2c: E2 03 00 [12:44:56]MH_I2C_Read... [12:44:56]Read from MH i2c: E2 03 00 92 2A 00 90 00 30 [12:44:56]RAPDU: 90 00 [12:44:56]wFMCommunicate OK [12:44:56]SAM_PROTO_ClearQueue done [12:44:56]KKMCreateOFDPacket [12:44:56]OFDProtocolAddRootSTLVToBuf [12:44:56]FM_MakeSignedData [12:44:56]FM_MakeSignedData [12:44:56]SAM_PROTO_SignData [12:44:56]wFMCommunicate request_size=4 [12:44:56]MH_SAM_APDU [12:44:56]CAPDU: 80 0D 01 02 [12:44:56]Write to MH i2c: E2 08 00 93 2A 80 0D 01 02 00 00 00 00 36 [12:44:56]Write i2c OK [12:44:56]MH_I2C_Read... [12:44:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:56]Read from MH i2c: E2 [12:44:56]MH_I2C_Read... [12:44:56]Read from MH i2c: E2 03 00 [12:44:56]MH_I2C_Read... [12:44:56]Read from MH i2c: E2 03 00 93 2A 00 90 00 31 [12:44:56]RAPDU: 90 00 [12:44:56]wFMCommunicate OK [12:44:56]wFMCommunicate request_size=255 [12:44:56]MH_SAM_APDU [12:44:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 4C 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A6 73 01 00 35 04 06 00 A0 [12:44:56]Write to MH i2c: E2 02 01 94 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 4C 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A6 73 01 00 35 04 06 00 A0 00 00 17 [12:44:56]Write i2c OK [12:44:56]MH_I2C_Read... [12:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:56]Read from MH i2c: E2 [12:44:56]MH_I2C_Read... [12:44:56]Read from MH i2c: E2 03 00 [12:44:56]MH_I2C_Read... [12:44:56]Read from MH i2c: E2 03 00 94 2A 00 90 00 32 [12:44:56]RAPDU: 90 00 [12:44:56]wFMCommunicate OK [12:44:56]wFMCommunicate request_size=10 [12:44:56]MH_SAM_APDU [12:44:56]CAPDU: 80 0D 02 02 05 A6 11 7C 8A CF [12:44:56]Write to MH i2c: E2 0D 00 95 2A 80 0D 02 02 05 00 A6 11 7C 8A CF 00 00 CF [12:44:56]Write i2c OK [12:44:56]MH_I2C_Read... [12:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:56]Read from MH i2c: E2 [12:44:56]MH_I2C_Read... [12:44:56]Read from MH i2c: E2 03 00 [12:44:56]MH_I2C_Read... [12:44:56]Read from MH i2c: E2 03 00 95 2A 00 90 00 33 [12:44:56]RAPDU: 90 00 [12:44:56]wFMCommunicate OK [12:44:56]wFMCommunicate request_size=4 [12:44:56]MH_SAM_APDU [12:44:56]CAPDU: 80 0D 03 02 [12:44:56]Write to MH i2c: E2 08 00 96 2A 80 0D 03 02 00 00 00 00 3B [12:44:56]Write i2c OK [12:44:56]MH_I2C_Read... [12:44:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:56]Read from MH i2c: E2 [12:44:56]MH_I2C_Read... [12:44:56]Read from MH i2c: E2 0B 00 [12:44:56]MH_I2C_Read... [12:44:56]Read from MH i2c: E2 0B 00 96 2A 00 70 96 EF C2 8E 43 F9 3E 90 00 FB [12:44:56]RAPDU: 70 96 EF C2 8E 43 F9 3E 90 00 [12:44:56]wFMCommunicate OK [12:44:56]SAM_PROTO_SignData done [12:44:56]FM_MakeSignedData done [12:44:56]CreateOFDProtocolMessage [12:44:56]wFMCommunicate request_size=4 [12:44:56]MH_SAM_APDU [12:44:56]CAPDU: 80 11 00 00 [12:44:56]Write to MH i2c: E2 08 00 97 2A 80 11 00 00 00 00 00 00 3B [12:44:56]Write i2c OK [12:44:56]MH_I2C_Read... [12:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:57]Read from MH i2c: E2 [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: E2 17 00 [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: E2 17 00 97 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8B [12:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:44:57]wFMCommunicate OK [12:44:57]CreateOFDProtocolMessage done [12:44:57]OFDSenderStorePacket 95142 [12:44:57]StoreOFDPacket docnum=95142 [12:44:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 94 0E 07 01 06 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 4C 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A6 73 01 00 35 04 06 00 A0 A6 11 7C 8A CF 70 96 EF C2 8E 43 F9 3E [12:44:57]CheckFolder [12:44:57]dirname=/storage/ofd_packets [12:44:57]CheckFolder done [12:44:57]ProducePacketName [12:44:57]name=ofd_packets/00095142 [12:44:57]NVStorageSaveData ofd_packets/00095142 [12:44:57]File name is /storage/ofd_packets/00095142 [12:44:57]Write 301 bytes [12:44:57]NVStorageSaveData done [12:44:57]OFDSenderStorePacket done [12:44:57]KKMCreateOFDPacket done [12:44:57]NVStorageSaveData kkm_last_timestamp [12:44:57]File name is /storage/kkm_last_timestamp [12:44:57]Write 4 bytes [12:44:57]NVStorageSaveData done [12:44:57]ExternCall_PrintAddStr [12:44:57]wPrintStart [12:44:57]Write to MH i2c: 01 00 00 98 2A C2 [12:44:57]Write i2c OK [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: 01 [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: 01 07 00 [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: 01 07 00 98 2A 00 80 00 00 00 FF 0F 57 [12:44:57]RasterBufferAndPrint [12:44:57]line Счет N : (1)196112 [12:44:57]line ИНН: 02508201610067 [12:44:57]line Контрольно-Кассовый Чек [12:44:57]line ПРОДАЖА [12:44:57]line ТРК (МРК, ГНК) : 12 [12:44:57]line Товар: 2710124130 [12:44:57]line Аи-92-К-5 [12:44:57]line 15.900 * 62.90 [12:44:57]line = 1000.11 [12:44:57]line НДС 12% НСП 1% [12:44:57]line > о реализуемом товаре [12:44:57]line ОКРУГЛЕНИЕ: -0.11 [12:44:57]line ИТОГО: 1000.00 [12:44:57]line Внесено: 1000.00 [12:44:57]line СДАЧА: 0.00 [12:44:57]line НСП 1% : 8.85 [12:44:57]line НДС 12% : 106.21 [12:44:57]line Наличными: 1000.00 [12:44:57]line Безнал.: 0.00 [12:44:57]line Место: АЗС № 6 "Партнер Нефть" [12:44:57]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:44:57]line СНО: Общий режим [12:44:57]line Чек 72 12.03.2024 12:45 [12:44:57]line Смена: 327 ФФД: 1.0 [12:44:57]line ЗНМ: 0300000009 [12:44:57]line РНМ: 0000000000090555 [12:44:57]line Версия ККМ: 001 [12:44:57]line ФМ: 0000000000874811 [12:44:57]line ФД: 95142 [12:44:57]line ФПД: 176635118389967 [12:44:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T124500&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95142&fm=176635118389967&tin=02508201610067®Number=0000000000090555&sum=100000 [12:44:57]written 0, free lines is 4095 [12:44:57]OFD Sender: Processing packet 95142 [packets to send 30, broken 29] [12:44:57]ProducePacketName [12:44:57]name=ofd_packets/00095142 [12:44:57]OFD Sender: To server: pG, [12:44:57]CommunicateWithHost lk.salyk.kg:30040 [12:44:57]ConnectInit lk.salyk.kg [12:44:57]Connected sock=10 [12:44:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 94 0E 07 01 06 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 4C 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A6 73 01 00 35 04 06 00 A0 A6 11 7C 8A CF 70 96 EF C2 8E 43 F9 3E [12:44:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 A4 DA 47 00 3B 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A6 73 01 00 F4 03 04 00 A2 F9 EF 65 B6 04 01 00 00 A9 56 0E 15 28 A2 C1 46 [12:44:57]CommunicateWithHost err = 0 [12:44:57]CheckOFDResponse [12:44:57]1017 (14) - 77093643461234 [12:44:57]1041 (16) - 0000000000874811 [12:44:57]1040 (4) - 95142 [12:44:57]1012 (4) - 12.03.2024 06:43 [12:44:57]1206 (1) - 0 [12:44:57]OFD Sender: Remove packet 95142 [12:44:57]ProducePacketName [12:44:57]name=ofd_packets/00095142 [12:44:57]NVStorageDeleteData [12:44:57]Write to MH i2c: 01 00 00 C3 2A ED [12:44:57]Write i2c OK [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: 01 [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: 01 07 00 [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: 01 07 00 C3 2A 00 80 00 00 00 48 0D C9 [12:44:57]RasterBufferAndPrint [12:44:57]line [12:44:57]line [12:44:57]line [12:44:57]line [12:44:57]line [12:44:57]written 0, free lines is 3406 [12:44:57]process_action close_receipt done [12:44:57]requested_data is exist [12:44:57]produce_requested_data [12:44:57]requested_item fm.sn is exist - process it [12:44:57]wFMCommunicate request_size=4 [12:44:57]MH_SAM_APDU [12:44:57]CAPDU: 80 11 00 00 [12:44:57]Write to MH i2c: E2 08 00 CA 2A 80 11 00 00 00 00 00 00 6E [12:44:57]Write i2c OK [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: E2 [12:44:57]MH_I2C_Read... [12:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:57]Read from MH i2c: E2 17 00 [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: E2 17 00 CA 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BE [12:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:44:57]wFMCommunicate OK [12:44:57]requested_item fd.num is exist - process it [12:44:57]SAM_PROTO_GetFieldsCounters [12:44:57]wFMCommunicate request_size=4 [12:44:57]MH_SAM_APDU [12:44:57]CAPDU: 80 13 00 00 [12:44:57]Write to MH i2c: E2 08 00 CB 2A 80 13 00 00 00 00 00 00 71 [12:44:57]Write i2c OK [12:44:57]MH_I2C_Read... [12:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:58]Read from MH i2c: E2 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 62 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 62 00 CB 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A6 73 01 00 0E 04 04 00 47 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 C8 [12:44:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A6 73 01 00 0E 04 04 00 47 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:44:58]wFMCommunicate OK [12:44:58]SAM_PROTO_GetFieldsCounters done [12:44:58]requested_item shift.num is exist - process it [12:44:58]requested_item shift.opened is exist - process it [12:44:58]req_shift_opened [12:44:58]FM_GetShiftState [12:44:58]SAM_PROTO_GetShiftState [12:44:58]wFMCommunicate request_size=4 [12:44:58]MH_SAM_APDU [12:44:58]CAPDU: 80 13 01 00 [12:44:58]Write to MH i2c: E2 08 00 CC 2A 80 13 01 00 00 00 00 00 73 [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:58]OFD Sender: No OFD packet to send [12:44:58]Read from MH i2c: E2 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 0E 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 0E 00 CC 2A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 E7 [12:44:58]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:44:58]wFMCommunicate OK [12:44:58]SAM_PROTO_GetShiftState done [12:44:58]FM_GetShiftState done [12:44:58]req_shift_opened done [12:44:58]requested_item shift.open_date is exist - process it [12:44:58]req_shift_open_date [12:44:58]req_shift_open_date done [12:44:58]produce_requested_data done [12:44:58]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95142,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:44:58]process_action_free close_receipt [12:44:58]json_value_free [12:44:58]json_value_free done [12:44:58]process_json_proto returns [12:44:58]Send response to host [12:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95142,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:44:58]free response buf [12:44:58]execute_script done [12:44:58]execute_script returns [12:44:58]free content buf [12:44:58]Sock 9.Close socket [12:44:58]Sock 9.Thread stoped [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:16]accept exits with 8 [12:45:16]New connection [12:45:16]New thread 3066813796 created [12:45:16]Thread 3066957156 joined [12:45:16]Waiting for new connection... [12:45:16] Sock 8.Parse request [12:45:16]Sock 8.Check first char [12:45:16]Sock 8.First char is OK [12:45:16]request: POST /json_proto HTTP/1.0 [12:45:16]Method: POST [12:45:16]URL: /json_proto [12:45:16]Method is POST - this is cgi request [12:45:16]url: /json_proto [12:45:16]query_string will be loaded in cgi processing [12:45:16]execute_cgi json_proto POST (null) [12:45:16]execute_cgi path=json_proto method=POST [12:45:16]POST find Content-Length [12:45:16]Host: 172.17.62.67:8080 [12:45:16]Content-Length: 738 [12:45:16]Content-Type: application/json [12:45:16] [12:45:16]POST finish read [12:45:16]Found Content-Length = 738 [12:45:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95142, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:45:16]execute_script... [12:45:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95142, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:45:16]POST & json_proto [12:45:16]process_json_proto [12:45:16]json parsed OK: [12:45:16]protocol is kg_v1.0 [12:45:16]action value=close_receipt [12:45:16]process_action close_receipt [12:45:16]cmd_close_receipt [12:45:16]MH_GetDate [12:45:16]Write to MH i2c: F0 00 00 CD 2A E6 [12:45:16]Write i2c OK [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: F0 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: F0 05 00 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: F0 05 00 CD 2A 00 61 4E F0 65 EF [12:45:16]GetLastDocTimeStamp 1710247500 [12:45:16]current date 1710247521 [12:45:16]FM_GetShiftState [12:45:16]SAM_PROTO_GetShiftState [12:45:16]wFMCommunicate request_size=4 [12:45:16]MH_SAM_APDU [12:45:16]CAPDU: 80 13 01 00 [12:45:16]Write to MH i2c: E2 08 00 CE 2A 80 13 01 00 00 00 00 00 75 [12:45:16]Write i2c OK [12:45:16]MH_I2C_Read... [12:45:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:16]Read from MH i2c: E2 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: E2 0E 00 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: E2 0E 00 CE 2A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 E9 [12:45:16]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:45:16]wFMCommunicate OK [12:45:16]SAM_PROTO_GetShiftState done [12:45:16]FM_GetShiftState done [12:45:16]opened in 1710201976 [12:45:16]opened+sec_in_day 1710288376 [12:45:16]quantity*price = 100011 [12:45:16]sum+1 = 100012 [12:45:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 73 12.03.2024 12:45 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95142 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95143 ФПД: 14753224464537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T124521&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95143&fm=14753224464537&tin=02508201610067®Number=0000000000090555&sum=100000 [12:45:17]StoreToDocumentArchive [12:45:17]shift 327 fd 95143 [12:45:17]save to /storage/0327/doc_00095143 [12:45:17]save last doc name /storage/0327/doc_00095143 to /storage/kkm_last_doc_name [12:45:17]save OK [12:45:17]Clear old archive folders... [12:45:17]ProcessDocumentItem done err = 0, tmpTLVsize=279 [12:45:17]tlvbuf is 01AD1F20 [12:45:17]SAM_PROTO_ClearQueue [12:45:17]wFMCommunicate request_size=4 [12:45:17]MH_SAM_APDU [12:45:17]CAPDU: 80 09 00 00 [12:45:17]Write to MH i2c: E2 08 00 DD 2A 80 09 00 00 00 00 00 00 79 [12:45:17]Write i2c OK [12:45:17]MH_I2C_Read... [12:45:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:17]Read from MH i2c: E2 [12:45:17]MH_I2C_Read... [12:45:17]Read from MH i2c: E2 03 00 [12:45:17]MH_I2C_Read... [12:45:17]Read from MH i2c: E2 03 00 DD 2A 00 90 00 7B [12:45:17]RAPDU: 90 00 [12:45:17]wFMCommunicate OK [12:45:17]SAM_PROTO_ClearQueue done [12:45:17]KKMCreateOFDPacket [12:45:17]OFDProtocolAddRootSTLVToBuf [12:45:17]FM_MakeSignedData [12:45:17]FM_MakeSignedData [12:45:17]SAM_PROTO_SignData [12:45:17]wFMCommunicate request_size=4 [12:45:17]MH_SAM_APDU [12:45:17]CAPDU: 80 0D 01 02 [12:45:17]Write to MH i2c: E2 08 00 DE 2A 80 0D 01 02 00 00 00 00 81 [12:45:17]Write i2c OK [12:45:17]MH_I2C_Read... [12:45:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:17]Read from MH i2c: E2 [12:45:17]MH_I2C_Read... [12:45:17]Read from MH i2c: E2 03 00 [12:45:17]MH_I2C_Read... [12:45:17]Read from MH i2c: E2 03 00 DE 2A 00 90 00 7C [12:45:17]RAPDU: 90 00 [12:45:17]wFMCommunicate OK [12:45:17]wFMCommunicate request_size=255 [12:45:17]MH_SAM_APDU [12:45:17]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 61 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 A6 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 [12:45:17]Write to MH i2c: E2 02 01 DF 2A 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 61 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 A6 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 00 00 3A [12:45:17]Write i2c OK [12:45:17]MH_I2C_Read... [12:45:18]OFD Sender: No OFD packet to send [12:45:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:18]Read from MH i2c: E2 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 03 00 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 03 00 DF 2A 00 90 00 7D [12:45:18]RAPDU: 90 00 [12:45:18]wFMCommunicate OK [12:45:18]wFMCommunicate request_size=38 [12:45:18]MH_SAM_APDU [12:45:18]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A7 73 01 00 35 04 06 00 0D 6B 00 B4 18 99 [12:45:18]Write to MH i2c: E2 29 00 E0 2A 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A7 73 01 00 35 04 06 00 0D 6B 00 B4 18 99 00 00 02 [12:45:18]Write i2c OK [12:45:18]MH_I2C_Read... [12:45:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:18]Read from MH i2c: E2 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 03 00 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 03 00 E0 2A 00 90 00 7E [12:45:18]RAPDU: 90 00 [12:45:18]wFMCommunicate OK [12:45:18]wFMCommunicate request_size=4 [12:45:18]MH_SAM_APDU [12:45:18]CAPDU: 80 0D 03 02 [12:45:18]Write to MH i2c: E2 08 00 E1 2A 80 0D 03 02 00 00 00 00 86 [12:45:18]Write i2c OK [12:45:18]MH_I2C_Read... [12:45:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:18]Read from MH i2c: E2 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 0B 00 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 0B 00 E1 2A 00 DB 2D 25 FA 5D 88 26 64 90 00 1D [12:45:18]RAPDU: DB 2D 25 FA 5D 88 26 64 90 00 [12:45:18]wFMCommunicate OK [12:45:18]SAM_PROTO_SignData done [12:45:18]FM_MakeSignedData done [12:45:18]CreateOFDProtocolMessage [12:45:18]wFMCommunicate request_size=4 [12:45:18]MH_SAM_APDU [12:45:18]CAPDU: 80 11 00 00 [12:45:18]Write to MH i2c: E2 08 00 E2 2A 80 11 00 00 00 00 00 00 86 [12:45:18]Write i2c OK [12:45:18]MH_I2C_Read... [12:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:18]Read from MH i2c: E2 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 17 00 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 17 00 E2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D6 [12:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:45:18]wFMCommunicate OK [12:45:18]CreateOFDProtocolMessage done [12:45:18]OFDSenderStorePacket 95143 [12:45:18]StoreOFDPacket docnum=95143 [12:45:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 F6 14 23 01 ED DE 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 61 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 A6 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A7 73 01 00 35 04 06 00 0D 6B 00 B4 18 99 DB 2D 25 FA 5D 88 26 64 [12:45:18]CheckFolder [12:45:18]dirname=/storage/ofd_packets [12:45:18]CheckFolder done [12:45:18]ProducePacketName [12:45:18]name=ofd_packets/00095143 [12:45:18]NVStorageSaveData ofd_packets/00095143 [12:45:18]File name is /storage/ofd_packets/00095143 [12:45:18]Write 329 bytes [12:45:18]NVStorageSaveData done [12:45:18]OFDSenderStorePacket done [12:45:18]KKMCreateOFDPacket done [12:45:18]NVStorageSaveData kkm_last_timestamp [12:45:18]File name is /storage/kkm_last_timestamp [12:45:18]Write 4 bytes [12:45:18]NVStorageSaveData done [12:45:18]ExternCall_PrintAddStr [12:45:18]wPrintStart [12:45:18]Write to MH i2c: 01 00 00 E3 2A 0D [12:45:18]Write i2c OK [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: 01 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: 01 07 00 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: 01 07 00 E3 2A 00 80 00 00 00 FF 0F A2 [12:45:18]RasterBufferAndPrint [12:45:18]line Счет N : (1)196112 [12:45:18]line ИНН: 02508201610067 [12:45:18]line Контрольно-Кассовый Чек [12:45:18]line ВОЗВРАТ ПРОДАЖИ [12:45:18]line ТРК (МРК, ГНК) : 12 [12:45:18]line Товар: 2710124130 [12:45:18]line Аи-92-К-5 [12:45:18]line 15.900 * 62.90 [12:45:18]line = 1000.11 [12:45:18]line НДС 12% НСП 1% [12:45:18]line > о реализуемом товаре [12:45:18]line ОКРУГЛЕНИЕ: -0.11 [12:45:18]line ИТОГО: 1000.00 [12:45:18]line НСП 1% : 8.85 [12:45:18]line НДС 12% : 106.21 [12:45:18]line Наличными: 1000.00 [12:45:18]line Безнал.: 0.00 [12:45:18]line Место: АЗС № 6 "Партнер Нефть" [12:45:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:45:18]line СНО: Общий режим [12:45:18]line Чек 73 12.03.2024 12:45 [12:45:18]line Смена: 327 ФФД: 1.0 [12:45:18]line ЗНМ: 0300000009 [12:45:18]line РНМ: 0000000000090555 [12:45:18]line Версия ККМ: 001 [12:45:18]line ФД осн.: 95142 [12:45:18]line ФМ осн.: 0000000000874811 [12:45:18]line ФМ: 0000000000874811 [12:45:18]line ФД: 95143 [12:45:18]line ФПД: 14753224464537 [12:45:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T124521&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95143&fm=14753224464537&tin=02508201610067®Number=0000000000090555&sum=100000 [12:45:18]OFD Sender: Processing packet 95143 [packets to send 30, broken 29] [12:45:18]ProducePacketName [12:45:18]name=ofd_packets/00095143 [12:45:18]OFD Sender: To server: pG, [12:45:18]CommunicateWithHost lk.salyk.kg:30040 [12:45:18]ConnectInit lk.salyk.kg [12:45:18]written 0, free lines is 4095 [12:45:18]Connected sock=10 [12:45:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 F6 14 23 01 ED DE 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 61 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 A6 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A7 73 01 00 35 04 06 00 0D 6B 00 B4 18 99 DB 2D 25 FA 5D 88 26 64 [12:45:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B9 0E 47 00 C6 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A7 73 01 00 F4 03 04 00 B8 F9 EF 65 B6 04 01 00 00 18 0B 8C BB 74 1D F3 32 [12:45:19]CommunicateWithHost err = 0 [12:45:19]CheckOFDResponse [12:45:19]1017 (14) - 77093643461234 [12:45:19]1041 (16) - 0000000000874811 [12:45:19]1040 (4) - 95143 [12:45:19]1012 (4) - 12.03.2024 06:44 [12:45:19]1206 (1) - 0 [12:45:19]OFD Sender: Remove packet 95143 [12:45:19]ProducePacketName [12:45:19]name=ofd_packets/00095143 [12:45:19]NVStorageDeleteData [12:45:19]Write to MH i2c: 01 00 00 0E 2B 39 [12:45:19]Write i2c OK [12:45:19]MH_I2C_Read... [12:45:19]Read from MH i2c: 01 [12:45:19]MH_I2C_Read... [12:45:19]Read from MH i2c: 01 07 00 [12:45:19]MH_I2C_Read... [12:45:19]Read from MH i2c: 01 07 00 0E 2B 00 80 00 00 00 5E 0D 2B [12:45:19]RasterBufferAndPrint [12:45:19]line [12:45:19]line [12:45:19]line [12:45:19]line [12:45:19]line [12:45:19]written 0, free lines is 3430 [12:45:19]process_action close_receipt done [12:45:19]requested_data is exist [12:45:19]produce_requested_data [12:45:19]requested_item fm.sn is exist - process it [12:45:19]wFMCommunicate request_size=4 [12:45:19]MH_SAM_APDU [12:45:19]CAPDU: 80 11 00 00 [12:45:19]Write to MH i2c: E2 08 00 15 2B 80 11 00 00 00 00 00 00 BA [12:45:19]Write i2c OK [12:45:19]MH_I2C_Read... [12:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:19]Read from MH i2c: E2 [12:45:19]MH_I2C_Read... [12:45:19]Read from MH i2c: E2 17 00 [12:45:19]MH_I2C_Read... [12:45:19]Read from MH i2c: E2 17 00 15 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0A [12:45:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:45:19]wFMCommunicate OK [12:45:19]requested_item fd.num is exist - process it [12:45:19]SAM_PROTO_GetFieldsCounters [12:45:19]wFMCommunicate request_size=4 [12:45:19]MH_SAM_APDU [12:45:19]CAPDU: 80 13 00 00 [12:45:19]Write to MH i2c: E2 08 00 16 2B 80 13 00 00 00 00 00 00 BD [12:45:19]Write i2c OK [12:45:19]MH_I2C_Read... [12:45:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:19]Read from MH i2c: E2 [12:45:19]MH_I2C_Read... [12:45:19]Read from MH i2c: E2 62 00 [12:45:19]MH_I2C_Read... [12:45:19]Read from MH i2c: E2 62 00 16 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A7 73 01 00 0E 04 04 00 47 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 18 [12:45:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A7 73 01 00 0E 04 04 00 47 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:45:19]wFMCommunicate OK [12:45:19]SAM_PROTO_GetFieldsCounters done [12:45:19]requested_item shift.num is exist - process it [12:45:19]requested_item shift.opened is exist - process it [12:45:19]req_shift_opened [12:45:19]FM_GetShiftState [12:45:19]SAM_PROTO_GetShiftState [12:45:19]wFMCommunicate request_size=4 [12:45:19]MH_SAM_APDU [12:45:19]CAPDU: 80 13 01 00 [12:45:19]Write to MH i2c: E2 08 00 17 2B 80 13 01 00 00 00 00 00 BF [12:45:19]Write i2c OK [12:45:19]MH_I2C_Read... [12:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:19]Read from MH i2c: E2 [12:45:19]MH_I2C_Read... [12:45:19]Read from MH i2c: E2 0E 00 [12:45:19]MH_I2C_Read... [12:45:19]Read from MH i2c: E2 0E 00 17 2B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 33 [12:45:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:45:19]wFMCommunicate OK [12:45:19]SAM_PROTO_GetShiftState done [12:45:19]FM_GetShiftState done [12:45:19]req_shift_opened done [12:45:19]requested_item shift.open_date is exist - process it [12:45:19]req_shift_open_date [12:45:19]req_shift_open_date done [12:45:19]produce_requested_data done [12:45:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95143,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:45:19]process_action_free close_receipt [12:45:19]json_value_free [12:45:19]json_value_free done [12:45:19]process_json_proto returns [12:45:19]Send response to host [12:45:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95143,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:45:19]free response buf [12:45:19]execute_script done [12:45:19]execute_script returns [12:45:19]free content buf [12:45:19]Sock 8.Close socket [12:45:19]Sock 8.Thread stoped [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:33]accept exits with 9 [12:45:33]New connection [12:45:33]New thread 3066957156 created [12:45:33]Thread 3066813796 joined [12:45:33]Waiting for new connection... [12:45:33] Sock 9.Parse request [12:45:33]Sock 9.Check first char [12:45:33]Sock 9.First char is OK [12:45:33]request: POST /json_proto HTTP/1.0 [12:45:33]Method: POST [12:45:33]URL: /json_proto [12:45:33]Method is POST - this is cgi request [12:45:33]url: /json_proto [12:45:33]query_string will be loaded in cgi processing [12:45:33]execute_cgi json_proto POST (null) [12:45:33]execute_cgi path=json_proto method=POST [12:45:33]POST find Content-Length [12:45:33]Host: 172.17.62.67:8080 [12:45:33]Content-Length: 682 [12:45:33]Content-Type: application/json [12:45:33] [12:45:33]POST finish read [12:45:33]Found Content-Length = 682 [12:45:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:45:33]execute_script... [12:45: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)196113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:45:33]POST & json_proto [12:45:33]process_json_proto [12:45:33]json parsed OK: [12:45:33]protocol is kg_v1.0 [12:45:33]action value=close_receipt [12:45:33]process_action close_receipt [12:45:33]cmd_close_receipt [12:45:33]MH_GetDate [12:45:33]Write to MH i2c: F0 00 00 18 2B 32 [12:45:33]Write i2c OK [12:45:33]MH_I2C_Read... [12:45:33]Read from MH i2c: F0 [12:45:33]MH_I2C_Read... [12:45:33]Read from MH i2c: F0 05 00 [12:45:33]MH_I2C_Read... [12:45:33]Read from MH i2c: F0 05 00 18 2B 00 72 4E F0 65 4C [12:45:33]GetLastDocTimeStamp 1710247521 [12:45:33]current date 1710247538 [12:45:33]FM_GetShiftState [12:45:33]SAM_PROTO_GetShiftState [12:45:33]wFMCommunicate request_size=4 [12:45:33]MH_SAM_APDU [12:45:33]CAPDU: 80 13 01 00 [12:45:33]Write to MH i2c: E2 08 00 19 2B 80 13 01 00 00 00 00 00 C1 [12:45:33]Write i2c OK [12:45:33]MH_I2C_Read... [12:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:33]Read from MH i2c: E2 [12:45:33]MH_I2C_Read... [12:45:33]Read from MH i2c: E2 0E 00 [12:45:33]MH_I2C_Read... [12:45:33]Read from MH i2c: E2 0E 00 19 2B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 35 [12:45:33]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:45:33]wFMCommunicate OK [12:45:33]SAM_PROTO_GetShiftState done [12:45:33]FM_GetShiftState done [12:45:33]opened in 1710201976 [12:45:33]opened+sec_in_day 1710288376 [12:45:33]quantity*price = 100011 [12:45:33]sum+1 = 100012 [12:45:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 74 12.03.2024 12:45 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95144 ФПД: 175084028873038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T124538&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95144&fm=175084028873038&tin=02508201610067®Number=0000000000090555&sum=100000 [12:45:34]StoreToDocumentArchive [12:45:34]shift 327 fd 95144 [12:45:34]save to /storage/0327/doc_00095144 [12:45:34]save last doc name /storage/0327/doc_00095144 to /storage/kkm_last_doc_name [12:45:34]save OK [12:45:34]Clear old archive folders... [12:45:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:34]tlvbuf is 01A28310 [12:45:34]SAM_PROTO_ClearQueue [12:45:34]wFMCommunicate request_size=4 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 09 00 00 [12:45:34]Write to MH i2c: E2 08 00 26 2B 80 09 00 00 00 00 00 00 C3 [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:34]Read from MH i2c: E2 03 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 03 00 26 2B 00 90 00 C5 [12:45:34]RAPDU: 90 00 [12:45:34]wFMCommunicate OK [12:45:34]SAM_PROTO_ClearQueue done [12:45:34]KKMCreateOFDPacket [12:45:34]OFDProtocolAddRootSTLVToBuf [12:45:34]FM_MakeSignedData [12:45:34]FM_MakeSignedData [12:45:34]SAM_PROTO_SignData [12:45:34]wFMCommunicate request_size=4 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 0D 01 02 [12:45:34]Write to MH i2c: E2 08 00 27 2B 80 0D 01 02 00 00 00 00 CB [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 03 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 03 00 27 2B 00 90 00 C6 [12:45:34]RAPDU: 90 00 [12:45:34]wFMCommunicate OK [12:45:34]wFMCommunicate request_size=255 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 72 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A8 73 01 00 35 04 06 00 9F [12:45:34]Write to MH i2c: E2 02 01 28 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 72 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A8 73 01 00 35 04 06 00 9F 00 00 D5 [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]OFD Sender: No OFD packet to send [12:45:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 03 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 03 00 28 2B 00 90 00 C7 [12:45:34]RAPDU: 90 00 [12:45:34]wFMCommunicate OK [12:45:34]wFMCommunicate request_size=10 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 0D 02 02 05 3C ED 58 C9 4E [12:45:34]Write to MH i2c: E2 0D 00 29 2B 80 0D 02 02 05 00 3C ED 58 C9 4E 00 00 70 [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 03 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 03 00 29 2B 00 90 00 C8 [12:45:34]RAPDU: 90 00 [12:45:34]wFMCommunicate OK [12:45:34]wFMCommunicate request_size=4 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 0D 03 02 [12:45:34]Write to MH i2c: E2 08 00 2A 2B 80 0D 03 02 00 00 00 00 D0 [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 0B 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 0B 00 2A 2B 00 71 9C 7F 19 66 0D C5 EC 90 00 9A [12:45:34]RAPDU: 71 9C 7F 19 66 0D C5 EC 90 00 [12:45:34]wFMCommunicate OK [12:45:34]SAM_PROTO_SignData done [12:45:34]FM_MakeSignedData done [12:45:34]CreateOFDProtocolMessage [12:45:34]wFMCommunicate request_size=4 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 11 00 00 [12:45:34]Write to MH i2c: E2 08 00 2B 2B 80 11 00 00 00 00 00 00 D0 [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 17 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 17 00 2B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 20 [12:45:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:45:34]wFMCommunicate OK [12:45:34]CreateOFDProtocolMessage done [12:45:34]OFDSenderStorePacket 95144 [12:45:34]StoreOFDPacket docnum=95144 [12:45:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 9A D8 07 01 EE 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 72 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A8 73 01 00 35 04 06 00 9F 3C ED 58 C9 4E 71 9C 7F 19 66 0D C5 EC [12:45:34]CheckFolder [12:45:34]dirname=/storage/ofd_packets [12:45:34]CheckFolder done [12:45:34]ProducePacketName [12:45:34]name=ofd_packets/00095144 [12:45:34]NVStorageSaveData ofd_packets/00095144 [12:45:34]File name is /storage/ofd_packets/00095144 [12:45:34]Write 301 bytes [12:45:34]NVStorageSaveData done [12:45:34]OFDSenderStorePacket done [12:45:34]KKMCreateOFDPacket done [12:45:34]NVStorageSaveData kkm_last_timestamp [12:45:34]File name is /storage/kkm_last_timestamp [12:45:34]Write 4 bytes [12:45:34]NVStorageSaveData done [12:45:34]ExternCall_PrintAddStr [12:45:34]wPrintStart [12:45:34]Write to MH i2c: 01 00 00 2C 2B 57 [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: 01 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: 01 07 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: 01 07 00 2C 2B 00 80 00 00 00 FF 0F EC [12:45:34]RasterBufferAndPrint [12:45:34]line Счет N : (1)196113 [12:45:34]line ИНН: 02508201610067 [12:45:34]line Контрольно-Кассовый Чек [12:45:34]line ПРОДАЖА [12:45:34]line ТРК (МРК, ГНК) : 12 [12:45:34]line Товар: 2710124130 [12:45:34]line Аи-92-К-5 [12:45:34]line 15.900 * 62.90 [12:45:34]line = 1000.11 [12:45:34]line НДС 12% НСП 1% [12:45:34]line > о реализуемом товаре [12:45:34]line ОКРУГЛЕНИЕ: -0.11 [12:45:34]line ИТОГО: 1000.00 [12:45:34]line Внесено: 1000.00 [12:45:34]line СДАЧА: 0.00 [12:45:34]line НСП 1% : 8.85 [12:45:34]line НДС 12% : 106.21 [12:45:34]line Наличными: 1000.00 [12:45:34]line Безнал.: 0.00 [12:45:34]line Место: АЗС № 6 "Партнер Нефть" [12:45:34]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:45:34]line СНО: Общий режим [12:45:34]line Чек 74 12.03.2024 12:45 [12:45:34]line Смена: 327 ФФД: 1.0 [12:45:34]line ЗНМ: 0300000009 [12:45:34]line РНМ: 0000000000090555 [12:45:34]line Версия ККМ: 001 [12:45:34]line ФМ: 0000000000874811 [12:45:34]line ФД: 95144 [12:45:34]line ФПД: 175084028873038 [12:45:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T124538&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95144&fm=175084028873038&tin=02508201610067®Number=0000000000090555&sum=100000 [12:45:35]OFD Sender: Processing packet 95144 [packets to send 30, broken 29] [12:45:35]ProducePacketName [12:45:35]name=ofd_packets/00095144 [12:45:35]OFD Sender: To server: pG, [12:45:35]CommunicateWithHost lk.salyk.kg:30040 [12:45:35]ConnectInit lk.salyk.kg [12:45:35]written 0, free lines is 4095 [12:45:35]Connected sock=10 [12:45:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 9A D8 07 01 EE 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 72 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A8 73 01 00 35 04 06 00 9F 3C ED 58 C9 4E 71 9C 7F 19 66 0D C5 EC [12:45:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 09 39 47 00 45 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A8 73 01 00 F4 03 04 00 C8 F9 EF 65 B6 04 01 00 00 B3 D6 F3 4C 85 B4 4F DC [12:45:35]CommunicateWithHost err = 0 [12:45:35]CheckOFDResponse [12:45:35]1017 (14) - 77093643461234 [12:45:35]1041 (16) - 0000000000874811 [12:45:35]1040 (4) - 95144 [12:45:35]1012 (4) - 12.03.2024 06:44 [12:45:35]1206 (1) - 0 [12:45:35]OFD Sender: Remove packet 95144 [12:45:35]ProducePacketName [12:45:35]name=ofd_packets/00095144 [12:45:35]NVStorageDeleteData [12:45:35]Write to MH i2c: 01 00 00 57 2B 82 [12:45:35]Write i2c OK [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: 01 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: 01 07 00 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: 01 07 00 57 2B 00 80 00 00 00 4A 0D 60 [12:45:35]RasterBufferAndPrint [12:45:35]line [12:45:35]line [12:45:35]line [12:45:35]line [12:45:35]line [12:45:35]written 0, free lines is 3406 [12:45:35]process_action close_receipt done [12:45:35]requested_data is exist [12:45:35]produce_requested_data [12:45:35]requested_item fm.sn is exist - process it [12:45:35]wFMCommunicate request_size=4 [12:45:35]MH_SAM_APDU [12:45:35]CAPDU: 80 11 00 00 [12:45:35]Write to MH i2c: E2 08 00 5E 2B 80 11 00 00 00 00 00 00 03 [12:45:35]Write i2c OK [12:45:35]MH_I2C_Read... [12:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:35]Read from MH i2c: E2 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 17 00 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 17 00 5E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 53 [12:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:45:35]wFMCommunicate OK [12:45:35]requested_item fd.num is exist - process it [12:45:35]SAM_PROTO_GetFieldsCounters [12:45:35]wFMCommunicate request_size=4 [12:45:35]MH_SAM_APDU [12:45:35]CAPDU: 80 13 00 00 [12:45:35]Write to MH i2c: E2 08 00 5F 2B 80 13 00 00 00 00 00 00 06 [12:45:35]Write i2c OK [12:45:35]MH_I2C_Read... [12:45:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:35]Read from MH i2c: E2 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 62 00 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 62 00 5F 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A8 73 01 00 0E 04 04 00 47 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 65 [12:45:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A8 73 01 00 0E 04 04 00 47 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:45:35]wFMCommunicate OK [12:45:35]SAM_PROTO_GetFieldsCounters done [12:45:35]requested_item shift.num is exist - process it [12:45:35]requested_item shift.opened is exist - process it [12:45:35]req_shift_opened [12:45:35]FM_GetShiftState [12:45:35]SAM_PROTO_GetShiftState [12:45:35]wFMCommunicate request_size=4 [12:45:35]MH_SAM_APDU [12:45:35]CAPDU: 80 13 01 00 [12:45:35]Write to MH i2c: E2 08 00 60 2B 80 13 01 00 00 00 00 00 08 [12:45:35]Write i2c OK [12:45:35]MH_I2C_Read... [12:45:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:35]Read from MH i2c: E2 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 0E 00 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 0E 00 60 2B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 7C [12:45:35]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:45:35]wFMCommunicate OK [12:45:35]SAM_PROTO_GetShiftState done [12:45:35]FM_GetShiftState done [12:45:35]req_shift_opened done [12:45:35]requested_item shift.open_date is exist - process it [12:45:35]req_shift_open_date [12:45:35]req_shift_open_date done [12:45:35]produce_requested_data done [12:45:35]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95144,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:45:35]process_action_free close_receipt [12:45:35]json_value_free [12:45:35]json_value_free done [12:45:35]process_json_proto returns [12:45:35]Send response to host [12:45:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95144,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:45:35]free response buf [12:45:35]execute_script done [12:45:35]execute_script returns [12:45:35]free content buf [12:45:35]Sock 9.Close socket [12:45:35]Sock 9.Thread stoped [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]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:05]accept exits with 8 [12:47:05]New connection [12:47:05]New thread 3066813796 created [12:47:05]Thread 3066957156 joined [12:47:05]Waiting for new connection... [12:47:05] Sock 8.Parse request [12:47:05]Sock 8.Check first char [12:47:05]Sock 8.First char is OK [12:47:05]request: POST /json_proto HTTP/1.0 [12:47:05]Method: POST [12:47:05]URL: /json_proto [12:47:05]Method is POST - this is cgi request [12:47:05]url: /json_proto [12:47:05]query_string will be loaded in cgi processing [12:47:05]execute_cgi json_proto POST (null) [12:47:05]execute_cgi path=json_proto method=POST [12:47:05]POST find Content-Length [12:47:05]Host: 172.17.62.67:8080 [12:47:05]Content-Length: 738 [12:47:05]Content-Type: application/json [12:47:05] [12:47:05]POST finish read [12:47:05]Found Content-Length = 738 [12:47:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95144, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:47:05]execute_script... [12:47:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95144, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:47:05]POST & json_proto [12:47:05]process_json_proto [12:47:05]json parsed OK: [12:47:05]protocol is kg_v1.0 [12:47:05]action value=close_receipt [12:47:05]process_action close_receipt [12:47:05]cmd_close_receipt [12:47:05]MH_GetDate [12:47:05]Write to MH i2c: F0 00 00 61 2B 7B [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: F0 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: F0 05 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: F0 05 00 61 2B 00 CF 4E F0 65 F2 [12:47:05]GetLastDocTimeStamp 1710247538 [12:47:05]current date 1710247631 [12:47:05]FM_GetShiftState [12:47:05]SAM_PROTO_GetShiftState [12:47:05]wFMCommunicate request_size=4 [12:47:05]MH_SAM_APDU [12:47:05]CAPDU: 80 13 01 00 [12:47:05]Write to MH i2c: E2 08 00 62 2B 80 13 01 00 00 00 00 00 0A [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:05]Read from MH i2c: E2 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 0E 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 0E 00 62 2B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 7E [12:47:05]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:47:05]wFMCommunicate OK [12:47:05]SAM_PROTO_GetShiftState done [12:47:05]FM_GetShiftState done [12:47:05]opened in 1710201976 [12:47:05]opened+sec_in_day 1710288376 [12:47:05]quantity*price = 100011 [12:47:05]sum+1 = 100012 [12:47:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 75 12.03.2024 12:47 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95144 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95145 ФПД: 6327099477471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T124711&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95145&fm=6327099477471&tin=02508201610067®Number=0000000000090555&sum=100000 [12:47:07]StoreToDocumentArchive [12:47:07]shift 327 fd 95145 [12:47:07]save to /storage/0327/doc_00095145 [12:47:07]save last doc name /storage/0327/doc_00095145 to /storage/kkm_last_doc_name [12:47:07]save OK [12:47:07]Clear old archive folders... [12:47:07]ProcessDocumentItem done err = 0, tmpTLVsize=279 [12:47:07]tlvbuf is 01AD1C30 [12:47:07]SAM_PROTO_ClearQueue [12:47:07]wFMCommunicate request_size=4 [12:47:07]MH_SAM_APDU [12:47:07]CAPDU: 80 09 00 00 [12:47:07]Write to MH i2c: E2 08 00 71 2B 80 09 00 00 00 00 00 00 0E [12:47:07]Write i2c OK [12:47:07]MH_I2C_Read... [12:47:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:07]Read from MH i2c: E2 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 03 00 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 03 00 71 2B 00 90 00 10 [12:47:07]RAPDU: 90 00 [12:47:07]wFMCommunicate OK [12:47:07]SAM_PROTO_ClearQueue done [12:47:07]KKMCreateOFDPacket [12:47:07]OFDProtocolAddRootSTLVToBuf [12:47:07]FM_MakeSignedData [12:47:07]FM_MakeSignedData [12:47:07]SAM_PROTO_SignData [12:47:07]wFMCommunicate request_size=4 [12:47:07]MH_SAM_APDU [12:47:07]CAPDU: 80 0D 01 02 [12:47:07]Write to MH i2c: E2 08 00 72 2B 80 0D 01 02 00 00 00 00 16 [12:47:07]Write i2c OK [12:47:07]MH_I2C_Read... [12:47:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:07]Read from MH i2c: E2 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 03 00 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 03 00 72 2B 00 90 00 11 [12:47:07]RAPDU: 90 00 [12:47:07]wFMCommunicate OK [12:47:07]wFMCommunicate request_size=255 [12:47:07]MH_SAM_APDU [12:47:07]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 CF 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 A8 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 [12:47:07]Write to MH i2c: E2 02 01 73 2B 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 CF 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 A8 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 00 00 41 [12:47:07]Write i2c OK [12:47:07]MH_I2C_Read... [12:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:07]Read from MH i2c: E2 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 03 00 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 03 00 73 2B 00 90 00 12 [12:47:07]RAPDU: 90 00 [12:47:07]wFMCommunicate OK [12:47:07]wFMCommunicate request_size=38 [12:47:07]MH_SAM_APDU [12:47:07]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A9 73 01 00 35 04 06 00 05 C1 24 84 4D DF [12:47:07]Write to MH i2c: E2 29 00 74 2B 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A9 73 01 00 35 04 06 00 05 C1 24 84 4D DF 00 00 56 [12:47:07]Write i2c OK [12:47:07]MH_I2C_Read... [12:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:07]Read from MH i2c: E2 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 03 00 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 03 00 74 2B 00 90 00 13 [12:47:07]RAPDU: 90 00 [12:47:07]wFMCommunicate OK [12:47:07]wFMCommunicate request_size=4 [12:47:07]MH_SAM_APDU [12:47:07]CAPDU: 80 0D 03 02 [12:47:07]Write to MH i2c: E2 08 00 75 2B 80 0D 03 02 00 00 00 00 1B [12:47:07]Write i2c OK [12:47:07]MH_I2C_Read... [12:47:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:07]Read from MH i2c: E2 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 0B 00 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 0B 00 75 2B 00 85 E4 63 F0 43 0C CF DE 90 00 D4 [12:47:07]RAPDU: 85 E4 63 F0 43 0C CF DE 90 00 [12:47:07]wFMCommunicate OK [12:47:07]SAM_PROTO_SignData done [12:47:07]FM_MakeSignedData done [12:47:07]CreateOFDProtocolMessage [12:47:07]wFMCommunicate request_size=4 [12:47:07]MH_SAM_APDU [12:47:07]CAPDU: 80 11 00 00 [12:47:07]Write to MH i2c: E2 08 00 76 2B 80 11 00 00 00 00 00 00 1B [12:47:07]Write i2c OK [12:47:07]MH_I2C_Read... [12:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:07]Read from MH i2c: E2 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 17 00 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 17 00 76 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6B [12:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:47:07]wFMCommunicate OK [12:47:07]CreateOFDProtocolMessage done [12:47:07]OFDSenderStorePacket 95145 [12:47:07]StoreOFDPacket docnum=95145 [12:47:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 60 CA 23 01 27 6F 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 CF 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 A8 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A9 73 01 00 35 04 06 00 05 C1 24 84 4D DF 85 E4 63 F0 43 0C CF DE [12:47:07]CheckFolder [12:47:07]dirname=/storage/ofd_packets [12:47:07]CheckFolder done [12:47:07]ProducePacketName [12:47:07]name=ofd_packets/00095145 [12:47:07]NVStorageSaveData ofd_packets/00095145 [12:47:07]File name is /storage/ofd_packets/00095145 [12:47:07]Write 329 bytes [12:47:07]NVStorageSaveData done [12:47:07]OFDSenderStorePacket done [12:47:07]KKMCreateOFDPacket done [12:47:07]NVStorageSaveData kkm_last_timestamp [12:47:07]File name is /storage/kkm_last_timestamp [12:47:07]OFD Sender: Processing packet 95145 [packets to send 30, broken 29] [12:47:07]ProducePacketName [12:47:07]name=ofd_packets/00095145 [12:47:07]OFD Sender: To server: pG, [12:47:07]CommunicateWithHost lk.salyk.kg:30040 [12:47:07]ConnectInit lk.salyk.kg [12:47:07]Write 4 bytes [12:47:07]NVStorageSaveData done [12:47:07]ExternCall_PrintAddStr [12:47:07]wPrintStart [12:47:07]Write to MH i2c: 01 00 00 77 2B A2 [12:47:07]Write i2c OK [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: 01 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: 01 07 00 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: 01 07 00 77 2B 00 80 00 00 00 FF 0F 37 [12:47:07]RasterBufferAndPrint [12:47:07]line Счет N : (1)196113 [12:47:07]line ИНН: 02508201610067 [12:47:07]line Контрольно-Кассовый Чек [12:47:07]line ВОЗВРАТ ПРОДАЖИ [12:47:07]line ТРК (МРК, ГНК) : 12 [12:47:07]line Товар: 2710124130 [12:47:07]line Аи-92-К-5 [12:47:07]line 15.900 * 62.90 [12:47:07]line = 1000.11 [12:47:07]line НДС 12% НСП 1% [12:47:07]line > о реализуемом товаре [12:47:07]line ОКРУГЛЕНИЕ: -0.11 [12:47:07]line ИТОГО: 1000.00 [12:47:07]line НСП 1% : 8.85 [12:47:07]line НДС 12% : 106.21 [12:47:07]line Наличными: 1000.00 [12:47:07]line Безнал.: 0.00 [12:47:07]line Место: АЗС № 6 "Партнер Нефть" [12:47:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:47:07]line СНО: Общий режим [12:47:07]line Чек 75 12.03.2024 12:47 [12:47:07]line Смена: 327 ФФД: 1.0 [12:47:07]line ЗНМ: 0300000009 [12:47:07]line РНМ: 0000000000090555 [12:47:07]line Версия ККМ: 001 [12:47:07]line ФД осн.: 95144 [12:47:07]line ФМ осн.: 0000000000874811 [12:47:07]line ФМ: 0000000000874811 [12:47:07]line ФД: 95145 [12:47:07]line ФПД: 6327099477471 [12:47:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T124711&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95145&fm=6327099477471&tin=02508201610067®Number=0000000000090555&sum=100000 [12:47:08]Connected sock=11 [12:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 60 CA 23 01 27 6F 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 CF 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 A8 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A9 73 01 00 35 04 06 00 05 C1 24 84 4D DF 85 E4 63 F0 43 0C CF DE [12:47:08]written 0, free lines is 4095 [12:47:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 AF 06 47 00 0E 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A9 73 01 00 F4 03 04 00 25 FA EF 65 B6 04 01 00 00 04 0F AA 8B C7 3B C8 1B [12:47:08]CommunicateWithHost err = 0 [12:47:08]CheckOFDResponse [12:47:08]1017 (14) - 77093643461234 [12:47:08]1041 (16) - 0000000000874811 [12:47:08]1040 (4) - 95145 [12:47:08]1012 (4) - 12.03.2024 06:45 [12:47:08]1206 (1) - 0 [12:47:08]OFD Sender: Remove packet 95145 [12:47:08]ProducePacketName [12:47:08]name=ofd_packets/00095145 [12:47:08]NVStorageDeleteData [12:47:08]Write to MH i2c: 01 00 00 A2 2B CD [12:47:08]Write i2c OK [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: 01 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: 01 07 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: 01 07 00 A2 2B 00 80 00 00 00 5A 0D BB [12:47:08]RasterBufferAndPrint [12:47:08]line [12:47:08]line [12:47:08]line [12:47:08]line [12:47:08]line [12:47:08]written 0, free lines is 3424 [12:47:08]process_action close_receipt done [12:47:08]requested_data is exist [12:47:08]produce_requested_data [12:47:08]requested_item fm.sn is exist - process it [12:47:08]wFMCommunicate request_size=4 [12:47:08]MH_SAM_APDU [12:47:08]CAPDU: 80 11 00 00 [12:47:08]Write to MH i2c: E2 08 00 A9 2B 80 11 00 00 00 00 00 00 4E [12:47:08]Write i2c OK [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 [12:47:08]MH_I2C_Read... [12:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:08]Read from MH i2c: E2 17 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 17 00 A9 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9E [12:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:47:08]wFMCommunicate OK [12:47:08]requested_item fd.num is exist - process it [12:47:08]SAM_PROTO_GetFieldsCounters [12:47:08]wFMCommunicate request_size=4 [12:47:08]MH_SAM_APDU [12:47:08]CAPDU: 80 13 00 00 [12:47:08]Write to MH i2c: E2 08 00 AA 2B 80 13 00 00 00 00 00 00 51 [12:47:08]Write i2c OK [12:47:08]MH_I2C_Read... [12:47:08]OFD Sender: No OFD packet to send [12:47:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:08]Read from MH i2c: E2 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 62 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 62 00 AA 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A9 73 01 00 0E 04 04 00 47 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 B4 [12:47:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A9 73 01 00 0E 04 04 00 47 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:47:08]wFMCommunicate OK [12:47:08]SAM_PROTO_GetFieldsCounters done [12:47:08]requested_item shift.num is exist - process it [12:47:08]requested_item shift.opened is exist - process it [12:47:08]req_shift_opened [12:47:08]FM_GetShiftState [12:47:08]SAM_PROTO_GetShiftState [12:47:08]wFMCommunicate request_size=4 [12:47:08]MH_SAM_APDU [12:47:08]CAPDU: 80 13 01 00 [12:47:08]Write to MH i2c: E2 08 00 AB 2B 80 13 01 00 00 00 00 00 53 [12:47:08]Write i2c OK [12:47:08]MH_I2C_Read... [12:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:08]Read from MH i2c: E2 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 0E 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 0E 00 AB 2B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C7 [12:47:08]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:47:08]wFMCommunicate OK [12:47:08]SAM_PROTO_GetShiftState done [12:47:08]FM_GetShiftState done [12:47:08]req_shift_opened done [12:47:08]requested_item shift.open_date is exist - process it [12:47:08]req_shift_open_date [12:47:08]req_shift_open_date done [12:47:08]produce_requested_data done [12:47:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95145,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:47:08]process_action_free close_receipt [12:47:08]json_value_free [12:47:08]json_value_free done [12:47:08]process_json_proto returns [12:47:08]Send response to host [12:47:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95145,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:47:08]free response buf [12:47:08]execute_script done [12:47:08]execute_script returns [12:47:08]free content buf [12:47:08]Sock 8.Close socket [12:47:08]Sock 8.Thread stoped [12:47:09]accept exits with 9 [12:47:09]New connection [12:47:09]New thread 3066957156 created [12:47:09]Thread 3066813796 joined [12:47:09]Waiting for new connection... [12:47:09] Sock 9.Parse request [12:47:09]Sock 9.Check first char [12:47:09]Sock 9.First char is OK [12:47:09]request: POST /json_proto HTTP/1.0 [12:47:09]Method: POST [12:47:09]URL: /json_proto [12:47:09]Method is POST - this is cgi request [12:47:09]url: /json_proto [12:47:09]query_string will be loaded in cgi processing [12:47:09]execute_cgi json_proto POST (null) [12:47:09]execute_cgi path=json_proto method=POST [12:47:09]POST find Content-Length [12:47:09]Host: 172.17.62.67:8080 [12:47:09]Content-Length: 679 [12:47:09]Content-Type: application/json [12:47:09] [12:47:09]POST finish read [12:47:09]Found Content-Length = 679 [12:47:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 13.150, "sum" : 827.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 827.00, "payments": [ { "type": 0, "sum" : 827.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:09]execute_script... [12:47: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)196113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 13.150, "sum" : 827.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 827.00, "payments": [ { "type": 0, "sum" : 827.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:09]POST & json_proto [12:47:09]process_json_proto [12:47:09]json parsed OK: [12:47:09]protocol is kg_v1.0 [12:47:09]action value=close_receipt [12:47:09]process_action close_receipt [12:47:09]cmd_close_receipt [12:47:09]MH_GetDate [12:47:09]Write to MH i2c: F0 00 00 AC 2B C6 [12:47:09]Write i2c OK [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: F0 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: F0 05 00 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: F0 05 00 AC 2B 00 D2 4E F0 65 40 [12:47:09]GetLastDocTimeStamp 1710247631 [12:47:09]current date 1710247634 [12:47:09]FM_GetShiftState [12:47:09]SAM_PROTO_GetShiftState [12:47:09]wFMCommunicate request_size=4 [12:47:09]MH_SAM_APDU [12:47:09]CAPDU: 80 13 01 00 [12:47:09]Write to MH i2c: E2 08 00 AD 2B 80 13 01 00 00 00 00 00 55 [12:47:09]Write i2c OK [12:47:09]MH_I2C_Read... [12:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:09]Read from MH i2c: E2 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: E2 0E 00 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: E2 0E 00 AD 2B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C9 [12:47:09]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:47:09]wFMCommunicate OK [12:47:09]SAM_PROTO_GetShiftState done [12:47:09]FM_GetShiftState done [12:47:09]opened in 1710201976 [12:47:09]opened+sec_in_day 1710288376 [12:47:09]quantity*price = 82713 [12:47:09]sum+1 = 82715 [12:47:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 827.00 Внесено: 1000.00 СДАЧА: 173.00 НСП 1% : 7.32 НДС 12% : 87.84 Наличными: 827.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 76 12.03.2024 12:47 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95146 ФПД: 247401411570211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T124714&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95146&fm=247401411570211&tin=02508201610067®Number=0000000000090555&sum=82700 [12:47:10]StoreToDocumentArchive [12:47:10]shift 327 fd 95146 [12:47:10]save to /storage/0327/doc_00095146 [12:47:10]save last doc name /storage/0327/doc_00095146 to /storage/kkm_last_doc_name [12:47:10]save OK [12:47:10]Clear old archive folders... [12:47:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:10]tlvbuf is 01B1BB20 [12:47:10]SAM_PROTO_ClearQueue [12:47:10]wFMCommunicate request_size=4 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 09 00 00 [12:47:10]Write to MH i2c: E2 08 00 BA 2B 80 09 00 00 00 00 00 00 57 [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 BA 2B 00 90 00 59 [12:47:10]RAPDU: 90 00 [12:47:10]wFMCommunicate OK [12:47:10]SAM_PROTO_ClearQueue done [12:47:10]KKMCreateOFDPacket [12:47:10]OFDProtocolAddRootSTLVToBuf [12:47:10]FM_MakeSignedData [12:47:10]FM_MakeSignedData [12:47:10]SAM_PROTO_SignData [12:47:10]wFMCommunicate request_size=4 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 0D 01 02 [12:47:10]Write to MH i2c: E2 08 00 BB 2B 80 0D 01 02 00 00 00 00 5F [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 BB 2B 00 90 00 5A [12:47:10]RAPDU: 90 00 [12:47:10]wFMCommunicate OK [12:47:10]wFMCommunicate request_size=255 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 33 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 1A 43 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 43 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 22 00 00 00 00 07 04 06 00 0C 43 01 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 D2 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AA 73 01 00 35 04 06 00 E1 [12:47:10]Write to MH i2c: E2 02 01 BC 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 33 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 1A 43 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 43 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 22 00 00 00 00 07 04 06 00 0C 43 01 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 D2 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AA 73 01 00 35 04 06 00 E1 00 00 F6 [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:11]Read from MH i2c: E2 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: E2 03 00 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: E2 03 00 BC 2B 00 90 00 5B [12:47:11]RAPDU: 90 00 [12:47:11]wFMCommunicate OK [12:47:11]wFMCommunicate request_size=10 [12:47:11]MH_SAM_APDU [12:47:11]CAPDU: 80 0D 02 02 05 02 A1 40 EA 23 [12:47:11]Write to MH i2c: E2 0D 00 BD 2B 80 0D 02 02 05 00 02 A1 40 EA 23 00 00 5C [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:11]Read from MH i2c: E2 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: E2 03 00 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: E2 03 00 BD 2B 00 90 00 5C [12:47:11]RAPDU: 90 00 [12:47:11]wFMCommunicate OK [12:47:11]wFMCommunicate request_size=4 [12:47:11]MH_SAM_APDU [12:47:11]CAPDU: 80 0D 03 02 [12:47:11]Write to MH i2c: E2 08 00 BE 2B 80 0D 03 02 00 00 00 00 64 [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:11]Read from MH i2c: E2 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: E2 0B 00 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: E2 0B 00 BE 2B 00 30 F3 16 75 FE 2C D7 F3 90 00 07 [12:47:11]RAPDU: 30 F3 16 75 FE 2C D7 F3 90 00 [12:47:11]wFMCommunicate OK [12:47:11]SAM_PROTO_SignData done [12:47:11]FM_MakeSignedData done [12:47:11]CreateOFDProtocolMessage [12:47:11]wFMCommunicate request_size=4 [12:47:11]MH_SAM_APDU [12:47:11]CAPDU: 80 11 00 00 [12:47:11]Write to MH i2c: E2 08 00 BF 2B 80 11 00 00 00 00 00 00 64 [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:11]Read from MH i2c: E2 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: E2 17 00 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: E2 17 00 BF 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B4 [12:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:47:11]wFMCommunicate OK [12:47:11]CreateOFDProtocolMessage done [12:47:11]OFDSenderStorePacket 95146 [12:47:11]StoreOFDPacket docnum=95146 [12:47:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CC 82 07 01 AC A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 33 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 1A 43 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 43 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 22 00 00 00 00 07 04 06 00 0C 43 01 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 D2 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AA 73 01 00 35 04 06 00 E1 02 A1 40 EA 23 30 F3 16 75 FE 2C D7 F3 [12:47:11]CheckFolder [12:47:11]dirname=/storage/ofd_packets [12:47:11]CheckFolder done [12:47:11]ProducePacketName [12:47:11]name=ofd_packets/00095146 [12:47:11]NVStorageSaveData ofd_packets/00095146 [12:47:11]File name is /storage/ofd_packets/00095146 [12:47:11]Write 301 bytes [12:47:11]NVStorageSaveData done [12:47:11]OFDSenderStorePacket done [12:47:11]KKMCreateOFDPacket done [12:47:11]NVStorageSaveData kkm_last_timestamp [12:47:11]File name is /storage/kkm_last_timestamp [12:47:11]Write 4 bytes [12:47:11]NVStorageSaveData done [12:47:11]ExternCall_PrintAddStr [12:47:11]wPrintStart [12:47:11]Write to MH i2c: 01 00 00 C0 2B EB [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: 01 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: 01 07 00 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: 01 07 00 C0 2B 00 80 00 00 00 FF 0F 80 [12:47:11]RasterBufferAndPrint [12:47:11]line Счет N : (1)196113 [12:47:11]line ИНН: 02508201610067 [12:47:11]line Контрольно-Кассовый Чек [12:47:11]line ПРОДАЖА [12:47:11]line ТРК (МРК, ГНК) : 12 [12:47:11]line Товар: 2710124130 [12:47:11]line Аи-92-К-5 [12:47:11]line 13.150 * 62.90 [12:47:11]line = 827.14 [12:47:11]line НДС 12% НСП 1% [12:47:11]line > о реализуемом товаре [12:47:11]line ОКРУГЛЕНИЕ: -0.14 [12:47:11]line ИТОГО: 827.00 [12:47:11]line Внесено: 1000.00 [12:47:11]line СДАЧА: 173.00 [12:47:11]line НСП 1% : 7.32 [12:47:11]line НДС 12% : 87.84 [12:47:11]line Наличными: 827.00 [12:47:11]line Безнал.: 0.00 [12:47:11]line Место: АЗС № 6 "Партнер Нефть" [12:47:11]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:47:11]line СНО: Общий режим [12:47:11]line Чек 76 12.03.2024 12:47 [12:47:11]line Смена: 327 ФФД: 1.0 [12:47:11]line ЗНМ: 0300000009 [12:47:11]line РНМ: 0000000000090555 [12:47:11]line Версия ККМ: 001 [12:47:11]line ФМ: 0000000000874811 [12:47:11]line ФД: 95146 [12:47:11]line ФПД: 247401411570211 [12:47:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T124714&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95146&fm=247401411570211&tin=02508201610067®Number=0000000000090555&sum=82700 [12:47:11]written 0, free lines is 4095 [12:47:11]OFD Sender: Processing packet 95146 [packets to send 30, broken 29] [12:47:11]ProducePacketName [12:47:11]name=ofd_packets/00095146 [12:47:11]OFD Sender: To server: pG, [12:47:11]CommunicateWithHost lk.salyk.kg:30040 [12:47:11]ConnectInit lk.salyk.kg [12:47:11]Connected sock=10 [12:47:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CC 82 07 01 AC A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 33 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 1A 43 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 43 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 22 00 00 00 00 07 04 06 00 0C 43 01 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 D2 4E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AA 73 01 00 35 04 06 00 E1 02 A1 40 EA 23 30 F3 16 75 FE 2C D7 F3 [12:47:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 69 63 47 00 DA 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AA 73 01 00 F4 03 04 00 28 FA EF 65 B6 04 01 00 00 41 80 87 74 F9 A0 54 A5 [12:47:11]CommunicateWithHost err = 0 [12:47:11]CheckOFDResponse [12:47:11]1017 (14) - 77093643461234 [12:47:11]1041 (16) - 0000000000874811 [12:47:11]1040 (4) - 95146 [12:47:11]1012 (4) - 12.03.2024 06:46 [12:47:11]1206 (1) - 0 [12:47:11]OFD Sender: Remove packet 95146 [12:47:11]ProducePacketName [12:47:11]name=ofd_packets/00095146 [12:47:11]NVStorageDeleteData [12:47:11]Write to MH i2c: 01 00 00 EB 2B 16 [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: 01 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: 01 07 00 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: 01 07 00 EB 2B 00 80 00 00 00 59 0D 03 [12:47:11]RasterBufferAndPrint [12:47:11]line [12:47:11]line [12:47:11]line [12:47:11]line [12:47:11]line [12:47:11]written 0, free lines is 3431 [12:47:11]process_action close_receipt done [12:47:11]requested_data is exist [12:47:11]produce_requested_data [12:47:11]requested_item fm.sn is exist - process it [12:47:11]wFMCommunicate request_size=4 [12:47:11]MH_SAM_APDU [12:47:11]CAPDU: 80 11 00 00 [12:47:11]Write to MH i2c: E2 08 00 F2 2B 80 11 00 00 00 00 00 00 97 [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:12]Read from MH i2c: E2 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 17 00 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 17 00 F2 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E7 [12:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:47:12]wFMCommunicate OK [12:47:12]requested_item fd.num is exist - process it [12:47:12]SAM_PROTO_GetFieldsCounters [12:47:12]wFMCommunicate request_size=4 [12:47:12]MH_SAM_APDU [12:47:12]CAPDU: 80 13 00 00 [12:47:12]Write to MH i2c: E2 08 00 F3 2B 80 13 00 00 00 00 00 00 9A [12:47:12]Write i2c OK [12:47:12]MH_I2C_Read... [12:47:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:12]Read from MH i2c: E2 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 62 00 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 62 00 F3 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AA 73 01 00 0E 04 04 00 47 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 01 [12:47:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AA 73 01 00 0E 04 04 00 47 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:47:12]wFMCommunicate OK [12:47:12]SAM_PROTO_GetFieldsCounters done [12:47:12]requested_item shift.num is exist - process it [12:47:12]requested_item shift.opened is exist - process it [12:47:12]req_shift_opened [12:47:12]FM_GetShiftState [12:47:12]SAM_PROTO_GetShiftState [12:47:12]wFMCommunicate request_size=4 [12:47:12]MH_SAM_APDU [12:47:12]CAPDU: 80 13 01 00 [12:47:12]Write to MH i2c: E2 08 00 F4 2B 80 13 01 00 00 00 00 00 9C [12:47:12]Write i2c OK [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 [12:47:12]MH_I2C_Read... [12:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:12]Read from MH i2c: E2 0E 00 [12:47:12]MH_I2C_Read... [12:47:12]OFD Sender: No OFD packet to send [12:47:12]Read from MH i2c: E2 0E 00 F4 2B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 10 [12:47:12]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:47:12]wFMCommunicate OK [12:47:12]SAM_PROTO_GetShiftState done [12:47:12]FM_GetShiftState done [12:47:12]req_shift_opened done [12:47:12]requested_item shift.open_date is exist - process it [12:47:12]req_shift_open_date [12:47:12]req_shift_open_date done [12:47:12]produce_requested_data done [12:47:12]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95146,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:47:12]process_action_free close_receipt [12:47:12]json_value_free [12:47:12]json_value_free done [12:47:12]process_json_proto returns [12:47:12]Send response to host [12:47:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95146,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:47:12]free response buf [12:47:12]execute_script done [12:47:12]execute_script returns [12:47:12]free content buf [12:47:12]Sock 9.Close socket [12:47:12]Sock 9.Thread stoped [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:18]accept exits with 8 [12:52:18]New connection [12:52:18]New thread 3066813796 created [12:52:18]Thread 3066957156 joined [12:52:18]Waiting for new connection... [12:52:18] Sock 8.Parse request [12:52:18]Sock 8.Check first char [12:52:18]Sock 8.First char is OK [12:52:18]request: POST /json_proto HTTP/1.0 [12:52:18]Method: POST [12:52:18]URL: /json_proto [12:52:18]Method is POST - this is cgi request [12:52:18]url: /json_proto [12:52:18]query_string will be loaded in cgi processing [12:52:18]execute_cgi json_proto POST (null) [12:52:18]execute_cgi path=json_proto method=POST [12:52:18]POST find Content-Length [12:52:18]Host: 172.17.62.67:8080 [12:52:18]Content-Length: 674 [12:52:18]Content-Type: application/json [12:52:18] [12:52:18]POST finish read [12:52:18]Found Content-Length = 674 [12:52:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 5.650, "sum" : 400.59, "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:52:18]execute_script... [12:52:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 5.650, "sum" : 400.59, "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:52:18]POST & json_proto [12:52:18]process_json_proto [12:52:18]json parsed OK: [12:52:18]protocol is kg_v1.0 [12:52:18]action value=close_receipt [12:52:18]process_action close_receipt [12:52:18]cmd_close_receipt [12:52:18]MH_GetDate [12:52:18]Write to MH i2c: F0 00 00 F5 2B 0F [12:52:18]Write i2c OK [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: F0 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: F0 05 00 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: F0 05 00 F5 2B 00 07 50 F0 65 C0 [12:52:18]GetLastDocTimeStamp 1710247634 [12:52:18]current date 1710247943 [12:52:18]FM_GetShiftState [12:52:18]SAM_PROTO_GetShiftState [12:52:18]wFMCommunicate request_size=4 [12:52:18]MH_SAM_APDU [12:52:18]CAPDU: 80 13 01 00 [12:52:18]Write to MH i2c: E2 08 00 F6 2B 80 13 01 00 00 00 00 00 9E [12:52:18]Write i2c OK [12:52:18]MH_I2C_Read... [12:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:18]Read from MH i2c: E2 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 0E 00 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 0E 00 F6 2B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 12 [12:52:18]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:52:18]wFMCommunicate OK [12:52:18]SAM_PROTO_GetShiftState done [12:52:18]FM_GetShiftState done [12:52:18]opened in 1710201976 [12:52:18]opened+sec_in_day 1710288376 [12:52:18]quantity*price = 40058 [12:52:18]sum+1 = 40060 [12:52:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 77 12.03.2024 12:52 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95147 ФПД: 103462525541497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T125223&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95147&fm=103462525541497&tin=02508201610067®Number=0000000000090555&sum=40000 [12:52:19]StoreToDocumentArchive [12:52:19]shift 327 fd 95147 [12:52:19]save to /storage/0327/doc_00095147 [12:52:19]save last doc name /storage/0327/doc_00095147 to /storage/kkm_last_doc_name [12:52:19]save OK [12:52:19]Clear old archive folders... [12:52:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:52:19]tlvbuf is 01AECB80 [12:52:19]SAM_PROTO_ClearQueue [12:52:19]wFMCommunicate request_size=4 [12:52:19]MH_SAM_APDU [12:52:19]CAPDU: 80 09 00 00 [12:52:19]Write to MH i2c: E2 08 00 03 2C 80 09 00 00 00 00 00 00 A1 [12:52:19]Write i2c OK [12:52:19]MH_I2C_Read... [12:52:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:19]Read from MH i2c: E2 [12:52:19]MH_I2C_Read... [12:52:19]Read from MH i2c: E2 03 00 [12:52:19]MH_I2C_Read... [12:52:19]Read from MH i2c: E2 03 00 03 2C 00 90 00 A3 [12:52:19]RAPDU: 90 00 [12:52:19]wFMCommunicate OK [12:52:19]SAM_PROTO_ClearQueue done [12:52:19]KKMCreateOFDPacket [12:52:19]OFDProtocolAddRootSTLVToBuf [12:52:19]FM_MakeSignedData [12:52:19]FM_MakeSignedData [12:52:19]SAM_PROTO_SignData [12:52:19]wFMCommunicate request_size=4 [12:52:19]MH_SAM_APDU [12:52:19]CAPDU: 80 0D 01 02 [12:52:19]Write to MH i2c: E2 08 00 04 2C 80 0D 01 02 00 00 00 00 A9 [12:52:19]Write i2c OK [12:52:19]MH_I2C_Read... [12:52:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:19]Read from MH i2c: E2 [12:52:19]MH_I2C_Read... [12:52:19]Read from MH i2c: E2 03 00 [12:52:19]MH_I2C_Read... [12:52:19]Read from MH i2c: E2 03 00 04 2C 00 90 00 A4 [12:52:19]RAPDU: 90 00 [12:52:19]wFMCommunicate OK [12:52:19]wFMCommunicate request_size=255 [12:52:19]MH_SAM_APDU [12:52:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 07 50 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AB 73 01 00 35 04 06 00 5E 19 3F 15 [12:52:19]Write to MH i2c: E2 02 01 05 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 07 50 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AB 73 01 00 35 04 06 00 5E 19 3F 15 00 00 02 [12:52:19]Write i2c OK [12:52:19]MH_I2C_Read... [12:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:20]Read from MH i2c: E2 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: E2 03 00 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: E2 03 00 05 2C 00 90 00 A5 [12:52:20]RAPDU: 90 00 [12:52:20]wFMCommunicate OK [12:52:20]wFMCommunicate request_size=7 [12:52:20]MH_SAM_APDU [12:52:20]CAPDU: 80 0D 02 02 02 1C 79 [12:52:20]Write to MH i2c: E2 0A 00 06 2C 80 0D 02 02 02 00 1C 79 00 00 45 [12:52:20]Write i2c OK [12:52:20]MH_I2C_Read... [12:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:20]Read from MH i2c: E2 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: E2 03 00 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: E2 03 00 06 2C 00 90 00 A6 [12:52:20]RAPDU: 90 00 [12:52:20]wFMCommunicate OK [12:52:20]wFMCommunicate request_size=4 [12:52:20]MH_SAM_APDU [12:52:20]CAPDU: 80 0D 03 02 [12:52:20]Write to MH i2c: E2 08 00 07 2C 80 0D 03 02 00 00 00 00 AE [12:52:20]Write i2c OK [12:52:20]MH_I2C_Read... [12:52:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:20]Read from MH i2c: E2 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: E2 0B 00 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: E2 0B 00 07 2C 00 EC 84 FC 20 E7 3D 30 5B 90 00 EA [12:52:20]RAPDU: EC 84 FC 20 E7 3D 30 5B 90 00 [12:52:20]wFMCommunicate OK [12:52:20]SAM_PROTO_SignData done [12:52:20]FM_MakeSignedData done [12:52:20]CreateOFDProtocolMessage [12:52:20]wFMCommunicate request_size=4 [12:52:20]MH_SAM_APDU [12:52:20]CAPDU: 80 11 00 00 [12:52:20]Write to MH i2c: E2 08 00 08 2C 80 11 00 00 00 00 00 00 AE [12:52:20]Write i2c OK [12:52:20]MH_I2C_Read... [12:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:20]Read from MH i2c: E2 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: E2 17 00 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: E2 17 00 08 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FE [12:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:52:20]wFMCommunicate OK [12:52:20]CreateOFDProtocolMessage done [12:52:20]OFDSenderStorePacket 95147 [12:52:20]StoreOFDPacket docnum=95147 [12:52:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 67 37 04 01 09 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 07 50 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AB 73 01 00 35 04 06 00 5E 19 3F 15 1C 79 EC 84 FC 20 E7 3D 30 5B [12:52:20]CheckFolder [12:52:20]dirname=/storage/ofd_packets [12:52:20]CheckFolder done [12:52:20]ProducePacketName [12:52:20]name=ofd_packets/00095147 [12:52:20]NVStorageSaveData ofd_packets/00095147 [12:52:20]File name is /storage/ofd_packets/00095147 [12:52:20]Write 298 bytes [12:52:20]NVStorageSaveData done [12:52:20]OFDSenderStorePacket done [12:52:20]KKMCreateOFDPacket done [12:52:20]NVStorageSaveData kkm_last_timestamp [12:52:20]File name is /storage/kkm_last_timestamp [12:52:20]Write 4 bytes [12:52:20]NVStorageSaveData done [12:52:20]ExternCall_PrintAddStr [12:52:20]wPrintStart [12:52:20]Write to MH i2c: 01 00 00 09 2C 35 [12:52:20]Write i2c OK [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: 01 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: 01 07 00 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: 01 07 00 09 2C 00 80 00 00 00 FF 0F CA [12:52:20]RasterBufferAndPrint [12:52:20]line Счет N : (1)196114 [12:52:20]line ИНН: 02508201610067 [12:52:20]line Контрольно-Кассовый Чек [12:52:20]line ПРОДАЖА [12:52:20]line ТРК (МРК, ГНК) : 61 [12:52:20]line Товар: 2710194210 [12:52:20]line ДТ-К-5 [12:52:20]line 5.650 * 70.90 [12:52:20]line = 400.59 [12:52:20]line НДС 12% НСП 1% [12:52:20]line > о реализуемом товаре [12:52:20]line ОКРУГЛЕНИЕ: -0.59 [12:52:20]line ИТОГО: 400.00 [12:52:20]line Внесено: 400.00 [12:52:20]line СДАЧА: 0.00 [12:52:20]line НСП 1% : 3.54 [12:52:20]line НДС 12% : 42.54 [12:52:20]line Наличными: 400.00 [12:52:20]line Безнал.: 0.00 [12:52:20]line Место: АЗС № 6 "Партнер Нефть" [12:52:20]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:52:20]line СНО: Общий режим [12:52:20]line Чек 77 12.03.2024 12:52 [12:52:20]line Смена: 327 ФФД: 1.0 [12:52:20]line ЗНМ: 0300000009 [12:52:20]line РНМ: 0000000000090555 [12:52:20]line Версия ККМ: 001 [12:52:20]line ФМ: 0000000000874811 [12:52:20]line ФД: 95147 [12:52:20]line ФПД: 103462525541497 [12:52:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T125223&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95147&fm=103462525541497&tin=02508201610067®Number=0000000000090555&sum=40000 [12:52:20]OFD Sender: Processing packet 95147 [packets to send 30, broken 29] [12:52:20]ProducePacketName [12:52:20]name=ofd_packets/00095147 [12:52:20]OFD Sender: To server: pG, [12:52:20]CommunicateWithHost lk.salyk.kg:30040 [12:52:20]ConnectInit lk.salyk.kg [12:52:20]written 0, free lines is 4095 [12:52:20]Connected sock=10 [12:52:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 67 37 04 01 09 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 07 50 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AB 73 01 00 35 04 06 00 5E 19 3F 15 1C 79 EC 84 FC 20 E7 3D 30 5B [12:52:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 BE D8 47 00 F4 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AB 73 01 00 F4 03 04 00 5E FB EF 65 B6 04 01 00 00 AE D7 3C 19 04 39 17 06 [12:52:21]CommunicateWithHost err = 0 [12:52:21]CheckOFDResponse [12:52:21]1017 (14) - 77093643461234 [12:52:21]1041 (16) - 0000000000874811 [12:52:21]1040 (4) - 95147 [12:52:21]1012 (4) - 12.03.2024 06:51 [12:52:21]1206 (1) - 0 [12:52:21]OFD Sender: Remove packet 95147 [12:52:21]ProducePacketName [12:52:21]name=ofd_packets/00095147 [12:52:21]NVStorageDeleteData [12:52:21]Write to MH i2c: 01 00 00 34 2C 60 [12:52:21]Write i2c OK [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: 01 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: 01 07 00 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: 01 07 00 34 2C 00 80 00 00 00 51 0D 45 [12:52:21]RasterBufferAndPrint [12:52:21]line [12:52:21]line [12:52:21]line [12:52:21]line [12:52:21]line [12:52:21]written 0, free lines is 3415 [12:52:21]process_action close_receipt done [12:52:21]requested_data is exist [12:52:21]produce_requested_data [12:52:21]requested_item fm.sn is exist - process it [12:52:21]wFMCommunicate request_size=4 [12:52:21]MH_SAM_APDU [12:52:21]CAPDU: 80 11 00 00 [12:52:21]Write to MH i2c: E2 08 00 3B 2C 80 11 00 00 00 00 00 00 E1 [12:52:21]Write i2c OK [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 [12:52:21]MH_I2C_Read... [12:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:21]Read from MH i2c: E2 17 00 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 17 00 3B 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 31 [12:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:52:21]wFMCommunicate OK [12:52:21]requested_item fd.num is exist - process it [12:52:21]SAM_PROTO_GetFieldsCounters [12:52:21]wFMCommunicate request_size=4 [12:52:21]MH_SAM_APDU [12:52:21]CAPDU: 80 13 00 00 [12:52:21]Write to MH i2c: E2 08 00 3C 2C 80 13 00 00 00 00 00 00 E4 [12:52:21]Write i2c OK [12:52:21]MH_I2C_Read... [12:52:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:21]Read from MH i2c: E2 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 62 00 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 62 00 3C 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AB 73 01 00 0E 04 04 00 47 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 4F [12:52:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AB 73 01 00 0E 04 04 00 47 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:52:21]wFMCommunicate OK [12:52:21]SAM_PROTO_GetFieldsCounters done [12:52:21]requested_item shift.num is exist - process it [12:52:21]requested_item shift.opened is exist - process it [12:52:21]req_shift_opened [12:52:21]FM_GetShiftState [12:52:21]SAM_PROTO_GetShiftState [12:52:21]wFMCommunicate request_size=4 [12:52:21]MH_SAM_APDU [12:52:21]CAPDU: 80 13 01 00 [12:52:21]Write to MH i2c: E2 08 00 3D 2C 80 13 01 00 00 00 00 00 E6 [12:52:21]Write i2c OK [12:52:21]MH_I2C_Read... [12:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:21]Read from MH i2c: E2 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 0E 00 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 0E 00 3D 2C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 5A [12:52:21]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:52:21]wFMCommunicate OK [12:52:21]SAM_PROTO_GetShiftState done [12:52:21]FM_GetShiftState done [12:52:21]req_shift_opened done [12:52:21]requested_item shift.open_date is exist - process it [12:52:21]req_shift_open_date [12:52:21]req_shift_open_date done [12:52:21]produce_requested_data done [12:52:21]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95147,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:52:21]process_action_free close_receipt [12:52:21]json_value_free [12:52:21]json_value_free done [12:52:21]process_json_proto returns [12:52:21]Send response to host [12:52:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95147,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:52:21]free response buf [12:52:21]execute_script done [12:52:21]execute_script returns [12:52:21]free content buf [12:52:21]Sock 8.Close socket [12:52:21]Sock 8.Thread stoped [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:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:42]accept exits with 9 [12:56:42]New connection [12:56:42]New thread 3066957156 created [12:56:42]Thread 3066813796 joined [12:56:42]Waiting for new connection... [12:56:42] Sock 9.Parse request [12:56:42]Sock 9.Check first char [12:56:42]Sock 9.First char is OK [12:56:42]request: POST /json_proto HTTP/1.0 [12:56:42]Method: POST [12:56:42]URL: /json_proto [12:56:42]Method is POST - this is cgi request [12:56:42]url: /json_proto [12:56:42]query_string will be loaded in cgi processing [12:56:42]execute_cgi json_proto POST (null) [12:56:42]execute_cgi path=json_proto method=POST [12:56:42]POST find Content-Length [12:56:42]Host: 172.17.62.67:8080 [12:56:42]Content-Length: 677 [12:56:42]Content-Type: application/json [12:56:42] [12:56:42]POST finish read [12:56:42]Found Content-Length = 677 [12:56:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.820, "sum" : 240.28, "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:56:42]execute_script... [12:56: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)196115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.820, "sum" : 240.28, "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:56:42]POST & json_proto [12:56:42]process_json_proto [12:56:42]json parsed OK: [12:56:42]protocol is kg_v1.0 [12:56:42]action value=close_receipt [12:56:42]process_action close_receipt [12:56:42]cmd_close_receipt [12:56:42]MH_GetDate [12:56:42]Write to MH i2c: F0 00 00 3E 2C 59 [12:56:42]Write i2c OK [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: F0 [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: F0 05 00 [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: F0 05 00 3E 2C 00 0F 51 F0 65 13 [12:56:42]GetLastDocTimeStamp 1710247943 [12:56:42]current date 1710248207 [12:56:42]FM_GetShiftState [12:56:42]SAM_PROTO_GetShiftState [12:56:42]wFMCommunicate request_size=4 [12:56:42]MH_SAM_APDU [12:56:42]CAPDU: 80 13 01 00 [12:56:42]Write to MH i2c: E2 08 00 3F 2C 80 13 01 00 00 00 00 00 E8 [12:56:42]Write i2c OK [12:56:42]MH_I2C_Read... [12:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:42]Read from MH i2c: E2 [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: E2 0E 00 [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: E2 0E 00 3F 2C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 5C [12:56:42]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:56:42]wFMCommunicate OK [12:56:42]SAM_PROTO_GetShiftState done [12:56:42]FM_GetShiftState done [12:56:42]opened in 1710201976 [12:56:42]opened+sec_in_day 1710288376 [12:56:42]quantity*price = 24027 [12:56:42]sum+1 = 24029 [12:56:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.13 НДС 12% : 25.52 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 78 12.03.2024 12:56 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95148 ФПД: 128819047619482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T125647&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95148&fm=128819047619482&tin=02508201610067®Number=0000000000090555&sum=24000 [12:56:43]StoreToDocumentArchive [12:56:43]shift 327 fd 95148 [12:56:43]save to /storage/0327/doc_00095148 [12:56:43]save last doc name /storage/0327/doc_00095148 to /storage/kkm_last_doc_name [12:56:43]save OK [12:56:43]Clear old archive folders... [12:56:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:43]tlvbuf is 01AEC9A0 [12:56:43]SAM_PROTO_ClearQueue [12:56:43]wFMCommunicate request_size=4 [12:56:43]MH_SAM_APDU [12:56:43]CAPDU: 80 09 00 00 [12:56:43]Write to MH i2c: E2 08 00 4C 2C 80 09 00 00 00 00 00 00 EA [12:56:43]Write i2c OK [12:56:43]MH_I2C_Read... [12:56:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:43]Read from MH i2c: E2 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: E2 03 00 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: E2 03 00 4C 2C 00 90 00 EC [12:56:43]RAPDU: 90 00 [12:56:43]wFMCommunicate OK [12:56:43]SAM_PROTO_ClearQueue done [12:56:43]KKMCreateOFDPacket [12:56:43]OFDProtocolAddRootSTLVToBuf [12:56:43]FM_MakeSignedData [12:56:43]FM_MakeSignedData [12:56:43]SAM_PROTO_SignData [12:56:43]wFMCommunicate request_size=4 [12:56:43]MH_SAM_APDU [12:56:43]CAPDU: 80 0D 01 02 [12:56:43]Write to MH i2c: E2 08 00 4D 2C 80 0D 01 02 00 00 00 00 F2 [12:56:43]Write i2c OK [12:56:43]MH_I2C_Read... [12:56:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:43]Read from MH i2c: E2 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: E2 03 00 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: E2 03 00 4D 2C 00 90 00 ED [12:56:43]RAPDU: 90 00 [12:56:43]wFMCommunicate OK [12:56:43]wFMCommunicate request_size=255 [12:56:43]MH_SAM_APDU [12:56:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 0E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DC 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 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 4E 00 00 00 F4 03 04 00 0F 51 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AC 73 01 00 35 04 06 00 75 [12:56:43]Write to MH i2c: E2 02 01 4E 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 0E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DC 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 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 4E 00 00 00 F4 03 04 00 0F 51 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AC 73 01 00 35 04 06 00 75 00 00 C5 [12:56:43]Write i2c OK [12:56:43]MH_I2C_Read... [12:56:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:44]Read from MH i2c: E2 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: E2 03 00 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: E2 03 00 4E 2C 00 90 00 EE [12:56:44]RAPDU: 90 00 [12:56:44]wFMCommunicate OK [12:56:44]wFMCommunicate request_size=10 [12:56:44]MH_SAM_APDU [12:56:44]CAPDU: 80 0D 02 02 05 29 05 92 DB 9A [12:56:44]Write to MH i2c: E2 0D 00 4F 2C 80 0D 02 02 05 00 29 05 92 DB 9A 00 00 34 [12:56:44]Write i2c OK [12:56:44]MH_I2C_Read... [12:56:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:44]Read from MH i2c: E2 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: E2 03 00 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: E2 03 00 4F 2C 00 90 00 EF [12:56:44]RAPDU: 90 00 [12:56:44]wFMCommunicate OK [12:56:44]wFMCommunicate request_size=4 [12:56:44]MH_SAM_APDU [12:56:44]CAPDU: 80 0D 03 02 [12:56:44]Write to MH i2c: E2 08 00 50 2C 80 0D 03 02 00 00 00 00 F7 [12:56:44]Write i2c OK [12:56:44]MH_I2C_Read... [12:56:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:44]Read from MH i2c: E2 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: E2 0B 00 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: E2 0B 00 50 2C 00 86 F9 FF 71 43 63 B7 B3 90 00 F7 [12:56:44]RAPDU: 86 F9 FF 71 43 63 B7 B3 90 00 [12:56:44]wFMCommunicate OK [12:56:44]SAM_PROTO_SignData done [12:56:44]FM_MakeSignedData done [12:56:44]CreateOFDProtocolMessage [12:56:44]wFMCommunicate request_size=4 [12:56:44]MH_SAM_APDU [12:56:44]CAPDU: 80 11 00 00 [12:56:44]Write to MH i2c: E2 08 00 51 2C 80 11 00 00 00 00 00 00 F7 [12:56:44]Write i2c OK [12:56:44]MH_I2C_Read... [12:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:44]Read from MH i2c: E2 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: E2 17 00 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: E2 17 00 51 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 47 [12:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:56:44]wFMCommunicate OK [12:56:44]CreateOFDProtocolMessage done [12:56:44]OFDSenderStorePacket 95148 [12:56:44]StoreOFDPacket docnum=95148 [12:56:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 74 7D 07 01 28 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 0E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DC 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 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 4E 00 00 00 F4 03 04 00 0F 51 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AC 73 01 00 35 04 06 00 75 29 05 92 DB 9A 86 F9 FF 71 43 63 B7 B3 [12:56:44]CheckFolder [12:56:44]dirname=/storage/ofd_packets [12:56:44]CheckFolder done [12:56:44]ProducePacketName [12:56:44]name=ofd_packets/00095148 [12:56:44]NVStorageSaveData ofd_packets/00095148 [12:56:44]File name is /storage/ofd_packets/00095148 [12:56:44]Write 301 bytes [12:56:44]NVStorageSaveData done [12:56:44]OFDSenderStorePacket done [12:56:44]KKMCreateOFDPacket done [12:56:44]NVStorageSaveData kkm_last_timestamp [12:56:44]File name is /storage/kkm_last_timestamp [12:56:44]Write 4 bytes [12:56:44]NVStorageSaveData done [12:56:44]ExternCall_PrintAddStr [12:56:44]wPrintStart [12:56:44]Write to MH i2c: 01 00 00 52 2C 7E [12:56:44]Write i2c OK [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: 01 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: 01 07 00 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: 01 07 00 52 2C 00 80 00 00 00 FF 0F 13 [12:56:44]RasterBufferAndPrint [12:56:44]line Счет N : (1)196115 [12:56:44]line ИНН: 02508201610067 [12:56:44]line Контрольно-Кассовый Чек [12:56:44]line ПРОДАЖА [12:56:44]line ТРК (МРК, ГНК) : 32 [12:56:44]line Товар: 2710124130 [12:56:44]line Аи-92-К-5 [12:56:44]line 3.820 * 62.90 [12:56:44]line = 240.28 [12:56:44]line НДС 12% НСП 1% [12:56:44]line > о реализуемом товаре [12:56:44]line ОКРУГЛЕНИЕ: -0.28 [12:56:44]line ИТОГО: 240.00 [12:56:44]line Внесено: 240.00 [12:56:44]line СДАЧА: 0.00 [12:56:44]line НСП 1% : 2.13 [12:56:44]line НДС 12% : 25.52 [12:56:44]line Наличными: 240.00 [12:56:44]line Безнал.: 0.00 [12:56:44]line Место: АЗС № 6 "Партнер Нефть" [12:56:44]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:56:44]line СНО: Общий режим [12:56:44]line Чек 78 12.03.2024 12:56 [12:56:44]line Смена: 327 ФФД: 1.0 [12:56:44]line ЗНМ: 0300000009 [12:56:44]line РНМ: 0000000000090555 [12:56:44]line Версия ККМ: 001 [12:56:44]line ФМ: 0000000000874811 [12:56:44]line ФД: 95148 [12:56:44]line ФПД: 128819047619482 [12:56:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T125647&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95148&fm=128819047619482&tin=02508201610067®Number=0000000000090555&sum=24000 [12:56:44]OFD Sender: Processing packet 95148 [packets to send 30, broken 29] [12:56:44]ProducePacketName [12:56:44]name=ofd_packets/00095148 [12:56:44]OFD Sender: To server: pG, [12:56:44]CommunicateWithHost lk.salyk.kg:30040 [12:56:44]ConnectInit lk.salyk.kg [12:56:44]written 0, free lines is 4095 [12:56:44]Connected sock=10 [12:56:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 74 7D 07 01 28 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 0E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DC 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 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 4E 00 00 00 F4 03 04 00 0F 51 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AC 73 01 00 35 04 06 00 75 29 05 92 DB 9A 86 F9 FF 71 43 63 B7 B3 [12:56:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 3B 32 47 00 5F AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AC 73 01 00 F4 03 04 00 65 FC EF 65 B6 04 01 00 00 2E 66 A0 A5 47 92 F6 CE [12:56:44]CommunicateWithHost err = 0 [12:56:44]CheckOFDResponse [12:56:44]1017 (14) - 77093643461234 [12:56:44]1041 (16) - 0000000000874811 [12:56:44]1040 (4) - 95148 [12:56:44]1012 (4) - 12.03.2024 06:55 [12:56:44]1206 (1) - 0 [12:56:44]OFD Sender: Remove packet 95148 [12:56:44]ProducePacketName [12:56:44]name=ofd_packets/00095148 [12:56:44]NVStorageDeleteData [12:56:45]Write to MH i2c: 01 00 00 7D 2C A9 [12:56:45]Write i2c OK [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: 01 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: 01 07 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: 01 07 00 7D 2C 00 80 00 00 00 4E 0D 8B [12:56:45]RasterBufferAndPrint [12:56:45]line [12:56:45]line [12:56:45]line [12:56:45]line [12:56:45]line [12:56:45]written 0, free lines is 3412 [12:56:45]process_action close_receipt done [12:56:45]requested_data is exist [12:56:45]produce_requested_data [12:56:45]requested_item fm.sn is exist - process it [12:56:45]wFMCommunicate request_size=4 [12:56:45]MH_SAM_APDU [12:56:45]CAPDU: 80 11 00 00 [12:56:45]Write to MH i2c: E2 08 00 84 2C 80 11 00 00 00 00 00 00 2A [12:56:45]Write i2c OK [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 [12:56:45]MH_I2C_Read... [12:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:45]Read from MH i2c: E2 17 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 17 00 84 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7A [12:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:56:45]wFMCommunicate OK [12:56:45]requested_item fd.num is exist - process it [12:56:45]SAM_PROTO_GetFieldsCounters [12:56:45]wFMCommunicate request_size=4 [12:56:45]MH_SAM_APDU [12:56:45]CAPDU: 80 13 00 00 [12:56:45]Write to MH i2c: E2 08 00 85 2C 80 13 00 00 00 00 00 00 2D [12:56:45]Write i2c OK [12:56:45]MH_I2C_Read... [12:56:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:45]Read from MH i2c: E2 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 62 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 62 00 85 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AC 73 01 00 0E 04 04 00 47 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 9C [12:56:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AC 73 01 00 0E 04 04 00 47 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:56:45]wFMCommunicate OK [12:56:45]SAM_PROTO_GetFieldsCounters done [12:56:45]requested_item shift.num is exist - process it [12:56:45]requested_item shift.opened is exist - process it [12:56:45]req_shift_opened [12:56:45]FM_GetShiftState [12:56:45]SAM_PROTO_GetShiftState [12:56:45]wFMCommunicate request_size=4 [12:56:45]MH_SAM_APDU [12:56:45]CAPDU: 80 13 01 00 [12:56:45]Write to MH i2c: E2 08 00 86 2C 80 13 01 00 00 00 00 00 2F [12:56:45]Write i2c OK [12:56:45]MH_I2C_Read... [12:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:45]OFD Sender: No OFD packet to send [12:56:45]Read from MH i2c: E2 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 0E 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 0E 00 86 2C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A3 [12:56:45]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [12:56:45]wFMCommunicate OK [12:56:45]SAM_PROTO_GetShiftState done [12:56:45]FM_GetShiftState done [12:56:45]req_shift_opened done [12:56:45]requested_item shift.open_date is exist - process it [12:56:45]req_shift_open_date [12:56:45]req_shift_open_date done [12:56:45]produce_requested_data done [12:56:45]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95148,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [12:56:45]process_action_free close_receipt [12:56:45]json_value_free [12:56:45]json_value_free done [12:56:45]process_json_proto returns [12:56:45]Send response to host [12:56:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95148,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [12:56:45]free response buf [12:56:45]execute_script done [12:56:45]execute_script returns [12:56:45]free content buf [12:56:45]Sock 9.Close socket [12:56:45]Sock 9.Thread stoped [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]accept exits with 8 [13:09:25]New connection [13:09:25]New thread 3066813796 created [13:09:25]Thread 3066957156 joined [13:09:25]Waiting for new connection... [13:09:25] Sock 8.Parse request [13:09:25]Sock 8.Check first char [13:09:25]Sock 8.First char is OK [13:09:25]request: POST /json_proto HTTP/1.0 [13:09:25]Method: POST [13:09:25]URL: /json_proto [13:09:25]Method is POST - this is cgi request [13:09:25]url: /json_proto [13:09:25]query_string will be loaded in cgi processing [13:09:25]execute_cgi json_proto POST (null) [13:09:25]execute_cgi path=json_proto method=POST [13:09:25]POST find Content-Length [13:09:25]Host: 172.17.62.67:8080 [13:09:25]Content-Length: 679 [13:09:25]Content-Type: application/json [13:09:25] [13:09:25]POST finish read [13:09:25]Found Content-Length = 679 [13:09:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:09:25]execute_script... [13:09: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)196116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:09:25]POST & json_proto [13:09:25]process_json_proto [13:09:25]json parsed OK: [13:09:25]protocol is kg_v1.0 [13:09:25]action value=close_receipt [13:09:25]process_action close_receipt [13:09:25]cmd_close_receipt [13:09:25]MH_GetDate [13:09:25]Write to MH i2c: F0 00 00 87 2C A2 [13:09:25]OFD Sender: No OFD packet to send [13:09:25]Write i2c OK [13:09:25]MH_I2C_Read... [13:09:25]Read from MH i2c: F0 [13:09:25]MH_I2C_Read... [13:09:25]Read from MH i2c: F0 05 00 [13:09:25]MH_I2C_Read... [13:09:25]Read from MH i2c: F0 05 00 87 2C 00 0B 54 F0 65 5B [13:09:25]GetLastDocTimeStamp 1710248207 [13:09:25]current date 1710248971 [13:09:25]FM_GetShiftState [13:09:25]SAM_PROTO_GetShiftState [13:09:25]wFMCommunicate request_size=4 [13:09:25]MH_SAM_APDU [13:09:25]CAPDU: 80 13 01 00 [13:09:25]Write to MH i2c: E2 08 00 88 2C 80 13 01 00 00 00 00 00 31 [13:09:25]Write i2c OK [13:09:25]MH_I2C_Read... [13:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:26]Read from MH i2c: E2 [13:09:26]MH_I2C_Read... [13:09:26]Read from MH i2c: E2 0E 00 [13:09:26]MH_I2C_Read... [13:09:26]Read from MH i2c: E2 0E 00 88 2C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A5 [13:09:26]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:09:26]wFMCommunicate OK [13:09:26]SAM_PROTO_GetShiftState done [13:09:26]FM_GetShiftState done [13:09:26]opened in 1710201976 [13:09:26]opened+sec_in_day 1710288376 [13:09:26]quantity*price = 100039 [13:09:26]sum+1 = 100041 [13:09:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 79 12.03.2024 13:09 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95149 ФПД: 219287934686345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T130931&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95149&fm=219287934686345&tin=02508201610067®Number=0000000000090555&sum=100000 [13:09:27]StoreToDocumentArchive [13:09:27]shift 327 fd 95149 [13:09:27]save to /storage/0327/doc_00095149 [13:09:27]save last doc name /storage/0327/doc_00095149 to /storage/kkm_last_doc_name [13:09:27]save OK [13:09:27]Clear old archive folders... [13:09:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:09:27]tlvbuf is 01A26280 [13:09:27]SAM_PROTO_ClearQueue [13:09:27]wFMCommunicate request_size=4 [13:09:27]MH_SAM_APDU [13:09:27]CAPDU: 80 09 00 00 [13:09:27]Write to MH i2c: E2 08 00 95 2C 80 09 00 00 00 00 00 00 33 [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:27]Read from MH i2c: E2 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 03 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 03 00 95 2C 00 90 00 35 [13:09:27]RAPDU: 90 00 [13:09:27]wFMCommunicate OK [13:09:27]SAM_PROTO_ClearQueue done [13:09:27]KKMCreateOFDPacket [13:09:27]OFDProtocolAddRootSTLVToBuf [13:09:27]FM_MakeSignedData [13:09:27]FM_MakeSignedData [13:09:27]SAM_PROTO_SignData [13:09:27]wFMCommunicate request_size=4 [13:09:27]MH_SAM_APDU [13:09:27]CAPDU: 80 0D 01 02 [13:09:27]Write to MH i2c: E2 08 00 96 2C 80 0D 01 02 00 00 00 00 3B [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:27]Read from MH i2c: E2 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 03 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 03 00 96 2C 00 90 00 36 [13:09:27]RAPDU: 90 00 [13:09:27]wFMCommunicate OK [13:09:27]wFMCommunicate request_size=255 [13:09:27]MH_SAM_APDU [13:09:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 0B 54 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AD 73 01 00 35 04 06 00 C7 70 F3 73 [13:09:27]Write to MH i2c: E2 02 01 97 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 0B 54 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AD 73 01 00 35 04 06 00 C7 70 F3 73 00 00 7D [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:27]Read from MH i2c: E2 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 03 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 03 00 97 2C 00 90 00 37 [13:09:27]RAPDU: 90 00 [13:09:27]wFMCommunicate OK [13:09:27]wFMCommunicate request_size=7 [13:09:27]MH_SAM_APDU [13:09:27]CAPDU: 80 0D 02 02 02 54 89 [13:09:27]Write to MH i2c: E2 0A 00 98 2C 80 0D 02 02 02 00 54 89 00 00 1F [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:27]Read from MH i2c: E2 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 03 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 03 00 98 2C 00 90 00 38 [13:09:27]RAPDU: 90 00 [13:09:27]wFMCommunicate OK [13:09:27]wFMCommunicate request_size=4 [13:09:27]MH_SAM_APDU [13:09:27]CAPDU: 80 0D 03 02 [13:09:27]Write to MH i2c: E2 08 00 99 2C 80 0D 03 02 00 00 00 00 40 [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:27]Read from MH i2c: E2 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 0B 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 0B 00 99 2C 00 0C D5 1E 64 06 D9 EB 7E 90 00 EC [13:09:27]RAPDU: 0C D5 1E 64 06 D9 EB 7E 90 00 [13:09:27]wFMCommunicate OK [13:09:27]SAM_PROTO_SignData done [13:09:27]FM_MakeSignedData done [13:09:27]CreateOFDProtocolMessage [13:09:27]wFMCommunicate request_size=4 [13:09:27]MH_SAM_APDU [13:09:27]CAPDU: 80 11 00 00 [13:09:27]Write to MH i2c: E2 08 00 9A 2C 80 11 00 00 00 00 00 00 40 [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:27]Read from MH i2c: E2 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 17 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 17 00 9A 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 90 [13:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:09:27]wFMCommunicate OK [13:09:27]CreateOFDProtocolMessage done [13:09:27]OFDSenderStorePacket 95149 [13:09:27]StoreOFDPacket docnum=95149 [13:09:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 16 57 04 01 AE 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 0B 54 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AD 73 01 00 35 04 06 00 C7 70 F3 73 54 89 0C D5 1E 64 06 D9 EB 7E [13:09:27]CheckFolder [13:09:27]dirname=/storage/ofd_packets [13:09:27]CheckFolder done [13:09:27]ProducePacketName [13:09:27]name=ofd_packets/00095149 [13:09:27]NVStorageSaveData ofd_packets/00095149 [13:09:27]File name is /storage/ofd_packets/00095149 [13:09:27]Write 298 bytes [13:09:27]NVStorageSaveData done [13:09:27]OFDSenderStorePacket done [13:09:27]KKMCreateOFDPacket done [13:09:27]NVStorageSaveData kkm_last_timestamp [13:09:27]File name is /storage/kkm_last_timestamp [13:09:27]Write 4 bytes [13:09:27]NVStorageSaveData done [13:09:27]ExternCall_PrintAddStr [13:09:27]wPrintStart [13:09:27]Write to MH i2c: 01 00 00 9B 2C C7 [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: 01 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: 01 07 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: 01 07 00 9B 2C 00 80 00 00 00 FF 0F 5C [13:09:27]RasterBufferAndPrint [13:09:27]line Счет N : (1)196116 [13:09:27]line ИНН: 02508201610067 [13:09:27]line Контрольно-Кассовый Чек [13:09:27]line ПРОДАЖА [13:09:27]line ТРК (МРК, ГНК) : 51 [13:09:27]line Товар: 2710194210 [13:09:27]line ДТ-К-5 [13:09:27]line 14.110 * 70.90 [13:09:27]line = 1000.40 [13:09:27]line НДС 12% НСП 1% [13:09:27]line > о реализуемом товаре [13:09:27]line ОКРУГЛЕНИЕ: -0.40 [13:09:27]line ИТОГО: 1000.00 [13:09:27]line Внесено: 1000.00 [13:09:27]line СДАЧА: 0.00 [13:09:27]line НСП 1% : 8.85 [13:09:27]line НДС 12% : 106.24 [13:09:27]line Наличными: 1000.00 [13:09:27]line Безнал.: 0.00 [13:09:27]line Место: АЗС № 6 "Партнер Нефть" [13:09:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:09:27]line СНО: Общий режим [13:09:27]line Чек 79 12.03.2024 13:09 [13:09:27]line Смена: 327 ФФД: 1.0 [13:09:27]line ЗНМ: 0300000009 [13:09:27]line РНМ: 0000000000090555 [13:09:27]line Версия ККМ: 001 [13:09:27]line ФМ: 0000000000874811 [13:09:27]line ФД: 95149 [13:09:27]line ФПД: 219287934686345 [13:09:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T130931&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95149&fm=219287934686345&tin=02508201610067®Number=0000000000090555&sum=100000 [13:09:27]OFD Sender: Processing packet 95149 [packets to send 30, broken 29] [13:09:27]ProducePacketName [13:09:27]name=ofd_packets/00095149 [13:09:27]OFD Sender: To server: pG, [13:09:27]CommunicateWithHost lk.salyk.kg:30040 [13:09:27]ConnectInit lk.salyk.kg [13:09:28]written 0, free lines is 4095 [13:09:28]Connected sock=10 [13:09:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 16 57 04 01 AE 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 0B 54 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AD 73 01 00 35 04 06 00 C7 70 F3 73 54 89 0C D5 1E 64 06 D9 EB 7E [13:09:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 16 01 47 00 F9 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AD 73 01 00 F4 03 04 00 61 FF EF 65 B6 04 01 00 00 48 C2 9A 3A 93 0B 47 FB [13:09:28]CommunicateWithHost err = 0 [13:09:28]CheckOFDResponse [13:09:28]1017 (14) - 77093643461234 [13:09:28]1041 (16) - 0000000000874811 [13:09:28]1040 (4) - 95149 [13:09:28]1012 (4) - 12.03.2024 07:08 [13:09:28]1206 (1) - 0 [13:09:28]OFD Sender: Remove packet 95149 [13:09:28]ProducePacketName [13:09:28]name=ofd_packets/00095149 [13:09:28]NVStorageDeleteData [13:09:28]Write to MH i2c: 01 00 00 C6 2C F2 [13:09:28]Write i2c OK [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: 01 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: 01 07 00 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: 01 07 00 C6 2C 00 80 00 00 00 4B 0D D1 [13:09:28]RasterBufferAndPrint [13:09:28]line [13:09:28]line [13:09:28]line [13:09:28]line [13:09:28]line [13:09:28]written 0, free lines is 3409 [13:09:28]process_action close_receipt done [13:09:28]requested_data is exist [13:09:28]produce_requested_data [13:09:28]requested_item fm.sn is exist - process it [13:09:28]wFMCommunicate request_size=4 [13:09:28]MH_SAM_APDU [13:09:28]CAPDU: 80 11 00 00 [13:09:28]Write to MH i2c: E2 08 00 CD 2C 80 11 00 00 00 00 00 00 73 [13:09:28]Write i2c OK [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 [13:09:28]MH_I2C_Read... [13:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:28]Read from MH i2c: E2 17 00 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 17 00 CD 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C3 [13:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:09:28]wFMCommunicate OK [13:09:28]requested_item fd.num is exist - process it [13:09:28]SAM_PROTO_GetFieldsCounters [13:09:28]wFMCommunicate request_size=4 [13:09:28]MH_SAM_APDU [13:09:28]CAPDU: 80 13 00 00 [13:09:28]Write to MH i2c: E2 08 00 CE 2C 80 13 00 00 00 00 00 00 76 [13:09:28]Write i2c OK [13:09:28]MH_I2C_Read... [13:09:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:28]Read from MH i2c: E2 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 62 00 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 62 00 CE 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AD 73 01 00 0E 04 04 00 47 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 E9 [13:09:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AD 73 01 00 0E 04 04 00 47 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 [13:09:28]wFMCommunicate OK [13:09:28]SAM_PROTO_GetFieldsCounters done [13:09:28]requested_item shift.num is exist - process it [13:09:28]requested_item shift.opened is exist - process it [13:09:28]req_shift_opened [13:09:28]FM_GetShiftState [13:09:28]SAM_PROTO_GetShiftState [13:09:28]wFMCommunicate request_size=4 [13:09:28]MH_SAM_APDU [13:09:28]CAPDU: 80 13 01 00 [13:09:28]Write to MH i2c: E2 08 00 CF 2C 80 13 01 00 00 00 00 00 78 [13:09:28]Write i2c OK [13:09:28]MH_I2C_Read... [13:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:28]Read from MH i2c: E2 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 0E 00 [13:09:28]MH_I2C_Read... [13:09:28]OFD Sender: No OFD packet to send [13:09:28]Read from MH i2c: E2 0E 00 CF 2C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 EC [13:09:28]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:09:28]wFMCommunicate OK [13:09:28]SAM_PROTO_GetShiftState done [13:09:28]FM_GetShiftState done [13:09:28]req_shift_opened done [13:09:28]requested_item shift.open_date is exist - process it [13:09:28]req_shift_open_date [13:09:28]req_shift_open_date done [13:09:28]produce_requested_data done [13:09:28]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95149,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [13:09:28]process_action_free close_receipt [13:09:28]json_value_free [13:09:28]json_value_free done [13:09:28]process_json_proto returns [13:09:28]Send response to host [13:09:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95149,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [13:09:28]free response buf [13:09:28]execute_script done [13:09:28]execute_script returns [13:09:28]free content buf [13:09:28]Sock 8.Close socket [13:09:28]Sock 8.Thread stoped [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:06]accept exits with 9 [13:10:06]New connection [13:10:06]New thread 3066957156 created [13:10:06]Thread 3066813796 joined [13:10:06]Waiting for new connection... [13:10:06] Sock 9.Parse request [13:10:06]Sock 9.Check first char [13:10:06]Sock 9.First char is OK [13:10:06]request: POST /json_proto HTTP/1.0 [13:10:06]Method: POST [13:10:06]URL: /json_proto [13:10:06]Method is POST - this is cgi request [13:10:06]url: /json_proto [13:10:06]query_string will be loaded in cgi processing [13:10:06]execute_cgi json_proto POST (null) [13:10:06]execute_cgi path=json_proto method=POST [13:10:06]POST find Content-Length [13:10:06]Host: 172.17.62.67:8080 [13:10:06]Content-Length: 806 [13:10:06]Content-Type: application/json [13:10:06] [13:10:06]POST finish read [13:10:06]Found Content-Length = 806 [13:10:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:06]execute_script... [13: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)196117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:06]POST & json_proto [13:10:06]process_json_proto [13:10:06]json parsed OK: [13:10:06]protocol is kg_v1.0 [13:10:06]action value=close_receipt [13:10:06]process_action close_receipt [13:10:06]cmd_close_receipt [13:10:06]MH_GetDate [13:10:06]Write to MH i2c: F0 00 00 D0 2C EB [13:10:06]Write i2c OK [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: F0 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: F0 05 00 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: F0 05 00 D0 2C 00 33 54 F0 65 CC [13:10:06]GetLastDocTimeStamp 1710248971 [13:10:06]current date 1710249011 [13:10:06]FM_GetShiftState [13:10:06]SAM_PROTO_GetShiftState [13:10:06]wFMCommunicate request_size=4 [13:10:06]MH_SAM_APDU [13:10:06]CAPDU: 80 13 01 00 [13:10:06]Write to MH i2c: E2 08 00 D1 2C 80 13 01 00 00 00 00 00 7A [13:10:06]Write i2c OK [13:10:06]MH_I2C_Read... [13:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:06]Read from MH i2c: E2 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: E2 0E 00 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: E2 0E 00 D1 2C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 EE [13:10:06]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:10:06]wFMCommunicate OK [13:10:06]SAM_PROTO_GetShiftState done [13:10:06]FM_GetShiftState done [13:10:06]opened in 1710201976 [13:10:06]opened+sec_in_day 1710288376 [13:10:06]quantity*price = 62900 [13:10:06]sum+1 = 62901 [13:10:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 0.00 Безнал.: 629.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 80 12.03.2024 13:10 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95150 ФПД: 70078552903126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T131011&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95150&fm=70078552903126&tin=02508201610067®Number=0000000000090555&sum=62900 [13:10:07]StoreToDocumentArchive [13:10:07]shift 327 fd 95150 [13:10:07]save to /storage/0327/doc_00095150 [13:10:07]save last doc name /storage/0327/doc_00095150 to /storage/kkm_last_doc_name [13:10:07]save OK [13:10:07]Clear old archive folders... [13:10:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:07]tlvbuf is 01A5F600 [13:10:07]SAM_PROTO_ClearQueue [13:10:07]wFMCommunicate request_size=4 [13:10:07]MH_SAM_APDU [13:10:07]CAPDU: 80 09 00 00 [13:10:07]Write to MH i2c: E2 08 00 DE 2C 80 09 00 00 00 00 00 00 7C [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:07]Read from MH i2c: E2 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 DE 2C 00 90 00 7E [13:10:07]RAPDU: 90 00 [13:10:07]wFMCommunicate OK [13:10:07]SAM_PROTO_ClearQueue done [13:10:07]KKMCreateOFDPacket [13:10:07]OFDProtocolAddRootSTLVToBuf [13:10:07]FM_MakeSignedData [13:10:07]FM_MakeSignedData [13:10:07]SAM_PROTO_SignData [13:10:07]wFMCommunicate request_size=4 [13:10:07]MH_SAM_APDU [13:10:07]CAPDU: 80 0D 01 02 [13:10:07]Write to MH i2c: E2 08 00 DF 2C 80 0D 01 02 00 00 00 00 84 [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:07]Read from MH i2c: E2 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 DF 2C 00 90 00 7F [13:10:07]RAPDU: 90 00 [13:10:07]wFMCommunicate OK [13:10:07]wFMCommunicate request_size=255 [13:10:07]MH_SAM_APDU [13: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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 33 54 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AE 73 01 00 35 04 06 00 3F [13:10:07]Write to MH i2c: E2 02 01 E0 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 33 54 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AE 73 01 00 35 04 06 00 3F 00 00 9C [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:08]Read from MH i2c: E2 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 03 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 03 00 E0 2C 00 90 00 80 [13:10:08]RAPDU: 90 00 [13:10:08]wFMCommunicate OK [13:10:08]wFMCommunicate request_size=10 [13:10:08]MH_SAM_APDU [13:10:08]CAPDU: 80 0D 02 02 05 BC 6F 40 8D D6 [13:10:08]Write to MH i2c: E2 0D 00 E1 2C 80 0D 02 02 05 00 BC 6F 40 8D D6 00 00 5F [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:08]Read from MH i2c: E2 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 03 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 03 00 E1 2C 00 90 00 81 [13:10:08]RAPDU: 90 00 [13:10:08]wFMCommunicate OK [13:10:08]wFMCommunicate request_size=4 [13:10:08]MH_SAM_APDU [13:10:08]CAPDU: 80 0D 03 02 [13:10:08]Write to MH i2c: E2 08 00 E2 2C 80 0D 03 02 00 00 00 00 89 [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:08]Read from MH i2c: E2 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 0B 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 0B 00 E2 2C 00 11 C4 77 35 8C 32 80 5B 90 00 A4 [13:10:08]RAPDU: 11 C4 77 35 8C 32 80 5B 90 00 [13:10:08]wFMCommunicate OK [13:10:08]SAM_PROTO_SignData done [13:10:08]FM_MakeSignedData done [13:10:08]CreateOFDProtocolMessage [13:10:08]wFMCommunicate request_size=4 [13:10:08]MH_SAM_APDU [13:10:08]CAPDU: 80 11 00 00 [13:10:08]Write to MH i2c: E2 08 00 E3 2C 80 11 00 00 00 00 00 00 89 [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:08]Read from MH i2c: E2 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 17 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 17 00 E3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D9 [13:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:10:08]wFMCommunicate OK [13:10:08]CreateOFDProtocolMessage done [13:10:08]OFDSenderStorePacket 95150 [13:10:08]StoreOFDPacket docnum=95150 [13:10:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 26 04 07 01 E1 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 33 54 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AE 73 01 00 35 04 06 00 3F BC 6F 40 8D D6 11 C4 77 35 8C 32 80 5B [13:10:08]CheckFolder [13:10:08]dirname=/storage/ofd_packets [13:10:08]CheckFolder done [13:10:08]ProducePacketName [13:10:08]name=ofd_packets/00095150 [13:10:08]NVStorageSaveData ofd_packets/00095150 [13:10:08]File name is /storage/ofd_packets/00095150 [13:10:08]Write 301 bytes [13:10:08]NVStorageSaveData done [13:10:08]OFDSenderStorePacket done [13:10:08]KKMCreateOFDPacket done [13:10:08]NVStorageSaveData kkm_last_timestamp [13:10:08]File name is /storage/kkm_last_timestamp [13:10:08]Write 4 bytes [13:10:08]NVStorageSaveData done [13:10:08]ExternCall_PrintAddStr [13:10:08]wPrintStart [13:10:08]Write to MH i2c: 01 00 00 E4 2C 10 [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: 01 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: 01 07 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: 01 07 00 E4 2C 00 80 00 00 00 FF 0F A5 [13:10:08]RasterBufferAndPrint [13:10:08]line Счет N : (1)196117 [13:10:08]line ИНН: 02508201610067 [13:10:08]line Контрольно-Кассовый Чек [13:10:08]line ПРОДАЖА [13:10:08]line ТРК (МРК, ГНК) : 22 [13:10:08]line Товар: 2710124130 [13:10:08]line Аи-92-К-5 [13:10:08]line 10.000 * 62.90 [13:10:08]line = 629.00 [13:10:08]line НДС 12% НСП 1% [13:10:08]line > о реализуемом товаре [13:10:08]line ИТОГО: 629.00 [13:10:08]line НСП 1% : 5.57 [13:10:08]line НДС 12% : 66.80 [13:10:08]line Наличными: 0.00 [13:10:08]line Безнал.: 629.00 [13:10:08]line Место: АЗС № 6 "Партнер Нефть" [13:10:08]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:10:08]line СНО: Общий режим [13:10:08]line Чек 80 12.03.2024 13:10 [13:10:08]line Смена: 327 ФФД: 1.0 [13:10:08]line ЗНМ: 0300000009 [13:10:08]line РНМ: 0000000000090555 [13:10:08]line Версия ККМ: 001 [13:10:08]line Платежная система: О! деньги [13:10:08]line ФМ: 0000000000874811 [13:10:08]line ФД: 95150 [13:10:08]line ФПД: 70078552903126 [13:10:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T131011&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95150&fm=70078552903126&tin=02508201610067®Number=0000000000090555&sum=62900 [13:10:08]OFD Sender: Processing packet 95150 [packets to send 30, broken 29] [13:10:08]ProducePacketName [13:10:08]name=ofd_packets/00095150 [13:10:08]OFD Sender: To server: pG, [13:10:08]CommunicateWithHost lk.salyk.kg:30040 [13:10:08]ConnectInit lk.salyk.kg [13:10:08]written 0, free lines is 4095 [13:10:08]Connected sock=10 [13:10:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 26 04 07 01 E1 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 33 54 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AE 73 01 00 35 04 06 00 3F BC 6F 40 8D D6 11 C4 77 35 8C 32 80 5B [13:10:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 57 29 47 00 D4 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AE 73 01 00 F4 03 04 00 89 FF EF 65 B6 04 01 00 00 03 3A A7 F0 FC D4 B0 25 [13:10:08]CommunicateWithHost err = 0 [13:10:08]CheckOFDResponse [13:10:08]1017 (14) - 77093643461234 [13:10:08]1041 (16) - 0000000000874811 [13:10:08]1040 (4) - 95150 [13:10:08]1012 (4) - 12.03.2024 07:08 [13:10:08]1206 (1) - 0 [13:10:08]OFD Sender: Remove packet 95150 [13:10:08]ProducePacketName [13:10:08]name=ofd_packets/00095150 [13:10:08]NVStorageDeleteData [13:10:09]Write to MH i2c: 01 00 00 0E 2D 3B [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: 01 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: 01 07 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: 01 07 00 0E 2D 00 80 00 00 00 61 0D 30 [13:10:09]RasterBufferAndPrint [13:10:09]line [13:10:09]line [13:10:09]line [13:10:09]line [13:10:09]line [13:10:09]written 0, free lines is 3431 [13:10:09]process_action close_receipt done [13:10:09]requested_data is exist [13:10:09]produce_requested_data [13:10:09]requested_item fm.sn is exist - process it [13:10:09]wFMCommunicate request_size=4 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 11 00 00 [13:10:09]Write to MH i2c: E2 08 00 15 2D 80 11 00 00 00 00 00 00 BC [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 17 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 17 00 15 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0C [13:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:10:09]wFMCommunicate OK [13:10:09]requested_item fd.num is exist - process it [13:10:09]SAM_PROTO_GetFieldsCounters [13:10:09]wFMCommunicate request_size=4 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 13 00 00 [13:10:09]Write to MH i2c: E2 08 00 16 2D 80 13 00 00 00 00 00 00 BF [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 62 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 62 00 16 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AE 73 01 00 0E 04 04 00 47 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 36 [13:10:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AE 73 01 00 0E 04 04 00 47 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:10:09]wFMCommunicate OK [13:10:09]SAM_PROTO_GetFieldsCounters done [13:10:09]requested_item shift.num is exist - process it [13:10:09]requested_item shift.opened is exist - process it [13:10:09]req_shift_opened [13:10:09]FM_GetShiftState [13:10:09]SAM_PROTO_GetShiftState [13:10:09]wFMCommunicate request_size=4 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 13 01 00 [13:10:09]Write to MH i2c: E2 08 00 17 2D 80 13 01 00 00 00 00 00 C1 [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 0E 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 0E 00 17 2D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 35 [13:10:09]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:10:09]wFMCommunicate OK [13:10:09]SAM_PROTO_GetShiftState done [13:10:09]FM_GetShiftState done [13:10:09]req_shift_opened done [13:10:09]requested_item shift.open_date is exist - process it [13:10:09]req_shift_open_date [13:10:09]req_shift_open_date done [13:10:09]produce_requested_data done [13:10:09]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95150,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [13:10:09]process_action_free close_receipt [13:10:09]json_value_free [13:10:09]json_value_free done [13:10:09]process_json_proto returns [13:10:09]Send response to host [13:10:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95150,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [13:10:09]free response buf [13:10:09]execute_script done [13:10:09]execute_script returns [13:10:09]free content buf [13:10:09]Sock 9.Close socket [13:10:09]Sock 9.Thread stoped [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]accept exits with 8 [13:17:09]New connection [13:17:09]New thread 3066813796 created [13:17:09]Thread 3066957156 joined [13:17:09]Waiting for new connection... [13:17:09] Sock 8.Parse request [13:17:09]Sock 8.Check first char [13:17:09]Sock 8.First char is OK [13:17:09]request: POST /json_proto HTTP/1.0 [13:17:09]Method: POST [13:17:09]URL: /json_proto [13:17:09]Method is POST - this is cgi request [13:17:09]url: /json_proto [13:17:09]query_string will be loaded in cgi processing [13:17:09]execute_cgi json_proto POST (null) [13:17:09]execute_cgi path=json_proto method=POST [13:17:09]POST find Content-Length [13:17:09]Host: 172.17.62.67:8080 [13:17:09]Content-Length: 674 [13:17:09]Content-Type: application/json [13:17:09] [13:17:09]POST finish read [13:17:09]Found Content-Length = 674 [13:17:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "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:17:09]execute_script... [13:17: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)196118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "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:17:09]POST & json_proto [13:17:09]process_json_proto [13:17:09]json parsed OK: [13:17:09]protocol is kg_v1.0 [13:17:09]action value=close_receipt [13:17:09]process_action close_receipt [13:17:09]cmd_close_receipt [13:17:09]MH_GetDate [13:17:09]Write to MH i2c: F0 00 00 18 2D 34 [13:17:09]Write i2c OK [13:17:09]MH_I2C_Read... [13:17:09]Read from MH i2c: F0 [13:17:09]MH_I2C_Read... [13:17:09]Read from MH i2c: F0 05 00 [13:17:09]MH_I2C_Read... [13:17:09]Read from MH i2c: F0 05 00 18 2D 00 DA 55 F0 65 BD [13:17:09]GetLastDocTimeStamp 1710249011 [13:17:09]current date 1710249434 [13:17:09]FM_GetShiftState [13:17:09]SAM_PROTO_GetShiftState [13:17:09]wFMCommunicate request_size=4 [13:17:09]MH_SAM_APDU [13:17:09]CAPDU: 80 13 01 00 [13:17:09]Write to MH i2c: E2 08 00 19 2D 80 13 01 00 00 00 00 00 C3 [13:17:09]Write i2c OK [13:17:09]MH_I2C_Read... [13:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:09]Read from MH i2c: E2 [13:17:09]MH_I2C_Read... [13:17:09]Read from MH i2c: E2 0E 00 [13:17:09]MH_I2C_Read... [13:17:09]Read from MH i2c: E2 0E 00 19 2D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 37 [13:17:09]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:17:09]wFMCommunicate OK [13:17:09]SAM_PROTO_GetShiftState done [13:17:09]FM_GetShiftState done [13:17:09]opened in 1710201976 [13:17:09]opened+sec_in_day 1710288376 [13:17:09]quantity*price = 50055 [13:17:09]sum+1 = 50056 [13:17:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 81 12.03.2024 13:17 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95151 ФПД: 81240915420028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T131714&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95151&fm=81240915420028&tin=02508201610067®Number=0000000000090555&sum=50000 [13:17:10]StoreToDocumentArchive [13:17:10]shift 327 fd 95151 [13:17:10]save to /storage/0327/doc_00095151 [13:17:10]save last doc name /storage/0327/doc_00095151 to /storage/kkm_last_doc_name [13:17:10]save OK [13:17:10]Clear old archive folders... [13:17:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:17:10]tlvbuf is 01A4CD40 [13:17:10]SAM_PROTO_ClearQueue [13:17:10]wFMCommunicate request_size=4 [13:17:10]MH_SAM_APDU [13:17:10]CAPDU: 80 09 00 00 [13:17:10]Write to MH i2c: E2 08 00 26 2D 80 09 00 00 00 00 00 00 C5 [13:17:10]Write i2c OK [13:17:10]MH_I2C_Read... [13:17:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:10]Read from MH i2c: E2 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: E2 03 00 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: E2 03 00 26 2D 00 90 00 C7 [13:17:10]RAPDU: 90 00 [13:17:10]wFMCommunicate OK [13:17:10]SAM_PROTO_ClearQueue done [13:17:10]KKMCreateOFDPacket [13:17:10]OFDProtocolAddRootSTLVToBuf [13:17:10]FM_MakeSignedData [13:17:10]FM_MakeSignedData [13:17:10]SAM_PROTO_SignData [13:17:10]wFMCommunicate request_size=4 [13:17:10]MH_SAM_APDU [13:17:10]CAPDU: 80 0D 01 02 [13:17:10]Write to MH i2c: E2 08 00 27 2D 80 0D 01 02 00 00 00 00 CD [13:17:10]Write i2c OK [13:17:10]MH_I2C_Read... [13:17:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:10]Read from MH i2c: E2 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: E2 03 00 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: E2 03 00 27 2D 00 90 00 C8 [13:17:10]RAPDU: 90 00 [13:17:10]wFMCommunicate OK [13:17:10]wFMCommunicate request_size=255 [13:17:10]MH_SAM_APDU [13:17:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DA 55 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AF 73 01 00 35 04 06 00 49 E3 5F E7 [13:17:10]Write to MH i2c: E2 02 01 28 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DA 55 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AF 73 01 00 35 04 06 00 49 E3 5F E7 00 00 58 [13:17:10]Write i2c OK [13:17:10]MH_I2C_Read... [13:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:10]Read from MH i2c: E2 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: E2 03 00 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: E2 03 00 28 2D 00 90 00 C9 [13:17:10]RAPDU: 90 00 [13:17:10]wFMCommunicate OK [13:17:10]wFMCommunicate request_size=7 [13:17:10]MH_SAM_APDU [13:17:10]CAPDU: 80 0D 02 02 02 A3 7C [13:17:10]Write to MH i2c: E2 0A 00 29 2D 80 0D 02 02 02 00 A3 7C 00 00 F3 [13:17:10]Write i2c OK [13:17:10]MH_I2C_Read... [13:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:10]Read from MH i2c: E2 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: E2 03 00 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: E2 03 00 29 2D 00 90 00 CA [13:17:10]RAPDU: 90 00 [13:17:10]wFMCommunicate OK [13:17:10]wFMCommunicate request_size=4 [13:17:10]MH_SAM_APDU [13:17:10]CAPDU: 80 0D 03 02 [13:17:10]Write to MH i2c: E2 08 00 2A 2D 80 0D 03 02 00 00 00 00 D2 [13:17:10]Write i2c OK [13:17:10]MH_I2C_Read... [13:17:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:11]Read from MH i2c: E2 [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: E2 0B 00 [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: E2 0B 00 2A 2D 00 01 63 CE 13 FB 12 7F 9B 90 00 3F [13:17:11]RAPDU: 01 63 CE 13 FB 12 7F 9B 90 00 [13:17:11]wFMCommunicate OK [13:17:11]SAM_PROTO_SignData done [13:17:11]FM_MakeSignedData done [13:17:11]CreateOFDProtocolMessage [13:17:11]wFMCommunicate request_size=4 [13:17:11]MH_SAM_APDU [13:17:11]CAPDU: 80 11 00 00 [13:17:11]Write to MH i2c: E2 08 00 2B 2D 80 11 00 00 00 00 00 00 D2 [13:17:11]Write i2c OK [13:17:11]MH_I2C_Read... [13:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:11]Read from MH i2c: E2 [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: E2 17 00 [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: E2 17 00 2B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 22 [13:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:17:11]wFMCommunicate OK [13:17:11]CreateOFDProtocolMessage done [13:17:11]OFDSenderStorePacket 95151 [13:17:11]StoreOFDPacket docnum=95151 [13:17:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 D5 8A 04 01 A8 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DA 55 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AF 73 01 00 35 04 06 00 49 E3 5F E7 A3 7C 01 63 CE 13 FB 12 7F 9B [13:17:11]CheckFolder [13:17:11]dirname=/storage/ofd_packets [13:17:11]CheckFolder done [13:17:11]ProducePacketName [13:17:11]name=ofd_packets/00095151 [13:17:11]NVStorageSaveData ofd_packets/00095151 [13:17:11]File name is /storage/ofd_packets/00095151 [13:17:11]Write 298 bytes [13:17:11]NVStorageSaveData done [13:17:11]OFDSenderStorePacket done [13:17:11]KKMCreateOFDPacket done [13:17:11]NVStorageSaveData kkm_last_timestamp [13:17:11]File name is /storage/kkm_last_timestamp [13:17:11]Write 4 bytes [13:17:11]NVStorageSaveData done [13:17:11]ExternCall_PrintAddStr [13:17:11]wPrintStart [13:17:11]Write to MH i2c: 01 00 00 2C 2D 59 [13:17:11]Write i2c OK [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: 01 [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: 01 07 00 [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: 01 07 00 2C 2D 00 80 00 00 00 FF 0F EE [13:17:11]RasterBufferAndPrint [13:17:11]line Счет N : (1)196118 [13:17:11]line ИНН: 02508201610067 [13:17:11]line Контрольно-Кассовый Чек [13:17:11]line ПРОДАЖА [13:17:11]line ТРК (МРК, ГНК) : 61 [13:17:11]line Товар: 2710194210 [13:17:11]line ДТ-К-5 [13:17:11]line 7.060 * 70.90 [13:17:11]line = 500.55 [13:17:11]line НДС 12% НСП 1% [13:17:11]line > о реализуемом товаре [13:17:11]line ОКРУГЛЕНИЕ: -0.55 [13:17:11]line ИТОГО: 500.00 [13:17:11]line Внесено: 500.00 [13:17:11]line СДАЧА: 0.00 [13:17:11]line НСП 1% : 4.43 [13:17:11]line НДС 12% : 53.16 [13:17:11]line Наличными: 500.00 [13:17:11]line Безнал.: 0.00 [13:17:11]line Место: АЗС № 6 "Партнер Нефть" [13:17:11]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:17:11]line СНО: Общий режим [13:17:11]line Чек 81 12.03.2024 13:17 [13:17:11]line Смена: 327 ФФД: 1.0 [13:17:11]line ЗНМ: 0300000009 [13:17:11]line РНМ: 0000000000090555 [13:17:11]line Версия ККМ: 001 [13:17:11]line ФМ: 0000000000874811 [13:17:11]line ФД: 95151 [13:17:11]line ФПД: 81240915420028 [13:17:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T131714&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95151&fm=81240915420028&tin=02508201610067®Number=0000000000090555&sum=50000 [13:17:11]OFD Sender: Processing packet 95151 [packets to send 30, broken 29] [13:17:11]ProducePacketName [13:17:11]name=ofd_packets/00095151 [13:17:11]OFD Sender: To server: pG, [13:17:11]CommunicateWithHost lk.salyk.kg:30040 [13:17:11]ConnectInit lk.salyk.kg [13:17:11]written 0, free lines is 4095 [13:17:11]Connected sock=10 [13:17:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 D5 8A 04 01 A8 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DA 55 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AF 73 01 00 35 04 06 00 49 E3 5F E7 A3 7C 01 63 CE 13 FB 12 7F 9B [13:17:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E9 76 47 00 AE 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AF 73 01 00 F4 03 04 00 30 01 F0 65 B6 04 01 00 00 D4 55 B8 CA E6 5C D2 43 [13:17:11]CommunicateWithHost err = 0 [13:17:11]CheckOFDResponse [13:17:11]1017 (14) - 77093643461234 [13:17:11]1041 (16) - 0000000000874811 [13:17:11]1040 (4) - 95151 [13:17:11]1012 (4) - 12.03.2024 07:16 [13:17:11]1206 (1) - 0 [13:17:11]OFD Sender: Remove packet 95151 [13:17:11]ProducePacketName [13:17:11]name=ofd_packets/00095151 [13:17:11]NVStorageDeleteData [13:17:11]Write to MH i2c: 01 00 00 57 2D 84 [13:17:11]Write i2c OK [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: 01 [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: 01 07 00 [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: 01 07 00 57 2D 00 80 00 00 00 41 0D 59 [13:17:11]RasterBufferAndPrint [13:17:11]line [13:17:11]line [13:17:11]line [13:17:11]line [13:17:11]line [13:17:11]written 0, free lines is 3399 [13:17:11]process_action close_receipt done [13:17:11]requested_data is exist [13:17:11]produce_requested_data [13:17:11]requested_item fm.sn is exist - process it [13:17:11]wFMCommunicate request_size=4 [13:17:11]MH_SAM_APDU [13:17:11]CAPDU: 80 11 00 00 [13:17:11]Write to MH i2c: E2 08 00 5E 2D 80 11 00 00 00 00 00 00 05 [13:17:11]Write i2c OK [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: E2 [13:17:11]MH_I2C_Read... [13:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:11]Read from MH i2c: E2 17 00 [13:17:11]MH_I2C_Read... [13:17:11]Read from MH i2c: E2 17 00 5E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 55 [13:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:17:11]wFMCommunicate OK [13:17:11]requested_item fd.num is exist - process it [13:17:11]SAM_PROTO_GetFieldsCounters [13:17:11]wFMCommunicate request_size=4 [13:17:11]MH_SAM_APDU [13:17:11]CAPDU: 80 13 00 00 [13:17:11]Write to MH i2c: E2 08 00 5F 2D 80 13 00 00 00 00 00 00 08 [13:17:11]Write i2c OK [13:17:11]MH_I2C_Read... [13:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:12]Read from MH i2c: E2 [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: E2 62 00 [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: E2 62 00 5F 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AF 73 01 00 0E 04 04 00 47 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 83 [13:17:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AF 73 01 00 0E 04 04 00 47 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:17:12]wFMCommunicate OK [13:17:12]SAM_PROTO_GetFieldsCounters done [13:17:12]requested_item shift.num is exist - process it [13:17:12]requested_item shift.opened is exist - process it [13:17:12]req_shift_opened [13:17:12]FM_GetShiftState [13:17:12]SAM_PROTO_GetShiftState [13:17:12]wFMCommunicate request_size=4 [13:17:12]MH_SAM_APDU [13:17:12]CAPDU: 80 13 01 00 [13:17:12]Write to MH i2c: E2 08 00 60 2D 80 13 01 00 00 00 00 00 0A [13:17:12]Write i2c OK [13:17:12]MH_I2C_Read... [13:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:12]OFD Sender: No OFD packet to send [13:17:12]Read from MH i2c: E2 [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: E2 0E 00 [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: E2 0E 00 60 2D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 7E [13:17:12]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:17:12]wFMCommunicate OK [13:17:12]SAM_PROTO_GetShiftState done [13:17:12]FM_GetShiftState done [13:17:12]req_shift_opened done [13:17:12]requested_item shift.open_date is exist - process it [13:17:12]req_shift_open_date [13:17:12]req_shift_open_date done [13:17:12]produce_requested_data done [13:17:12]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95151,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [13:17:12]process_action_free close_receipt [13:17:12]json_value_free [13:17:12]json_value_free done [13:17:12]process_json_proto returns [13:17:12]Send response to host [13:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95151,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [13:17:12]free response buf [13:17:12]execute_script done [13:17:12]execute_script returns [13:17:12]free content buf [13:17:12]Sock 8.Close socket [13:17:12]Sock 8.Thread stoped [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:42]accept exits with 9 [13:17:42]New connection [13:17:42]New thread 3066957156 created [13:17:42]Thread 3066813796 joined [13:17:42]Waiting for new connection... [13:17:42] Sock 9.Parse request [13:17:42]Sock 9.Check first char [13:17:42]Sock 9.First char is OK [13:17:42]request: POST /json_proto HTTP/1.0 [13:17:42]Method: POST [13:17:42]URL: /json_proto [13:17:42]Method is POST - this is cgi request [13:17:42]url: /json_proto [13:17:42]query_string will be loaded in cgi processing [13:17:42]execute_cgi json_proto POST (null) [13:17:42]execute_cgi path=json_proto method=POST [13:17:42]POST find Content-Length [13:17:42]Host: 172.17.62.67:8080 [13:17:42]Content-Length: 677 [13:17:42]Content-Type: application/json [13:17:42] [13:17:42]POST finish read [13:17:42]Found Content-Length = 677 [13:17:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "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:17:42]execute_script... [13:17: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)196119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "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:17:42]POST & json_proto [13:17:42]process_json_proto [13:17:42]json parsed OK: [13:17:42]protocol is kg_v1.0 [13:17:42]action value=close_receipt [13:17:42]process_action close_receipt [13:17:42]cmd_close_receipt [13:17:42]MH_GetDate [13:17:42]Write to MH i2c: F0 00 00 61 2D 7D [13:17:42]Write i2c OK [13:17:42]MH_I2C_Read... [13:17:42]Read from MH i2c: F0 [13:17:42]MH_I2C_Read... [13:17:42]Read from MH i2c: F0 05 00 [13:17:42]MH_I2C_Read... [13:17:42]Read from MH i2c: F0 05 00 61 2D 00 FB 55 F0 65 27 [13:17:42]GetLastDocTimeStamp 1710249434 [13:17:42]current date 1710249467 [13:17:42]FM_GetShiftState [13:17:42]SAM_PROTO_GetShiftState [13:17:42]wFMCommunicate request_size=4 [13:17:42]MH_SAM_APDU [13:17:42]CAPDU: 80 13 01 00 [13:17:42]Write to MH i2c: E2 08 00 62 2D 80 13 01 00 00 00 00 00 0C [13:17:42]Write i2c OK [13:17:42]MH_I2C_Read... [13:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:42]Read from MH i2c: E2 [13:17:42]MH_I2C_Read... [13:17:42]Read from MH i2c: E2 0E 00 [13:17:42]MH_I2C_Read... [13:17:42]Read from MH i2c: E2 0E 00 62 2D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 80 [13:17:42]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:17:42]wFMCommunicate OK [13:17:42]SAM_PROTO_GetShiftState done [13:17:42]FM_GetShiftState done [13:17:42]opened in 1710201976 [13:17:42]opened+sec_in_day 1710288376 [13:17:42]quantity*price = 20002 [13:17:42]sum+1 = 20003 [13:17:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 82 12.03.2024 13:17 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95152 ФПД: 243671673753938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T131747&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95152&fm=243671673753938&tin=02508201610067®Number=0000000000090555&sum=20000 [13:17:43]StoreToDocumentArchive [13:17:43]shift 327 fd 95152 [13:17:43]save to /storage/0327/doc_00095152 [13:17:43]save last doc name /storage/0327/doc_00095152 to /storage/kkm_last_doc_name [13:17:43]save OK [13:17:43]Clear old archive folders... [13:17:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:43]tlvbuf is 01A5FC90 [13:17:43]SAM_PROTO_ClearQueue [13:17:43]wFMCommunicate request_size=4 [13:17:43]MH_SAM_APDU [13:17:43]CAPDU: 80 09 00 00 [13:17:43]Write to MH i2c: E2 08 00 6F 2D 80 09 00 00 00 00 00 00 0E [13:17:43]Write i2c OK [13:17:43]MH_I2C_Read... [13:17:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:43]Read from MH i2c: E2 [13:17:43]MH_I2C_Read... [13:17:43]Read from MH i2c: E2 03 00 [13:17:43]MH_I2C_Read... [13:17:43]Read from MH i2c: E2 03 00 6F 2D 00 90 00 10 [13:17:43]RAPDU: 90 00 [13:17:43]wFMCommunicate OK [13:17:43]SAM_PROTO_ClearQueue done [13:17:43]KKMCreateOFDPacket [13:17:43]OFDProtocolAddRootSTLVToBuf [13:17:43]FM_MakeSignedData [13:17:43]FM_MakeSignedData [13:17:43]SAM_PROTO_SignData [13:17:43]wFMCommunicate request_size=4 [13:17:43]MH_SAM_APDU [13:17:43]CAPDU: 80 0D 01 02 [13:17:43]Write to MH i2c: E2 08 00 70 2D 80 0D 01 02 00 00 00 00 16 [13:17:43]Write i2c OK [13:17:43]MH_I2C_Read... [13:17:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:43]Read from MH i2c: E2 [13:17:43]MH_I2C_Read... [13:17:43]Read from MH i2c: E2 03 00 [13:17:43]MH_I2C_Read... [13:17:43]Read from MH i2c: E2 03 00 70 2D 00 90 00 11 [13:17:43]RAPDU: 90 00 [13:17:43]wFMCommunicate OK [13:17:43]wFMCommunicate request_size=255 [13:17:43]MH_SAM_APDU [13:17:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 52 00 00 00 F4 03 04 00 FB 55 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B0 73 01 00 35 04 06 00 DD [13:17:43]Write to MH i2c: E2 02 01 71 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 52 00 00 00 F4 03 04 00 FB 55 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B0 73 01 00 35 04 06 00 DD 00 00 CF [13:17:43]Write i2c OK [13:17:43]MH_I2C_Read... [13:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:44]Read from MH i2c: E2 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: E2 03 00 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: E2 03 00 71 2D 00 90 00 12 [13:17:44]RAPDU: 90 00 [13:17:44]wFMCommunicate OK [13:17:44]wFMCommunicate request_size=10 [13:17:44]MH_SAM_APDU [13:17:44]CAPDU: 80 0D 02 02 05 9E 3B 8E 51 52 [13:17:44]Write to MH i2c: E2 0D 00 72 2D 80 0D 02 02 05 00 9E 3B 8E 51 52 00 00 2D [13:17:44]Write i2c OK [13:17:44]MH_I2C_Read... [13:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:44]Read from MH i2c: E2 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: E2 03 00 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: E2 03 00 72 2D 00 90 00 13 [13:17:44]RAPDU: 90 00 [13:17:44]wFMCommunicate OK [13:17:44]wFMCommunicate request_size=4 [13:17:44]MH_SAM_APDU [13:17:44]CAPDU: 80 0D 03 02 [13:17:44]Write to MH i2c: E2 08 00 73 2D 80 0D 03 02 00 00 00 00 1B [13:17:44]Write i2c OK [13:17:44]MH_I2C_Read... [13:17:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:44]Read from MH i2c: E2 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: E2 0B 00 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: E2 0B 00 73 2D 00 0E F5 7F 44 67 FB FB 88 90 00 C7 [13:17:44]RAPDU: 0E F5 7F 44 67 FB FB 88 90 00 [13:17:44]wFMCommunicate OK [13:17:44]SAM_PROTO_SignData done [13:17:44]FM_MakeSignedData done [13:17:44]CreateOFDProtocolMessage [13:17:44]wFMCommunicate request_size=4 [13:17:44]MH_SAM_APDU [13:17:44]CAPDU: 80 11 00 00 [13:17:44]Write to MH i2c: E2 08 00 74 2D 80 11 00 00 00 00 00 00 1B [13:17:44]Write i2c OK [13:17:44]MH_I2C_Read... [13:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:44]Read from MH i2c: E2 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: E2 17 00 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: E2 17 00 74 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6B [13:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:17:44]wFMCommunicate OK [13:17:44]CreateOFDProtocolMessage done [13:17:44]OFDSenderStorePacket 95152 [13:17:44]StoreOFDPacket docnum=95152 [13:17:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 68 86 07 01 4B 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 52 00 00 00 F4 03 04 00 FB 55 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B0 73 01 00 35 04 06 00 DD 9E 3B 8E 51 52 0E F5 7F 44 67 FB FB 88 [13:17:44]CheckFolder [13:17:44]dirname=/storage/ofd_packets [13:17:44]CheckFolder done [13:17:44]ProducePacketName [13:17:44]name=ofd_packets/00095152 [13:17:44]NVStorageSaveData ofd_packets/00095152 [13:17:44]File name is /storage/ofd_packets/00095152 [13:17:44]Write 301 bytes [13:17:44]NVStorageSaveData done [13:17:44]OFDSenderStorePacket done [13:17:44]KKMCreateOFDPacket done [13:17:44]NVStorageSaveData kkm_last_timestamp [13:17:44]File name is /storage/kkm_last_timestamp [13:17:44]Write 4 bytes [13:17:44]NVStorageSaveData done [13:17:44]ExternCall_PrintAddStr [13:17:44]wPrintStart [13:17:44]Write to MH i2c: 01 00 00 75 2D A2 [13:17:44]Write i2c OK [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: 01 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: 01 07 00 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: 01 07 00 75 2D 00 80 00 00 00 FF 0F 37 [13:17:44]RasterBufferAndPrint [13:17:44]line Счет N : (1)196119 [13:17:44]line ИНН: 02508201610067 [13:17:44]line Контрольно-Кассовый Чек [13:17:44]line ПРОДАЖА [13:17:44]line ТРК (МРК, ГНК) : 22 [13:17:44]line Товар: 2710124130 [13:17:44]line Аи-92-К-5 [13:17:44]line 3.180 * 62.90 [13:17:44]line = 200.02 [13:17:44]line НДС 12% НСП 1% [13:17:44]line > о реализуемом товаре [13:17:44]line ОКРУГЛЕНИЕ: -0.02 [13:17:44]line ИТОГО: 200.00 [13:17:44]line Внесено: 200.00 [13:17:44]line СДАЧА: 0.00 [13:17:44]line НСП 1% : 1.77 [13:17:44]line НДС 12% : 21.24 [13:17:44]line Наличными: 200.00 [13:17:44]line Безнал.: 0.00 [13:17:44]line Место: АЗС № 6 "Партнер Нефть" [13:17:44]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:17:44]line СНО: Общий режим [13:17:44]line Чек 82 12.03.2024 13:17 [13:17:44]line Смена: 327 ФФД: 1.0 [13:17:44]line ЗНМ: 0300000009 [13:17:44]line РНМ: 0000000000090555 [13:17:44]line Версия ККМ: 001 [13:17:44]line ФМ: 0000000000874811 [13:17:44]line ФД: 95152 [13:17:44]line ФПД: 243671673753938 [13:17:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T131747&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95152&fm=243671673753938&tin=02508201610067®Number=0000000000090555&sum=20000 [13:17:44]written 0, free lines is 4095 [13:17:44]OFD Sender: Processing packet 95152 [packets to send 30, broken 29] [13:17:44]ProducePacketName [13:17:44]name=ofd_packets/00095152 [13:17:44]OFD Sender: To server: pG, [13:17:44]CommunicateWithHost lk.salyk.kg:30040 [13:17:44]ConnectInit lk.salyk.kg [13:17:44]Connected sock=10 [13:17:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 68 86 07 01 4B 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 52 00 00 00 F4 03 04 00 FB 55 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B0 73 01 00 35 04 06 00 DD 9E 3B 8E 51 52 0E F5 7F 44 67 FB FB 88 [13:17:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 DB 59 47 00 D6 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B0 73 01 00 F4 03 04 00 51 01 F0 65 B6 04 01 00 00 30 26 58 5C 3E 00 DC DD [13:17:44]CommunicateWithHost err = 0 [13:17:44]CheckOFDResponse [13:17:44]1017 (14) - 77093643461234 [13:17:44]1041 (16) - 0000000000874811 [13:17:44]1040 (4) - 95152 [13:17:44]1012 (4) - 12.03.2024 07:16 [13:17:44]1206 (1) - 0 [13:17:44]OFD Sender: Remove packet 95152 [13:17:44]ProducePacketName [13:17:44]name=ofd_packets/00095152 [13:17:44]NVStorageDeleteData [13:17:45]Write to MH i2c: 01 00 00 A0 2D CD [13:17:45]Write i2c OK [13:17:45]MH_I2C_Read... [13:17:45]Read from MH i2c: 01 [13:17:45]MH_I2C_Read... [13:17:45]Read from MH i2c: 01 07 00 [13:17:45]MH_I2C_Read... [13:17:45]Read from MH i2c: 01 07 00 A0 2D 00 80 00 00 00 4B 0D AC [13:17:45]RasterBufferAndPrint [13:17:45]line [13:17:45]line [13:17:45]line [13:17:45]line [13:17:45]line [13:17:45]written 0, free lines is 3409 [13:17:45]process_action close_receipt done [13:17:45]requested_data is exist [13:17:45]produce_requested_data [13:17:45]requested_item fm.sn is exist - process it [13:17:45]wFMCommunicate request_size=4 [13:17:45]MH_SAM_APDU [13:17:45]CAPDU: 80 11 00 00 [13:17:45]Write to MH i2c: E2 08 00 A7 2D 80 11 00 00 00 00 00 00 4E [13:17:45]Write i2c OK [13:17:45]MH_I2C_Read... [13:17:45]Read from MH i2c: E2 [13:17:45]MH_I2C_Read... [13:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:45]Read from MH i2c: E2 17 00 [13:17:45]MH_I2C_Read... [13:17:45]Read from MH i2c: E2 17 00 A7 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9E [13:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:17:45]wFMCommunicate OK [13:17:45]requested_item fd.num is exist - process it [13:17:45]SAM_PROTO_GetFieldsCounters [13:17:45]wFMCommunicate request_size=4 [13:17:45]MH_SAM_APDU [13:17:45]CAPDU: 80 13 00 00 [13:17:45]Write to MH i2c: E2 08 00 A8 2D 80 13 00 00 00 00 00 00 51 [13:17:45]Write i2c OK [13:17:45]MH_I2C_Read... [13:17:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:45]Read from MH i2c: E2 [13:17:45]MH_I2C_Read... [13:17:45]Read from MH i2c: E2 62 00 [13:17:45]MH_I2C_Read... [13:17:45]Read from MH i2c: E2 62 00 A8 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B0 73 01 00 0E 04 04 00 47 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 D0 [13:17:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B0 73 01 00 0E 04 04 00 47 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:17:45]wFMCommunicate OK [13:17:45]SAM_PROTO_GetFieldsCounters done [13:17:45]requested_item shift.num is exist - process it [13:17:45]requested_item shift.opened is exist - process it [13:17:45]req_shift_opened [13:17:45]FM_GetShiftState [13:17:45]SAM_PROTO_GetShiftState [13:17:45]wFMCommunicate request_size=4 [13:17:45]MH_SAM_APDU [13:17:45]CAPDU: 80 13 01 00 [13:17:45]Write to MH i2c: E2 08 00 A9 2D 80 13 01 00 00 00 00 00 53 [13:17:45]Write i2c OK [13:17:45]MH_I2C_Read... [13:17:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:45]Read from MH i2c: E2 [13:17:45]MH_I2C_Read... [13:17:45]Read from MH i2c: E2 0E 00 [13:17:45]MH_I2C_Read... [13:17:45]Read from MH i2c: E2 0E 00 A9 2D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C7 [13:17:45]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:17:45]wFMCommunicate OK [13:17:45]SAM_PROTO_GetShiftState done [13:17:45]FM_GetShiftState done [13:17:45]req_shift_opened done [13:17:45]requested_item shift.open_date is exist - process it [13:17:45]req_shift_open_date [13:17:45]req_shift_open_date done [13:17:45]produce_requested_data done [13:17:45]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95152,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [13:17:45]process_action_free close_receipt [13:17:45]json_value_free [13:17:45]json_value_free done [13:17:45]process_json_proto returns [13:17:45]Send response to host [13:17:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95152,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [13:17:45]free response buf [13:17:45]execute_script done [13:17:45]execute_script returns [13:17:45]free content buf [13:17:45]Sock 9.Close socket [13:17:45]Sock 9.Thread stoped [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:23]accept exits with 8 [13:23:23]New connection [13:23:23]New thread 3066813796 created [13:23:23]Thread 3066957156 joined [13:23:23]Waiting for new connection... [13:23:23] Sock 8.Parse request [13:23:23]Sock 8.Check first char [13:23:23]Sock 8.First char is OK [13:23:23]request: POST /json_proto HTTP/1.0 [13:23:23]Method: POST [13:23:23]URL: /json_proto [13:23:23]Method is POST - this is cgi request [13:23:23]url: /json_proto [13:23:23]query_string will be loaded in cgi processing [13:23:23]execute_cgi json_proto POST (null) [13:23:23]execute_cgi path=json_proto method=POST [13:23:23]POST find Content-Length [13:23:23]Host: 172.17.62.67:8080 [13:23:23]Content-Length: 682 [13:23:23]Content-Type: application/json [13:23:23] [13:23:23]POST finish read [13:23:23]Found Content-Length = 682 [13:23:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:23:23]execute_script... [13:23: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)196120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:23:23]POST & json_proto [13:23:23]process_json_proto [13:23:23]json parsed OK: [13:23:23]protocol is kg_v1.0 [13:23:23]action value=close_receipt [13:23:23]process_action close_receipt [13:23:23]cmd_close_receipt [13:23:23]MH_GetDate [13:23:23]Write to MH i2c: F0 00 00 AA 2D C6 [13:23:23]Write i2c OK [13:23:23]MH_I2C_Read... [13:23:23]Read from MH i2c: F0 [13:23:23]MH_I2C_Read... [13:23:23]Read from MH i2c: F0 05 00 [13:23:23]MH_I2C_Read... [13:23:23]Read from MH i2c: F0 05 00 AA 2D 00 50 57 F0 65 C7 [13:23:23]GetLastDocTimeStamp 1710249467 [13:23:23]current date 1710249808 [13:23:23]FM_GetShiftState [13:23:23]SAM_PROTO_GetShiftState [13:23:23]wFMCommunicate request_size=4 [13:23:23]MH_SAM_APDU [13:23:23]CAPDU: 80 13 01 00 [13:23:23]Write to MH i2c: E2 08 00 AB 2D 80 13 01 00 00 00 00 00 55 [13:23:23]Write i2c OK [13:23:23]MH_I2C_Read... [13:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:23]Read from MH i2c: E2 [13:23:23]MH_I2C_Read... [13:23:23]Read from MH i2c: E2 0E 00 [13:23:23]MH_I2C_Read... [13:23:23]Read from MH i2c: E2 0E 00 AB 2D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C9 [13:23:23]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:23:23]wFMCommunicate OK [13:23:23]SAM_PROTO_GetShiftState done [13:23:23]FM_GetShiftState done [13:23:23]opened in 1710201976 [13:23:23]opened+sec_in_day 1710288376 [13:23:23]quantity*price = 100011 [13:23:23]sum+1 = 100012 [13:23:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 83 12.03.2024 13:23 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95153 ФПД: 227601087402159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T132328&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95153&fm=227601087402159&tin=02508201610067®Number=0000000000090555&sum=100000 [13:23:24]StoreToDocumentArchive [13:23:24]shift 327 fd 95153 [13:23:24]save to /storage/0327/doc_00095153 [13:23:24]save last doc name /storage/0327/doc_00095153 to /storage/kkm_last_doc_name [13:23:24]save OK [13:23:24]Clear old archive folders... [13:23:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:24]tlvbuf is 01A4CCA0 [13:23:24]SAM_PROTO_ClearQueue [13:23:24]wFMCommunicate request_size=4 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 09 00 00 [13:23:24]Write to MH i2c: E2 08 00 B8 2D 80 09 00 00 00 00 00 00 57 [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 03 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 03 00 B8 2D 00 90 00 59 [13:23:24]RAPDU: 90 00 [13:23:24]wFMCommunicate OK [13:23:24]SAM_PROTO_ClearQueue done [13:23:24]KKMCreateOFDPacket [13:23:24]OFDProtocolAddRootSTLVToBuf [13:23:24]FM_MakeSignedData [13:23:24]FM_MakeSignedData [13:23:24]SAM_PROTO_SignData [13:23:24]wFMCommunicate request_size=4 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 0D 01 02 [13:23:24]Write to MH i2c: E2 08 00 B9 2D 80 0D 01 02 00 00 00 00 5F [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 03 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 03 00 B9 2D 00 90 00 5A [13:23:24]RAPDU: 90 00 [13:23:24]wFMCommunicate OK [13:23:24]wFMCommunicate request_size=255 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 50 57 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B1 73 01 00 35 04 06 00 CF [13:23:24]Write to MH i2c: E2 02 01 BA 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 50 57 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B1 73 01 00 35 04 06 00 CF 00 00 92 [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 03 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 03 00 BA 2D 00 90 00 5B [13:23:24]RAPDU: 90 00 [13:23:24]wFMCommunicate OK [13:23:24]wFMCommunicate request_size=10 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 0D 02 02 05 00 81 F7 10 AF [13:23:24]Write to MH i2c: E2 0D 00 BB 2D 80 0D 02 02 05 00 00 81 F7 10 AF 00 00 A3 [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 03 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 03 00 BB 2D 00 90 00 5C [13:23:24]RAPDU: 90 00 [13:23:24]wFMCommunicate OK [13:23:24]wFMCommunicate request_size=4 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 0D 03 02 [13:23:24]Write to MH i2c: E2 08 00 BC 2D 80 0D 03 02 00 00 00 00 64 [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 0B 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 0B 00 BC 2D 00 30 32 61 63 CD 1B A5 5D 90 00 75 [13:23:24]RAPDU: 30 32 61 63 CD 1B A5 5D 90 00 [13:23:24]wFMCommunicate OK [13:23:24]SAM_PROTO_SignData done [13:23:24]FM_MakeSignedData done [13:23:24]CreateOFDProtocolMessage [13:23:24]wFMCommunicate request_size=4 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 11 00 00 [13:23:24]Write to MH i2c: E2 08 00 BD 2D 80 11 00 00 00 00 00 00 64 [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:25]Read from MH i2c: E2 [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: E2 17 00 [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: E2 17 00 BD 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B4 [13:23:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:23:25]wFMCommunicate OK [13:23:25]CreateOFDProtocolMessage done [13:23:25]OFDSenderStorePacket 95153 [13:23:25]StoreOFDPacket docnum=95153 [13:23:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 77 36 07 01 58 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 50 57 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B1 73 01 00 35 04 06 00 CF 00 81 F7 10 AF 30 32 61 63 CD 1B A5 5D [13:23:25]CheckFolder [13:23:25]dirname=/storage/ofd_packets [13:23:25]CheckFolder done [13:23:25]ProducePacketName [13:23:25]name=ofd_packets/00095153 [13:23:25]NVStorageSaveData ofd_packets/00095153 [13:23:25]File name is /storage/ofd_packets/00095153 [13:23:25]Write 301 bytes [13:23:25]NVStorageSaveData done [13:23:25]OFDSenderStorePacket done [13:23:25]KKMCreateOFDPacket done [13:23:25]NVStorageSaveData kkm_last_timestamp [13:23:25]File name is /storage/kkm_last_timestamp [13:23:25]Write 4 bytes [13:23:25]NVStorageSaveData done [13:23:25]ExternCall_PrintAddStr [13:23:25]wPrintStart [13:23:25]Write to MH i2c: 01 00 00 BE 2D EB [13:23:25]Write i2c OK [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: 01 [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: 01 07 00 [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: 01 07 00 BE 2D 00 80 00 00 00 FF 0F 80 [13:23:25]RasterBufferAndPrint [13:23:25]line Счет N : (1)196120 [13:23:25]line ИНН: 02508201610067 [13:23:25]line Контрольно-Кассовый Чек [13:23:25]line ПРОДАЖА [13:23:25]line ТРК (МРК, ГНК) : 32 [13:23:25]line Товар: 2710124130 [13:23:25]line Аи-92-К-5 [13:23:25]line 15.900 * 62.90 [13:23:25]line = 1000.11 [13:23:25]line НДС 12% НСП 1% [13:23:25]line > о реализуемом товаре [13:23:25]line ОКРУГЛЕНИЕ: -0.11 [13:23:25]line ИТОГО: 1000.00 [13:23:25]line Внесено: 1000.00 [13:23:25]line СДАЧА: 0.00 [13:23:25]line НСП 1% : 8.85 [13:23:25]line НДС 12% : 106.21 [13:23:25]line Наличными: 1000.00 [13:23:25]line Безнал.: 0.00 [13:23:25]line Место: АЗС № 6 "Партнер Нефть" [13:23:25]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:23:25]line СНО: Общий режим [13:23:25]line Чек 83 12.03.2024 13:23 [13:23:25]line Смена: 327 ФФД: 1.0 [13:23:25]line ЗНМ: 0300000009 [13:23:25]line РНМ: 0000000000090555 [13:23:25]line Версия ККМ: 001 [13:23:25]line ФМ: 0000000000874811 [13:23:25]line ФД: 95153 [13:23:25]line ФПД: 227601087402159 [13:23:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T132328&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95153&fm=227601087402159&tin=02508201610067®Number=0000000000090555&sum=100000 [13:23:25]OFD Sender: Processing packet 95153 [packets to send 30, broken 29] [13:23:25]ProducePacketName [13:23:25]name=ofd_packets/00095153 [13:23:25]OFD Sender: To server: pG, [13:23:25]CommunicateWithHost lk.salyk.kg:30040 [13:23:25]ConnectInit lk.salyk.kg [13:23:25]written 0, free lines is 4095 [13:23:25]Connected sock=10 [13:23:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 77 36 07 01 58 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 50 57 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B1 73 01 00 35 04 06 00 CF 00 81 F7 10 AF 30 32 61 63 CD 1B A5 5D [13:23:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 3A C6 47 00 AF 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B1 73 01 00 F4 03 04 00 A6 02 F0 65 B6 04 01 00 00 CC 53 73 60 62 DC 61 2D [13:23:25]CommunicateWithHost err = 0 [13:23:25]CheckOFDResponse [13:23:25]1017 (14) - 77093643461234 [13:23:25]1041 (16) - 0000000000874811 [13:23:25]1040 (4) - 95153 [13:23:25]1012 (4) - 12.03.2024 07:22 [13:23:25]1206 (1) - 0 [13:23:25]OFD Sender: Remove packet 95153 [13:23:25]ProducePacketName [13:23:25]name=ofd_packets/00095153 [13:23:25]NVStorageDeleteData [13:23:25]Write to MH i2c: 01 00 00 E9 2D 16 [13:23:25]Write i2c OK [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: 01 [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: 01 07 00 [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: 01 07 00 E9 2D 00 80 00 00 00 4A 0D F4 [13:23:25]RasterBufferAndPrint [13:23:25]line [13:23:25]line [13:23:25]line [13:23:25]line [13:23:25]line [13:23:25]written 0, free lines is 3408 [13:23:25]process_action close_receipt done [13:23:25]requested_data is exist [13:23:25]produce_requested_data [13:23:25]requested_item fm.sn is exist - process it [13:23:25]wFMCommunicate request_size=4 [13:23:25]MH_SAM_APDU [13:23:25]CAPDU: 80 11 00 00 [13:23:25]Write to MH i2c: E2 08 00 F0 2D 80 11 00 00 00 00 00 00 97 [13:23:25]Write i2c OK [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: E2 [13:23:25]MH_I2C_Read... [13:23:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:25]Read from MH i2c: E2 17 00 [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: E2 17 00 F0 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E7 [13:23:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:23:25]wFMCommunicate OK [13:23:25]requested_item fd.num is exist - process it [13:23:25]SAM_PROTO_GetFieldsCounters [13:23:25]wFMCommunicate request_size=4 [13:23:25]MH_SAM_APDU [13:23:25]CAPDU: 80 13 00 00 [13:23:25]Write to MH i2c: E2 08 00 F1 2D 80 13 00 00 00 00 00 00 9A [13:23:25]Write i2c OK [13:23:25]MH_I2C_Read... [13:23:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:26]Read from MH i2c: E2 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 62 00 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 62 00 F1 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B1 73 01 00 0E 04 04 00 47 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 1D [13:23:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B1 73 01 00 0E 04 04 00 47 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:23:26]wFMCommunicate OK [13:23:26]SAM_PROTO_GetFieldsCounters done [13:23:26]requested_item shift.num is exist - process it [13:23:26]requested_item shift.opened is exist - process it [13:23:26]req_shift_opened [13:23:26]FM_GetShiftState [13:23:26]SAM_PROTO_GetShiftState [13:23:26]wFMCommunicate request_size=4 [13:23:26]MH_SAM_APDU [13:23:26]CAPDU: 80 13 01 00 [13:23:26]Write to MH i2c: E2 08 00 F2 2D 80 13 01 00 00 00 00 00 9C [13:23:26]Write i2c OK [13:23:26]MH_I2C_Read... [13:23:26]OFD Sender: No OFD packet to send [13:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:26]Read from MH i2c: E2 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 0E 00 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 0E 00 F2 2D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 10 [13:23:26]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:23:26]wFMCommunicate OK [13:23:26]SAM_PROTO_GetShiftState done [13:23:26]FM_GetShiftState done [13:23:26]req_shift_opened done [13:23:26]requested_item shift.open_date is exist - process it [13:23:26]req_shift_open_date [13:23:26]req_shift_open_date done [13:23:26]produce_requested_data done [13:23:26]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95153,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [13:23:26]process_action_free close_receipt [13:23:26]json_value_free [13:23:26]json_value_free done [13:23:26]process_json_proto returns [13:23:26]Send response to host [13:23:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95153,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [13:23:26]free response buf [13:23:26]execute_script done [13:23:26]execute_script returns [13:23:26]free content buf [13:23:26]Sock 8.Close socket [13:23:26]Sock 8.Thread stoped [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:02]accept exits with 9 [13:26:02]New connection [13:26:02]New thread 3066957156 created [13:26:02]Thread 3066813796 joined [13:26:02]Waiting for new connection... [13:26:02] Sock 9.Parse request [13:26:02]Sock 9.Check first char [13:26:02]Sock 9.First char is OK [13:26:02]request: POST /json_proto HTTP/1.0 [13:26:02]Method: POST [13:26:02]URL: /json_proto [13:26:02]Method is POST - this is cgi request [13:26:02]url: /json_proto [13:26:02]query_string will be loaded in cgi processing [13:26:02]execute_cgi json_proto POST (null) [13:26:02]execute_cgi path=json_proto method=POST [13:26:02]POST find Content-Length [13:26:02]Host: 172.17.62.67:8080 [13:26:02]Content-Length: 819 [13:26:02]Content-Type: application/json [13:26:02] [13:26:02]POST finish read [13:26:02]Found Content-Length = 819 [13:26:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:02]execute_script... [13:26: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)196121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:02]POST & json_proto [13:26:02]process_json_proto [13:26:02]json parsed OK: [13:26:02]protocol is kg_v1.0 [13:26:02]action value=close_receipt [13:26:02]process_action close_receipt [13:26:02]cmd_close_receipt [13:26:02]MH_GetDate [13:26:02]Write to MH i2c: F0 00 00 F3 2D 0F [13:26:02]Write i2c OK [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: F0 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: F0 05 00 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: F0 05 00 F3 2D 00 EF 57 F0 65 AF [13:26:02]GetLastDocTimeStamp 1710249808 [13:26:02]current date 1710249967 [13:26:02]FM_GetShiftState [13:26:02]SAM_PROTO_GetShiftState [13:26:02]wFMCommunicate request_size=4 [13:26:02]MH_SAM_APDU [13:26:02]CAPDU: 80 13 01 00 [13:26:02]Write to MH i2c: E2 08 00 F4 2D 80 13 01 00 00 00 00 00 9E [13:26:02]Write i2c OK [13:26:02]MH_I2C_Read... [13:26:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:02]Read from MH i2c: E2 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: E2 0E 00 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: E2 0E 00 F4 2D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 12 [13:26:02]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:26:02]wFMCommunicate OK [13:26:02]SAM_PROTO_GetShiftState done [13:26:02]FM_GetShiftState done [13:26:02]opened in 1710201976 [13:26:02]opened+sec_in_day 1710288376 [13:26:02]quantity*price = 100011 [13:26:02]sum+1 = 100012 [13:26:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 84 12.03.2024 13:26 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95154 ФПД: 19359584769633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T132607&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95154&fm=19359584769633&tin=02508201610067®Number=0000000000090555&sum=100011 [13:26:03]StoreToDocumentArchive [13:26:03]shift 327 fd 95154 [13:26:03]save to /storage/0327/doc_00095154 [13:26:03]save last doc name /storage/0327/doc_00095154 to /storage/kkm_last_doc_name [13:26:03]save OK [13:26:03]Clear old archive folders... [13:26:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:03]tlvbuf is 01A34450 [13:26:03]SAM_PROTO_ClearQueue [13:26:03]wFMCommunicate request_size=4 [13:26:03]MH_SAM_APDU [13:26:03]CAPDU: 80 09 00 00 [13:26:03]Write to MH i2c: E2 08 00 01 2E 80 09 00 00 00 00 00 00 A1 [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:03]Read from MH i2c: E2 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 03 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 03 00 01 2E 00 90 00 A3 [13:26:03]RAPDU: 90 00 [13:26:03]wFMCommunicate OK [13:26:03]SAM_PROTO_ClearQueue done [13:26:03]KKMCreateOFDPacket [13:26:03]OFDProtocolAddRootSTLVToBuf [13:26:03]FM_MakeSignedData [13:26:03]FM_MakeSignedData [13:26:03]SAM_PROTO_SignData [13:26:03]wFMCommunicate request_size=4 [13:26:03]MH_SAM_APDU [13:26:03]CAPDU: 80 0D 01 02 [13:26:03]Write to MH i2c: E2 08 00 02 2E 80 0D 01 02 00 00 00 00 A9 [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:03]Read from MH i2c: E2 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 03 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 03 00 02 2E 00 90 00 A4 [13:26:03]RAPDU: 90 00 [13:26:03]wFMCommunicate OK [13:26:03]wFMCommunicate request_size=255 [13:26:03]MH_SAM_APDU [13:26:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 EF 57 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B2 73 01 00 35 04 06 00 11 [13:26:03]Write to MH i2c: E2 02 01 03 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 EF 57 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B2 73 01 00 35 04 06 00 11 00 00 D5 [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:03]Read from MH i2c: E2 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 03 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 03 00 03 2E 00 90 00 A5 [13:26:03]RAPDU: 90 00 [13:26:03]wFMCommunicate OK [13:26:03]wFMCommunicate request_size=10 [13:26:03]MH_SAM_APDU [13:26:03]CAPDU: 80 0D 02 02 05 9B 81 2C 56 61 [13:26:03]Write to MH i2c: E2 0D 00 04 2E 80 0D 02 02 05 00 9B 81 2C 56 61 00 00 B5 [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:03]Read from MH i2c: E2 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 03 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 03 00 04 2E 00 90 00 A6 [13:26:03]RAPDU: 90 00 [13:26:03]wFMCommunicate OK [13:26:03]wFMCommunicate request_size=4 [13:26:03]MH_SAM_APDU [13:26:03]CAPDU: 80 0D 03 02 [13:26:03]Write to MH i2c: E2 08 00 05 2E 80 0D 03 02 00 00 00 00 AE [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:03]Read from MH i2c: E2 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 0B 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 0B 00 05 2E 00 58 FE B6 71 2B 10 5C 1C 90 00 DF [13:26:03]RAPDU: 58 FE B6 71 2B 10 5C 1C 90 00 [13:26:03]wFMCommunicate OK [13:26:03]SAM_PROTO_SignData done [13:26:03]FM_MakeSignedData done [13:26:03]CreateOFDProtocolMessage [13:26:03]wFMCommunicate request_size=4 [13:26:03]MH_SAM_APDU [13:26:03]CAPDU: 80 11 00 00 [13:26:03]Write to MH i2c: E2 08 00 06 2E 80 11 00 00 00 00 00 00 AE [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:03]Read from MH i2c: E2 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 17 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 17 00 06 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FE [13:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:26:03]wFMCommunicate OK [13:26:03]CreateOFDProtocolMessage done [13:26:03]OFDSenderStorePacket 95154 [13:26:03]StoreOFDPacket docnum=95154 [13:26:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2D 47 07 01 20 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 EF 57 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B2 73 01 00 35 04 06 00 11 9B 81 2C 56 61 58 FE B6 71 2B 10 5C 1C [13:26:03]CheckFolder [13:26:03]dirname=/storage/ofd_packets [13:26:03]CheckFolder done [13:26:03]ProducePacketName [13:26:03]name=ofd_packets/00095154 [13:26:03]NVStorageSaveData ofd_packets/00095154 [13:26:03]File name is /storage/ofd_packets/00095154 [13:26:03]Write 301 bytes [13:26:03]NVStorageSaveData done [13:26:03]OFDSenderStorePacket done [13:26:03]KKMCreateOFDPacket done [13:26:03]NVStorageSaveData kkm_last_timestamp [13:26:03]File name is /storage/kkm_last_timestamp [13:26:03]Write 4 bytes [13:26:03]NVStorageSaveData done [13:26:03]ExternCall_PrintAddStr [13:26:03]wPrintStart [13:26:03]Write to MH i2c: 01 00 00 07 2E 35 [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: 01 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: 01 07 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: 01 07 00 07 2E 00 80 00 00 00 FF 0F CA [13:26:03]RasterBufferAndPrint [13:26:03]line Счет N : (1)196121 [13:26:03]line ИНН: 02508201610067 [13:26:03]line Контрольно-Кассовый Чек [13:26:03]line ПРОДАЖА [13:26:03]line ТРК (МРК, ГНК) : 32 [13:26:03]line Товар: 2710124130 [13:26:03]line Аи-92-К-5 [13:26:03]line 15.900 * 62.90 [13:26:03]line = 1000.11 [13:26:03]line НДС 12% НСП 1% [13:26:03]line > о реализуемом товаре [13:26:03]line ИТОГО: 1000.11 [13:26:03]line НСП 1% : 8.85 [13:26:03]line НДС 12% : 106.21 [13:26:03]line Наличными: 0.00 [13:26:03]line Безнал.: 1000.11 [13:26:03]line Место: АЗС № 6 "Партнер Нефть" [13:26:03]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:26:03]line СНО: Общий режим [13:26:03]line Чек 84 12.03.2024 13:26 [13:26:03]line Смена: 327 ФФД: 1.0 [13:26:03]line ЗНМ: 0300000009 [13:26:03]line РНМ: 0000000000090555 [13:26:03]line Версия ККМ: 001 [13:26:03]line Платежная система: Бакай Банк [13:26:03]line ФМ: 0000000000874811 [13:26:03]line ФД: 95154 [13:26:03]line ФПД: 19359584769633 [13:26:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T132607&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95154&fm=19359584769633&tin=02508201610067®Number=0000000000090555&sum=100011 [13:26:04]OFD Sender: Processing packet 95154 [packets to send 30, broken 29] [13:26:04]ProducePacketName [13:26:04]name=ofd_packets/00095154 [13:26:04]OFD Sender: To server: pG, [13:26:04]CommunicateWithHost lk.salyk.kg:30040 [13:26:04]ConnectInit lk.salyk.kg [13:26:04]written 0, free lines is 4095 [13:26:04]Connected sock=10 [13:26:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2D 47 07 01 20 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 EF 57 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B2 73 01 00 35 04 06 00 11 9B 81 2C 56 61 58 FE B6 71 2B 10 5C 1C [13:26:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 74 87 47 00 0D 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B2 73 01 00 F4 03 04 00 45 03 F0 65 B6 04 01 00 00 33 8A 59 B0 EB D4 10 F1 [13:26:04]CommunicateWithHost err = 0 [13:26:04]CheckOFDResponse [13:26:04]1017 (14) - 77093643461234 [13:26:04]1041 (16) - 0000000000874811 [13:26:04]1040 (4) - 95154 [13:26:04]1012 (4) - 12.03.2024 07:24 [13:26:04]1206 (1) - 0 [13:26:04]OFD Sender: Remove packet 95154 [13:26:04]ProducePacketName [13:26:04]name=ofd_packets/00095154 [13:26:04]NVStorageDeleteData [13:26:04]Write to MH i2c: 01 00 00 31 2E 5F [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: 01 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: 01 07 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: 01 07 00 31 2E 00 80 00 00 00 62 0D 55 [13:26:04]RasterBufferAndPrint [13:26:04]line [13:26:04]line [13:26:04]line [13:26:04]line [13:26:04]line [13:26:04]written 0, free lines is 3432 [13:26:04]process_action close_receipt done [13:26:04]requested_data is exist [13:26:04]produce_requested_data [13:26:04]requested_item fm.sn is exist - process it [13:26:04]wFMCommunicate request_size=4 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 11 00 00 [13:26:04]Write to MH i2c: E2 08 00 38 2E 80 11 00 00 00 00 00 00 E0 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 17 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 17 00 38 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 30 [13:26:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:26:04]wFMCommunicate OK [13:26:04]requested_item fd.num is exist - process it [13:26:04]SAM_PROTO_GetFieldsCounters [13:26:04]wFMCommunicate request_size=4 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 13 00 00 [13:26:04]Write to MH i2c: E2 08 00 39 2E 80 13 00 00 00 00 00 00 E3 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 62 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 62 00 39 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B2 73 01 00 0E 04 04 00 47 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 6A [13:26:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B2 73 01 00 0E 04 04 00 47 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:26:04]wFMCommunicate OK [13:26:04]SAM_PROTO_GetFieldsCounters done [13:26:04]requested_item shift.num is exist - process it [13:26:04]requested_item shift.opened is exist - process it [13:26:04]req_shift_opened [13:26:04]FM_GetShiftState [13:26:04]SAM_PROTO_GetShiftState [13:26:04]wFMCommunicate request_size=4 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 13 01 00 [13:26:04]Write to MH i2c: E2 08 00 3A 2E 80 13 01 00 00 00 00 00 E5 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:04]OFD Sender: No OFD packet to send [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 0E 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 0E 00 3A 2E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 59 [13:26:04]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:26:04]wFMCommunicate OK [13:26:04]SAM_PROTO_GetShiftState done [13:26:04]FM_GetShiftState done [13:26:04]req_shift_opened done [13:26:04]requested_item shift.open_date is exist - process it [13:26:04]req_shift_open_date [13:26:04]req_shift_open_date done [13:26:04]produce_requested_data done [13:26:04]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95154,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [13:26:04]process_action_free close_receipt [13:26:04]json_value_free [13:26:04]json_value_free done [13:26:04]process_json_proto returns [13:26:04]Send response to host [13:26:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95154,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [13:26:04]free response buf [13:26:04]execute_script done [13:26:04]execute_script returns [13:26:04]free content buf [13:26:04]Sock 9.Close socket [13:26:04]Sock 9.Thread stoped [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:46]accept exits with 8 [13:32:46]New connection [13:32:46]New thread 3066813796 created [13:32:46]Thread 3066957156 joined [13:32:46]Waiting for new connection... [13:32:46] Sock 8.Parse request [13:32:46]Sock 8.Check first char [13:32:46]Sock 8.First char is OK [13:32:46]request: POST /json_proto HTTP/1.0 [13:32:46]Method: POST [13:32:46]URL: /json_proto [13:32:46]Method is POST - this is cgi request [13:32:46]url: /json_proto [13:32:46]query_string will be loaded in cgi processing [13:32:46]execute_cgi json_proto POST (null) [13:32:46]execute_cgi path=json_proto method=POST [13:32:46]POST find Content-Length [13:32:46]Host: 172.17.62.67:8080 [13:32:46]Content-Length: 682 [13:32:46]Content-Type: application/json [13:32:46] [13:32:46]POST finish read [13:32:46]Found Content-Length = 682 [13:32:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 23.850, "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" ] } } [13:32:46]execute_script... [13:32:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 23.850, "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" ] } } [13:32:46]POST & json_proto [13:32:46]process_json_proto [13:32:46]json parsed OK: [13:32:46]protocol is kg_v1.0 [13:32:46]action value=close_receipt [13:32:46]process_action close_receipt [13:32:46]cmd_close_receipt [13:32:46]MH_GetDate [13:32:46]Write to MH i2c: F0 00 00 3B 2E 58 [13:32:46]Write i2c OK [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: F0 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: F0 05 00 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: F0 05 00 3B 2E 00 83 59 F0 65 8E [13:32:46]GetLastDocTimeStamp 1710249967 [13:32:46]current date 1710250371 [13:32:46]FM_GetShiftState [13:32:46]SAM_PROTO_GetShiftState [13:32:46]wFMCommunicate request_size=4 [13:32:46]MH_SAM_APDU [13:32:46]CAPDU: 80 13 01 00 [13:32:46]Write to MH i2c: E2 08 00 3C 2E 80 13 01 00 00 00 00 00 E7 [13:32:46]Write i2c OK [13:32:46]MH_I2C_Read... [13:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:46]Read from MH i2c: E2 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: E2 0E 00 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: E2 0E 00 3C 2E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 5B [13:32:46]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:32:46]wFMCommunicate OK [13:32:46]SAM_PROTO_GetShiftState done [13:32:46]FM_GetShiftState done [13:32:46]opened in 1710201976 [13:32:46]opened+sec_in_day 1710288376 [13:32:46]quantity*price = 150016 [13:32:46]sum+1 = 150018 [13:32:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 85 12.03.2024 13:32 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95155 ФПД: 161353378034856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T133251&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95155&fm=161353378034856&tin=02508201610067®Number=0000000000090555&sum=150000 [13:32:47]StoreToDocumentArchive [13:32:47]shift 327 fd 95155 [13:32:47]save to /storage/0327/doc_00095155 [13:32:47]save last doc name /storage/0327/doc_00095155 to /storage/kkm_last_doc_name [13:32:47]save OK [13:32:47]Clear old archive folders... [13:32:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:47]tlvbuf is 01AF9DB0 [13:32:47]SAM_PROTO_ClearQueue [13:32:47]wFMCommunicate request_size=4 [13:32:47]MH_SAM_APDU [13:32:47]CAPDU: 80 09 00 00 [13:32:47]Write to MH i2c: E2 08 00 49 2E 80 09 00 00 00 00 00 00 E9 [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:47]Read from MH i2c: E2 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 03 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 03 00 49 2E 00 90 00 EB [13:32:47]RAPDU: 90 00 [13:32:47]wFMCommunicate OK [13:32:47]SAM_PROTO_ClearQueue done [13:32:47]KKMCreateOFDPacket [13:32:47]OFDProtocolAddRootSTLVToBuf [13:32:47]FM_MakeSignedData [13:32:47]FM_MakeSignedData [13:32:47]SAM_PROTO_SignData [13:32:47]wFMCommunicate request_size=4 [13:32:47]MH_SAM_APDU [13:32:47]CAPDU: 80 0D 01 02 [13:32:47]Write to MH i2c: E2 08 00 4A 2E 80 0D 01 02 00 00 00 00 F1 [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:47]Read from MH i2c: E2 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 03 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 03 00 4A 2E 00 90 00 EC [13:32:47]RAPDU: 90 00 [13:32:47]wFMCommunicate OK [13:32:47]wFMCommunicate request_size=255 [13:32:47]MH_SAM_APDU [13:32:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 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 55 00 00 00 F4 03 04 00 83 59 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B3 73 01 00 35 04 06 00 92 [13:32:47]Write to MH i2c: E2 02 01 4B 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 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 55 00 00 00 F4 03 04 00 83 59 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B3 73 01 00 35 04 06 00 92 00 00 20 [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:47]Read from MH i2c: E2 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 03 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 03 00 4B 2E 00 90 00 ED [13:32:47]RAPDU: 90 00 [13:32:47]wFMCommunicate OK [13:32:47]wFMCommunicate request_size=10 [13:32:47]MH_SAM_APDU [13:32:47]CAPDU: 80 0D 02 02 05 C0 02 C7 F4 A8 [13:32:47]Write to MH i2c: E2 0D 00 4C 2E 80 0D 02 02 05 00 C0 02 C7 F4 A8 00 00 23 [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:47]Read from MH i2c: E2 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 03 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 03 00 4C 2E 00 90 00 EE [13:32:47]RAPDU: 90 00 [13:32:47]wFMCommunicate OK [13:32:47]wFMCommunicate request_size=4 [13:32:47]MH_SAM_APDU [13:32:47]CAPDU: 80 0D 03 02 [13:32:47]Write to MH i2c: E2 08 00 4D 2E 80 0D 03 02 00 00 00 00 F6 [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:47]Read from MH i2c: E2 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 0B 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 0B 00 4D 2E 00 56 87 FB 31 EF D3 A1 22 90 00 85 [13:32:47]RAPDU: 56 87 FB 31 EF D3 A1 22 90 00 [13:32:47]wFMCommunicate OK [13:32:47]SAM_PROTO_SignData done [13:32:47]FM_MakeSignedData done [13:32:47]CreateOFDProtocolMessage [13:32:47]wFMCommunicate request_size=4 [13:32:47]MH_SAM_APDU [13:32:47]CAPDU: 80 11 00 00 [13:32:47]Write to MH i2c: E2 08 00 4E 2E 80 11 00 00 00 00 00 00 F6 [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:47]Read from MH i2c: E2 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 17 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 17 00 4E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 46 [13:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:32:47]wFMCommunicate OK [13:32:47]CreateOFDProtocolMessage done [13:32:47]OFDSenderStorePacket 95155 [13:32:47]StoreOFDPacket docnum=95155 [13:32:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 6F 06 07 01 D8 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 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 55 00 00 00 F4 03 04 00 83 59 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B3 73 01 00 35 04 06 00 92 C0 02 C7 F4 A8 56 87 FB 31 EF D3 A1 22 [13:32:47]CheckFolder [13:32:47]dirname=/storage/ofd_packets [13:32:47]CheckFolder done [13:32:47]ProducePacketName [13:32:47]name=ofd_packets/00095155 [13:32:47]NVStorageSaveData ofd_packets/00095155 [13:32:47]File name is /storage/ofd_packets/00095155 [13:32:47]Write 301 bytes [13:32:47]NVStorageSaveData done [13:32:47]OFDSenderStorePacket done [13:32:47]KKMCreateOFDPacket done [13:32:47]NVStorageSaveData kkm_last_timestamp [13:32:47]File name is /storage/kkm_last_timestamp [13:32:47]Write 4 bytes [13:32:47]NVStorageSaveData done [13:32:47]ExternCall_PrintAddStr [13:32:47]wPrintStart [13:32:47]Write to MH i2c: 01 00 00 4F 2E 7D [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: 01 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: 01 07 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: 01 07 00 4F 2E 00 80 00 00 00 FF 0F 12 [13:32:47]RasterBufferAndPrint [13:32:47]line Счет N : (1)196122 [13:32:47]line ИНН: 02508201610067 [13:32:47]line Контрольно-Кассовый Чек [13:32:47]line ПРОДАЖА [13:32:47]line ТРК (МРК, ГНК) : 22 [13:32:47]line Товар: 2710124130 [13:32:47]line Аи-92-К-5 [13:32:47]line 23.850 * 62.90 [13:32:47]line = 1500.17 [13:32:47]line НДС 12% НСП 1% [13:32:47]line > о реализуемом товаре [13:32:47]line ОКРУГЛЕНИЕ: -0.17 [13:32:47]line ИТОГО: 1500.00 [13:32:47]line Внесено: 1500.00 [13:32:47]line СДАЧА: 0.00 [13:32:47]line НСП 1% : 13.28 [13:32:47]line НДС 12% : 159.31 [13:32:47]line Наличными: 1500.00 [13:32:47]line Безнал.: 0.00 [13:32:47]line Место: АЗС № 6 "Партнер Нефть" [13:32:47]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:32:47]line СНО: Общий режим [13:32:47]line Чек 85 12.03.2024 13:32 [13:32:47]line Смена: 327 ФФД: 1.0 [13:32:47]line ЗНМ: 0300000009 [13:32:47]line РНМ: 0000000000090555 [13:32:47]line Версия ККМ: 001 [13:32:47]line ФМ: 0000000000874811 [13:32:47]line ФД: 95155 [13:32:47]line ФПД: 161353378034856 [13:32:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T133251&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95155&fm=161353378034856&tin=02508201610067®Number=0000000000090555&sum=150000 [13:32:48]OFD Sender: Processing packet 95155 [packets to send 30, broken 29] [13:32:48]ProducePacketName [13:32:48]name=ofd_packets/00095155 [13:32:48]OFD Sender: To server: pG, [13:32:48]CommunicateWithHost lk.salyk.kg:30040 [13:32:48]ConnectInit lk.salyk.kg [13:32:48]written 0, free lines is 4095 [13:32:48]Connected sock=10 [13:32:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 6F 06 07 01 D8 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 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 55 00 00 00 F4 03 04 00 83 59 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B3 73 01 00 35 04 06 00 92 C0 02 C7 F4 A8 56 87 FB 31 EF D3 A1 22 [13:32:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 C8 38 47 00 2D 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B3 73 01 00 F4 03 04 00 D9 04 F0 65 B6 04 01 00 00 34 90 ED 9D 4F A5 2A C7 [13:32:48]CommunicateWithHost err = 0 [13:32:48]CheckOFDResponse [13:32:48]1017 (14) - 77093643461234 [13:32:48]1041 (16) - 0000000000874811 [13:32:48]1040 (4) - 95155 [13:32:48]1012 (4) - 12.03.2024 07:31 [13:32:48]1206 (1) - 0 [13:32:48]OFD Sender: Remove packet 95155 [13:32:48]ProducePacketName [13:32:48]name=ofd_packets/00095155 [13:32:48]NVStorageDeleteData [13:32:48]Write to MH i2c: 01 00 00 7A 2E A8 [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: 01 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: 01 07 00 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: 01 07 00 7A 2E 00 80 00 00 00 4C 0D 88 [13:32:48]RasterBufferAndPrint [13:32:48]line [13:32:48]line [13:32:48]line [13:32:48]line [13:32:48]line [13:32:48]written 0, free lines is 3410 [13:32:48]process_action close_receipt done [13:32:48]requested_data is exist [13:32:48]produce_requested_data [13:32:48]requested_item fm.sn is exist - process it [13:32:48]wFMCommunicate request_size=4 [13:32:48]MH_SAM_APDU [13:32:48]CAPDU: 80 11 00 00 [13:32:48]Write to MH i2c: E2 08 00 81 2E 80 11 00 00 00 00 00 00 29 [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:48]Read from MH i2c: E2 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 17 00 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 17 00 81 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 79 [13:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:32:48]wFMCommunicate OK [13:32:48]requested_item fd.num is exist - process it [13:32:48]SAM_PROTO_GetFieldsCounters [13:32:48]wFMCommunicate request_size=4 [13:32:48]MH_SAM_APDU [13:32:48]CAPDU: 80 13 00 00 [13:32:48]Write to MH i2c: E2 08 00 82 2E 80 13 00 00 00 00 00 00 2C [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:48]Read from MH i2c: E2 [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: E2 62 00 [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: E2 62 00 82 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B3 73 01 00 0E 04 04 00 47 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 B7 [13:32:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B3 73 01 00 0E 04 04 00 47 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:32:49]wFMCommunicate OK [13:32:49]SAM_PROTO_GetFieldsCounters done [13:32:49]requested_item shift.num is exist - process it [13:32:49]requested_item shift.opened is exist - process it [13:32:49]req_shift_opened [13:32:49]FM_GetShiftState [13:32:49]SAM_PROTO_GetShiftState [13:32:49]wFMCommunicate request_size=4 [13:32:49]MH_SAM_APDU [13:32:49]CAPDU: 80 13 01 00 [13:32:49]Write to MH i2c: E2 08 00 83 2E 80 13 01 00 00 00 00 00 2E [13:32:49]Write i2c OK [13:32:49]MH_I2C_Read... [13:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:49]Read from MH i2c: E2 [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: E2 0E 00 [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: E2 0E 00 83 2E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A2 [13:32:49]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:32:49]wFMCommunicate OK [13:32:49]SAM_PROTO_GetShiftState done [13:32:49]FM_GetShiftState done [13:32:49]req_shift_opened done [13:32:49]requested_item shift.open_date is exist - process it [13:32:49]req_shift_open_date [13:32:49]req_shift_open_date done [13:32:49]produce_requested_data done [13:32:49]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95155,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [13:32:49]process_action_free close_receipt [13:32:49]json_value_free [13:32:49]json_value_free done [13:32:49]process_json_proto returns [13:32:49]Send response to host [13:32:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95155,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [13:32:49]free response buf [13:32:49]execute_script done [13:32:49]execute_script returns [13:32:49]free content buf [13:32:49]Sock 8.Close socket [13:32:49]Sock 8.Thread stoped [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:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:12]accept exits with 9 [13:44:12]New connection [13:44:12]New thread 3066957156 created [13:44:12]Thread 3066813796 joined [13:44:12]Waiting for new connection... [13:44:12] Sock 9.Parse request [13:44:12]Sock 9.Check first char [13:44:12]Sock 9.First char is OK [13:44:12]request: POST /json_proto HTTP/1.0 [13:44:12]Method: POST [13:44:12]URL: /json_proto [13:44:12]Method is POST - this is cgi request [13:44:12]url: /json_proto [13:44:12]query_string will be loaded in cgi processing [13:44:12]execute_cgi json_proto POST (null) [13:44:12]execute_cgi path=json_proto method=POST [13:44:12]POST find Content-Length [13:44:12]Host: 172.17.62.67:8080 [13:44:12]Content-Length: 682 [13:44:12]Content-Type: application/json [13:44:12] [13:44:12]POST finish read [13:44:12]Found Content-Length = 682 [13:44:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:44:12]execute_script... [13:44: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)196123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:44:12]POST & json_proto [13:44:12]process_json_proto [13:44:12]json parsed OK: [13:44:12]protocol is kg_v1.0 [13:44:12]action value=close_receipt [13:44:12]process_action close_receipt [13:44:12]cmd_close_receipt [13:44:12]MH_GetDate [13:44:12]Write to MH i2c: F0 00 00 84 2E A1 [13:44:12]Write i2c OK [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: F0 [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: F0 05 00 [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: F0 05 00 84 2E 00 31 5C F0 65 88 [13:44:12]GetLastDocTimeStamp 1710250371 [13:44:12]current date 1710251057 [13:44:12]FM_GetShiftState [13:44:12]SAM_PROTO_GetShiftState [13:44:12]wFMCommunicate request_size=4 [13:44:12]MH_SAM_APDU [13:44:12]CAPDU: 80 13 01 00 [13:44:12]Write to MH i2c: E2 08 00 85 2E 80 13 01 00 00 00 00 00 30 [13:44:12]Write i2c OK [13:44:12]MH_I2C_Read... [13:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:12]Read from MH i2c: E2 [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: E2 0E 00 [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: E2 0E 00 85 2E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A4 [13:44:12]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:44:12]wFMCommunicate OK [13:44:12]SAM_PROTO_GetShiftState done [13:44:12]FM_GetShiftState done [13:44:12]opened in 1710201976 [13:44:12]opened+sec_in_day 1710288376 [13:44:12]quantity*price = 100011 [13:44:12]sum+1 = 100012 [13:44:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 86 12.03.2024 13:44 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95156 ФПД: 153071544944184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T134417&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95156&fm=153071544944184&tin=02508201610067®Number=0000000000090555&sum=100000 [13:44:13]StoreToDocumentArchive [13:44:13]shift 327 fd 95156 [13:44:13]save to /storage/0327/doc_00095156 [13:44:13]save last doc name /storage/0327/doc_00095156 to /storage/kkm_last_doc_name [13:44:13]save OK [13:44:13]Clear old archive folders... [13:44:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:13]tlvbuf is B6F563F0 [13:44:13]SAM_PROTO_ClearQueue [13:44:13]wFMCommunicate request_size=4 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 09 00 00 [13:44:13]Write to MH i2c: E2 08 00 92 2E 80 09 00 00 00 00 00 00 32 [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 92 2E 00 90 00 34 [13:44:13]RAPDU: 90 00 [13:44:13]wFMCommunicate OK [13:44:13]SAM_PROTO_ClearQueue done [13:44:13]KKMCreateOFDPacket [13:44:13]OFDProtocolAddRootSTLVToBuf [13:44:13]FM_MakeSignedData [13:44:13]FM_MakeSignedData [13:44:13]SAM_PROTO_SignData [13:44:13]wFMCommunicate request_size=4 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 0D 01 02 [13:44:13]Write to MH i2c: E2 08 00 93 2E 80 0D 01 02 00 00 00 00 3A [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 93 2E 00 90 00 35 [13:44:13]RAPDU: 90 00 [13:44:13]wFMCommunicate OK [13:44:13]wFMCommunicate request_size=255 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 31 5C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B4 73 01 00 35 04 06 00 8B [13:44:13]Write to MH i2c: E2 02 01 94 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 31 5C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B4 73 01 00 35 04 06 00 8B 00 00 15 [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 94 2E 00 90 00 36 [13:44:13]RAPDU: 90 00 [13:44:13]wFMCommunicate OK [13:44:13]wFMCommunicate request_size=10 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 0D 02 02 05 37 BF 0F C6 38 [13:44:13]Write to MH i2c: E2 0D 00 95 2E 80 0D 02 02 05 00 37 BF 0F C6 38 00 00 4A [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 95 2E 00 90 00 37 [13:44:13]RAPDU: 90 00 [13:44:13]wFMCommunicate OK [13:44:13]wFMCommunicate request_size=4 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 0D 03 02 [13:44:13]Write to MH i2c: E2 08 00 96 2E 80 0D 03 02 00 00 00 00 3F [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 0B 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 0B 00 96 2E 00 1E 63 2C 5F C1 A0 E8 33 90 00 C8 [13:44:13]RAPDU: 1E 63 2C 5F C1 A0 E8 33 90 00 [13:44:13]wFMCommunicate OK [13:44:13]SAM_PROTO_SignData done [13:44:13]FM_MakeSignedData done [13:44:13]CreateOFDProtocolMessage [13:44:13]wFMCommunicate request_size=4 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 11 00 00 [13:44:13]Write to MH i2c: E2 08 00 97 2E 80 11 00 00 00 00 00 00 3F [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 17 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 17 00 97 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8F [13:44:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:44:13]wFMCommunicate OK [13:44:13]CreateOFDProtocolMessage done [13:44:13]OFDSenderStorePacket 95156 [13:44:13]StoreOFDPacket docnum=95156 [13:44:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 7F 64 07 01 BC 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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 31 5C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B4 73 01 00 35 04 06 00 8B 37 BF 0F C6 38 1E 63 2C 5F C1 A0 E8 33 [13:44:13]CheckFolder [13:44:13]dirname=/storage/ofd_packets [13:44:13]CheckFolder done [13:44:13]ProducePacketName [13:44:13]name=ofd_packets/00095156 [13:44:13]NVStorageSaveData ofd_packets/00095156 [13:44:13]File name is /storage/ofd_packets/00095156 [13:44:13]Write 301 bytes [13:44:13]NVStorageSaveData done [13:44:13]OFDSenderStorePacket done [13:44:13]KKMCreateOFDPacket done [13:44:13]NVStorageSaveData kkm_last_timestamp [13:44:13]File name is /storage/kkm_last_timestamp [13:44:13]Write 4 bytes [13:44:13]NVStorageSaveData done [13:44:13]ExternCall_PrintAddStr [13:44:13]wPrintStart [13:44:13]Write to MH i2c: 01 00 00 98 2E C6 [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: 01 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: 01 07 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: 01 07 00 98 2E 00 80 00 00 00 FF 0F 5B [13:44:13]RasterBufferAndPrint [13:44:13]line Счет N : (1)196123 [13:44:13]line ИНН: 02508201610067 [13:44:13]line Контрольно-Кассовый Чек [13:44:13]line ПРОДАЖА [13:44:13]line ТРК (МРК, ГНК) : 32 [13:44:13]line Товар: 2710124130 [13:44:13]line Аи-92-К-5 [13:44:13]line 15.900 * 62.90 [13:44:13]line = 1000.11 [13:44:13]line НДС 12% НСП 1% [13:44:13]line > о реализуемом товаре [13:44:13]line ОКРУГЛЕНИЕ: -0.11 [13:44:13]line ИТОГО: 1000.00 [13:44:13]line Внесено: 1000.00 [13:44:13]line СДАЧА: 0.00 [13:44:13]line НСП 1% : 8.85 [13:44:13]line НДС 12% : 106.21 [13:44:13]line Наличными: 1000.00 [13:44:13]line Безнал.: 0.00 [13:44:13]line Место: АЗС № 6 "Партнер Нефть" [13:44:13]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:44:13]line СНО: Общий режим [13:44:13]line Чек 86 12.03.2024 13:44 [13:44:13]line Смена: 327 ФФД: 1.0 [13:44:13]line ЗНМ: 0300000009 [13:44:13]line РНМ: 0000000000090555 [13:44:13]line Версия ККМ: 001 [13:44:13]line ФМ: 0000000000874811 [13:44:13]line ФД: 95156 [13:44:13]line ФПД: 153071544944184 [13:44:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T134417&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95156&fm=153071544944184&tin=02508201610067®Number=0000000000090555&sum=100000 [13:44:14]OFD Sender: Processing packet 95156 [packets to send 30, broken 29] [13:44:14]ProducePacketName [13:44:14]name=ofd_packets/00095156 [13:44:14]OFD Sender: To server: pG, [13:44:14]CommunicateWithHost lk.salyk.kg:30040 [13:44:14]ConnectInit lk.salyk.kg [13:44:14]written 0, free lines is 4095 [13:44:14]Connected sock=11 [13:44:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 7F 64 07 01 BC 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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 31 5C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B4 73 01 00 35 04 06 00 8B 37 BF 0F C6 38 1E 63 2C 5F C1 A0 E8 33 [13:44:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 70 29 47 00 56 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B4 73 01 00 F4 03 04 00 87 07 F0 65 B6 04 01 00 00 F1 11 58 CF FD A0 5B CF [13:44:14]CommunicateWithHost err = 0 [13:44:14]CheckOFDResponse [13:44:14]1017 (14) - 77093643461234 [13:44:14]1041 (16) - 0000000000874811 [13:44:14]1040 (4) - 95156 [13:44:14]1012 (4) - 12.03.2024 07:43 [13:44:14]1206 (1) - 0 [13:44:14]OFD Sender: Remove packet 95156 [13:44:14]ProducePacketName [13:44:14]name=ofd_packets/00095156 [13:44:14]NVStorageDeleteData [13:44:14]Write to MH i2c: 01 00 00 C3 2E F1 [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: 01 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: 01 07 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: 01 07 00 C3 2E 00 80 00 00 00 49 0D CE [13:44:14]RasterBufferAndPrint [13:44:14]line [13:44:14]line [13:44:14]line [13:44:14]line [13:44:14]line [13:44:14]written 0, free lines is 3407 [13:44:14]process_action close_receipt done [13:44:14]requested_data is exist [13:44:14]produce_requested_data [13:44:14]requested_item fm.sn is exist - process it [13:44:14]wFMCommunicate request_size=4 [13:44:14]MH_SAM_APDU [13:44:14]CAPDU: 80 11 00 00 [13:44:14]Write to MH i2c: E2 08 00 CA 2E 80 11 00 00 00 00 00 00 72 [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:14]Read from MH i2c: E2 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 17 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 17 00 CA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C2 [13:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:44:14]wFMCommunicate OK [13:44:14]requested_item fd.num is exist - process it [13:44:14]SAM_PROTO_GetFieldsCounters [13:44:14]wFMCommunicate request_size=4 [13:44:14]MH_SAM_APDU [13:44:14]CAPDU: 80 13 00 00 [13:44:14]Write to MH i2c: E2 08 00 CB 2E 80 13 00 00 00 00 00 00 75 [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:14]Read from MH i2c: E2 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 62 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 62 00 CB 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B4 73 01 00 0E 04 04 00 47 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 04 [13:44:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B4 73 01 00 0E 04 04 00 47 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:44:14]wFMCommunicate OK [13:44:14]SAM_PROTO_GetFieldsCounters done [13:44:14]requested_item shift.num is exist - process it [13:44:14]requested_item shift.opened is exist - process it [13:44:14]req_shift_opened [13:44:14]FM_GetShiftState [13:44:14]SAM_PROTO_GetShiftState [13:44:14]wFMCommunicate request_size=4 [13:44:14]MH_SAM_APDU [13:44:14]CAPDU: 80 13 01 00 [13:44:14]Write to MH i2c: E2 08 00 CC 2E 80 13 01 00 00 00 00 00 77 [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:14]Read from MH i2c: E2 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 0E 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 0E 00 CC 2E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 EB [13:44:14]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:44:14]wFMCommunicate OK [13:44:14]SAM_PROTO_GetShiftState done [13:44:14]FM_GetShiftState done [13:44:14]req_shift_opened done [13:44:14]requested_item shift.open_date is exist - process it [13:44:14]req_shift_open_date [13:44:14]req_shift_open_date done [13:44:14]produce_requested_data done [13:44:14]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95156,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [13:44:14]process_action_free close_receipt [13:44:14]json_value_free [13:44:14]json_value_free done [13:44:14]process_json_proto returns [13:44:14]Send response to host [13:44:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95156,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [13:44:14]free response buf [13:44:14]execute_script done [13:44:14]execute_script returns [13:44:14]free content buf [13:44:14]Sock 9.Close socket [13:44:14]Sock 9.Thread stoped [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:08]accept exits with 8 [13:45:08]New connection [13:45:08]New thread 3066813796 created [13:45:08]Thread 3066957156 joined [13:45:08]Waiting for new connection... [13:45:08] Sock 8.Parse request [13:45:08]Sock 8.Check first char [13:45:08]Sock 8.First char is OK [13:45:08]request: POST /json_proto HTTP/1.0 [13:45:08]Method: POST [13:45:08]URL: /json_proto [13:45:08]Method is POST - this is cgi request [13:45:08]url: /json_proto [13:45:08]query_string will be loaded in cgi processing [13:45:08]execute_cgi json_proto POST (null) [13:45:08]execute_cgi path=json_proto method=POST [13:45:08]POST find Content-Length [13:45:08]Host: 172.17.62.67:8080 [13:45:08]Content-Length: 1200 [13:45:08]Content-Type: application/json [13:45:08] [13:45:08]POST finish read [13:45:08]Found Content-Length = 1200 [13:45:08]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196124\u000A12.03.2024 13:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3805312\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:08]execute_script... [13:45:08]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196124\u000A12.03.2024 13:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3805312\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:08]POST & json_proto [13:45:08]process_json_proto [13:45:08]json parsed OK: [13:45:08]protocol is kg_v1.0 [13:45:08]action value=print_text [13:45:08]process_action print_text [13:45:08]cmd_print_text [13:45:08]ExternCall_PrintAddStr [13:45:08]wPrintStart [13:45:08]Write to MH i2c: 01 00 00 CD 2E FB [13:45:08]Write i2c OK [13:45:08]MH_I2C_Read... [13:45:08]Read from MH i2c: 01 [13:45:08]MH_I2C_Read... [13:45:08]Read from MH i2c: 01 07 00 [13:45:08]MH_I2C_Read... [13:45:08]Read from MH i2c: 01 07 00 CD 2E 00 80 00 00 00 FF 0F 90 [13:45:08]RasterBufferAndPrint [13:45:08]line *****ТОВАРНЫЙ ЧЕК***** [13:45:08]line АЗС 6 [13:45:08]line Партнер нефть [13:45:08]line 02508201610067 [13:45:08]line Кассир : Мыктыбекова И. [13:45:08]line Счет N : (1)196124 [13:45:08]line 12.03.2024 13:39 [13:45:08]line ПРОДАЖА [13:45:08]line ТРК (МРК, ГНК): 12 [13:45:08]line Вид ГСМ : 2710124130 [13:45:08]line Аи-92-К-5 [13:45:08]line 10.000 x 62.90 [13:45:08]line ИТОГ: 629.00 [13:45:08]line Тип оплаты: Талоны: Партнер нефть [13:45:08]line 3805312 [13:45:08]line ______________________ [13:45:08]line (подпись) [13:45:08]written 0, free lines is 4095 [13:45:09]Write to MH i2c: 01 00 00 E1 2E 0F [13:45:09]Write i2c OK [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: 01 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: 01 07 00 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: 01 07 00 E1 2E 00 80 00 00 00 64 0E 08 [13:45:09]RasterBufferAndPrint [13:45:09]line [13:45:09]line [13:45:09]line [13:45:09]line [13:45:09]line [13:45:09]written 0, free lines is 3688 [13:45:09]process_action print_text done [13:45:09]requested_data is exist [13:45:09]produce_requested_data [13:45:09]requested_item fm.sn is exist - process it [13:45:09]wFMCommunicate request_size=4 [13:45:09]MH_SAM_APDU [13:45:09]CAPDU: 80 11 00 00 [13:45:09]Write to MH i2c: E2 08 00 E8 2E 80 11 00 00 00 00 00 00 90 [13:45:09]Write i2c OK [13:45:09]MH_I2C_Read... [13:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:09]Read from MH i2c: E2 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 17 00 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 17 00 E8 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E0 [13:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:45:09]wFMCommunicate OK [13:45:09]requested_item fd.num is exist - process it [13:45:09]SAM_PROTO_GetFieldsCounters [13:45:09]wFMCommunicate request_size=4 [13:45:09]MH_SAM_APDU [13:45:09]CAPDU: 80 13 00 00 [13:45:09]Write to MH i2c: E2 08 00 E9 2E 80 13 00 00 00 00 00 00 93 [13:45:09]Write i2c OK [13:45:09]MH_I2C_Read... [13:45:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:09]Read from MH i2c: E2 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 62 00 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 62 00 E9 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B4 73 01 00 0E 04 04 00 47 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 22 [13:45:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B4 73 01 00 0E 04 04 00 47 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:45:09]wFMCommunicate OK [13:45:09]SAM_PROTO_GetFieldsCounters done [13:45:09]requested_item shift.num is exist - process it [13:45:09]requested_item shift.opened is exist - process it [13:45:09]req_shift_opened [13:45:09]FM_GetShiftState [13:45:09]SAM_PROTO_GetShiftState [13:45:09]wFMCommunicate request_size=4 [13:45:09]MH_SAM_APDU [13:45:09]CAPDU: 80 13 01 00 [13:45:09]Write to MH i2c: E2 08 00 EA 2E 80 13 01 00 00 00 00 00 95 [13:45:09]Write i2c OK [13:45:09]MH_I2C_Read... [13:45:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:09]Read from MH i2c: E2 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 0E 00 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 0E 00 EA 2E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 09 [13:45:09]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:45:09]wFMCommunicate OK [13:45:09]SAM_PROTO_GetShiftState done [13:45:09]FM_GetShiftState done [13:45:09]req_shift_opened done [13:45:09]requested_item shift.open_date is exist - process it [13:45:09]req_shift_open_date [13:45:09]req_shift_open_date done [13:45:09]produce_requested_data done [13:45:09]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95156,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [13:45:09]process_action_free print_text [13:45:09]json_value_free [13:45:09]json_value_free done [13:45:09]process_json_proto returns [13:45:09]Send response to host [13:45:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95156,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [13:45:09]free response buf [13:45:09]execute_script done [13:45:09]execute_script returns [13:45:09]free content buf [13:45:09]Sock 8.Close socket [13:45:09]Sock 8.Thread stoped [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:09]accept exits with 9 [13:48:09]New connection [13:48:09]New thread 3066957156 created [13:48:09]Thread 3066813796 joined [13:48:09]Waiting for new connection... [13:48:09] Sock 9.Parse request [13:48:09]Sock 9.Check first char [13:48:09]Sock 9.First char is OK [13:48:09]request: POST /json_proto HTTP/1.0 [13:48:09]Method: POST [13:48:09]URL: /json_proto [13:48:09]Method is POST - this is cgi request [13:48:09]url: /json_proto [13:48:09]query_string will be loaded in cgi processing [13:48:09]execute_cgi json_proto POST (null) [13:48:09]execute_cgi path=json_proto method=POST [13:48:09]POST find Content-Length [13:48:09]Host: 172.17.62.67:8080 [13:48:09]Content-Length: 679 [13:48:09]Content-Type: application/json [13:48:09] [13:48:09]POST finish read [13:48:09]Found Content-Length = 679 [13:48:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 19.750, "sum" : 1400.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:09]execute_script... [13: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)196125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 19.750, "sum" : 1400.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:09]POST & json_proto [13:48:09]process_json_proto [13:48:09]json parsed OK: [13:48:09]protocol is kg_v1.0 [13:48:09]action value=close_receipt [13:48:09]process_action close_receipt [13:48:09]cmd_close_receipt [13:48:09]MH_GetDate [13:48:09]Write to MH i2c: F0 00 00 EB 2E 08 [13:48:09]Write i2c OK [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: F0 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: F0 05 00 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: F0 05 00 EB 2E 00 1F 5D F0 65 DE [13:48:09]GetLastDocTimeStamp 1710251057 [13:48:09]current date 1710251295 [13:48:09]FM_GetShiftState [13:48:09]SAM_PROTO_GetShiftState [13:48:09]wFMCommunicate request_size=4 [13:48:09]MH_SAM_APDU [13:48:09]CAPDU: 80 13 01 00 [13:48:09]Write to MH i2c: E2 08 00 EC 2E 80 13 01 00 00 00 00 00 97 [13:48:09]Write i2c OK [13:48:09]MH_I2C_Read... [13:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:09]Read from MH i2c: E2 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: E2 0E 00 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: E2 0E 00 EC 2E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 0B [13:48:09]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:48:09]wFMCommunicate OK [13:48:09]SAM_PROTO_GetShiftState done [13:48:09]FM_GetShiftState done [13:48:09]opened in 1710201976 [13:48:09]opened+sec_in_day 1710288376 [13:48:09]quantity*price = 140027 [13:48:09]sum+1 = 140029 [13:48:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 87 12.03.2024 13:48 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95157 ФПД: 260546700712571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T134815&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95157&fm=260546700712571&tin=02508201610067®Number=0000000000090555&sum=140000 [13:48:11]StoreToDocumentArchive [13:48:11]shift 327 fd 95157 [13:48:11]save to /storage/0327/doc_00095157 [13:48:11]save last doc name /storage/0327/doc_00095157 to /storage/kkm_last_doc_name [13:48:11]save OK [13:48:11]Clear old archive folders... [13:48:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:48:11]tlvbuf is 01AF9EE0 [13:48:11]SAM_PROTO_ClearQueue [13:48:11]wFMCommunicate request_size=4 [13:48:11]MH_SAM_APDU [13:48:11]CAPDU: 80 09 00 00 [13:48:11]Write to MH i2c: E2 08 00 F9 2E 80 09 00 00 00 00 00 00 99 [13:48:11]Write i2c OK [13:48:11]MH_I2C_Read... [13:48:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:11]Read from MH i2c: E2 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: E2 03 00 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: E2 03 00 F9 2E 00 90 00 9B [13:48:11]RAPDU: 90 00 [13:48:11]wFMCommunicate OK [13:48:11]SAM_PROTO_ClearQueue done [13:48:11]KKMCreateOFDPacket [13:48:11]OFDProtocolAddRootSTLVToBuf [13:48:11]FM_MakeSignedData [13:48:11]FM_MakeSignedData [13:48:11]SAM_PROTO_SignData [13:48:11]wFMCommunicate request_size=4 [13:48:11]MH_SAM_APDU [13:48:11]CAPDU: 80 0D 01 02 [13:48:11]Write to MH i2c: E2 08 00 FA 2E 80 0D 01 02 00 00 00 00 A1 [13:48:11]Write i2c OK [13:48:11]MH_I2C_Read... [13:48:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:11]Read from MH i2c: E2 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: E2 03 00 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: E2 03 00 FA 2E 00 90 00 9C [13:48:11]RAPDU: 90 00 [13:48:11]wFMCommunicate OK [13:48:11]wFMCommunicate request_size=255 [13:48:11]MH_SAM_APDU [13:48:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 4D 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 FC 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 1F 5D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B5 73 01 00 35 04 06 00 EC F7 41 8B [13:48:11]Write to MH i2c: E2 02 01 FB 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 4D 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 FC 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 1F 5D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B5 73 01 00 35 04 06 00 EC F7 41 8B 00 00 D5 [13:48:11]Write i2c OK [13:48:11]MH_I2C_Read... [13:48:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:11]Read from MH i2c: E2 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: E2 03 00 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: E2 03 00 FB 2E 00 90 00 9D [13:48:11]RAPDU: 90 00 [13:48:11]wFMCommunicate OK [13:48:11]wFMCommunicate request_size=7 [13:48:11]MH_SAM_APDU [13:48:11]CAPDU: 80 0D 02 02 02 1A 7B [13:48:11]Write to MH i2c: E2 0A 00 FC 2E 80 0D 02 02 02 00 1A 7B 00 00 3D [13:48:11]Write i2c OK [13:48:11]MH_I2C_Read... [13:48:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:11]Read from MH i2c: E2 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: E2 03 00 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: E2 03 00 FC 2E 00 90 00 9E [13:48:11]RAPDU: 90 00 [13:48:11]wFMCommunicate OK [13:48:11]wFMCommunicate request_size=4 [13:48:11]MH_SAM_APDU [13:48:11]CAPDU: 80 0D 03 02 [13:48:11]Write to MH i2c: E2 08 00 FD 2E 80 0D 03 02 00 00 00 00 A6 [13:48:11]Write i2c OK [13:48:11]MH_I2C_Read... [13:48:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:11]Read from MH i2c: E2 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: E2 0B 00 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: E2 0B 00 FD 2E 00 FA 98 55 0C 77 C5 6C 8F 90 00 D1 [13:48:11]RAPDU: FA 98 55 0C 77 C5 6C 8F 90 00 [13:48:11]wFMCommunicate OK [13:48:11]SAM_PROTO_SignData done [13:48:11]FM_MakeSignedData done [13:48:11]CreateOFDProtocolMessage [13:48:11]wFMCommunicate request_size=4 [13:48:11]MH_SAM_APDU [13:48:11]CAPDU: 80 11 00 00 [13:48:11]Write to MH i2c: E2 08 00 FE 2E 80 11 00 00 00 00 00 00 A6 [13:48:11]Write i2c OK [13:48:11]MH_I2C_Read... [13:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:11]Read from MH i2c: E2 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: E2 17 00 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: E2 17 00 FE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F6 [13:48:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:48:11]wFMCommunicate OK [13:48:11]CreateOFDProtocolMessage done [13:48:11]OFDSenderStorePacket 95157 [13:48:11]StoreOFDPacket docnum=95157 [13:48:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 31 D9 04 01 2F E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 4D 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 FC 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 1F 5D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B5 73 01 00 35 04 06 00 EC F7 41 8B 1A 7B FA 98 55 0C 77 C5 6C 8F [13:48:11]CheckFolder [13:48:11]dirname=/storage/ofd_packets [13:48:11]CheckFolder done [13:48:11]ProducePacketName [13:48:11]name=ofd_packets/00095157 [13:48:11]NVStorageSaveData ofd_packets/00095157 [13:48:11]File name is /storage/ofd_packets/00095157 [13:48:11]Write 298 bytes [13:48:11]NVStorageSaveData done [13:48:11]OFDSenderStorePacket done [13:48:11]KKMCreateOFDPacket done [13:48:11]NVStorageSaveData kkm_last_timestamp [13:48:11]File name is /storage/kkm_last_timestamp [13:48:11]Write 4 bytes [13:48:11]NVStorageSaveData done [13:48:11]ExternCall_PrintAddStr [13:48:11]wPrintStart [13:48:11]Write to MH i2c: 01 00 00 FF 2E 2D [13:48:11]Write i2c OK [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: 01 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: 01 07 00 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: 01 07 00 FF 2E 00 80 00 00 00 FF 0F C2 [13:48:11]RasterBufferAndPrint [13:48:11]line Счет N : (1)196125 [13:48:11]line ИНН: 02508201610067 [13:48:11]line Контрольно-Кассовый Чек [13:48:11]line ПРОДАЖА [13:48:11]line ТРК (МРК, ГНК) : 61 [13:48:11]line Товар: 2710194210 [13:48:11]line ДТ-К-5 [13:48:11]line 19.750 * 70.90 [13:48:11]line = 1400.28 [13:48:11]line НДС 12% НСП 1% [13:48:11]line > о реализуемом товаре [13:48:11]line ОКРУГЛЕНИЕ: -0.28 [13:48:11]line ИТОГО: 1400.00 [13:48:11]line Внесено: 1400.00 [13:48:11]line СДАЧА: 0.00 [13:48:11]line НСП 1% : 12.39 [13:48:11]line НДС 12% : 148.70 [13:48:11]line Наличными: 1400.00 [13:48:11]line Безнал.: 0.00 [13:48:11]line Место: АЗС № 6 "Партнер Нефть" [13:48:11]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:48:11]line СНО: Общий режим [13:48:11]line Чек 87 12.03.2024 13:48 [13:48:11]line Смена: 327 ФФД: 1.0 [13:48:11]line ЗНМ: 0300000009 [13:48:11]line РНМ: 0000000000090555 [13:48:11]line Версия ККМ: 001 [13:48:11]line ФМ: 0000000000874811 [13:48:11]line ФД: 95157 [13:48:11]line ФПД: 260546700712571 [13:48:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T134815&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95157&fm=260546700712571&tin=02508201610067®Number=0000000000090555&sum=140000 [13:48:11]OFD Sender: Processing packet 95157 [packets to send 30, broken 29] [13:48:11]ProducePacketName [13:48:11]name=ofd_packets/00095157 [13:48:11]OFD Sender: To server: pG, [13:48:11]CommunicateWithHost lk.salyk.kg:30040 [13:48:11]ConnectInit lk.salyk.kg [13:48:11]written 0, free lines is 4095 [13:48:12]Connected sock=10 [13:48:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 31 D9 04 01 2F E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 4D 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 FC 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 1F 5D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B5 73 01 00 35 04 06 00 EC F7 41 8B 1A 7B FA 98 55 0C 77 C5 6C 8F [13:48:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 1F 75 47 00 52 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B5 73 01 00 F4 03 04 00 75 08 F0 65 B6 04 01 00 00 05 71 F2 B0 74 D8 3C F9 [13:48:12]CommunicateWithHost err = 0 [13:48:12]CheckOFDResponse [13:48:12]1017 (14) - 77093643461234 [13:48:12]1041 (16) - 0000000000874811 [13:48:12]1040 (4) - 95157 [13:48:12]1012 (4) - 12.03.2024 07:47 [13:48:12]1206 (1) - 0 [13:48:12]OFD Sender: Remove packet 95157 [13:48:12]ProducePacketName [13:48:12]name=ofd_packets/00095157 [13:48:12]NVStorageDeleteData [13:48:12]Write to MH i2c: 01 00 00 2A 2F 59 [13:48:12]Write i2c OK [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: 01 [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: 01 07 00 [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: 01 07 00 2A 2F 00 80 00 00 00 50 0D 3D [13:48:12]RasterBufferAndPrint [13:48:12]line [13:48:12]line [13:48:12]line [13:48:12]line [13:48:12]line [13:48:12]written 0, free lines is 3413 [13:48:12]process_action close_receipt done [13:48:12]requested_data is exist [13:48:12]produce_requested_data [13:48:12]requested_item fm.sn is exist - process it [13:48:12]wFMCommunicate request_size=4 [13:48:12]MH_SAM_APDU [13:48:12]CAPDU: 80 11 00 00 [13:48:12]Write to MH i2c: E2 08 00 31 2F 80 11 00 00 00 00 00 00 DA [13:48:12]Write i2c OK [13:48:12]MH_I2C_Read... [13:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:12]Read from MH i2c: E2 [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: E2 17 00 [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: E2 17 00 31 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2A [13:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:48:12]wFMCommunicate OK [13:48:12]requested_item fd.num is exist - process it [13:48:12]SAM_PROTO_GetFieldsCounters [13:48:12]wFMCommunicate request_size=4 [13:48:12]MH_SAM_APDU [13:48:12]CAPDU: 80 13 00 00 [13:48:12]Write to MH i2c: E2 08 00 32 2F 80 13 00 00 00 00 00 00 DD [13:48:12]Write i2c OK [13:48:12]MH_I2C_Read... [13:48:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:12]Read from MH i2c: E2 [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: E2 62 00 [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: E2 62 00 32 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B5 73 01 00 0E 04 04 00 47 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 70 [13:48:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B5 73 01 00 0E 04 04 00 47 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:48:12]wFMCommunicate OK [13:48:12]SAM_PROTO_GetFieldsCounters done [13:48:12]requested_item shift.num is exist - process it [13:48:12]requested_item shift.opened is exist - process it [13:48:12]req_shift_opened [13:48:12]FM_GetShiftState [13:48:12]SAM_PROTO_GetShiftState [13:48:12]wFMCommunicate request_size=4 [13:48:12]MH_SAM_APDU [13:48:12]CAPDU: 80 13 01 00 [13:48:12]Write to MH i2c: E2 08 00 33 2F 80 13 01 00 00 00 00 00 DF [13:48:12]Write i2c OK [13:48:12]MH_I2C_Read... [13:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:12]Read from MH i2c: E2 [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: E2 0E 00 [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: E2 0E 00 33 2F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 53 [13:48:12]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:48:12]wFMCommunicate OK [13:48:12]SAM_PROTO_GetShiftState done [13:48:12]FM_GetShiftState done [13:48:12]req_shift_opened done [13:48:12]requested_item shift.open_date is exist - process it [13:48:12]req_shift_open_date [13:48:12]req_shift_open_date done [13:48:12]produce_requested_data done [13:48:12]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95157,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [13:48:12]process_action_free close_receipt [13:48:12]json_value_free [13:48:12]json_value_free done [13:48:12]process_json_proto returns [13:48:12]Send response to host [13:48:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95157,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [13:48:12]free response buf [13:48:12]execute_script done [13:48:12]execute_script returns [13:48:12]free content buf [13:48:12]Sock 9.Close socket [13:48:12]Sock 9.Thread stoped [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:39]accept exits with 8 [13:50:39]New connection [13:50:39]New thread 3066813796 created [13:50:39]Thread 3066957156 joined [13:50:39]Waiting for new connection... [13:50:39] Sock 8.Parse request [13:50:39]Sock 8.Check first char [13:50:39]Sock 8.First char is OK [13:50:39]request: POST /json_proto HTTP/1.0 [13:50:39]Method: POST [13:50:39]URL: /json_proto [13:50:39]Method is POST - this is cgi request [13:50:39]url: /json_proto [13:50:39]query_string will be loaded in cgi processing [13:50:39]execute_cgi json_proto POST (null) [13:50:39]execute_cgi path=json_proto method=POST [13:50:39]POST find Content-Length [13:50:39]Host: 172.17.62.67:8080 [13:50:39]Content-Length: 682 [13:50:39]Content-Type: application/json [13:50:39] [13:50:39]POST finish read [13:50:39]Found Content-Length = 682 [13:50:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 60.740, "sum" : 3820.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3820.00, "total" : 3820.00, "payments": [ { "type": 0, "sum" : 3820.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:39]execute_script... [13:50: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)196126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 60.740, "sum" : 3820.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3820.00, "total" : 3820.00, "payments": [ { "type": 0, "sum" : 3820.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:39]POST & json_proto [13:50:39]process_json_proto [13:50:39]json parsed OK: [13:50:39]protocol is kg_v1.0 [13:50:39]action value=close_receipt [13:50:39]process_action close_receipt [13:50:39]cmd_close_receipt [13:50:39]MH_GetDate [13:50:39]Write to MH i2c: F0 00 00 34 2F 52 [13:50:39]Write i2c OK [13:50:39]MH_I2C_Read... [13:50:39]Read from MH i2c: F0 [13:50:39]MH_I2C_Read... [13:50:39]Read from MH i2c: F0 05 00 [13:50:39]MH_I2C_Read... [13:50:39]Read from MH i2c: F0 05 00 34 2F 00 B4 5D F0 65 BD [13:50:39]GetLastDocTimeStamp 1710251295 [13:50:39]current date 1710251444 [13:50:39]FM_GetShiftState [13:50:39]SAM_PROTO_GetShiftState [13:50:39]wFMCommunicate request_size=4 [13:50:39]MH_SAM_APDU [13:50:39]CAPDU: 80 13 01 00 [13:50:39]Write to MH i2c: E2 08 00 35 2F 80 13 01 00 00 00 00 00 E1 [13:50:39]Write i2c OK [13:50:39]MH_I2C_Read... [13:50:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:39]Read from MH i2c: E2 [13:50:39]MH_I2C_Read... [13:50:39]Read from MH i2c: E2 0E 00 [13:50:39]MH_I2C_Read... [13:50:39]Read from MH i2c: E2 0E 00 35 2F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 55 [13:50:39]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:50:39]wFMCommunicate OK [13:50:39]SAM_PROTO_GetShiftState done [13:50:39]FM_GetShiftState done [13:50:39]opened in 1710201976 [13:50:39]opened+sec_in_day 1710288376 [13:50:39]quantity*price = 382054 [13:50:39]sum+1 = 382056 [13:50:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 3820.00 Внесено: 3820.00 СДАЧА: 0.00 НСП 1% : 33.81 НДС 12% : 405.72 Наличными: 3820.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 88 12.03.2024 13:50 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95158 ФПД: 25587465940322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T135044&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95158&fm=25587465940322&tin=02508201610067®Number=0000000000090555&sum=382000 [13:50:40]StoreToDocumentArchive [13:50:40]shift 327 fd 95158 [13:50:40]save to /storage/0327/doc_00095158 [13:50:40]save last doc name /storage/0327/doc_00095158 to /storage/kkm_last_doc_name [13:50:40]save OK [13:50:40]Clear old archive folders... [13:50:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:50:40]tlvbuf is 01A5FBB0 [13:50:40]SAM_PROTO_ClearQueue [13:50:40]wFMCommunicate request_size=4 [13:50:40]MH_SAM_APDU [13:50:40]CAPDU: 80 09 00 00 [13:50:40]Write to MH i2c: E2 08 00 42 2F 80 09 00 00 00 00 00 00 E3 [13:50:40]Write i2c OK [13:50:40]MH_I2C_Read... [13:50:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:40]Read from MH i2c: E2 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: E2 03 00 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: E2 03 00 42 2F 00 90 00 E5 [13:50:40]RAPDU: 90 00 [13:50:40]wFMCommunicate OK [13:50:40]SAM_PROTO_ClearQueue done [13:50:40]KKMCreateOFDPacket [13:50:40]OFDProtocolAddRootSTLVToBuf [13:50:40]FM_MakeSignedData [13:50:40]FM_MakeSignedData [13:50:40]SAM_PROTO_SignData [13:50:40]wFMCommunicate request_size=4 [13:50:40]MH_SAM_APDU [13:50:40]CAPDU: 80 0D 01 02 [13:50:40]Write to MH i2c: E2 08 00 43 2F 80 0D 01 02 00 00 00 00 EB [13:50:40]Write i2c OK [13:50:40]MH_I2C_Read... [13:50:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:40]Read from MH i2c: E2 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: E2 03 00 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: E2 03 00 43 2F 00 90 00 E6 [13:50:40]RAPDU: 90 00 [13:50:40]wFMCommunicate OK [13:50:40]wFMCommunicate request_size=255 [13:50:40]MH_SAM_APDU [13:50:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 ED 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 D4 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 D4 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 9E 00 00 00 00 07 04 06 00 30 D4 05 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 5D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B6 73 01 00 35 04 06 00 17 [13:50:40]Write to MH i2c: E2 02 01 44 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 ED 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 D4 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 D4 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 9E 00 00 00 00 07 04 06 00 30 D4 05 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 5D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B6 73 01 00 35 04 06 00 17 00 00 C1 [13:50:40]Write i2c OK [13:50:40]MH_I2C_Read... [13:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:40]Read from MH i2c: E2 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: E2 03 00 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: E2 03 00 44 2F 00 90 00 E7 [13:50:40]RAPDU: 90 00 [13:50:40]wFMCommunicate OK [13:50:40]wFMCommunicate request_size=10 [13:50:40]MH_SAM_APDU [13:50:40]CAPDU: 80 0D 02 02 05 45 8B D1 6D 62 [13:50:40]Write to MH i2c: E2 0D 00 45 2F 80 0D 02 02 05 00 45 8B D1 6D 62 00 00 68 [13:50:40]Write i2c OK [13:50:40]MH_I2C_Read... [13:50:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:41]Read from MH i2c: E2 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: E2 03 00 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: E2 03 00 45 2F 00 90 00 E8 [13:50:41]RAPDU: 90 00 [13:50:41]wFMCommunicate OK [13:50:41]wFMCommunicate request_size=4 [13:50:41]MH_SAM_APDU [13:50:41]CAPDU: 80 0D 03 02 [13:50:41]Write to MH i2c: E2 08 00 46 2F 80 0D 03 02 00 00 00 00 F0 [13:50:41]Write i2c OK [13:50:41]MH_I2C_Read... [13:50:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:41]Read from MH i2c: E2 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: E2 0B 00 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: E2 0B 00 46 2F 00 A5 43 25 5C C8 FD BC 33 90 00 0E [13:50:41]RAPDU: A5 43 25 5C C8 FD BC 33 90 00 [13:50:41]wFMCommunicate OK [13:50:41]SAM_PROTO_SignData done [13:50:41]FM_MakeSignedData done [13:50:41]CreateOFDProtocolMessage [13:50:41]wFMCommunicate request_size=4 [13:50:41]MH_SAM_APDU [13:50:41]CAPDU: 80 11 00 00 [13:50:41]Write to MH i2c: E2 08 00 47 2F 80 11 00 00 00 00 00 00 F0 [13:50:41]Write i2c OK [13:50:41]MH_I2C_Read... [13:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:41]Read from MH i2c: E2 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: E2 17 00 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: E2 17 00 47 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 40 [13:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:50:41]wFMCommunicate OK [13:50:41]CreateOFDProtocolMessage done [13:50:41]OFDSenderStorePacket 95158 [13:50:41]StoreOFDPacket docnum=95158 [13:50:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 37 A7 07 01 8A 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 ED 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 D4 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 D4 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 9E 00 00 00 00 07 04 06 00 30 D4 05 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 5D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B6 73 01 00 35 04 06 00 17 45 8B D1 6D 62 A5 43 25 5C C8 FD BC 33 [13:50:41]CheckFolder [13:50:41]dirname=/storage/ofd_packets [13:50:41]CheckFolder done [13:50:41]ProducePacketName [13:50:41]name=ofd_packets/00095158 [13:50:41]NVStorageSaveData ofd_packets/00095158 [13:50:41]File name is /storage/ofd_packets/00095158 [13:50:41]Write 301 bytes [13:50:41]NVStorageSaveData done [13:50:41]OFDSenderStorePacket done [13:50:41]KKMCreateOFDPacket done [13:50:41]NVStorageSaveData kkm_last_timestamp [13:50:41]File name is /storage/kkm_last_timestamp [13:50:41]Write 4 bytes [13:50:41]NVStorageSaveData done [13:50:41]ExternCall_PrintAddStr [13:50:41]wPrintStart [13:50:41]Write to MH i2c: 01 00 00 48 2F 77 [13:50:41]Write i2c OK [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: 01 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: 01 07 00 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: 01 07 00 48 2F 00 80 00 00 00 FF 0F 0C [13:50:41]RasterBufferAndPrint [13:50:41]line Счет N : (1)196126 [13:50:41]line ИНН: 02508201610067 [13:50:41]line Контрольно-Кассовый Чек [13:50:41]line ПРОДАЖА [13:50:41]line ТРК (МРК, ГНК) : 42 [13:50:41]line Товар: 2710124130 [13:50:41]line Аи-92-К-5 [13:50:41]line 60.740 * 62.90 [13:50:41]line = 3820.55 [13:50:41]line НДС 12% НСП 1% [13:50:41]line > о реализуемом товаре [13:50:41]line ОКРУГЛЕНИЕ: -0.55 [13:50:41]line ИТОГО: 3820.00 [13:50:41]line Внесено: 3820.00 [13:50:41]line СДАЧА: 0.00 [13:50:41]line НСП 1% : 33.81 [13:50:41]line НДС 12% : 405.72 [13:50:41]line Наличными: 3820.00 [13:50:41]line Безнал.: 0.00 [13:50:41]line Место: АЗС № 6 "Партнер Нефть" [13:50:41]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:50:41]line СНО: Общий режим [13:50:41]line Чек 88 12.03.2024 13:50 [13:50:41]line Смена: 327 ФФД: 1.0 [13:50:41]line ЗНМ: 0300000009 [13:50:41]line РНМ: 0000000000090555 [13:50:41]line Версия ККМ: 001 [13:50:41]line ФМ: 0000000000874811 [13:50:41]line ФД: 95158 [13:50:41]line ФПД: 25587465940322 [13:50:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T135044&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95158&fm=25587465940322&tin=02508201610067®Number=0000000000090555&sum=382000 [13:50:41]OFD Sender: Processing packet 95158 [packets to send 30, broken 29] [13:50:41]ProducePacketName [13:50:41]name=ofd_packets/00095158 [13:50:41]OFD Sender: To server: pG, [13:50:41]CommunicateWithHost lk.salyk.kg:30040 [13:50:41]ConnectInit lk.salyk.kg [13:50:41]written 0, free lines is 4095 [13:50:41]Connected sock=10 [13:50:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 37 A7 07 01 8A 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 ED 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 D4 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 D4 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 9E 00 00 00 00 07 04 06 00 30 D4 05 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 5D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B6 73 01 00 35 04 06 00 17 45 8B D1 6D 62 A5 43 25 5C C8 FD BC 33 [13:50:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 64 E6 47 00 37 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B6 73 01 00 F4 03 04 00 0A 09 F0 65 B6 04 01 00 00 8E FC 92 D1 B4 D0 3E 94 [13:50:41]CommunicateWithHost err = 0 [13:50:41]CheckOFDResponse [13:50:41]1017 (14) - 77093643461234 [13:50:41]1041 (16) - 0000000000874811 [13:50:41]1040 (4) - 95158 [13:50:41]1012 (4) - 12.03.2024 07:49 [13:50:41]1206 (1) - 0 [13:50:41]OFD Sender: Remove packet 95158 [13:50:41]ProducePacketName [13:50:41]name=ofd_packets/00095158 [13:50:41]NVStorageDeleteData [13:50:41]Write to MH i2c: 01 00 00 73 2F A2 [13:50:41]Write i2c OK [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: 01 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: 01 07 00 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: 01 07 00 73 2F 00 80 00 00 00 50 0D 86 [13:50:41]RasterBufferAndPrint [13:50:41]line [13:50:41]line [13:50:41]line [13:50:41]line [13:50:41]line [13:50:41]written 0, free lines is 3414 [13:50:41]process_action close_receipt done [13:50:41]requested_data is exist [13:50:41]produce_requested_data [13:50:41]requested_item fm.sn is exist - process it [13:50:41]wFMCommunicate request_size=4 [13:50:41]MH_SAM_APDU [13:50:41]CAPDU: 80 11 00 00 [13:50:41]Write to MH i2c: E2 08 00 7A 2F 80 11 00 00 00 00 00 00 23 [13:50:41]Write i2c OK [13:50:41]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 [13:50:42]MH_I2C_Read... [13:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:42]Read from MH i2c: E2 17 00 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 17 00 7A 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 73 [13:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:50:42]wFMCommunicate OK [13:50:42]requested_item fd.num is exist - process it [13:50:42]SAM_PROTO_GetFieldsCounters [13:50:42]wFMCommunicate request_size=4 [13:50:42]MH_SAM_APDU [13:50:42]CAPDU: 80 13 00 00 [13:50:42]Write to MH i2c: E2 08 00 7B 2F 80 13 00 00 00 00 00 00 26 [13:50:42]Write i2c OK [13:50:42]MH_I2C_Read... [13:50:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:42]Read from MH i2c: E2 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 62 00 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 62 00 7B 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B6 73 01 00 0E 04 04 00 47 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 BD [13:50:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B6 73 01 00 0E 04 04 00 47 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:50:42]wFMCommunicate OK [13:50:42]SAM_PROTO_GetFieldsCounters done [13:50:42]requested_item shift.num is exist - process it [13:50:42]requested_item shift.opened is exist - process it [13:50:42]req_shift_opened [13:50:42]FM_GetShiftState [13:50:42]SAM_PROTO_GetShiftState [13:50:42]wFMCommunicate request_size=4 [13:50:42]MH_SAM_APDU [13:50:42]CAPDU: 80 13 01 00 [13:50:42]Write to MH i2c: E2 08 00 7C 2F 80 13 01 00 00 00 00 00 28 [13:50:42]Write i2c OK [13:50:42]MH_I2C_Read... [13:50:42]OFD Sender: No OFD packet to send [13:50:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:42]Read from MH i2c: E2 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 0E 00 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 0E 00 7C 2F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 9C [13:50:42]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:50:42]wFMCommunicate OK [13:50:42]SAM_PROTO_GetShiftState done [13:50:42]FM_GetShiftState done [13:50:42]req_shift_opened done [13:50:42]requested_item shift.open_date is exist - process it [13:50:42]req_shift_open_date [13:50:42]req_shift_open_date done [13:50:42]produce_requested_data done [13:50:42]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95158,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [13:50:42]process_action_free close_receipt [13:50:42]json_value_free [13:50:42]json_value_free done [13:50:42]process_json_proto returns [13:50:42]Send response to host [13:50:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95158,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [13:50:42]free response buf [13:50:42]execute_script done [13:50:42]execute_script returns [13:50:42]free content buf [13:50:42]Sock 8.Close socket [13:50:42]Sock 8.Thread stoped [13:50:44]accept exits with 9 [13:50:44]New connection [13:50:44]New thread 3066957156 created [13:50:44]Thread 3066813796 joined [13:50:44]Waiting for new connection... [13:50:44] Sock 9.Parse request [13:50:44]Sock 9.Check first char [13:50:44]Sock 9.First char is OK [13:50:44]request: POST /json_proto HTTP/1.0 [13:50:44]Method: POST [13:50:44]URL: /json_proto [13:50:44]Method is POST - this is cgi request [13:50:44]url: /json_proto [13:50:44]query_string will be loaded in cgi processing [13:50:44]execute_cgi json_proto POST (null) [13:50:44]execute_cgi path=json_proto method=POST [13:50:44]POST find Content-Length [13:50:44]Host: 172.17.62.67:8080 [13:50:44]Content-Length: 738 [13:50:44]Content-Type: application/json [13:50:44] [13:50:44]POST finish read [13:50:44]Found Content-Length = 738 [13:50:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95158, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 60.740, "sum" : 3820.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3820.00, "total" : 3820.00, "payments": [ { "type": 0, "sum" : 3820.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:44]execute_script... [13:50:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95158, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 60.740, "sum" : 3820.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3820.00, "total" : 3820.00, "payments": [ { "type": 0, "sum" : 3820.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:44]POST & json_proto [13:50:44]process_json_proto [13:50:44]json parsed OK: [13:50:44]protocol is kg_v1.0 [13:50:44]action value=close_receipt [13:50:44]process_action close_receipt [13:50:44]cmd_close_receipt [13:50:44]MH_GetDate [13:50:44]Write to MH i2c: F0 00 00 7D 2F 9B [13:50:44]Write i2c OK [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: F0 [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: F0 05 00 [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: F0 05 00 7D 2F 00 B9 5D F0 65 0B [13:50:44]GetLastDocTimeStamp 1710251444 [13:50:44]current date 1710251449 [13:50:44]FM_GetShiftState [13:50:44]SAM_PROTO_GetShiftState [13:50:44]wFMCommunicate request_size=4 [13:50:44]MH_SAM_APDU [13:50:44]CAPDU: 80 13 01 00 [13:50:44]Write to MH i2c: E2 08 00 7E 2F 80 13 01 00 00 00 00 00 2A [13:50:44]Write i2c OK [13:50:44]MH_I2C_Read... [13:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:44]Read from MH i2c: E2 [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: E2 0E 00 [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: E2 0E 00 7E 2F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 9E [13:50:44]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:50:44]wFMCommunicate OK [13:50:44]SAM_PROTO_GetShiftState done [13:50:44]FM_GetShiftState done [13:50:44]opened in 1710201976 [13:50:44]opened+sec_in_day 1710288376 [13:50:44]quantity*price = 382054 [13:50:44]sum+1 = 382056 [13:50:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 3820.00 НСП 1% : 33.81 НДС 12% : 405.72 Наличными: 3820.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 89 12.03.2024 13:50 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95158 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95159 ФПД: 109547681496348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T135049&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95159&fm=109547681496348&tin=02508201610067®Number=0000000000090555&sum=382000 [13:50:45]StoreToDocumentArchive [13:50:45]shift 327 fd 95159 [13:50:45]save to /storage/0327/doc_00095159 [13:50:45]save last doc name /storage/0327/doc_00095159 to /storage/kkm_last_doc_name [13:50:45]save OK [13:50:45]Clear old archive folders... [13:50:45]ProcessDocumentItem done err = 0, tmpTLVsize=279 [13:50:45]tlvbuf is 01B29630 [13:50:45]SAM_PROTO_ClearQueue [13:50:45]wFMCommunicate request_size=4 [13:50:45]MH_SAM_APDU [13:50:45]CAPDU: 80 09 00 00 [13:50:45]Write to MH i2c: E2 08 00 8D 2F 80 09 00 00 00 00 00 00 2E [13:50:45]Write i2c OK [13:50:45]MH_I2C_Read... [13:50:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:45]Read from MH i2c: E2 [13:50:45]MH_I2C_Read... [13:50:45]Read from MH i2c: E2 03 00 [13:50:45]MH_I2C_Read... [13:50:45]Read from MH i2c: E2 03 00 8D 2F 00 90 00 30 [13:50:45]RAPDU: 90 00 [13:50:45]wFMCommunicate OK [13:50:45]SAM_PROTO_ClearQueue done [13:50:45]KKMCreateOFDPacket [13:50:45]OFDProtocolAddRootSTLVToBuf [13:50:45]FM_MakeSignedData [13:50:45]FM_MakeSignedData [13:50:45]SAM_PROTO_SignData [13:50:45]wFMCommunicate request_size=4 [13:50:45]MH_SAM_APDU [13:50:45]CAPDU: 80 0D 01 02 [13:50:45]Write to MH i2c: E2 08 00 8E 2F 80 0D 01 02 00 00 00 00 36 [13:50:45]Write i2c OK [13:50:45]MH_I2C_Read... [13:50:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:45]Read from MH i2c: E2 [13:50:45]MH_I2C_Read... [13:50:45]Read from MH i2c: E2 03 00 [13:50:45]MH_I2C_Read... [13:50:45]Read from MH i2c: E2 03 00 8E 2F 00 90 00 31 [13:50:45]RAPDU: 90 00 [13:50:45]wFMCommunicate OK [13:50:45]wFMCommunicate request_size=255 [13:50:45]MH_SAM_APDU [13:50:45]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 ED 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 D4 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 D4 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 9E 00 00 00 00 07 04 06 00 30 D4 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 B9 5D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 B6 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 [13:50:45]Write to MH i2c: E2 02 01 8F 2F 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 ED 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 D4 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 D4 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 9E 00 00 00 00 07 04 06 00 30 D4 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 B9 5D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 B6 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 00 00 5D [13:50:45]Write i2c OK [13:50:45]MH_I2C_Read... [13:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:46]Read from MH i2c: E2 [13:50:46]MH_I2C_Read... [13:50:46]Read from MH i2c: E2 03 00 [13:50:46]MH_I2C_Read... [13:50:46]Read from MH i2c: E2 03 00 8F 2F 00 90 00 32 [13:50:46]RAPDU: 90 00 [13:50:46]wFMCommunicate OK [13:50:46]wFMCommunicate request_size=38 [13:50:46]MH_SAM_APDU [13:50:46]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B7 73 01 00 35 04 06 00 63 A2 0E A4 3D 1C [13:50:46]Write to MH i2c: E2 29 00 90 2F 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B7 73 01 00 35 04 06 00 63 A2 0E A4 3D 1C 00 00 FA [13:50:46]Write i2c OK [13:50:46]MH_I2C_Read... [13:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:46]Read from MH i2c: E2 [13:50:46]MH_I2C_Read... [13:50:46]Read from MH i2c: E2 03 00 [13:50:46]MH_I2C_Read... [13:50:46]Read from MH i2c: E2 03 00 90 2F 00 90 00 33 [13:50:46]RAPDU: 90 00 [13:50:46]wFMCommunicate OK [13:50:46]wFMCommunicate request_size=4 [13:50:46]MH_SAM_APDU [13:50:46]CAPDU: 80 0D 03 02 [13:50:46]Write to MH i2c: E2 08 00 91 2F 80 0D 03 02 00 00 00 00 3B [13:50:46]Write i2c OK [13:50:46]MH_I2C_Read... [13:50:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:46]Read from MH i2c: E2 [13:50:46]MH_I2C_Read... [13:50:46]Read from MH i2c: E2 0B 00 [13:50:46]MH_I2C_Read... [13:50:46]Read from MH i2c: E2 0B 00 91 2F 00 34 C7 1A 97 70 69 B8 3A 90 00 B3 [13:50:46]RAPDU: 34 C7 1A 97 70 69 B8 3A 90 00 [13:50:46]wFMCommunicate OK [13:50:46]SAM_PROTO_SignData done [13:50:46]FM_MakeSignedData done [13:50:46]CreateOFDProtocolMessage [13:50:46]wFMCommunicate request_size=4 [13:50:46]MH_SAM_APDU [13:50:46]CAPDU: 80 11 00 00 [13:50:46]Write to MH i2c: E2 08 00 92 2F 80 11 00 00 00 00 00 00 3B [13:50:46]Write i2c OK [13:50:46]MH_I2C_Read... [13:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:46]Read from MH i2c: E2 [13:50:46]MH_I2C_Read... [13:50:46]Read from MH i2c: E2 17 00 [13:50:46]MH_I2C_Read... [13:50:46]Read from MH i2c: E2 17 00 92 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8B [13:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:50:46]wFMCommunicate OK [13:50:46]CreateOFDProtocolMessage done [13:50:46]OFDSenderStorePacket 95159 [13:50:46]StoreOFDPacket docnum=95159 [13:50:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 60 F0 23 01 AE A6 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 ED 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 D4 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 D4 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 9E 00 00 00 00 07 04 06 00 30 D4 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 B9 5D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 B6 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B7 73 01 00 35 04 06 00 63 A2 0E A4 3D 1C 34 C7 1A 97 70 69 B8 3A [13:50:46]CheckFolder [13:50:46]dirname=/storage/ofd_packets [13:50:46]CheckFolder done [13:50:46]ProducePacketName [13:50:46]name=ofd_packets/00095159 [13:50:46]NVStorageSaveData ofd_packets/00095159 [13:50:46]File name is /storage/ofd_packets/00095159 [13:50:46]Write 329 bytes [13:50:46]NVStorageSaveData done [13:50:46]OFDSenderStorePacket done [13:50:46]KKMCreateOFDPacket done [13:50:46]NVStorageSaveData kkm_last_timestamp [13:50:46]File name is /storage/kkm_last_timestamp [13:50:46]Write 4 bytes [13:50:46]NVStorageSaveData done [13:50:46]ExternCall_PrintAddStr [13:50:46]wPrintStart [13:50:46]Write to MH i2c: 01 00 00 93 2F C2 [13:50:46]Write i2c OK [13:50:46]MH_I2C_Read... [13:50:46]Read from MH i2c: 01 [13:50:46]MH_I2C_Read... [13:50:46]Read from MH i2c: 01 07 00 [13:50:46]MH_I2C_Read... [13:50:46]Read from MH i2c: 01 07 00 93 2F 00 80 00 00 00 FF 0F 57 [13:50:46]RasterBufferAndPrint [13:50:46]line Счет N : (1)196126 [13:50:46]line ИНН: 02508201610067 [13:50:46]line Контрольно-Кассовый Чек [13:50:46]line ВОЗВРАТ ПРОДАЖИ [13:50:46]line ТРК (МРК, ГНК) : 42 [13:50:46]line Товар: 2710124130 [13:50:46]line Аи-92-К-5 [13:50:46]line 60.740 * 62.90 [13:50:46]line = 3820.55 [13:50:46]line НДС 12% НСП 1% [13:50:46]line > о реализуемом товаре [13:50:46]line ОКРУГЛЕНИЕ: -0.55 [13:50:46]line ИТОГО: 3820.00 [13:50:46]line НСП 1% : 33.81 [13:50:46]line НДС 12% : 405.72 [13:50:46]line Наличными: 3820.00 [13:50:46]line Безнал.: 0.00 [13:50:46]line Место: АЗС № 6 "Партнер Нефть" [13:50:46]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:50:46]line СНО: Общий режим [13:50:46]line Чек 89 12.03.2024 13:50 [13:50:46]line Смена: 327 ФФД: 1.0 [13:50:46]line ЗНМ: 0300000009 [13:50:46]line РНМ: 0000000000090555 [13:50:46]line Версия ККМ: 001 [13:50:46]line ФД осн.: 95158 [13:50:46]line ФМ осн.: 0000000000874811 [13:50:46]line ФМ: 0000000000874811 [13:50:46]line ФД: 95159 [13:50:46]line ФПД: 109547681496348 [13:50:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T135049&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95159&fm=109547681496348&tin=02508201610067®Number=0000000000090555&sum=382000 [13:50:46]written 0, free lines is 4095 [13:50:46]OFD Sender: Processing packet 95159 [packets to send 30, broken 29] [13:50:46]ProducePacketName [13:50:46]name=ofd_packets/00095159 [13:50:46]OFD Sender: To server: pG, [13:50:46]CommunicateWithHost lk.salyk.kg:30040 [13:50:46]ConnectInit lk.salyk.kg [13:50:46]Connected sock=10 [13:50:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 60 F0 23 01 AE A6 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 ED 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 D4 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 D4 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 9E 00 00 00 00 07 04 06 00 30 D4 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 B9 5D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 B6 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B7 73 01 00 35 04 06 00 63 A2 0E A4 3D 1C 34 C7 1A 97 70 69 B8 3A [13:50:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 04 EC 47 00 5A 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B7 73 01 00 F4 03 04 00 0F 09 F0 65 B6 04 01 00 00 F7 5C 55 38 7D A5 15 FD [13:50:46]CommunicateWithHost err = 0 [13:50:46]CheckOFDResponse [13:50:46]1017 (14) - 77093643461234 [13:50:46]1041 (16) - 0000000000874811 [13:50:46]1040 (4) - 95159 [13:50:46]1012 (4) - 12.03.2024 07:49 [13:50:46]1206 (1) - 0 [13:50:46]OFD Sender: Remove packet 95159 [13:50:46]ProducePacketName [13:50:46]name=ofd_packets/00095159 [13:50:46]NVStorageDeleteData [13:50:46]Write to MH i2c: 01 00 00 BE 2F ED [13:50:46]Write i2c OK [13:50:46]MH_I2C_Read... [13:50:46]Read from MH i2c: 01 [13:50:46]MH_I2C_Read... [13:50:46]Read from MH i2c: 01 07 00 [13:50:46]MH_I2C_Read... [13:50:46]Read from MH i2c: 01 07 00 BE 2F 00 80 00 00 00 7A 0D FB [13:50:46]RasterBufferAndPrint [13:50:46]line [13:50:46]line [13:50:46]line [13:50:46]line [13:50:46]line [13:50:46]written 0, free lines is 3465 [13:50:46]process_action close_receipt done [13:50:46]requested_data is exist [13:50:46]produce_requested_data [13:50:46]requested_item fm.sn is exist - process it [13:50:46]wFMCommunicate request_size=4 [13:50:46]MH_SAM_APDU [13:50:46]CAPDU: 80 11 00 00 [13:50:46]Write to MH i2c: E2 08 00 C5 2F 80 11 00 00 00 00 00 00 6E [13:50:46]Write i2c OK [13:50:46]MH_I2C_Read... [13:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:47]Read from MH i2c: E2 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 17 00 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 17 00 C5 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BE [13:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:50:47]wFMCommunicate OK [13:50:47]requested_item fd.num is exist - process it [13:50:47]SAM_PROTO_GetFieldsCounters [13:50:47]wFMCommunicate request_size=4 [13:50:47]MH_SAM_APDU [13:50:47]CAPDU: 80 13 00 00 [13:50:47]Write to MH i2c: E2 08 00 C6 2F 80 13 00 00 00 00 00 00 71 [13:50:47]Write i2c OK [13:50:47]MH_I2C_Read... [13:50:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:47]Read from MH i2c: E2 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 62 00 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 62 00 C6 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B7 73 01 00 0E 04 04 00 47 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 0C [13:50:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B7 73 01 00 0E 04 04 00 47 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:50:47]wFMCommunicate OK [13:50:47]SAM_PROTO_GetFieldsCounters done [13:50:47]requested_item shift.num is exist - process it [13:50:47]requested_item shift.opened is exist - process it [13:50:47]req_shift_opened [13:50:47]FM_GetShiftState [13:50:47]SAM_PROTO_GetShiftState [13:50:47]wFMCommunicate request_size=4 [13:50:47]MH_SAM_APDU [13:50:47]CAPDU: 80 13 01 00 [13:50:47]Write to MH i2c: E2 08 00 C7 2F 80 13 01 00 00 00 00 00 73 [13:50:47]Write i2c OK [13:50:47]MH_I2C_Read... [13:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:47]Read from MH i2c: E2 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 0E 00 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 0E 00 C7 2F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 E7 [13:50:47]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:50:47]wFMCommunicate OK [13:50:47]SAM_PROTO_GetShiftState done [13:50:47]FM_GetShiftState done [13:50:47]req_shift_opened done [13:50:47]requested_item shift.open_date is exist - process it [13:50:47]req_shift_open_date [13:50:47]req_shift_open_date done [13:50:47]produce_requested_data done [13:50:47]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95159,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [13:50:47]process_action_free close_receipt [13:50:47]json_value_free [13:50:47]json_value_free done [13:50:47]process_json_proto returns [13:50:47]Send response to host [13:50:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95159,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [13:50:47]free response buf [13:50:47]execute_script done [13:50:47]execute_script returns [13:50:47]free content buf [13:50:47]Sock 9.Close socket [13:50:47]Sock 9.Thread stoped [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:51:58]accept exits with 8 [13:51:58]New connection [13:51:58]New thread 3066813796 created [13:51:58]Thread 3066957156 joined [13:51:58]Waiting for new connection... [13:51:58] Sock 8.Parse request [13:51:58]Sock 8.Check first char [13:51:58]Sock 8.First char is OK [13:51:58]request: POST /json_proto HTTP/1.0 [13:51:58]Method: POST [13:51:58]URL: /json_proto [13:51:58]Method is POST - this is cgi request [13:51:58]url: /json_proto [13:51:58]query_string will be loaded in cgi processing [13:51:58]execute_cgi json_proto POST (null) [13:51:58]execute_cgi path=json_proto method=POST [13:51:58]POST find Content-Length [13:51:58]Host: 172.17.62.67:8080 [13:51:58]Content-Length: 677 [13:51:58]Content-Type: application/json [13:51:58] [13:51:58]POST finish read [13:51:58]Found Content-Length = 677 [13:51:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:58]execute_script... [13:51: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)196127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:58]POST & json_proto [13:51:58]process_json_proto [13:51:58]json parsed OK: [13:51:58]protocol is kg_v1.0 [13:51:58]action value=close_receipt [13:51:58]process_action close_receipt [13:51:58]cmd_close_receipt [13:51:58]MH_GetDate [13:51:58]Write to MH i2c: F0 00 00 C8 2F E6 [13:51:58]Write i2c OK [13:51:58]MH_I2C_Read... [13:51:58]Read from MH i2c: F0 [13:51:58]MH_I2C_Read... [13:51:58]Read from MH i2c: F0 05 00 [13:51:58]MH_I2C_Read... [13:51:58]Read from MH i2c: F0 05 00 C8 2F 00 03 5E F0 65 A1 [13:51:58]GetLastDocTimeStamp 1710251449 [13:51:58]current date 1710251523 [13:51:58]FM_GetShiftState [13:51:58]SAM_PROTO_GetShiftState [13:51:58]wFMCommunicate request_size=4 [13:51:58]MH_SAM_APDU [13:51:58]CAPDU: 80 13 01 00 [13:51:58]Write to MH i2c: E2 08 00 C9 2F 80 13 01 00 00 00 00 00 75 [13:51:58]Write i2c OK [13:51:58]MH_I2C_Read... [13:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:58]Read from MH i2c: E2 [13:51:58]MH_I2C_Read... [13:51:58]Read from MH i2c: E2 0E 00 [13:51:58]MH_I2C_Read... [13:51:58]Read from MH i2c: E2 0E 00 C9 2F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 E9 [13:51:58]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:51:58]wFMCommunicate OK [13:51:58]SAM_PROTO_GetShiftState done [13:51:58]FM_GetShiftState done [13:51:58]opened in 1710201976 [13:51:58]opened+sec_in_day 1710288376 [13:51:58]quantity*price = 60006 [13:51:58]sum+1 = 60008 [13:51:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 90 12.03.2024 13:52 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95160 ФПД: 102222082626003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T135203&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95160&fm=102222082626003&tin=02508201610067®Number=0000000000090555&sum=60000 [13:51:59]StoreToDocumentArchive [13:51:59]shift 327 fd 95160 [13:51:59]save to /storage/0327/doc_00095160 [13:51:59]save last doc name /storage/0327/doc_00095160 to /storage/kkm_last_doc_name [13:51:59]save OK [13:51:59]Clear old archive folders... [13:51:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:59]tlvbuf is 01AF2DF0 [13:51:59]SAM_PROTO_ClearQueue [13:51:59]wFMCommunicate request_size=4 [13:51:59]MH_SAM_APDU [13:51:59]CAPDU: 80 09 00 00 [13:51:59]Write to MH i2c: E2 08 00 D6 2F 80 09 00 00 00 00 00 00 77 [13:51:59]Write i2c OK [13:51:59]MH_I2C_Read... [13:51:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:59]Read from MH i2c: E2 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 03 00 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 03 00 D6 2F 00 90 00 79 [13:51:59]RAPDU: 90 00 [13:51:59]wFMCommunicate OK [13:51:59]SAM_PROTO_ClearQueue done [13:51:59]KKMCreateOFDPacket [13:51:59]OFDProtocolAddRootSTLVToBuf [13:51:59]FM_MakeSignedData [13:51:59]FM_MakeSignedData [13:51:59]SAM_PROTO_SignData [13:51:59]wFMCommunicate request_size=4 [13:51:59]MH_SAM_APDU [13:51:59]CAPDU: 80 0D 01 02 [13:51:59]Write to MH i2c: E2 08 00 D7 2F 80 0D 01 02 00 00 00 00 7F [13:51:59]Write i2c OK [13:51:59]MH_I2C_Read... [13:51:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:59]Read from MH i2c: E2 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 03 00 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 03 00 D7 2F 00 90 00 7A [13:51:59]RAPDU: 90 00 [13:51:59]wFMCommunicate OK [13:51:59]wFMCommunicate request_size=255 [13:51:59]MH_SAM_APDU [13:51:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 03 5E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B8 73 01 00 35 04 06 00 5C [13:51:59]Write to MH i2c: E2 02 01 D8 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 03 5E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B8 73 01 00 35 04 06 00 5C 00 00 6E [13:51:59]Write i2c OK [13:51:59]MH_I2C_Read... [13:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:59]Read from MH i2c: E2 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 03 00 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 03 00 D8 2F 00 90 00 7B [13:51:59]RAPDU: 90 00 [13:51:59]wFMCommunicate OK [13:51:59]wFMCommunicate request_size=10 [13:51:59]MH_SAM_APDU [13:51:59]CAPDU: 80 0D 02 02 05 F8 6E EC 51 D3 [13:51:59]Write to MH i2c: E2 0D 00 D9 2F 80 0D 02 02 05 00 F8 6E EC 51 D3 00 00 02 [13:51:59]Write i2c OK [13:51:59]MH_I2C_Read... [13:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:59]Read from MH i2c: E2 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 03 00 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 03 00 D9 2F 00 90 00 7C [13:51:59]RAPDU: 90 00 [13:51:59]wFMCommunicate OK [13:51:59]wFMCommunicate request_size=4 [13:51:59]MH_SAM_APDU [13:51:59]CAPDU: 80 0D 03 02 [13:51:59]Write to MH i2c: E2 08 00 DA 2F 80 0D 03 02 00 00 00 00 84 [13:51:59]Write i2c OK [13:51:59]MH_I2C_Read... [13:51:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:59]Read from MH i2c: E2 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 0B 00 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 0B 00 DA 2F 00 67 F3 34 98 82 10 6F A5 90 00 51 [13:51:59]RAPDU: 67 F3 34 98 82 10 6F A5 90 00 [13:51:59]wFMCommunicate OK [13:51:59]SAM_PROTO_SignData done [13:51:59]FM_MakeSignedData done [13:51:59]CreateOFDProtocolMessage [13:51:59]wFMCommunicate request_size=4 [13:51:59]MH_SAM_APDU [13:51:59]CAPDU: 80 11 00 00 [13:51:59]Write to MH i2c: E2 08 00 DB 2F 80 11 00 00 00 00 00 00 84 [13:51:59]Write i2c OK [13:51:59]MH_I2C_Read... [13:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:59]Read from MH i2c: E2 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 17 00 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 17 00 DB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D4 [13:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:51:59]wFMCommunicate OK [13:51:59]CreateOFDProtocolMessage done [13:51:59]OFDSenderStorePacket 95160 [13:51:59]StoreOFDPacket docnum=95160 [13:51:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 57 79 07 01 02 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 03 5E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B8 73 01 00 35 04 06 00 5C F8 6E EC 51 D3 67 F3 34 98 82 10 6F A5 [13:51:59]CheckFolder [13:51:59]dirname=/storage/ofd_packets [13:51:59]CheckFolder done [13:51:59]ProducePacketName [13:51:59]name=ofd_packets/00095160 [13:51:59]NVStorageSaveData ofd_packets/00095160 [13:51:59]File name is /storage/ofd_packets/00095160 [13:51:59]Write 301 bytes [13:51:59]NVStorageSaveData done [13:51:59]OFDSenderStorePacket done [13:51:59]KKMCreateOFDPacket done [13:51:59]NVStorageSaveData kkm_last_timestamp [13:51:59]File name is /storage/kkm_last_timestamp [13:51:59]Write 4 bytes [13:51:59]NVStorageSaveData done [13:51:59]ExternCall_PrintAddStr [13:51:59]wPrintStart [13:51:59]Write to MH i2c: 01 00 00 DC 2F 0B [13:51:59]Write i2c OK [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: 01 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: 01 07 00 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: 01 07 00 DC 2F 00 80 00 00 00 FF 0F A0 [13:51:59]RasterBufferAndPrint [13:51:59]line Счет N : (1)196127 [13:51:59]line ИНН: 02508201610067 [13:51:59]line Контрольно-Кассовый Чек [13:51:59]line ПРОДАЖА [13:51:59]line ТРК (МРК, ГНК) : 22 [13:51:59]line Товар: 2710124130 [13:51:59]line Аи-92-К-5 [13:51:59]line 9.540 * 62.90 [13:51:59]line = 600.07 [13:51:59]line НДС 12% НСП 1% [13:51:59]line > о реализуемом товаре [13:51:59]line ОКРУГЛЕНИЕ: -0.07 [13:51:59]line ИТОГО: 600.00 [13:51:59]line Внесено: 600.00 [13:51:59]line СДАЧА: 0.00 [13:51:59]line НСП 1% : 5.31 [13:51:59]line НДС 12% : 63.72 [13:51:59]line Наличными: 600.00 [13:51:59]line Безнал.: 0.00 [13:51:59]line Место: АЗС № 6 "Партнер Нефть" [13:51:59]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:51:59]line СНО: Общий режим [13:51:59]line Чек 90 12.03.2024 13:52 [13:51:59]line Смена: 327 ФФД: 1.0 [13:51:59]line ЗНМ: 0300000009 [13:51:59]line РНМ: 0000000000090555 [13:51:59]line Версия ККМ: 001 [13:51:59]line ФМ: 0000000000874811 [13:51:59]line ФД: 95160 [13:51:59]line ФПД: 102222082626003 [13:52:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T135203&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95160&fm=102222082626003&tin=02508201610067®Number=0000000000090555&sum=60000 [13:52:00]OFD Sender: Processing packet 95160 [packets to send 30, broken 29] [13:52:00]ProducePacketName [13:52:00]name=ofd_packets/00095160 [13:52:00]OFD Sender: To server: pG, [13:52:00]CommunicateWithHost lk.salyk.kg:30040 [13:52:00]ConnectInit lk.salyk.kg [13:52:00]written 0, free lines is 4095 [13:52:00]Connected sock=9 [13:52:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 57 79 07 01 02 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 03 5E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B8 73 01 00 35 04 06 00 5C F8 6E EC 51 D3 67 F3 34 98 82 10 6F A5 [13:52:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 7F FE 47 00 0A 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B8 73 01 00 F4 03 04 00 59 09 F0 65 B6 04 01 00 00 01 3B 1D 00 73 93 11 BD [13:52:00]CommunicateWithHost err = 0 [13:52:00]CheckOFDResponse [13:52:00]1017 (14) - 77093643461234 [13:52:00]1041 (16) - 0000000000874811 [13:52:00]1040 (4) - 95160 [13:52:00]1012 (4) - 12.03.2024 07:50 [13:52:00]1206 (1) - 0 [13:52:00]OFD Sender: Remove packet 95160 [13:52:00]ProducePacketName [13:52:00]name=ofd_packets/00095160 [13:52:00]NVStorageDeleteData [13:52:00]Write to MH i2c: 01 00 00 07 30 37 [13:52:00]Write i2c OK [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: 01 [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: 01 07 00 [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: 01 07 00 07 30 00 80 00 00 00 49 0D 14 [13:52:00]RasterBufferAndPrint [13:52:00]line [13:52:00]line [13:52:00]line [13:52:00]line [13:52:00]line [13:52:00]written 0, free lines is 3407 [13:52:00]process_action close_receipt done [13:52:00]requested_data is exist [13:52:00]produce_requested_data [13:52:00]requested_item fm.sn is exist - process it [13:52:00]wFMCommunicate request_size=4 [13:52:00]MH_SAM_APDU [13:52:00]CAPDU: 80 11 00 00 [13:52:00]Write to MH i2c: E2 08 00 0E 30 80 11 00 00 00 00 00 00 B8 [13:52:00]Write i2c OK [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: E2 [13:52:00]MH_I2C_Read... [13:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:00]Read from MH i2c: E2 17 00 [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: E2 17 00 0E 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 08 [13:52:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:52:00]wFMCommunicate OK [13:52:00]requested_item fd.num is exist - process it [13:52:00]SAM_PROTO_GetFieldsCounters [13:52:00]wFMCommunicate request_size=4 [13:52:00]MH_SAM_APDU [13:52:00]CAPDU: 80 13 00 00 [13:52:00]Write to MH i2c: E2 08 00 0F 30 80 13 00 00 00 00 00 00 BB [13:52:00]Write i2c OK [13:52:00]MH_I2C_Read... [13:52:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:00]Read from MH i2c: E2 [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: E2 62 00 [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: E2 62 00 0F 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B8 73 01 00 0E 04 04 00 47 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 5A [13:52:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B8 73 01 00 0E 04 04 00 47 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:52:00]wFMCommunicate OK [13:52:00]SAM_PROTO_GetFieldsCounters done [13:52:00]requested_item shift.num is exist - process it [13:52:00]requested_item shift.opened is exist - process it [13:52:00]req_shift_opened [13:52:00]FM_GetShiftState [13:52:00]SAM_PROTO_GetShiftState [13:52:00]wFMCommunicate request_size=4 [13:52:00]MH_SAM_APDU [13:52:00]CAPDU: 80 13 01 00 [13:52:00]Write to MH i2c: E2 08 00 10 30 80 13 01 00 00 00 00 00 BD [13:52:00]Write i2c OK [13:52:00]MH_I2C_Read... [13:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:00]OFD Sender: No OFD packet to send [13:52:00]Read from MH i2c: E2 [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: E2 0E 00 [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: E2 0E 00 10 30 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 31 [13:52:00]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:52:00]wFMCommunicate OK [13:52:00]SAM_PROTO_GetShiftState done [13:52:00]FM_GetShiftState done [13:52:00]req_shift_opened done [13:52:00]requested_item shift.open_date is exist - process it [13:52:00]req_shift_open_date [13:52:00]req_shift_open_date done [13:52:00]produce_requested_data done [13:52:00]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95160,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [13:52:00]process_action_free close_receipt [13:52:00]json_value_free [13:52:00]json_value_free done [13:52:00]process_json_proto returns [13:52:00]Send response to host [13:52:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95160,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [13:52:00]free response buf [13:52:00]execute_script done [13:52:00]execute_script returns [13:52:00]free content buf [13:52:00]Sock 8.Close socket [13:52:00]Sock 8.Thread stoped [13:52:05]OFD Sender: No OFD packet to send [13:52:10]accept exits with 10 [13:52:10]New connection [13:52:10]New thread 3066957156 created [13:52:10]Thread 3066813796 joined [13:52:10]Waiting for new connection... [13:52:10] Sock 10.Parse request [13:52:10]Sock 10.Check first char [13:52:10]Sock 10.First char is OK [13:52:10]request: POST /json_proto HTTP/1.0 [13:52:10]Method: POST [13:52:10]URL: /json_proto [13:52:10]Method is POST - this is cgi request [13:52:10]url: /json_proto [13:52:10]query_string will be loaded in cgi processing [13:52:10]execute_cgi json_proto POST (null) [13:52:10]execute_cgi path=json_proto method=POST [13:52:10]POST find Content-Length [13:52:10]Host: 172.17.62.67:8080 [13:52:10]Content-Length: 677 [13:52:10]Content-Type: application/json [13:52:10] [13:52:10]POST finish read [13:52:10]Found Content-Length = 677 [13:52:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [13:52:10]execute_script... [13:52: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)196128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [13:52:10]POST & json_proto [13:52:10]process_json_proto [13:52:10]json parsed OK: [13:52:10]protocol is kg_v1.0 [13:52:10]action value=close_receipt [13:52:10]process_action close_receipt [13:52:10]cmd_close_receipt [13:52:10]MH_GetDate [13:52:10]Write to MH i2c: F0 00 00 11 30 30 [13:52:10]Write i2c OK [13:52:10]MH_I2C_Read... [13:52:10]Read from MH i2c: F0 [13:52:10]MH_I2C_Read... [13:52:10]Read from MH i2c: F0 05 00 [13:52:10]MH_I2C_Read... [13:52:10]Read from MH i2c: F0 05 00 11 30 00 10 5E F0 65 F8 [13:52:10]GetLastDocTimeStamp 1710251523 [13:52:10]current date 1710251536 [13:52:10]FM_GetShiftState [13:52:10]SAM_PROTO_GetShiftState [13:52:10]wFMCommunicate request_size=4 [13:52:10]MH_SAM_APDU [13:52:10]CAPDU: 80 13 01 00 [13:52:10]Write to MH i2c: E2 08 00 12 30 80 13 01 00 00 00 00 00 BF [13:52:10]Write i2c OK [13:52:10]MH_I2C_Read... [13:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:10]Read from MH i2c: E2 [13:52:10]MH_I2C_Read... [13:52:10]Read from MH i2c: E2 0E 00 [13:52:10]MH_I2C_Read... [13:52:10]Read from MH i2c: E2 0E 00 12 30 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 33 [13:52:10]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:52:10]wFMCommunicate OK [13:52:10]SAM_PROTO_GetShiftState done [13:52:10]FM_GetShiftState done [13:52:10]opened in 1710201976 [13:52:10]opened+sec_in_day 1710288376 [13:52:10]quantity*price = 30003 [13:52:10]sum+1 = 30004 [13:52:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 91 12.03.2024 13:52 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95161 ФПД: 69787459035957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T135216&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95161&fm=69787459035957&tin=02508201610067®Number=0000000000090555&sum=30000 [13:52:11]StoreToDocumentArchive [13:52:11]shift 327 fd 95161 [13:52:11]save to /storage/0327/doc_00095161 [13:52:11]save last doc name /storage/0327/doc_00095161 to /storage/kkm_last_doc_name [13:52:11]save OK [13:52:11]Clear old archive folders... [13:52:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:52:11]tlvbuf is B6F562D0 [13:52:11]SAM_PROTO_ClearQueue [13:52:11]wFMCommunicate request_size=4 [13:52:11]MH_SAM_APDU [13:52:11]CAPDU: 80 09 00 00 [13:52:11]Write to MH i2c: E2 08 00 1F 30 80 09 00 00 00 00 00 00 C1 [13:52:11]Write i2c OK [13:52:11]MH_I2C_Read... [13:52:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:11]Read from MH i2c: E2 [13:52:11]MH_I2C_Read... [13:52:11]Read from MH i2c: E2 03 00 [13:52:11]MH_I2C_Read... [13:52:11]Read from MH i2c: E2 03 00 1F 30 00 90 00 C3 [13:52:11]RAPDU: 90 00 [13:52:11]wFMCommunicate OK [13:52:11]SAM_PROTO_ClearQueue done [13:52:11]KKMCreateOFDPacket [13:52:11]OFDProtocolAddRootSTLVToBuf [13:52:11]FM_MakeSignedData [13:52:11]FM_MakeSignedData [13:52:11]SAM_PROTO_SignData [13:52:11]wFMCommunicate request_size=4 [13:52:11]MH_SAM_APDU [13:52:11]CAPDU: 80 0D 01 02 [13:52:11]Write to MH i2c: E2 08 00 20 30 80 0D 01 02 00 00 00 00 C9 [13:52:11]Write i2c OK [13:52:11]MH_I2C_Read... [13:52:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:11]Read from MH i2c: E2 [13:52:11]MH_I2C_Read... [13:52:11]Read from MH i2c: E2 03 00 [13:52:11]MH_I2C_Read... [13:52:11]Read from MH i2c: E2 03 00 20 30 00 90 00 C4 [13:52:11]RAPDU: 90 00 [13:52:11]wFMCommunicate OK [13:52:11]wFMCommunicate request_size=255 [13:52:11]MH_SAM_APDU [13:52:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 5B 00 00 00 F4 03 04 00 10 5E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B9 73 01 00 35 04 06 00 3F [13:52:11]Write to MH i2c: E2 02 01 21 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 5B 00 00 00 F4 03 04 00 10 5E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B9 73 01 00 35 04 06 00 3F 00 00 79 [13:52:11]Write i2c OK [13:52:11]MH_I2C_Read... [13:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:12]Read from MH i2c: E2 [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: E2 03 00 [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: E2 03 00 21 30 00 90 00 C5 [13:52:12]RAPDU: 90 00 [13:52:12]wFMCommunicate OK [13:52:12]wFMCommunicate request_size=10 [13:52:12]MH_SAM_APDU [13:52:12]CAPDU: 80 0D 02 02 05 78 A8 B4 A3 35 [13:52:12]Write to MH i2c: E2 0D 00 22 30 80 0D 02 02 05 00 78 A8 B4 A3 35 00 00 82 [13:52:12]Write i2c OK [13:52:12]MH_I2C_Read... [13:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:12]Read from MH i2c: E2 [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: E2 03 00 [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: E2 03 00 22 30 00 90 00 C6 [13:52:12]RAPDU: 90 00 [13:52:12]wFMCommunicate OK [13:52:12]wFMCommunicate request_size=4 [13:52:12]MH_SAM_APDU [13:52:12]CAPDU: 80 0D 03 02 [13:52:12]Write to MH i2c: E2 08 00 23 30 80 0D 03 02 00 00 00 00 CE [13:52:12]Write i2c OK [13:52:12]MH_I2C_Read... [13:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:12]Read from MH i2c: E2 [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: E2 0B 00 [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: E2 0B 00 23 30 00 04 12 5D CF 4B 55 AA 60 90 00 BB [13:52:12]RAPDU: 04 12 5D CF 4B 55 AA 60 90 00 [13:52:12]wFMCommunicate OK [13:52:12]SAM_PROTO_SignData done [13:52:12]FM_MakeSignedData done [13:52:12]CreateOFDProtocolMessage [13:52:12]wFMCommunicate request_size=4 [13:52:12]MH_SAM_APDU [13:52:12]CAPDU: 80 11 00 00 [13:52:12]Write to MH i2c: E2 08 00 24 30 80 11 00 00 00 00 00 00 CE [13:52:12]Write i2c OK [13:52:12]MH_I2C_Read... [13:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:12]Read from MH i2c: E2 [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: E2 17 00 [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: E2 17 00 24 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1E [13:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:52:12]wFMCommunicate OK [13:52:12]CreateOFDProtocolMessage done [13:52:12]OFDSenderStorePacket 95161 [13:52:12]StoreOFDPacket docnum=95161 [13:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 DA 5B 07 01 FC DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 5B 00 00 00 F4 03 04 00 10 5E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B9 73 01 00 35 04 06 00 3F 78 A8 B4 A3 35 04 12 5D CF 4B 55 AA 60 [13:52:12]CheckFolder [13:52:12]dirname=/storage/ofd_packets [13:52:12]CheckFolder done [13:52:12]ProducePacketName [13:52:12]name=ofd_packets/00095161 [13:52:12]NVStorageSaveData ofd_packets/00095161 [13:52:12]File name is /storage/ofd_packets/00095161 [13:52:12]Write 301 bytes [13:52:12]NVStorageSaveData done [13:52:12]OFDSenderStorePacket done [13:52:12]KKMCreateOFDPacket done [13:52:12]NVStorageSaveData kkm_last_timestamp [13:52:12]File name is /storage/kkm_last_timestamp [13:52:12]Write 4 bytes [13:52:12]NVStorageSaveData done [13:52:12]ExternCall_PrintAddStr [13:52:12]wPrintStart [13:52:12]Write to MH i2c: 01 00 00 25 30 55 [13:52:12]Write i2c OK [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: 01 [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: 01 07 00 [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: 01 07 00 25 30 00 80 00 00 00 FF 0F EA [13:52:12]RasterBufferAndPrint [13:52:12]line Счет N : (1)196128 [13:52:12]line ИНН: 02508201610067 [13:52:12]line Контрольно-Кассовый Чек [13:52:12]line ПРОДАЖА [13:52:12]line ТРК (МРК, ГНК) : 12 [13:52:12]line Товар: 2710124130 [13:52:12]line Аи-92-К-5 [13:52:12]line 4.770 * 62.90 [13:52:12]line = 300.03 [13:52:12]line НДС 12% НСП 1% [13:52:12]line > о реализуемом товаре [13:52:12]line ОКРУГЛЕНИЕ: -0.03 [13:52:12]line ИТОГО: 300.00 [13:52:12]line Внесено: 300.00 [13:52:12]line СДАЧА: 0.00 [13:52:12]line НСП 1% : 2.65 [13:52:12]line НДС 12% : 31.86 [13:52:12]line Наличными: 300.00 [13:52:12]line Безнал.: 0.00 [13:52:12]line Место: АЗС № 6 "Партнер Нефть" [13:52:12]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:52:12]line СНО: Общий режим [13:52:12]line Чек 91 12.03.2024 13:52 [13:52:12]line Смена: 327 ФФД: 1.0 [13:52:12]line ЗНМ: 0300000009 [13:52:12]line РНМ: 0000000000090555 [13:52:12]line Версия ККМ: 001 [13:52:12]line ФМ: 0000000000874811 [13:52:12]line ФД: 95161 [13:52:12]line ФПД: 69787459035957 [13:52:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T135216&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95161&fm=69787459035957&tin=02508201610067®Number=0000000000090555&sum=30000 [13:52:12]OFD Sender: Processing packet 95161 [packets to send 30, broken 29] [13:52:12]ProducePacketName [13:52:12]name=ofd_packets/00095161 [13:52:12]OFD Sender: To server: pG, [13:52:12]CommunicateWithHost lk.salyk.kg:30040 [13:52:12]ConnectInit lk.salyk.kg [13:52:12]written 0, free lines is 4095 [13:52:12]Connected sock=9 [13:52:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 DA 5B 07 01 FC DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 5B 00 00 00 F4 03 04 00 10 5E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B9 73 01 00 35 04 06 00 3F 78 A8 B4 A3 35 04 12 5D CF 4B 55 AA 60 [13:52:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D4 74 47 00 C0 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B9 73 01 00 F4 03 04 00 65 09 F0 65 B6 04 01 00 00 60 6A DA B9 C9 4B D7 88 [13:52:12]CommunicateWithHost err = 0 [13:52:12]CheckOFDResponse [13:52:12]1017 (14) - 77093643461234 [13:52:12]1041 (16) - 0000000000874811 [13:52:12]1040 (4) - 95161 [13:52:12]1012 (4) - 12.03.2024 07:51 [13:52:12]1206 (1) - 0 [13:52:12]OFD Sender: Remove packet 95161 [13:52:12]ProducePacketName [13:52:12]name=ofd_packets/00095161 [13:52:12]NVStorageDeleteData [13:52:12]Write to MH i2c: 01 00 00 50 30 80 [13:52:12]Write i2c OK [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: 01 [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: 01 07 00 [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: 01 07 00 50 30 00 80 00 00 00 49 0D 5D [13:52:12]RasterBufferAndPrint [13:52:12]line [13:52:12]line [13:52:12]line [13:52:12]line [13:52:12]line [13:52:12]written 0, free lines is 3411 [13:52:12]process_action close_receipt done [13:52:12]requested_data is exist [13:52:12]produce_requested_data [13:52:12]requested_item fm.sn is exist - process it [13:52:12]wFMCommunicate request_size=4 [13:52:12]MH_SAM_APDU [13:52:12]CAPDU: 80 11 00 00 [13:52:12]Write to MH i2c: E2 08 00 57 30 80 11 00 00 00 00 00 00 01 [13:52:12]Write i2c OK [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: E2 [13:52:12]MH_I2C_Read... [13:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:12]Read from MH i2c: E2 17 00 [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: E2 17 00 57 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 51 [13:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:52:12]wFMCommunicate OK [13:52:12]requested_item fd.num is exist - process it [13:52:12]SAM_PROTO_GetFieldsCounters [13:52:12]wFMCommunicate request_size=4 [13:52:12]MH_SAM_APDU [13:52:12]CAPDU: 80 13 00 00 [13:52:12]Write to MH i2c: E2 08 00 58 30 80 13 00 00 00 00 00 00 04 [13:52:12]Write i2c OK [13:52:12]MH_I2C_Read... [13:52:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:13]Read from MH i2c: E2 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 62 00 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 62 00 58 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B9 73 01 00 0E 04 04 00 47 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 A7 [13:52:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B9 73 01 00 0E 04 04 00 47 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:52:13]wFMCommunicate OK [13:52:13]SAM_PROTO_GetFieldsCounters done [13:52:13]requested_item shift.num is exist - process it [13:52:13]requested_item shift.opened is exist - process it [13:52:13]req_shift_opened [13:52:13]FM_GetShiftState [13:52:13]SAM_PROTO_GetShiftState [13:52:13]wFMCommunicate request_size=4 [13:52:13]MH_SAM_APDU [13:52:13]CAPDU: 80 13 01 00 [13:52:13]Write to MH i2c: E2 08 00 59 30 80 13 01 00 00 00 00 00 06 [13:52:13]Write i2c OK [13:52:13]MH_I2C_Read... [13:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:13]Read from MH i2c: E2 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 0E 00 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 0E 00 59 30 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 7A [13:52:13]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:52:13]wFMCommunicate OK [13:52:13]SAM_PROTO_GetShiftState done [13:52:13]FM_GetShiftState done [13:52:13]req_shift_opened done [13:52:13]requested_item shift.open_date is exist - process it [13:52:13]req_shift_open_date [13:52:13]req_shift_open_date done [13:52:13]produce_requested_data done [13:52:13]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95161,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [13:52:13]process_action_free close_receipt [13:52:13]json_value_free [13:52:13]json_value_free done [13:52:13]process_json_proto returns [13:52:13]Send response to host [13:52:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95161,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [13:52:13]free response buf [13:52:13]execute_script done [13:52:13]execute_script returns [13:52:13]free content buf [13:52:13]Sock 10.Close socket [13:52:13]Sock 10.Thread stoped [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:10]accept exits with 8 [13:56:10]New connection [13:56:10]New thread 3066813796 created [13:56:10]Thread 3066957156 joined [13:56:10]Waiting for new connection... [13:56:10] Sock 8.Parse request [13:56:10]Sock 8.Check first char [13:56:10]Sock 8.First char is OK [13:56:10]request: POST /json_proto HTTP/1.0 [13:56:10]Method: POST [13:56:10]URL: /json_proto [13:56:10]Method is POST - this is cgi request [13:56:10]url: /json_proto [13:56:10]query_string will be loaded in cgi processing [13:56:10]execute_cgi json_proto POST (null) [13:56:10]execute_cgi path=json_proto method=POST [13:56:10]POST find Content-Length [13:56:10]Host: 172.17.62.67:8080 [13:56:10]Content-Length: 1211 [13:56:10]Content-Type: application/json [13:56:10] [13:56:10]POST finish read [13:56:10]Found Content-Length = 1211 [13:56: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196129\u000A12.03.2024 13:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.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\u000A03302\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:10]execute_script... [13:56: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196129\u000A12.03.2024 13:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.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\u000A03302\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:10]POST & json_proto [13:56:10]process_json_proto [13:56:10]json parsed OK: [13:56:10]protocol is kg_v1.0 [13:56:10]action value=print_text [13:56:10]process_action print_text [13:56:10]cmd_print_text [13:56:10]ExternCall_PrintAddStr [13:56:10]wPrintStart [13:56:10]Write to MH i2c: 01 00 00 5A 30 8A [13:56:10]Write i2c OK [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: 01 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: 01 07 00 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: 01 07 00 5A 30 00 80 00 00 00 FF 0F 1F [13:56:10]RasterBufferAndPrint [13:56:10]line *****ТОВАРНЫЙ ЧЕК***** [13:56:10]line АЗС 6 [13:56:10]line Партнер нефть [13:56:10]line 02508201610067 [13:56:10]line Кассир : Мыктыбекова И. [13:56:10]line Счет N : (1)196129 [13:56:10]line 12.03.2024 13:50 [13:56:10]line ПРОДАЖА [13:56:10]line ТРК (МРК, ГНК): 42 [13:56:10]line Вид ГСМ : 2710124130 [13:56:10]line Аи-92-К-5 [13:56:10]line 30.000 x 62.90 [13:56:10]line ИТОГ: 1887.00 [13:56:10]line Тип оплаты: Талоны: Топливная Карта [13:56:10]line 03302 [13:56:10]line ______________________ [13:56:10]line (подпись) [13:56:10]written 0, free lines is 4095 [13:56:10]Write to MH i2c: 01 00 00 6E 30 9E [13:56:10]Write i2c OK [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: 01 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: 01 07 00 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: 01 07 00 6E 30 00 80 00 00 00 64 0E 97 [13:56:10]RasterBufferAndPrint [13:56:10]line [13:56:10]line [13:56:10]line [13:56:10]line [13:56:10]line [13:56:10]written 0, free lines is 3688 [13:56:10]process_action print_text done [13:56:10]requested_data is exist [13:56:10]produce_requested_data [13:56:10]requested_item fm.sn is exist - process it [13:56:10]wFMCommunicate request_size=4 [13:56:10]MH_SAM_APDU [13:56:10]CAPDU: 80 11 00 00 [13:56:10]Write to MH i2c: E2 08 00 75 30 80 11 00 00 00 00 00 00 1F [13:56:10]Write i2c OK [13:56:10]MH_I2C_Read... [13:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:10]Read from MH i2c: E2 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 17 00 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 17 00 75 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6F [13:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:56:10]wFMCommunicate OK [13:56:10]requested_item fd.num is exist - process it [13:56:10]SAM_PROTO_GetFieldsCounters [13:56:10]wFMCommunicate request_size=4 [13:56:10]MH_SAM_APDU [13:56:10]CAPDU: 80 13 00 00 [13:56:10]Write to MH i2c: E2 08 00 76 30 80 13 00 00 00 00 00 00 22 [13:56:10]Write i2c OK [13:56:10]MH_I2C_Read... [13:56:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:10]Read from MH i2c: E2 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 62 00 [13:56:10]MH_I2C_Read... [13:56:11]Read from MH i2c: E2 62 00 76 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B9 73 01 00 0E 04 04 00 47 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 C5 [13:56:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B9 73 01 00 0E 04 04 00 47 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:56:11]wFMCommunicate OK [13:56:11]SAM_PROTO_GetFieldsCounters done [13:56:11]requested_item shift.num is exist - process it [13:56:11]requested_item shift.opened is exist - process it [13:56:11]req_shift_opened [13:56:11]FM_GetShiftState [13:56:11]SAM_PROTO_GetShiftState [13:56:11]wFMCommunicate request_size=4 [13:56:11]MH_SAM_APDU [13:56:11]CAPDU: 80 13 01 00 [13:56:11]Write to MH i2c: E2 08 00 77 30 80 13 01 00 00 00 00 00 24 [13:56:11]Write i2c OK [13:56:11]MH_I2C_Read... [13:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:11]Read from MH i2c: E2 [13:56:11]MH_I2C_Read... [13:56:11]Read from MH i2c: E2 0E 00 [13:56:11]MH_I2C_Read... [13:56:11]Read from MH i2c: E2 0E 00 77 30 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 98 [13:56:11]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:56:11]wFMCommunicate OK [13:56:11]SAM_PROTO_GetShiftState done [13:56:11]FM_GetShiftState done [13:56:11]req_shift_opened done [13:56:11]requested_item shift.open_date is exist - process it [13:56:11]req_shift_open_date [13:56:11]req_shift_open_date done [13:56:11]produce_requested_data done [13:56:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95161,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [13:56:11]process_action_free print_text [13:56:11]json_value_free [13:56:11]json_value_free done [13:56:11]process_json_proto returns [13:56:11]Send response to host [13:56:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95161,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [13:56:11]free response buf [13:56:11]execute_script done [13:56:11]execute_script returns [13:56:11]free content buf [13:56:11]Sock 8.Close socket [13:56:11]Sock 8.Thread stoped [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:21]int [13:56:21]Write to MH i2c: 01 00 00 78 30 A8 [13:56:21]Write i2c OK [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: 01 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: 01 07 00 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: 01 07 00 78 30 00 81 00 00 00 FF 0F 3E [13:56:21]state=0 [13:56:21]No paper [13:56:21]int [13:56:21]Write to MH i2c: 01 00 00 79 30 A9 [13:56:21]Write i2c OK [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: 01 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: 01 07 00 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: 01 07 00 79 30 00 83 00 00 00 FF 0F 41 [13:56:21]state=0 [13:56:21]No paper [13:56:21]Cover opened [13:56:23]OFD Sender: No OFD packet to send [13:56:26]Write to MH i2c: 01 00 00 7A 30 AA [13:56:26]Write i2c OK [13:56:26]MH_I2C_Read... [13:56:26]Read from MH i2c: 01 [13:56:26]MH_I2C_Read... [13:56:26]Read from MH i2c: 01 07 00 [13:56:26]MH_I2C_Read... [13:56:26]Read from MH i2c: 01 07 00 7A 30 00 83 00 00 00 FF 0F 42 [13:56:26]state=3 [13:56:26]No paper [13:56:26]Cover opened [13:56:28]OFD Sender: No OFD packet to send [13:56:31]Write to MH i2c: 01 00 00 7B 30 AB [13:56:31]Write i2c OK [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: 01 [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: 01 07 00 [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: 01 07 00 7B 30 00 83 00 00 00 FF 0F 43 [13:56:31]state=3 [13:56:31]No paper [13:56:31]Cover opened [13:56:33]OFD Sender: No OFD packet to send [13:56:36]Write to MH i2c: 01 00 00 7C 30 AC [13:56:36]Write i2c OK [13:56:36]MH_I2C_Read... [13:56:36]Read from MH i2c: 01 [13:56:36]MH_I2C_Read... [13:56:36]Read from MH i2c: 01 07 00 [13:56:36]MH_I2C_Read... [13:56:36]Read from MH i2c: 01 07 00 7C 30 00 83 00 00 00 FF 0F 44 [13:56:36]state=3 [13:56:36]No paper [13:56:36]Cover opened [13:56:38]OFD Sender: No OFD packet to send [13:56:41]Write to MH i2c: 01 00 00 7D 30 AD [13:56:41]Write i2c OK [13:56:41]MH_I2C_Read... [13:56:41]Read from MH i2c: 01 [13:56:41]MH_I2C_Read... [13:56:41]Read from MH i2c: 01 07 00 [13:56:41]MH_I2C_Read... [13:56:41]Read from MH i2c: 01 07 00 7D 30 00 83 00 00 00 FF 0F 45 [13:56:41]state=3 [13:56:41]No paper [13:56:41]Cover opened [13:56:43]OFD Sender: No OFD packet to send [13:56:46]Write to MH i2c: 01 00 00 7E 30 AE [13:56:46]Write i2c OK [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: 01 [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: 01 07 00 [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: 01 07 00 7E 30 00 83 00 00 00 FF 0F 46 [13:56:46]state=3 [13:56:46]No paper [13:56:46]Cover opened [13:56:48]OFD Sender: No OFD packet to send [13:56:51]Write to MH i2c: 01 00 00 7F 30 AF [13:56:51]Write i2c OK [13:56:51]MH_I2C_Read... [13:56:51]Read from MH i2c: 01 [13:56:51]MH_I2C_Read... [13:56:51]Read from MH i2c: 01 07 00 [13:56:51]MH_I2C_Read... [13:56:51]Read from MH i2c: 01 07 00 7F 30 00 83 00 00 00 FF 0F 47 [13:56:51]state=3 [13:56:51]No paper [13:56:51]Cover opened [13:56:53]OFD Sender: No OFD packet to send [13:56:56]Write to MH i2c: 01 00 00 80 30 B0 [13:56:56]Write i2c OK [13:56:56]MH_I2C_Read... [13:56:56]Read from MH i2c: 01 [13:56:56]MH_I2C_Read... [13:56:56]Read from MH i2c: 01 07 00 [13:56:56]MH_I2C_Read... [13:56:56]Read from MH i2c: 01 07 00 80 30 00 83 00 00 00 FF 0F 48 [13:56:56]state=3 [13:56:56]No paper [13:56:56]Cover opened [13:56:57]int [13:56:57]Write to MH i2c: 01 00 00 81 30 B1 [13:56:57]Write i2c OK [13:56:57]MH_I2C_Read... [13:56:57]Read from MH i2c: 01 [13:56:57]MH_I2C_Read... [13:56:57]Read from MH i2c: 01 07 00 [13:56:57]MH_I2C_Read... [13:56:57]Read from MH i2c: 01 07 00 81 30 00 81 00 00 00 FF 0F 47 [13:56:57]state=3 [13:56:57]No paper [13:56:57]Cover closed [13:56:57]int [13:56:57]Write to MH i2c: 01 00 00 82 30 B2 [13:56:57]Write i2c OK [13:56:57]MH_I2C_Read... [13:56:57]Read from MH i2c: 01 [13:56:57]MH_I2C_Read... [13:56:57]Read from MH i2c: 01 07 00 [13:56:57]MH_I2C_Read... [13:56:57]Read from MH i2c: 01 07 00 82 30 00 80 00 00 00 FF 0F 47 [13:56:57]state=0 [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:46]accept exits with 9 [13:58:46]New connection [13:58:46]New thread 3066957156 created [13:58:46]Thread 3066813796 joined [13:58:46]Waiting for new connection... [13:58:46] Sock 9.Parse request [13:58:46]Sock 9.Check first char [13:58:46]Sock 9.First char is OK [13:58:46]request: POST /json_proto HTTP/1.0 [13:58:46]Method: POST [13:58:46]URL: /json_proto [13:58:46]Method is POST - this is cgi request [13:58:46]url: /json_proto [13:58:46]query_string will be loaded in cgi processing [13:58:46]execute_cgi json_proto POST (null) [13:58:46]execute_cgi path=json_proto method=POST [13:58:46]POST find Content-Length [13:58:46]Host: 172.17.62.67:8080 [13:58:46]Content-Length: 677 [13:58:46]Content-Type: application/json [13:58:46] [13:58:46]POST finish read [13:58:46]Found Content-Length = 677 [13:58:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:58:46]execute_script... [13:58:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:58:46]POST & json_proto [13:58:46]process_json_proto [13:58:46]json parsed OK: [13:58:46]protocol is kg_v1.0 [13:58:46]action value=close_receipt [13:58:46]process_action close_receipt [13:58:46]cmd_close_receipt [13:58:46]MH_GetDate [13:58:46]Write to MH i2c: F0 00 00 83 30 A2 [13:58:46]Write i2c OK [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: F0 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: F0 05 00 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: F0 05 00 83 30 00 9B 5F F0 65 F6 [13:58:46]GetLastDocTimeStamp 1710251536 [13:58:46]current date 1710251931 [13:58:46]FM_GetShiftState [13:58:46]SAM_PROTO_GetShiftState [13:58:46]wFMCommunicate request_size=4 [13:58:46]MH_SAM_APDU [13:58:46]CAPDU: 80 13 01 00 [13:58:46]Write to MH i2c: E2 08 00 84 30 80 13 01 00 00 00 00 00 31 [13:58:46]Write i2c OK [13:58:46]MH_I2C_Read... [13:58:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:46]Read from MH i2c: E2 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: E2 0E 00 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: E2 0E 00 84 30 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A5 [13:58:46]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:58:46]wFMCommunicate OK [13:58:46]SAM_PROTO_GetShiftState done [13:58:46]FM_GetShiftState done [13:58:46]opened in 1710201976 [13:58:46]opened+sec_in_day 1710288376 [13:58:46]quantity*price = 50005 [13:58:46]sum+1 = 50007 [13:58:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 92 12.03.2024 13:58 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95162 ФПД: 269889673858914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T135851&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95162&fm=269889673858914&tin=02508201610067®Number=0000000000090555&sum=50000 [13:58:47]StoreToDocumentArchive [13:58:47]shift 327 fd 95162 [13:58:47]save to /storage/0327/doc_00095162 [13:58:47]save last doc name /storage/0327/doc_00095162 to /storage/kkm_last_doc_name [13:58:47]save OK [13:58:47]Clear old archive folders... [13:58:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:47]tlvbuf is 01B370E0 [13:58:47]SAM_PROTO_ClearQueue [13:58:47]wFMCommunicate request_size=4 [13:58:47]MH_SAM_APDU [13:58:47]CAPDU: 80 09 00 00 [13:58:47]Write to MH i2c: E2 08 00 91 30 80 09 00 00 00 00 00 00 33 [13:58:47]Write i2c OK [13:58:47]MH_I2C_Read... [13:58:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:47]Read from MH i2c: E2 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 91 30 00 90 00 35 [13:58:47]RAPDU: 90 00 [13:58:47]wFMCommunicate OK [13:58:47]SAM_PROTO_ClearQueue done [13:58:47]KKMCreateOFDPacket [13:58:47]OFDProtocolAddRootSTLVToBuf [13:58:47]FM_MakeSignedData [13:58:47]FM_MakeSignedData [13:58:47]SAM_PROTO_SignData [13:58:47]wFMCommunicate request_size=4 [13:58:47]MH_SAM_APDU [13:58:47]CAPDU: 80 0D 01 02 [13:58:47]Write to MH i2c: E2 08 00 92 30 80 0D 01 02 00 00 00 00 3B [13:58:47]Write i2c OK [13:58:47]MH_I2C_Read... [13:58:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:47]Read from MH i2c: E2 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 92 30 00 90 00 36 [13:58:47]RAPDU: 90 00 [13:58:47]wFMCommunicate OK [13:58:47]wFMCommunicate request_size=255 [13:58:47]MH_SAM_APDU [13:58:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 9B 5F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BA 73 01 00 35 04 06 00 F5 [13:58:47]Write to MH i2c: E2 02 01 93 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 9B 5F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BA 73 01 00 35 04 06 00 F5 00 00 FA [13:58:47]Write i2c OK [13:58:47]MH_I2C_Read... [13:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:47]Read from MH i2c: E2 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 93 30 00 90 00 37 [13:58:47]RAPDU: 90 00 [13:58:47]wFMCommunicate OK [13:58:47]wFMCommunicate request_size=10 [13:58:47]MH_SAM_APDU [13:58:47]CAPDU: 80 0D 02 02 05 76 96 23 8F 62 [13:58:47]Write to MH i2c: E2 0D 00 94 30 80 0D 02 02 05 00 76 96 23 8F 62 00 00 68 [13:58:47]Write i2c OK [13:58:47]MH_I2C_Read... [13:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:47]Read from MH i2c: E2 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 94 30 00 90 00 38 [13:58:47]RAPDU: 90 00 [13:58:47]wFMCommunicate OK [13:58:47]wFMCommunicate request_size=4 [13:58:47]MH_SAM_APDU [13:58:47]CAPDU: 80 0D 03 02 [13:58:47]Write to MH i2c: E2 08 00 95 30 80 0D 03 02 00 00 00 00 40 [13:58:47]Write i2c OK [13:58:47]MH_I2C_Read... [13:58:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:47]Read from MH i2c: E2 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 0B 00 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 0B 00 95 30 00 3E 5B 3D 1B 53 1E 2F C8 90 00 9A [13:58:47]RAPDU: 3E 5B 3D 1B 53 1E 2F C8 90 00 [13:58:47]wFMCommunicate OK [13:58:47]SAM_PROTO_SignData done [13:58:47]FM_MakeSignedData done [13:58:47]CreateOFDProtocolMessage [13:58:47]wFMCommunicate request_size=4 [13:58:47]MH_SAM_APDU [13:58:47]CAPDU: 80 11 00 00 [13:58:47]Write to MH i2c: E2 08 00 96 30 80 11 00 00 00 00 00 00 40 [13:58:47]Write i2c OK [13:58:47]MH_I2C_Read... [13:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:48]Read from MH i2c: E2 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 17 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 17 00 96 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 90 [13:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:58:48]wFMCommunicate OK [13:58:48]CreateOFDProtocolMessage done [13:58:48]OFDSenderStorePacket 95162 [13:58:48]StoreOFDPacket docnum=95162 [13:58:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 09 74 07 01 01 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 9B 5F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BA 73 01 00 35 04 06 00 F5 76 96 23 8F 62 3E 5B 3D 1B 53 1E 2F C8 [13:58:48]CheckFolder [13:58:48]dirname=/storage/ofd_packets [13:58:48]CheckFolder done [13:58:48]ProducePacketName [13:58:48]name=ofd_packets/00095162 [13:58:48]NVStorageSaveData ofd_packets/00095162 [13:58:48]File name is /storage/ofd_packets/00095162 [13:58:48]Write 301 bytes [13:58:48]NVStorageSaveData done [13:58:48]OFDSenderStorePacket done [13:58:48]KKMCreateOFDPacket done [13:58:48]NVStorageSaveData kkm_last_timestamp [13:58:48]File name is /storage/kkm_last_timestamp [13:58:48]Write 4 bytes [13:58:48]NVStorageSaveData done [13:58:48]ExternCall_PrintAddStr [13:58:48]wPrintStart [13:58:48]Write to MH i2c: 01 00 00 97 30 C7 [13:58:48]OFD Sender: Processing packet 95162 [packets to send 30, broken 29] [13:58:48]ProducePacketName [13:58:48]name=ofd_packets/00095162 [13:58:48]OFD Sender: To server: pG, [13:58:48]CommunicateWithHost lk.salyk.kg:30040 [13:58:48]ConnectInit lk.salyk.kg [13:58:48]Write i2c OK [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: 01 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: 01 07 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: 01 07 00 97 30 00 80 00 00 00 FF 0F 5C [13:58:48]RasterBufferAndPrint [13:58:48]line Счет N : (1)196130 [13:58:48]line ИНН: 02508201610067 [13:58:48]line Контрольно-Кассовый Чек [13:58:48]line ПРОДАЖА [13:58:48]line ТРК (МРК, ГНК) : 42 [13:58:48]line Товар: 2710124130 [13:58:48]line Аи-92-К-5 [13:58:48]line 7.950 * 62.90 [13:58:48]line = 500.06 [13:58:48]line НДС 12% НСП 1% [13:58:48]line > о реализуемом товаре [13:58:48]line ОКРУГЛЕНИЕ: -0.06 [13:58:48]line ИТОГО: 500.00 [13:58:48]line Внесено: 500.00 [13:58:48]line СДАЧА: 0.00 [13:58:48]line НСП 1% : 4.42 [13:58:48]line НДС 12% : 53.10 [13:58:48]line Наличными: 500.00 [13:58:48]line Безнал.: 0.00 [13:58:48]line Место: АЗС № 6 "Партнер Нефть" [13:58:48]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:58:48]line СНО: Общий режим [13:58:48]line Чек 92 12.03.2024 13:58 [13:58:48]line Смена: 327 ФФД: 1.0 [13:58:48]line ЗНМ: 0300000009 [13:58:48]line РНМ: 0000000000090555 [13:58:48]line Версия ККМ: 001 [13:58:48]line ФМ: 0000000000874811 [13:58:48]line ФД: 95162 [13:58:48]line ФПД: 269889673858914 [13:58:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T135851&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95162&fm=269889673858914&tin=02508201610067®Number=0000000000090555&sum=50000 [13:58:48]Connected sock=10 [13:58:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 09 74 07 01 01 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 9B 5F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BA 73 01 00 35 04 06 00 F5 76 96 23 8F 62 3E 5B 3D 1B 53 1E 2F C8 [13:58:48]written 0, free lines is 4095 [13:58:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 A1 31 47 00 EA 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BA 73 01 00 F4 03 04 00 F1 0A F0 65 B6 04 01 00 00 2D 49 C0 83 DD 9C 71 F9 [13:58:48]CommunicateWithHost err = 0 [13:58:48]CheckOFDResponse [13:58:48]1017 (14) - 77093643461234 [13:58:48]1041 (16) - 0000000000874811 [13:58:48]1040 (4) - 95162 [13:58:48]1012 (4) - 12.03.2024 07:57 [13:58:48]1206 (1) - 0 [13:58:48]OFD Sender: Remove packet 95162 [13:58:48]ProducePacketName [13:58:48]name=ofd_packets/00095162 [13:58:48]NVStorageDeleteData [13:58:48]Write to MH i2c: 01 00 00 C2 30 F2 [13:58:48]Write i2c OK [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: 01 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: 01 07 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: 01 07 00 C2 30 00 80 00 00 00 49 0D CF [13:58:48]RasterBufferAndPrint [13:58:48]line [13:58:48]line [13:58:48]line [13:58:48]line [13:58:48]line [13:58:48]written 0, free lines is 3407 [13:58:48]process_action close_receipt done [13:58:48]requested_data is exist [13:58:48]produce_requested_data [13:58:48]requested_item fm.sn is exist - process it [13:58:48]wFMCommunicate request_size=4 [13:58:48]MH_SAM_APDU [13:58:48]CAPDU: 80 11 00 00 [13:58:48]Write to MH i2c: E2 08 00 C9 30 80 11 00 00 00 00 00 00 73 [13:58:48]Write i2c OK [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 [13:58:48]MH_I2C_Read... [13:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:48]Read from MH i2c: E2 17 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 17 00 C9 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C3 [13:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:58:48]wFMCommunicate OK [13:58:48]requested_item fd.num is exist - process it [13:58:48]SAM_PROTO_GetFieldsCounters [13:58:48]wFMCommunicate request_size=4 [13:58:48]MH_SAM_APDU [13:58:48]CAPDU: 80 13 00 00 [13:58:48]Write to MH i2c: E2 08 00 CA 30 80 13 00 00 00 00 00 00 76 [13:58:48]Write i2c OK [13:58:48]MH_I2C_Read... [13:58:49]OFD Sender: No OFD packet to send [13:58:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:49]Read from MH i2c: E2 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 62 00 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 62 00 CA 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BA 73 01 00 0E 04 04 00 47 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 1D [13:58:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BA 73 01 00 0E 04 04 00 47 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:58:49]wFMCommunicate OK [13:58:49]SAM_PROTO_GetFieldsCounters done [13:58:49]requested_item shift.num is exist - process it [13:58:49]requested_item shift.opened is exist - process it [13:58:49]req_shift_opened [13:58:49]FM_GetShiftState [13:58:49]SAM_PROTO_GetShiftState [13:58:49]wFMCommunicate request_size=4 [13:58:49]MH_SAM_APDU [13:58:49]CAPDU: 80 13 01 00 [13:58:49]Write to MH i2c: E2 08 00 CB 30 80 13 01 00 00 00 00 00 78 [13:58:49]Write i2c OK [13:58:49]MH_I2C_Read... [13:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:49]Read from MH i2c: E2 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 0E 00 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 0E 00 CB 30 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 EC [13:58:49]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [13:58:49]wFMCommunicate OK [13:58:49]SAM_PROTO_GetShiftState done [13:58:49]FM_GetShiftState done [13:58:49]req_shift_opened done [13:58:49]requested_item shift.open_date is exist - process it [13:58:49]req_shift_open_date [13:58:49]req_shift_open_date done [13:58:49]produce_requested_data done [13:58:49]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95162,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [13:58:49]process_action_free close_receipt [13:58:49]json_value_free [13:58:49]json_value_free done [13:58:49]process_json_proto returns [13:58:49]Send response to host [13:58:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95162,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [13:58:49]free response buf [13:58:49]execute_script done [13:58:49]execute_script returns [13:58:49]free content buf [13:58:49]Sock 9.Close socket [13:58:49]Sock 9.Thread stoped [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:05]accept exits with 8 [14:00:05]New connection [14:00:05]New thread 3066813796 created [14:00:05]Thread 3066957156 joined [14:00:05]Waiting for new connection... [14:00:05] Sock 8.Parse request [14:00:05]Sock 8.Check first char [14:00:05]Sock 8.First char is OK [14:00:05]request: POST /json_proto HTTP/1.0 [14:00:05]Method: POST [14:00:05]URL: /json_proto [14:00:05]Method is POST - this is cgi request [14:00:05]url: /json_proto [14:00:05]query_string will be loaded in cgi processing [14:00:05]execute_cgi json_proto POST (null) [14:00:05]execute_cgi path=json_proto method=POST [14:00:05]POST find Content-Length [14:00:05]Host: 172.17.62.67:8080 [14:00:05]Content-Length: 805 [14:00:05]Content-Type: application/json [14:00:05] [14:00:05]POST finish read [14:00:05]Found Content-Length = 805 [14:00:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:05]execute_script... [14:00: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)196131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:05]POST & json_proto [14:00:05]process_json_proto [14:00:05]json parsed OK: [14:00:05]protocol is kg_v1.0 [14:00:05]action value=close_receipt [14:00:05]process_action close_receipt [14:00:05]cmd_close_receipt [14:00:05]MH_GetDate [14:00:05]Write to MH i2c: F0 00 00 CC 30 EB [14:00:05]Write i2c OK [14:00:05]MH_I2C_Read... [14:00:05]Read from MH i2c: F0 [14:00:05]MH_I2C_Read... [14:00:05]Read from MH i2c: F0 05 00 [14:00:05]MH_I2C_Read... [14:00:05]Read from MH i2c: F0 05 00 CC 30 00 EB 5F F0 65 8F [14:00:05]GetLastDocTimeStamp 1710251931 [14:00:05]current date 1710252011 [14:00:05]FM_GetShiftState [14:00:05]SAM_PROTO_GetShiftState [14:00:05]wFMCommunicate request_size=4 [14:00:05]MH_SAM_APDU [14:00:05]CAPDU: 80 13 01 00 [14:00:05]Write to MH i2c: E2 08 00 CD 30 80 13 01 00 00 00 00 00 7A [14:00:05]Write i2c OK [14:00:05]MH_I2C_Read... [14:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:05]Read from MH i2c: E2 [14:00:05]MH_I2C_Read... [14:00:05]Read from MH i2c: E2 0E 00 [14:00:05]MH_I2C_Read... [14:00:05]Read from MH i2c: E2 0E 00 CD 30 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 EE [14:00:05]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:00:05]wFMCommunicate OK [14:00:05]SAM_PROTO_GetShiftState done [14:00:05]FM_GetShiftState done [14:00:05]opened in 1710201976 [14:00:05]opened+sec_in_day 1710288376 [14:00:05]quantity*price = 30003 [14:00:05]sum+1 = 30004 [14:00:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.03 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.03 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 93 12.03.2024 14:00 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95163 ФПД: 5758876719314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T140011&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95163&fm=5758876719314&tin=02508201610067®Number=0000000000090555&sum=30003 [14:00:06]StoreToDocumentArchive [14:00:06]shift 327 fd 95163 [14:00:06]save to /storage/0327/doc_00095163 [14:00:06]save last doc name /storage/0327/doc_00095163 to /storage/kkm_last_doc_name [14:00:06]save OK [14:00:06]Clear old archive folders... [14:00:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:06]tlvbuf is 01A9AD00 [14:00:06]SAM_PROTO_ClearQueue [14:00:06]wFMCommunicate request_size=4 [14:00:06]MH_SAM_APDU [14:00:06]CAPDU: 80 09 00 00 [14:00:06]Write to MH i2c: E2 08 00 DA 30 80 09 00 00 00 00 00 00 7C [14:00:06]Write i2c OK [14:00:06]MH_I2C_Read... [14:00:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:06]Read from MH i2c: E2 [14:00:06]MH_I2C_Read... [14:00:06]Read from MH i2c: E2 03 00 [14:00:06]MH_I2C_Read... [14:00:06]Read from MH i2c: E2 03 00 DA 30 00 90 00 7E [14:00:06]RAPDU: 90 00 [14:00:06]wFMCommunicate OK [14:00:06]SAM_PROTO_ClearQueue done [14:00:06]KKMCreateOFDPacket [14:00:06]OFDProtocolAddRootSTLVToBuf [14:00:06]FM_MakeSignedData [14:00:06]FM_MakeSignedData [14:00:06]SAM_PROTO_SignData [14:00:06]wFMCommunicate request_size=4 [14:00:06]MH_SAM_APDU [14:00:06]CAPDU: 80 0D 01 02 [14:00:06]Write to MH i2c: E2 08 00 DB 30 80 0D 01 02 00 00 00 00 84 [14:00:06]Write i2c OK [14:00:06]MH_I2C_Read... [14:00:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:06]Read from MH i2c: E2 [14:00:06]MH_I2C_Read... [14:00:06]Read from MH i2c: E2 03 00 [14:00:06]MH_I2C_Read... [14:00:06]Read from MH i2c: E2 03 00 DB 30 00 90 00 7F [14:00:06]RAPDU: 90 00 [14:00:06]wFMCommunicate OK [14:00:06]wFMCommunicate request_size=255 [14:00:06]MH_SAM_APDU [14:00:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 33 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 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 EB 5F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BB 73 01 00 35 04 06 00 05 [14:00:06]Write to MH i2c: E2 02 01 DC 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 33 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 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 EB 5F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BB 73 01 00 35 04 06 00 05 00 00 E0 [14:00:06]Write i2c OK [14:00:06]MH_I2C_Read... [14:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:07]Read from MH i2c: E2 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: E2 03 00 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: E2 03 00 DC 30 00 90 00 80 [14:00:07]RAPDU: 90 00 [14:00:07]wFMCommunicate OK [14:00:07]wFMCommunicate request_size=10 [14:00:07]MH_SAM_APDU [14:00:07]CAPDU: 80 0D 02 02 05 3C D7 CD 18 D2 [14:00:07]Write to MH i2c: E2 0D 00 DD 30 80 0D 02 02 05 00 3C D7 CD 18 D2 00 00 5B [14:00:07]Write i2c OK [14:00:07]MH_I2C_Read... [14:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:07]Read from MH i2c: E2 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: E2 03 00 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: E2 03 00 DD 30 00 90 00 81 [14:00:07]RAPDU: 90 00 [14:00:07]wFMCommunicate OK [14:00:07]wFMCommunicate request_size=4 [14:00:07]MH_SAM_APDU [14:00:07]CAPDU: 80 0D 03 02 [14:00:07]Write to MH i2c: E2 08 00 DE 30 80 0D 03 02 00 00 00 00 89 [14:00:07]Write i2c OK [14:00:07]MH_I2C_Read... [14:00:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:07]Read from MH i2c: E2 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: E2 0B 00 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: E2 0B 00 DE 30 00 2C 40 93 A3 36 EF C6 51 90 00 68 [14:00:07]RAPDU: 2C 40 93 A3 36 EF C6 51 90 00 [14:00:07]wFMCommunicate OK [14:00:07]SAM_PROTO_SignData done [14:00:07]FM_MakeSignedData done [14:00:07]CreateOFDProtocolMessage [14:00:07]wFMCommunicate request_size=4 [14:00:07]MH_SAM_APDU [14:00:07]CAPDU: 80 11 00 00 [14:00:07]Write to MH i2c: E2 08 00 DF 30 80 11 00 00 00 00 00 00 89 [14:00:07]Write i2c OK [14:00:07]MH_I2C_Read... [14:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:07]Read from MH i2c: E2 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: E2 17 00 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: E2 17 00 DF 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D9 [14:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:00:07]wFMCommunicate OK [14:00:07]CreateOFDProtocolMessage done [14:00:07]OFDSenderStorePacket 95163 [14:00:07]StoreOFDPacket docnum=95163 [14:00:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 DA B0 07 01 8A 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 33 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 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 EB 5F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BB 73 01 00 35 04 06 00 05 3C D7 CD 18 D2 2C 40 93 A3 36 EF C6 51 [14:00:07]CheckFolder [14:00:07]dirname=/storage/ofd_packets [14:00:07]CheckFolder done [14:00:07]ProducePacketName [14:00:07]name=ofd_packets/00095163 [14:00:07]NVStorageSaveData ofd_packets/00095163 [14:00:07]File name is /storage/ofd_packets/00095163 [14:00:07]Write 301 bytes [14:00:07]NVStorageSaveData done [14:00:07]OFDSenderStorePacket done [14:00:07]KKMCreateOFDPacket done [14:00:07]NVStorageSaveData kkm_last_timestamp [14:00:07]File name is /storage/kkm_last_timestamp [14:00:07]Write 4 bytes [14:00:07]NVStorageSaveData done [14:00:07]ExternCall_PrintAddStr [14:00:07]wPrintStart [14:00:07]Write to MH i2c: 01 00 00 E0 30 10 [14:00:07]Write i2c OK [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: 01 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: 01 07 00 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: 01 07 00 E0 30 00 80 00 00 00 FF 0F A5 [14:00:07]RasterBufferAndPrint [14:00:07]line Счет N : (1)196131 [14:00:07]line ИНН: 02508201610067 [14:00:07]line Контрольно-Кассовый Чек [14:00:07]line ПРОДАЖА [14:00:07]line ТРК (МРК, ГНК) : 32 [14:00:07]line Товар: 2710124130 [14:00:07]line Аи-92-К-5 [14:00:07]line 4.770 * 62.90 [14:00:07]line = 300.03 [14:00:07]line НДС 12% НСП 1% [14:00:07]line > о реализуемом товаре [14:00:07]line ИТОГО: 300.03 [14:00:07]line НСП 1% : 2.65 [14:00:07]line НДС 12% : 31.86 [14:00:07]line Наличными: 0.00 [14:00:07]line Безнал.: 300.03 [14:00:07]line Место: АЗС № 6 "Партнер Нефть" [14:00:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:00:07]line СНО: Общий режим [14:00:07]line Чек 93 12.03.2024 14:00 [14:00:07]line Смена: 327 ФФД: 1.0 [14:00:07]line ЗНМ: 0300000009 [14:00:07]line РНМ: 0000000000090555 [14:00:07]line Версия ККМ: 001 [14:00:07]line Платежная система: О! деньги [14:00:07]line ФМ: 0000000000874811 [14:00:07]line ФД: 95163 [14:00:07]line ФПД: 5758876719314 [14:00:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T140011&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95163&fm=5758876719314&tin=02508201610067®Number=0000000000090555&sum=30003 [14:00:07]OFD Sender: Processing packet 95163 [packets to send 30, broken 29] [14:00:07]ProducePacketName [14:00:07]name=ofd_packets/00095163 [14:00:07]OFD Sender: To server: pG, [14:00:07]CommunicateWithHost lk.salyk.kg:30040 [14:00:07]ConnectInit lk.salyk.kg [14:00:07]written 0, free lines is 4095 [14:00:07]Connected sock=10 [14:00:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 DA B0 07 01 8A 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 33 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 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 EB 5F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BB 73 01 00 35 04 06 00 05 3C D7 CD 18 D2 2C 40 93 A3 36 EF C6 51 [14:00:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E3 62 47 00 5A B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BB 73 01 00 F4 03 04 00 40 0B F0 65 B6 04 01 00 00 6D AF 9C 0D D7 16 F0 96 [14:00:07]CommunicateWithHost err = 0 [14:00:07]CheckOFDResponse [14:00:07]1017 (14) - 77093643461234 [14:00:07]1041 (16) - 0000000000874811 [14:00:07]1040 (4) - 95163 [14:00:07]1012 (4) - 12.03.2024 07:58 [14:00:07]1206 (1) - 0 [14:00:07]OFD Sender: Remove packet 95163 [14:00:07]ProducePacketName [14:00:07]name=ofd_packets/00095163 [14:00:07]NVStorageDeleteData [14:00:08]Write to MH i2c: 01 00 00 0A 31 3B [14:00:08]Write i2c OK [14:00:08]MH_I2C_Read... [14:00:08]Read from MH i2c: 01 [14:00:08]MH_I2C_Read... [14:00:08]Read from MH i2c: 01 07 00 [14:00:08]MH_I2C_Read... [14:00:08]Read from MH i2c: 01 07 00 0A 31 00 80 00 00 00 5D 0D 2C [14:00:08]RasterBufferAndPrint [14:00:08]line [14:00:08]line [14:00:08]line [14:00:08]line [14:00:08]line [14:00:08]written 0, free lines is 3427 [14:00:08]process_action close_receipt done [14:00:08]requested_data is exist [14:00:08]produce_requested_data [14:00:08]requested_item fm.sn is exist - process it [14:00:08]wFMCommunicate request_size=4 [14:00:08]MH_SAM_APDU [14:00:08]CAPDU: 80 11 00 00 [14:00:08]Write to MH i2c: E2 08 00 11 31 80 11 00 00 00 00 00 00 BC [14:00:08]Write i2c OK [14:00:08]MH_I2C_Read... [14:00:08]Read from MH i2c: E2 [14:00:08]MH_I2C_Read... [14:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:08]Read from MH i2c: E2 17 00 [14:00:08]MH_I2C_Read... [14:00:08]Read from MH i2c: E2 17 00 11 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0C [14:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:00:08]wFMCommunicate OK [14:00:08]requested_item fd.num is exist - process it [14:00:08]SAM_PROTO_GetFieldsCounters [14:00:08]wFMCommunicate request_size=4 [14:00:08]MH_SAM_APDU [14:00:08]CAPDU: 80 13 00 00 [14:00:08]Write to MH i2c: E2 08 00 12 31 80 13 00 00 00 00 00 00 BF [14:00:08]Write i2c OK [14:00:08]MH_I2C_Read... [14:00:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:08]Read from MH i2c: E2 [14:00:08]MH_I2C_Read... [14:00:08]Read from MH i2c: E2 62 00 [14:00:08]MH_I2C_Read... [14:00:08]Read from MH i2c: E2 62 00 12 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BB 73 01 00 0E 04 04 00 47 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 6A [14:00:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BB 73 01 00 0E 04 04 00 47 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 [14:00:08]wFMCommunicate OK [14:00:08]SAM_PROTO_GetFieldsCounters done [14:00:08]requested_item shift.num is exist - process it [14:00:08]requested_item shift.opened is exist - process it [14:00:08]req_shift_opened [14:00:08]FM_GetShiftState [14:00:08]SAM_PROTO_GetShiftState [14:00:08]wFMCommunicate request_size=4 [14:00:08]MH_SAM_APDU [14:00:08]CAPDU: 80 13 01 00 [14:00:08]Write to MH i2c: E2 08 00 13 31 80 13 01 00 00 00 00 00 C1 [14:00:08]Write i2c OK [14:00:08]MH_I2C_Read... [14:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:08]Read from MH i2c: E2 [14:00:08]MH_I2C_Read... [14:00:08]Read from MH i2c: E2 0E 00 [14:00:08]MH_I2C_Read... [14:00:08]Read from MH i2c: E2 0E 00 13 31 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 35 [14:00:08]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:00:08]wFMCommunicate OK [14:00:08]SAM_PROTO_GetShiftState done [14:00:08]FM_GetShiftState done [14:00:08]req_shift_opened done [14:00:08]requested_item shift.open_date is exist - process it [14:00:08]req_shift_open_date [14:00:08]req_shift_open_date done [14:00:08]produce_requested_data done [14:00:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95163,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:00:08]process_action_free close_receipt [14:00:08]json_value_free [14:00:08]json_value_free done [14:00:08]process_json_proto returns [14:00:08]Send response to host [14:00:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95163,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:00:08]free response buf [14:00:08]execute_script done [14:00:08]execute_script returns [14:00:08]free content buf [14:00:08]Sock 8.Close socket [14:00:08]Sock 8.Thread stoped [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:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:11]accept exits with 9 [14:02:11]New connection [14:02:11]New thread 3066957156 created [14:02:11]Thread 3066813796 joined [14:02:11]Waiting for new connection... [14:02:11] Sock 9.Parse request [14:02:11]Sock 9.Check first char [14:02:11]Sock 9.First char is OK [14:02:11]request: POST /json_proto HTTP/1.0 [14:02:11]Method: POST [14:02:11]URL: /json_proto [14:02:11]Method is POST - this is cgi request [14:02:11]url: /json_proto [14:02:11]query_string will be loaded in cgi processing [14:02:11]execute_cgi json_proto POST (null) [14:02:11]execute_cgi path=json_proto method=POST [14:02:11]POST find Content-Length [14:02:11]Host: 172.17.62.67:8080 [14:02:11]Content-Length: 1200 [14:02:11]Content-Type: application/json [14:02:11] [14:02:11]POST finish read [14:02:11]Found Content-Length = 1200 [14:02: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196132\u000A12.03.2024 13:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3860446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:11]execute_script... [14:02: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196132\u000A12.03.2024 13:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3860446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:11]POST & json_proto [14:02:11]process_json_proto [14:02:11]json parsed OK: [14:02:11]protocol is kg_v1.0 [14:02:11]action value=print_text [14:02:11]process_action print_text [14:02:11]cmd_print_text [14:02:11]ExternCall_PrintAddStr [14:02:11]wPrintStart [14:02:11]Write to MH i2c: 01 00 00 14 31 45 [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: 01 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: 01 07 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: 01 07 00 14 31 00 80 00 00 00 FF 0F DA [14:02:11]RasterBufferAndPrint [14:02:11]line *****ТОВАРНЫЙ ЧЕК***** [14:02:11]line АЗС 6 [14:02:11]line Партнер нефть [14:02:11]line 02508201610067 [14:02:11]line Кассир : Мыктыбекова И. [14:02:11]line Счет N : (1)196132 [14:02:11]line 12.03.2024 13:56 [14:02:11]line ПРОДАЖА [14:02:11]line ТРК (МРК, ГНК): 32 [14:02:11]line Вид ГСМ : 2710124130 [14:02:11]line Аи-92-К-5 [14:02:11]line 10.000 x 62.90 [14:02:11]line ИТОГ: 629.00 [14:02:11]line Тип оплаты: Талоны: Партнер нефть [14:02:11]line 3860446 [14:02:11]line ______________________ [14:02:11]line (подпись) [14:02:11]written 0, free lines is 4095 [14:02:11]Write to MH i2c: 01 00 00 28 31 59 [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: 01 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: 01 07 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: 01 07 00 28 31 00 80 00 00 00 66 0E 54 [14:02:11]RasterBufferAndPrint [14:02:11]line [14:02:11]line [14:02:11]line [14:02:11]line [14:02:11]line [14:02:11]written 0, free lines is 3691 [14:02:11]process_action print_text done [14:02:11]requested_data is exist [14:02:11]produce_requested_data [14:02:11]requested_item fm.sn is exist - process it [14:02:11]wFMCommunicate request_size=4 [14:02:11]MH_SAM_APDU [14:02:11]CAPDU: 80 11 00 00 [14:02:11]Write to MH i2c: E2 08 00 2F 31 80 11 00 00 00 00 00 00 DA [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:11]Read from MH i2c: E2 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 17 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 17 00 2F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2A [14:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:02:11]wFMCommunicate OK [14:02:11]requested_item fd.num is exist - process it [14:02:11]SAM_PROTO_GetFieldsCounters [14:02:11]wFMCommunicate request_size=4 [14:02:11]MH_SAM_APDU [14:02:11]CAPDU: 80 13 00 00 [14:02:11]Write to MH i2c: E2 08 00 30 31 80 13 00 00 00 00 00 00 DD [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:11]Read from MH i2c: E2 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 62 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 62 00 30 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BB 73 01 00 0E 04 04 00 47 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 88 [14:02:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BB 73 01 00 0E 04 04 00 47 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 [14:02:11]wFMCommunicate OK [14:02:11]SAM_PROTO_GetFieldsCounters done [14:02:11]requested_item shift.num is exist - process it [14:02:11]requested_item shift.opened is exist - process it [14:02:11]req_shift_opened [14:02:11]FM_GetShiftState [14:02:11]SAM_PROTO_GetShiftState [14:02:11]wFMCommunicate request_size=4 [14:02:11]MH_SAM_APDU [14:02:11]CAPDU: 80 13 01 00 [14:02:11]Write to MH i2c: E2 08 00 31 31 80 13 01 00 00 00 00 00 DF [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:11]Read from MH i2c: E2 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 0E 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 0E 00 31 31 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 53 [14:02:11]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:02:11]wFMCommunicate OK [14:02:11]SAM_PROTO_GetShiftState done [14:02:11]FM_GetShiftState done [14:02:11]req_shift_opened done [14:02:11]requested_item shift.open_date is exist - process it [14:02:11]req_shift_open_date [14:02:11]req_shift_open_date done [14:02:11]produce_requested_data done [14:02:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95163,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:02:11]process_action_free print_text [14:02:11]json_value_free [14:02:11]json_value_free done [14:02:11]process_json_proto returns [14:02:11]Send response to host [14:02:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95163,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:02:11]free response buf [14:02:11]execute_script done [14:02:11]execute_script returns [14:02:11]free content buf [14:02:11]Sock 9.Close socket [14:02:11]Sock 9.Thread stoped [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]accept exits with 8 [14:07:53]New connection [14:07:53]New thread 3066813796 created [14:07:53]Thread 3066957156 joined [14:07:53]Waiting for new connection... [14:07:53] Sock 8.Parse request [14:07:53]Sock 8.Check first char [14:07:53]Sock 8.First char is OK [14:07:53]request: POST /json_proto HTTP/1.0 [14:07:53]Method: POST [14:07:53]URL: /json_proto [14:07:53]Method is POST - this is cgi request [14:07:53]url: /json_proto [14:07:53]query_string will be loaded in cgi processing [14:07:53]execute_cgi json_proto POST (null) [14:07:53]execute_cgi path=json_proto method=POST [14:07:53]POST find Content-Length [14:07:53]Host: 172.17.62.67:8080 [14:07:53]Content-Length: 660 [14:07:53]Content-Type: application/json [14:07:53] [14:07:53]POST finish read [14:07:53]Found Content-Length = 660 [14:07:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:53]execute_script... [14:07: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)196133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:53]POST & json_proto [14:07:53]process_json_proto [14:07:53]json parsed OK: [14:07:53]protocol is kg_v1.0 [14:07:53]action value=close_receipt [14:07:53]process_action close_receipt [14:07:53]cmd_close_receipt [14:07:53]MH_GetDate [14:07:53]Write to MH i2c: F0 00 00 32 31 52 [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: F0 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: F0 05 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: F0 05 00 32 31 00 BE 61 F0 65 CB [14:07:53]GetLastDocTimeStamp 1710252011 [14:07:53]current date 1710252478 [14:07:53]FM_GetShiftState [14:07:53]SAM_PROTO_GetShiftState [14:07:53]wFMCommunicate request_size=4 [14:07:53]MH_SAM_APDU [14:07:53]CAPDU: 80 13 01 00 [14:07:53]Write to MH i2c: E2 08 00 33 31 80 13 01 00 00 00 00 00 E1 [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:53]Read from MH i2c: E2 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 0E 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 0E 00 33 31 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 55 [14:07:53]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:07:53]wFMCommunicate OK [14:07:53]SAM_PROTO_GetShiftState done [14:07:53]FM_GetShiftState done [14:07:53]opened in 1710201976 [14:07:53]opened+sec_in_day 1710288376 [14:07:53]quantity*price = 62900 [14:07:53]sum+1 = 62901 [14:07:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 Внесено: 700.00 СДАЧА: 71.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 629.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 94 12.03.2024 14:07 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95164 ФПД: 178710961247193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T140758&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95164&fm=178710961247193&tin=02508201610067®Number=0000000000090555&sum=62900 [14:07:54]StoreToDocumentArchive [14:07:54]shift 327 fd 95164 [14:07:54]save to /storage/0327/doc_00095164 [14:07:54]save last doc name /storage/0327/doc_00095164 to /storage/kkm_last_doc_name [14:07:54]save OK [14:07:54]Clear old archive folders... [14:07:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:54]tlvbuf is 01AF2820 [14:07:54]SAM_PROTO_ClearQueue [14:07:54]wFMCommunicate request_size=4 [14:07:54]MH_SAM_APDU [14:07:54]CAPDU: 80 09 00 00 [14:07:54]Write to MH i2c: E2 08 00 40 31 80 09 00 00 00 00 00 00 E3 [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:54]Read from MH i2c: E2 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 03 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 03 00 40 31 00 90 00 E5 [14:07:54]RAPDU: 90 00 [14:07:54]wFMCommunicate OK [14:07:54]SAM_PROTO_ClearQueue done [14:07:54]KKMCreateOFDPacket [14:07:54]OFDProtocolAddRootSTLVToBuf [14:07:54]FM_MakeSignedData [14:07:54]FM_MakeSignedData [14:07:54]SAM_PROTO_SignData [14:07:54]wFMCommunicate request_size=4 [14:07:54]MH_SAM_APDU [14:07:54]CAPDU: 80 0D 01 02 [14:07:54]Write to MH i2c: E2 08 00 41 31 80 0D 01 02 00 00 00 00 EB [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:54]Read from MH i2c: E2 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 03 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 03 00 41 31 00 90 00 E6 [14:07:54]RAPDU: 90 00 [14:07:54]wFMCommunicate OK [14:07:54]wFMCommunicate request_size=255 [14:07:54]MH_SAM_APDU [14:07:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 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 BE 61 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BC 73 01 00 35 04 06 00 A2 [14:07:54]Write to MH i2c: E2 02 01 42 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 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 BE 61 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BC 73 01 00 35 04 06 00 A2 00 00 1A [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:54]Read from MH i2c: E2 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 03 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 03 00 42 31 00 90 00 E7 [14:07:54]RAPDU: 90 00 [14:07:54]wFMCommunicate OK [14:07:54]wFMCommunicate request_size=10 [14:07:54]MH_SAM_APDU [14:07:54]CAPDU: 80 0D 02 02 05 89 63 5C D3 D9 [14:07:54]Write to MH i2c: E2 0D 00 43 31 80 0D 02 02 05 00 89 63 5C D3 D9 00 00 EC [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:54]Read from MH i2c: E2 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 03 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 03 00 43 31 00 90 00 E8 [14:07:54]RAPDU: 90 00 [14:07:54]wFMCommunicate OK [14:07:54]wFMCommunicate request_size=4 [14:07:54]MH_SAM_APDU [14:07:54]CAPDU: 80 0D 03 02 [14:07:54]Write to MH i2c: E2 08 00 44 31 80 0D 03 02 00 00 00 00 F0 [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:54]Read from MH i2c: E2 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 0B 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 0B 00 44 31 00 C0 95 30 6F 22 74 31 5F 90 00 0B [14:07:54]RAPDU: C0 95 30 6F 22 74 31 5F 90 00 [14:07:54]wFMCommunicate OK [14:07:54]SAM_PROTO_SignData done [14:07:54]FM_MakeSignedData done [14:07:54]CreateOFDProtocolMessage [14:07:54]wFMCommunicate request_size=4 [14:07:54]MH_SAM_APDU [14:07:54]CAPDU: 80 11 00 00 [14:07:54]Write to MH i2c: E2 08 00 45 31 80 11 00 00 00 00 00 00 F0 [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:54]Read from MH i2c: E2 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 17 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 17 00 45 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 40 [14:07:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:07:54]wFMCommunicate OK [14:07:54]CreateOFDProtocolMessage done [14:07:54]OFDSenderStorePacket 95164 [14:07:54]StoreOFDPacket docnum=95164 [14:07:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 80 D6 07 01 97 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 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 BE 61 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BC 73 01 00 35 04 06 00 A2 89 63 5C D3 D9 C0 95 30 6F 22 74 31 5F [14:07:54]CheckFolder [14:07:54]dirname=/storage/ofd_packets [14:07:54]CheckFolder done [14:07:54]ProducePacketName [14:07:54]name=ofd_packets/00095164 [14:07:54]NVStorageSaveData ofd_packets/00095164 [14:07:54]File name is /storage/ofd_packets/00095164 [14:07:54]Write 301 bytes [14:07:54]NVStorageSaveData done [14:07:54]OFDSenderStorePacket done [14:07:54]KKMCreateOFDPacket done [14:07:54]NVStorageSaveData kkm_last_timestamp [14:07:54]File name is /storage/kkm_last_timestamp [14:07:54]Write 4 bytes [14:07:54]NVStorageSaveData done [14:07:54]ExternCall_PrintAddStr [14:07:54]wPrintStart [14:07:54]Write to MH i2c: 01 00 00 46 31 77 [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: 01 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: 01 07 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: 01 07 00 46 31 00 80 00 00 00 FF 0F 0C [14:07:54]RasterBufferAndPrint [14:07:54]line Счет N : (1)196133 [14:07:54]line ИНН: 02508201610067 [14:07:54]line Контрольно-Кассовый Чек [14:07:54]line ПРОДАЖА [14:07:54]line ТРК (МРК, ГНК) : 32 [14:07:54]line Товар: 2710124130 [14:07:54]line Аи-92-К-5 [14:07:54]line 10.000 * 62.90 [14:07:54]line = 629.00 [14:07:54]line НДС 12% НСП 1% [14:07:54]line > о реализуемом товаре [14:07:54]line ИТОГО: 629.00 [14:07:54]line Внесено: 700.00 [14:07:54]line СДАЧА: 71.00 [14:07:54]line НСП 1% : 5.57 [14:07:54]line НДС 12% : 66.80 [14:07:54]line Наличными: 629.00 [14:07:54]line Безнал.: 0.00 [14:07:54]line Место: АЗС № 6 "Партнер Нефть" [14:07:54]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:07:54]line СНО: Общий режим [14:07:54]line Чек 94 12.03.2024 14:07 [14:07:54]line Смена: 327 ФФД: 1.0 [14:07:54]line ЗНМ: 0300000009 [14:07:54]line РНМ: 0000000000090555 [14:07:54]line Версия ККМ: 001 [14:07:54]line ФМ: 0000000000874811 [14:07:54]line ФД: 95164 [14:07:54]line ФПД: 178710961247193 [14:07:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T140758&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95164&fm=178710961247193&tin=02508201610067®Number=0000000000090555&sum=62900 [14:07:55]OFD Sender: Processing packet 95164 [packets to send 30, broken 29] [14:07:55]ProducePacketName [14:07:55]name=ofd_packets/00095164 [14:07:55]OFD Sender: To server: pG, [14:07:55]CommunicateWithHost lk.salyk.kg:30040 [14:07:55]ConnectInit lk.salyk.kg [14:07:55]written 0, free lines is 4095 [14:07:55]Connected sock=10 [14:07:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 80 D6 07 01 97 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 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 BE 61 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BC 73 01 00 35 04 06 00 A2 89 63 5C D3 D9 C0 95 30 6F 22 74 31 5F [14:07:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 7B FA 47 00 E9 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BC 73 01 00 F4 03 04 00 14 0D F0 65 B6 04 01 00 00 20 11 B8 CF 0D BE B0 D9 [14:07:55]CommunicateWithHost err = 0 [14:07:55]CheckOFDResponse [14:07:55]1017 (14) - 77093643461234 [14:07:55]1041 (16) - 0000000000874811 [14:07:55]1040 (4) - 95164 [14:07:55]1012 (4) - 12.03.2024 08:06 [14:07:55]1206 (1) - 0 [14:07:55]OFD Sender: Remove packet 95164 [14:07:55]ProducePacketName [14:07:55]name=ofd_packets/00095164 [14:07:55]NVStorageDeleteData [14:07:55]Write to MH i2c: 01 00 00 70 31 A1 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: 01 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: 01 07 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: 01 07 00 70 31 00 80 00 00 00 58 0D 8D [14:07:55]RasterBufferAndPrint [14:07:55]line [14:07:55]line [14:07:55]line [14:07:55]line [14:07:55]line [14:07:55]written 0, free lines is 3422 [14:07:55]process_action close_receipt done [14:07:55]requested_data is exist [14:07:55]produce_requested_data [14:07:55]requested_item fm.sn is exist - process it [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 11 00 00 [14:07:55]Write to MH i2c: E2 08 00 77 31 80 11 00 00 00 00 00 00 22 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 17 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 17 00 77 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 72 [14:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:07:55]wFMCommunicate OK [14:07:55]requested_item fd.num is exist - process it [14:07:55]SAM_PROTO_GetFieldsCounters [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 13 00 00 [14:07:55]Write to MH i2c: E2 08 00 78 31 80 13 00 00 00 00 00 00 25 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 62 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 62 00 78 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BC 73 01 00 0E 04 04 00 47 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 D4 [14:07:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BC 73 01 00 0E 04 04 00 47 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:07:55]wFMCommunicate OK [14:07:55]SAM_PROTO_GetFieldsCounters done [14:07:55]requested_item shift.num is exist - process it [14:07:55]requested_item shift.opened is exist - process it [14:07:55]req_shift_opened [14:07:55]FM_GetShiftState [14:07:55]SAM_PROTO_GetShiftState [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 13 01 00 [14:07:55]Write to MH i2c: E2 08 00 79 31 80 13 01 00 00 00 00 00 27 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 0E 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 0E 00 79 31 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 9B [14:07:55]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:07:55]wFMCommunicate OK [14:07:55]SAM_PROTO_GetShiftState done [14:07:55]FM_GetShiftState done [14:07:55]req_shift_opened done [14:07:55]requested_item shift.open_date is exist - process it [14:07:55]req_shift_open_date [14:07:55]req_shift_open_date done [14:07:55]produce_requested_data done [14:07:55]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95164,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:07:55]process_action_free close_receipt [14:07:55]json_value_free [14:07:55]json_value_free done [14:07:55]process_json_proto returns [14:07:55]Send response to host [14:07:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95164,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:07:55]free response buf [14:07:55]execute_script done [14:07:55]execute_script returns [14:07:55]free content buf [14:07:55]Sock 8.Close socket [14:07:55]Sock 8.Thread stoped [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]accept exits with 9 [14:08:10]New connection [14:08:10]New thread 3066957156 created [14:08:10]Thread 3066813796 joined [14:08:10]Waiting for new connection... [14:08:10] Sock 9.Parse request [14:08:10]Sock 9.Check first char [14:08:10]Sock 9.First char is OK [14:08:10]request: POST /json_proto HTTP/1.0 [14:08:10]Method: POST [14:08:10]URL: /json_proto [14:08:10]Method is POST - this is cgi request [14:08:10]url: /json_proto [14:08:10]query_string will be loaded in cgi processing [14:08:10]execute_cgi json_proto POST (null) [14:08:10]execute_cgi path=json_proto method=POST [14:08:10]POST find Content-Length [14:08:10]Host: 172.17.62.67:8080 [14:08:10]Content-Length: 679 [14:08:10]Content-Type: application/json [14:08:10] [14:08:10]POST finish read [14:08:10]Found Content-Length = 679 [14:08:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:08:10]execute_script... [14:08: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)196134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:08:10]POST & json_proto [14:08:10]process_json_proto [14:08:10]json parsed OK: [14:08:10]protocol is kg_v1.0 [14:08:10]action value=close_receipt [14:08:10]process_action close_receipt [14:08:10]cmd_close_receipt [14:08:10]MH_GetDate [14:08:10]Write to MH i2c: F0 00 00 7A 31 9A [14:08:10]Write i2c OK [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: F0 [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: F0 05 00 [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: F0 05 00 7A 31 00 CF 61 F0 65 24 [14:08:10]GetLastDocTimeStamp 1710252478 [14:08:10]current date 1710252495 [14:08:10]FM_GetShiftState [14:08:10]SAM_PROTO_GetShiftState [14:08:10]wFMCommunicate request_size=4 [14:08:10]MH_SAM_APDU [14:08:10]CAPDU: 80 13 01 00 [14:08:10]Write to MH i2c: E2 08 00 7B 31 80 13 01 00 00 00 00 00 29 [14:08:10]Write i2c OK [14:08:10]MH_I2C_Read... [14:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:10]Read from MH i2c: E2 [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: E2 0E 00 [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: E2 0E 00 7B 31 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 9D [14:08:10]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:08:10]wFMCommunicate OK [14:08:10]SAM_PROTO_GetShiftState done [14:08:10]FM_GetShiftState done [14:08:10]opened in 1710201976 [14:08:10]opened+sec_in_day 1710288376 [14:08:10]quantity*price = 100039 [14:08:10]sum+1 = 100041 [14:08:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 95 12.03.2024 14:08 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95165 ФПД: 96364717288861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T140815&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95165&fm=96364717288861&tin=02508201610067®Number=0000000000090555&sum=100000 [14:08:11]StoreToDocumentArchive [14:08:11]shift 327 fd 95165 [14:08:11]save to /storage/0327/doc_00095165 [14:08:11]save last doc name /storage/0327/doc_00095165 to /storage/kkm_last_doc_name [14:08:11]save OK [14:08:11]Clear old archive folders... [14:08:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:08:11]tlvbuf is 01B36DA0 [14:08:11]SAM_PROTO_ClearQueue [14:08:11]wFMCommunicate request_size=4 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 09 00 00 [14:08:11]Write to MH i2c: E2 08 00 88 31 80 09 00 00 00 00 00 00 2B [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 88 31 00 90 00 2D [14:08:11]RAPDU: 90 00 [14:08:11]wFMCommunicate OK [14:08:11]SAM_PROTO_ClearQueue done [14:08:11]KKMCreateOFDPacket [14:08:11]OFDProtocolAddRootSTLVToBuf [14:08:11]FM_MakeSignedData [14:08:11]FM_MakeSignedData [14:08:11]SAM_PROTO_SignData [14:08:11]wFMCommunicate request_size=4 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 0D 01 02 [14:08:11]Write to MH i2c: E2 08 00 89 31 80 0D 01 02 00 00 00 00 33 [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 89 31 00 90 00 2E [14:08:11]RAPDU: 90 00 [14:08:11]wFMCommunicate OK [14:08:11]wFMCommunicate request_size=255 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 CF 61 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BD 73 01 00 35 04 06 00 57 A4 A8 BE [14:08:11]Write to MH i2c: E2 02 01 8A 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 CF 61 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BD 73 01 00 35 04 06 00 57 A4 A8 BE 00 00 2A [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 8A 31 00 90 00 2F [14:08:11]RAPDU: 90 00 [14:08:11]wFMCommunicate OK [14:08:11]wFMCommunicate request_size=7 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 0D 02 02 02 2D 9D [14:08:11]Write to MH i2c: E2 0A 00 8B 31 80 0D 02 02 02 00 2D 9D 00 00 04 [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 8B 31 00 90 00 30 [14:08:11]RAPDU: 90 00 [14:08:11]wFMCommunicate OK [14:08:11]wFMCommunicate request_size=4 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 0D 03 02 [14:08:11]Write to MH i2c: E2 08 00 8C 31 80 0D 03 02 00 00 00 00 38 [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 0B 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 0B 00 8C 31 00 CE FA FB A4 A2 19 F4 2C 90 00 7B [14:08:11]RAPDU: CE FA FB A4 A2 19 F4 2C 90 00 [14:08:11]wFMCommunicate OK [14:08:11]SAM_PROTO_SignData done [14:08:11]FM_MakeSignedData done [14:08:11]CreateOFDProtocolMessage [14:08:11]wFMCommunicate request_size=4 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 11 00 00 [14:08:11]Write to MH i2c: E2 08 00 8D 31 80 11 00 00 00 00 00 00 38 [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:12]Read from MH i2c: E2 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 17 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 17 00 8D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 88 [14:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:08:12]wFMCommunicate OK [14:08:12]CreateOFDProtocolMessage done [14:08:12]OFDSenderStorePacket 95165 [14:08:12]StoreOFDPacket docnum=95165 [14:08:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 D1 05 04 01 AE 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 CF 61 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BD 73 01 00 35 04 06 00 57 A4 A8 BE 2D 9D CE FA FB A4 A2 19 F4 2C [14:08:12]CheckFolder [14:08:12]dirname=/storage/ofd_packets [14:08:12]CheckFolder done [14:08:12]ProducePacketName [14:08:12]name=ofd_packets/00095165 [14:08:12]NVStorageSaveData ofd_packets/00095165 [14:08:12]File name is /storage/ofd_packets/00095165 [14:08:12]Write 298 bytes [14:08:12]NVStorageSaveData done [14:08:12]OFDSenderStorePacket done [14:08:12]KKMCreateOFDPacket done [14:08:12]NVStorageSaveData kkm_last_timestamp [14:08:12]File name is /storage/kkm_last_timestamp [14:08:12]Write 4 bytes [14:08:12]NVStorageSaveData done [14:08:12]ExternCall_PrintAddStr [14:08:12]wPrintStart [14:08:12]Write to MH i2c: 01 00 00 8E 31 BF [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: 01 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: 01 07 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: 01 07 00 8E 31 00 80 00 00 00 FF 0F 54 [14:08:12]RasterBufferAndPrint [14:08:12]line Счет N : (1)196134 [14:08:12]line ИНН: 02508201610067 [14:08:12]line Контрольно-Кассовый Чек [14:08:12]line ПРОДАЖА [14:08:12]line ТРК (МРК, ГНК) : 51 [14:08:12]line Товар: 2710194210 [14:08:12]line ДТ-К-5 [14:08:12]line 14.110 * 70.90 [14:08:12]line = 1000.40 [14:08:12]line НДС 12% НСП 1% [14:08:12]line > о реализуемом товаре [14:08:12]line ОКРУГЛЕНИЕ: -0.40 [14:08:12]line ИТОГО: 1000.00 [14:08:12]line Внесено: 1000.00 [14:08:12]line СДАЧА: 0.00 [14:08:12]line НСП 1% : 8.85 [14:08:12]line НДС 12% : 106.24 [14:08:12]line Наличными: 1000.00 [14:08:12]line Безнал.: 0.00 [14:08:12]line Место: АЗС № 6 "Партнер Нефть" [14:08:12]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:08:12]line СНО: Общий режим [14:08:12]line Чек 95 12.03.2024 14:08 [14:08:12]line Смена: 327 ФФД: 1.0 [14:08:12]line ЗНМ: 0300000009 [14:08:12]line РНМ: 0000000000090555 [14:08:12]line Версия ККМ: 001 [14:08:12]line ФМ: 0000000000874811 [14:08:12]line ФД: 95165 [14:08:12]line ФПД: 96364717288861 [14:08:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T140815&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95165&fm=96364717288861&tin=02508201610067®Number=0000000000090555&sum=100000 [14:08:12]OFD Sender: Processing packet 95165 [packets to send 30, broken 29] [14:08:12]ProducePacketName [14:08:12]name=ofd_packets/00095165 [14:08:12]OFD Sender: To server: pG, [14:08:12]CommunicateWithHost lk.salyk.kg:30040 [14:08:12]ConnectInit lk.salyk.kg [14:08:12]written 0, free lines is 4095 [14:08:12]Connected sock=10 [14:08:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 D1 05 04 01 AE 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 CF 61 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BD 73 01 00 35 04 06 00 57 A4 A8 BE 2D 9D CE FA FB A4 A2 19 F4 2C [14:08:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 21 3F 47 00 5C FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BD 73 01 00 F4 03 04 00 25 0D F0 65 B6 04 01 00 00 EC F3 6A DD DC D3 C5 97 [14:08:12]CommunicateWithHost err = 0 [14:08:12]CheckOFDResponse [14:08:12]1017 (14) - 77093643461234 [14:08:12]1041 (16) - 0000000000874811 [14:08:12]1040 (4) - 95165 [14:08:12]1012 (4) - 12.03.2024 08:07 [14:08:12]1206 (1) - 0 [14:08:12]OFD Sender: Remove packet 95165 [14:08:12]ProducePacketName [14:08:12]name=ofd_packets/00095165 [14:08:12]NVStorageDeleteData [14:08:12]Write to MH i2c: 01 00 00 B9 31 EA [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: 01 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: 01 07 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: 01 07 00 B9 31 00 80 00 00 00 46 0D C4 [14:08:12]RasterBufferAndPrint [14:08:12]line [14:08:12]line [14:08:12]line [14:08:12]line [14:08:12]line [14:08:12]written 0, free lines is 3404 [14:08:12]process_action close_receipt done [14:08:12]requested_data is exist [14:08:12]produce_requested_data [14:08:12]requested_item fm.sn is exist - process it [14:08:12]wFMCommunicate request_size=4 [14:08:12]MH_SAM_APDU [14:08:12]CAPDU: 80 11 00 00 [14:08:12]Write to MH i2c: E2 08 00 C0 31 80 11 00 00 00 00 00 00 6B [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 [14:08:12]MH_I2C_Read... [14:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:12]Read from MH i2c: E2 17 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 17 00 C0 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BB [14:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:08:12]wFMCommunicate OK [14:08:12]requested_item fd.num is exist - process it [14:08:12]SAM_PROTO_GetFieldsCounters [14:08:12]wFMCommunicate request_size=4 [14:08:12]MH_SAM_APDU [14:08:12]CAPDU: 80 13 00 00 [14:08:12]Write to MH i2c: E2 08 00 C1 31 80 13 00 00 00 00 00 00 6E [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:13]Read from MH i2c: E2 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: E2 62 00 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: E2 62 00 C1 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BD 73 01 00 0E 04 04 00 47 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 21 [14:08:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BD 73 01 00 0E 04 04 00 47 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:08:13]wFMCommunicate OK [14:08:13]SAM_PROTO_GetFieldsCounters done [14:08:13]requested_item shift.num is exist - process it [14:08:13]requested_item shift.opened is exist - process it [14:08:13]req_shift_opened [14:08:13]FM_GetShiftState [14:08:13]SAM_PROTO_GetShiftState [14:08:13]wFMCommunicate request_size=4 [14:08:13]MH_SAM_APDU [14:08:13]CAPDU: 80 13 01 00 [14:08:13]Write to MH i2c: E2 08 00 C2 31 80 13 01 00 00 00 00 00 70 [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:13]Read from MH i2c: E2 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: E2 0E 00 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: E2 0E 00 C2 31 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 E4 [14:08:13]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:08:13]wFMCommunicate OK [14:08:13]SAM_PROTO_GetShiftState done [14:08:13]FM_GetShiftState done [14:08:13]req_shift_opened done [14:08:13]requested_item shift.open_date is exist - process it [14:08:13]req_shift_open_date [14:08:13]req_shift_open_date done [14:08:13]produce_requested_data done [14:08:13]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95165,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:08:13]process_action_free close_receipt [14:08:13]json_value_free [14:08:13]json_value_free done [14:08:13]process_json_proto returns [14:08:13]Send response to host [14:08:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95165,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:08:13]free response buf [14:08:13]execute_script done [14:08:13]execute_script returns [14:08:13]free content buf [14:08:13]Sock 9.Close socket [14:08:13]Sock 9.Thread stoped [14:08:13]OFD Sender: No OFD packet to send [14:08:17]accept exits with 8 [14:08:17]New connection [14:08:17]New thread 3066813796 created [14:08:17]Thread 3066957156 joined [14:08:17]Waiting for new connection... [14:08:17] Sock 8.Parse request [14:08:17]Sock 8.Check first char [14:08:17]Sock 8.First char is OK [14:08:17]request: POST /json_proto HTTP/1.0 [14:08:17]Method: POST [14:08:17]URL: /json_proto [14:08:17]Method is POST - this is cgi request [14:08:17]url: /json_proto [14:08:17]query_string will be loaded in cgi processing [14:08:17]execute_cgi json_proto POST (null) [14:08:17]execute_cgi path=json_proto method=POST [14:08:17]POST find Content-Length [14:08:17]Host: 172.17.62.67:8080 [14:08:17]Content-Length: 677 [14:08:17]Content-Type: application/json [14:08:17] [14:08:17]POST finish read [14:08:17]Found Content-Length = 677 [14:08:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "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" ] } } [14:08:17]execute_script... [14:08: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)196135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "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" ] } } [14:08:17]POST & json_proto [14:08:17]process_json_proto [14:08:17]json parsed OK: [14:08:17]protocol is kg_v1.0 [14:08:17]action value=close_receipt [14:08:17]process_action close_receipt [14:08:17]cmd_close_receipt [14:08:17]MH_GetDate [14:08:17]Write to MH i2c: F0 00 00 C3 31 E3 [14:08:17]Write i2c OK [14:08:17]MH_I2C_Read... [14:08:17]Read from MH i2c: F0 [14:08:17]MH_I2C_Read... [14:08:17]Read from MH i2c: F0 05 00 [14:08:17]MH_I2C_Read... [14:08:17]Read from MH i2c: F0 05 00 C3 31 00 D7 61 F0 65 75 [14:08:17]GetLastDocTimeStamp 1710252495 [14:08:17]current date 1710252503 [14:08:17]FM_GetShiftState [14:08:17]SAM_PROTO_GetShiftState [14:08:17]wFMCommunicate request_size=4 [14:08:17]MH_SAM_APDU [14:08:17]CAPDU: 80 13 01 00 [14:08:17]Write to MH i2c: E2 08 00 C4 31 80 13 01 00 00 00 00 00 72 [14:08:17]Write i2c OK [14:08:17]MH_I2C_Read... [14:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:17]Read from MH i2c: E2 [14:08:17]MH_I2C_Read... [14:08:17]Read from MH i2c: E2 0E 00 [14:08:17]MH_I2C_Read... [14:08:17]Read from MH i2c: E2 0E 00 C4 31 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 E6 [14:08:17]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:08:17]wFMCommunicate OK [14:08:17]SAM_PROTO_GetShiftState done [14:08:17]FM_GetShiftState done [14:08:17]opened in 1710201976 [14:08:17]opened+sec_in_day 1710288376 [14:08:17]quantity*price = 20002 [14:08:17]sum+1 = 20003 [14:08:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 96 12.03.2024 14:08 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95166 ФПД: 19913158042034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T140823&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95166&fm=19913158042034&tin=02508201610067®Number=0000000000090555&sum=20000 [14:08:19]StoreToDocumentArchive [14:08:19]shift 327 fd 95166 [14:08:19]save to /storage/0327/doc_00095166 [14:08:19]save last doc name /storage/0327/doc_00095166 to /storage/kkm_last_doc_name [14:08:19]save OK [14:08:19]Clear old archive folders... [14:08:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:19]tlvbuf is 01A4CCF0 [14:08:19]SAM_PROTO_ClearQueue [14:08:19]wFMCommunicate request_size=4 [14:08:19]MH_SAM_APDU [14:08:19]CAPDU: 80 09 00 00 [14:08:19]Write to MH i2c: E2 08 00 D1 31 80 09 00 00 00 00 00 00 74 [14:08:19]Write i2c OK [14:08:19]MH_I2C_Read... [14:08:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:19]Read from MH i2c: E2 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 03 00 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 03 00 D1 31 00 90 00 76 [14:08:19]RAPDU: 90 00 [14:08:19]wFMCommunicate OK [14:08:19]SAM_PROTO_ClearQueue done [14:08:19]KKMCreateOFDPacket [14:08:19]OFDProtocolAddRootSTLVToBuf [14:08:19]FM_MakeSignedData [14:08:19]FM_MakeSignedData [14:08:19]SAM_PROTO_SignData [14:08:19]wFMCommunicate request_size=4 [14:08:19]MH_SAM_APDU [14:08:19]CAPDU: 80 0D 01 02 [14:08:19]Write to MH i2c: E2 08 00 D2 31 80 0D 01 02 00 00 00 00 7C [14:08:19]Write i2c OK [14:08:19]MH_I2C_Read... [14:08:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:19]Read from MH i2c: E2 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 03 00 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 03 00 D2 31 00 90 00 77 [14:08:19]RAPDU: 90 00 [14:08:19]wFMCommunicate OK [14:08:19]wFMCommunicate request_size=255 [14:08:19]MH_SAM_APDU [14:08:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 60 00 00 00 F4 03 04 00 D7 61 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BE 73 01 00 35 04 06 00 12 [14:08:19]Write to MH i2c: E2 02 01 D3 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 60 00 00 00 F4 03 04 00 D7 61 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BE 73 01 00 35 04 06 00 12 00 00 6E [14:08:19]Write i2c OK [14:08:19]MH_I2C_Read... [14:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:19]Read from MH i2c: E2 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 03 00 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 03 00 D3 31 00 90 00 78 [14:08:19]RAPDU: 90 00 [14:08:19]wFMCommunicate OK [14:08:19]wFMCommunicate request_size=10 [14:08:19]MH_SAM_APDU [14:08:19]CAPDU: 80 0D 02 02 05 1C 64 B6 21 B2 [14:08:19]Write to MH i2c: E2 0D 00 D4 31 80 0D 02 02 05 00 1C 64 B6 21 B2 00 00 92 [14:08:19]Write i2c OK [14:08:19]MH_I2C_Read... [14:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:19]Read from MH i2c: E2 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 03 00 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 03 00 D4 31 00 90 00 79 [14:08:19]RAPDU: 90 00 [14:08:19]wFMCommunicate OK [14:08:19]wFMCommunicate request_size=4 [14:08:19]MH_SAM_APDU [14:08:19]CAPDU: 80 0D 03 02 [14:08:19]Write to MH i2c: E2 08 00 D5 31 80 0D 03 02 00 00 00 00 81 [14:08:19]Write i2c OK [14:08:19]MH_I2C_Read... [14:08:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:19]Read from MH i2c: E2 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 0B 00 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 0B 00 D5 31 00 8D 8B 60 23 3D C9 FF A1 90 00 C3 [14:08:19]RAPDU: 8D 8B 60 23 3D C9 FF A1 90 00 [14:08:19]wFMCommunicate OK [14:08:19]SAM_PROTO_SignData done [14:08:19]FM_MakeSignedData done [14:08:19]CreateOFDProtocolMessage [14:08:19]wFMCommunicate request_size=4 [14:08:19]MH_SAM_APDU [14:08:19]CAPDU: 80 11 00 00 [14:08:19]Write to MH i2c: E2 08 00 D6 31 80 11 00 00 00 00 00 00 81 [14:08:19]Write i2c OK [14:08:19]MH_I2C_Read... [14:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:19]Read from MH i2c: E2 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 17 00 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 17 00 D6 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D1 [14:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:08:19]wFMCommunicate OK [14:08:19]CreateOFDProtocolMessage done [14:08:19]OFDSenderStorePacket 95166 [14:08:19]StoreOFDPacket docnum=95166 [14:08:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 17 FC 07 01 AB 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 60 00 00 00 F4 03 04 00 D7 61 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BE 73 01 00 35 04 06 00 12 1C 64 B6 21 B2 8D 8B 60 23 3D C9 FF A1 [14:08:19]CheckFolder [14:08:19]dirname=/storage/ofd_packets [14:08:19]CheckFolder done [14:08:19]ProducePacketName [14:08:19]name=ofd_packets/00095166 [14:08:19]NVStorageSaveData ofd_packets/00095166 [14:08:19]File name is /storage/ofd_packets/00095166 [14:08:19]Write 301 bytes [14:08:19]NVStorageSaveData done [14:08:19]OFDSenderStorePacket done [14:08:19]KKMCreateOFDPacket done [14:08:19]NVStorageSaveData kkm_last_timestamp [14:08:19]File name is /storage/kkm_last_timestamp [14:08:19]Write 4 bytes [14:08:19]NVStorageSaveData done [14:08:19]ExternCall_PrintAddStr [14:08:19]wPrintStart [14:08:19]Write to MH i2c: 01 00 00 D7 31 08 [14:08:19]Write i2c OK [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: 01 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: 01 07 00 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: 01 07 00 D7 31 00 80 00 00 00 FF 0F 9D [14:08:19]RasterBufferAndPrint [14:08:19]line Счет N : (1)196135 [14:08:19]line ИНН: 02508201610067 [14:08:19]line Контрольно-Кассовый Чек [14:08:19]line ПРОДАЖА [14:08:19]line ТРК (МРК, ГНК) : 42 [14:08:19]line Товар: 2710124130 [14:08:19]line Аи-92-К-5 [14:08:19]line 3.180 * 62.90 [14:08:19]line = 200.02 [14:08:19]line НДС 12% НСП 1% [14:08:19]line > о реализуемом товаре [14:08:19]line ОКРУГЛЕНИЕ: -0.02 [14:08:19]line ИТОГО: 200.00 [14:08:19]line Внесено: 200.00 [14:08:19]line СДАЧА: 0.00 [14:08:19]line НСП 1% : 1.77 [14:08:19]line НДС 12% : 21.24 [14:08:19]line Наличными: 200.00 [14:08:19]line Безнал.: 0.00 [14:08:19]line Место: АЗС № 6 "Партнер Нефть" [14:08:19]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:08:19]line СНО: Общий режим [14:08:19]line Чек 96 12.03.2024 14:08 [14:08:19]line Смена: 327 ФФД: 1.0 [14:08:19]line ЗНМ: 0300000009 [14:08:19]line РНМ: 0000000000090555 [14:08:19]line Версия ККМ: 001 [14:08:19]line ФМ: 0000000000874811 [14:08:19]line ФД: 95166 [14:08:19]line ФПД: 19913158042034 [14:08:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T140823&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95166&fm=19913158042034&tin=02508201610067®Number=0000000000090555&sum=20000 [14:08:19]written 0, free lines is 4095 [14:08:19]OFD Sender: Processing packet 95166 [packets to send 30, broken 29] [14:08:19]ProducePacketName [14:08:19]name=ofd_packets/00095166 [14:08:19]OFD Sender: To server: pG, [14:08:19]CommunicateWithHost lk.salyk.kg:30040 [14:08:19]ConnectInit lk.salyk.kg [14:08:19]Connected sock=10 [14:08:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 17 FC 07 01 AB 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 60 00 00 00 F4 03 04 00 D7 61 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BE 73 01 00 35 04 06 00 12 1C 64 B6 21 B2 8D 8B 60 23 3D C9 FF A1 [14:08:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 5A 66 47 00 7A 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BE 73 01 00 F4 03 04 00 2D 0D F0 65 B6 04 01 00 00 56 23 92 D3 C0 77 59 A8 [14:08:19]CommunicateWithHost err = 0 [14:08:19]CheckOFDResponse [14:08:19]1017 (14) - 77093643461234 [14:08:19]1041 (16) - 0000000000874811 [14:08:19]1040 (4) - 95166 [14:08:19]1012 (4) - 12.03.2024 08:07 [14:08:20]1206 (1) - 0 [14:08:20]OFD Sender: Remove packet 95166 [14:08:20]ProducePacketName [14:08:20]name=ofd_packets/00095166 [14:08:20]NVStorageDeleteData [14:08:20]Write to MH i2c: 01 00 00 02 32 34 [14:08:20]Write i2c OK [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: 01 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: 01 07 00 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: 01 07 00 02 32 00 80 00 00 00 5A 0D 22 [14:08:20]RasterBufferAndPrint [14:08:20]line [14:08:20]line [14:08:20]line [14:08:20]line [14:08:20]line [14:08:20]written 0, free lines is 3428 [14:08:20]process_action close_receipt done [14:08:20]requested_data is exist [14:08:20]produce_requested_data [14:08:20]requested_item fm.sn is exist - process it [14:08:20]wFMCommunicate request_size=4 [14:08:20]MH_SAM_APDU [14:08:20]CAPDU: 80 11 00 00 [14:08:20]Write to MH i2c: E2 08 00 09 32 80 11 00 00 00 00 00 00 B5 [14:08:20]Write i2c OK [14:08:20]MH_I2C_Read... [14:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:20]Read from MH i2c: E2 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 17 00 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 17 00 09 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 05 [14:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:08:20]wFMCommunicate OK [14:08:20]requested_item fd.num is exist - process it [14:08:20]SAM_PROTO_GetFieldsCounters [14:08:20]wFMCommunicate request_size=4 [14:08:20]MH_SAM_APDU [14:08:20]CAPDU: 80 13 00 00 [14:08:20]Write to MH i2c: E2 08 00 0A 32 80 13 00 00 00 00 00 00 B8 [14:08:20]Write i2c OK [14:08:20]MH_I2C_Read... [14:08:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:20]Read from MH i2c: E2 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 62 00 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 62 00 0A 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BE 73 01 00 0E 04 04 00 47 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 6F [14:08:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BE 73 01 00 0E 04 04 00 47 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:08:20]wFMCommunicate OK [14:08:20]SAM_PROTO_GetFieldsCounters done [14:08:20]requested_item shift.num is exist - process it [14:08:20]requested_item shift.opened is exist - process it [14:08:20]req_shift_opened [14:08:20]FM_GetShiftState [14:08:20]SAM_PROTO_GetShiftState [14:08:20]wFMCommunicate request_size=4 [14:08:20]MH_SAM_APDU [14:08:20]CAPDU: 80 13 01 00 [14:08:20]Write to MH i2c: E2 08 00 0B 32 80 13 01 00 00 00 00 00 BA [14:08:20]Write i2c OK [14:08:20]MH_I2C_Read... [14:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:20]Read from MH i2c: E2 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 0E 00 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 0E 00 0B 32 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 2E [14:08:20]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:08:20]wFMCommunicate OK [14:08:20]SAM_PROTO_GetShiftState done [14:08:20]FM_GetShiftState done [14:08:20]req_shift_opened done [14:08:20]requested_item shift.open_date is exist - process it [14:08:20]req_shift_open_date [14:08:20]req_shift_open_date done [14:08:20]produce_requested_data done [14:08:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95166,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:08:20]process_action_free close_receipt [14:08:20]json_value_free [14:08:20]json_value_free done [14:08:20]process_json_proto returns [14:08:20]Send response to host [14:08:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95166,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:08:20]free response buf [14:08:20]execute_script done [14:08:20]execute_script returns [14:08:20]free content buf [14:08:20]Sock 8.Close socket [14:08:20]Sock 8.Thread stoped [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:03]accept exits with 9 [14:09:03]New connection [14:09:03]New thread 3066957156 created [14:09:03]Thread 3066813796 joined [14:09:03]Waiting for new connection... [14:09:03] Sock 9.Parse request [14:09:03]Sock 9.Check first char [14:09:03]Sock 9.First char is OK [14:09:03]request: POST /json_proto HTTP/1.0 [14:09:03]Method: POST [14:09:03]URL: /json_proto [14:09:03]Method is POST - this is cgi request [14:09:03]url: /json_proto [14:09:03]query_string will be loaded in cgi processing [14:09:03]execute_cgi json_proto POST (null) [14:09:03]execute_cgi path=json_proto method=POST [14:09:03]POST find Content-Length [14:09:03]Host: 172.17.62.67:8080 [14:09:03]Content-Length: 677 [14:09:03]Content-Type: application/json [14:09:03] [14:09:03]POST finish read [14:09:03]Found Content-Length = 677 [14:09:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [14:09:03]execute_script... [14:09:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [14:09:03]POST & json_proto [14:09:03]process_json_proto [14:09:03]json parsed OK: [14:09:03]protocol is kg_v1.0 [14:09:03]action value=close_receipt [14:09:03]process_action close_receipt [14:09:03]cmd_close_receipt [14:09:03]MH_GetDate [14:09:03]Write to MH i2c: F0 00 00 0C 32 2D [14:09:03]Write i2c OK [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: F0 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: F0 05 00 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: F0 05 00 0C 32 00 05 62 F0 65 EE [14:09:03]GetLastDocTimeStamp 1710252503 [14:09:03]current date 1710252549 [14:09:03]FM_GetShiftState [14:09:03]SAM_PROTO_GetShiftState [14:09:03]wFMCommunicate request_size=4 [14:09:03]MH_SAM_APDU [14:09:03]CAPDU: 80 13 01 00 [14:09:03]Write to MH i2c: E2 08 00 0D 32 80 13 01 00 00 00 00 00 BC [14:09:03]Write i2c OK [14:09:03]MH_I2C_Read... [14:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:03]Read from MH i2c: E2 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: E2 0E 00 [14:09:03]MH_I2C_Read... [14:09:03]Read from MH i2c: E2 0E 00 0D 32 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 30 [14:09:03]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:09:03]wFMCommunicate OK [14:09:03]SAM_PROTO_GetShiftState done [14:09:03]FM_GetShiftState done [14:09:03]opened in 1710201976 [14:09:03]opened+sec_in_day 1710288376 [14:09:03]quantity*price = 30003 [14:09:03]sum+1 = 30004 [14:09:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 97 12.03.2024 14:09 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95167 ФПД: 183944955415746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T140909&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95167&fm=183944955415746&tin=02508201610067®Number=0000000000090555&sum=30000 [14:09:04]StoreToDocumentArchive [14:09:04]shift 327 fd 95167 [14:09:04]save to /storage/0327/doc_00095167 [14:09:04]save last doc name /storage/0327/doc_00095167 to /storage/kkm_last_doc_name [14:09:04]save OK [14:09:04]Clear old archive folders... [14:09:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:04]tlvbuf is 01A71250 [14:09:04]SAM_PROTO_ClearQueue [14:09:04]wFMCommunicate request_size=4 [14:09:04]MH_SAM_APDU [14:09:04]CAPDU: 80 09 00 00 [14:09:04]Write to MH i2c: E2 08 00 1A 32 80 09 00 00 00 00 00 00 BE [14:09:04]Write i2c OK [14:09:04]MH_I2C_Read... [14:09:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:04]Read from MH i2c: E2 [14:09:04]MH_I2C_Read... [14:09:04]Read from MH i2c: E2 03 00 [14:09:04]MH_I2C_Read... [14:09:04]Read from MH i2c: E2 03 00 1A 32 00 90 00 C0 [14:09:04]RAPDU: 90 00 [14:09:04]wFMCommunicate OK [14:09:04]SAM_PROTO_ClearQueue done [14:09:04]KKMCreateOFDPacket [14:09:04]OFDProtocolAddRootSTLVToBuf [14:09:04]FM_MakeSignedData [14:09:04]FM_MakeSignedData [14:09:04]SAM_PROTO_SignData [14:09:04]wFMCommunicate request_size=4 [14:09:04]MH_SAM_APDU [14:09:04]CAPDU: 80 0D 01 02 [14:09:04]Write to MH i2c: E2 08 00 1B 32 80 0D 01 02 00 00 00 00 C6 [14:09:04]Write i2c OK [14:09:04]MH_I2C_Read... [14:09:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:04]Read from MH i2c: E2 [14:09:04]MH_I2C_Read... [14:09:04]Read from MH i2c: E2 03 00 [14:09:04]MH_I2C_Read... [14:09:04]Read from MH i2c: E2 03 00 1B 32 00 90 00 C1 [14:09:04]RAPDU: 90 00 [14:09:04]wFMCommunicate OK [14:09:04]wFMCommunicate request_size=255 [14:09:04]MH_SAM_APDU [14:09:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 61 00 00 00 F4 03 04 00 05 62 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BF 73 01 00 35 04 06 00 A7 [14:09:04]Write to MH i2c: E2 02 01 1C 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 61 00 00 00 F4 03 04 00 05 62 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BF 73 01 00 35 04 06 00 A7 00 00 E3 [14:09:05]Write i2c OK [14:09:05]MH_I2C_Read... [14:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:05]Read from MH i2c: E2 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: E2 03 00 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: E2 03 00 1C 32 00 90 00 C2 [14:09:05]RAPDU: 90 00 [14:09:05]wFMCommunicate OK [14:09:05]wFMCommunicate request_size=10 [14:09:05]MH_SAM_APDU [14:09:05]CAPDU: 80 0D 02 02 05 4C 05 B9 CC C2 [14:09:05]Write to MH i2c: E2 0D 00 1D 32 80 0D 02 02 05 00 4C 05 B9 CC C2 00 00 6B [14:09:05]Write i2c OK [14:09:05]MH_I2C_Read... [14:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:05]Read from MH i2c: E2 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: E2 03 00 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: E2 03 00 1D 32 00 90 00 C3 [14:09:05]RAPDU: 90 00 [14:09:05]wFMCommunicate OK [14:09:05]wFMCommunicate request_size=4 [14:09:05]MH_SAM_APDU [14:09:05]CAPDU: 80 0D 03 02 [14:09:05]Write to MH i2c: E2 08 00 1E 32 80 0D 03 02 00 00 00 00 CB [14:09:05]Write i2c OK [14:09:05]MH_I2C_Read... [14:09:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:05]Read from MH i2c: E2 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: E2 0B 00 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: E2 0B 00 1E 32 00 8D 35 C3 A3 D8 F0 9C 6B 90 00 C3 [14:09:05]RAPDU: 8D 35 C3 A3 D8 F0 9C 6B 90 00 [14:09:05]wFMCommunicate OK [14:09:05]SAM_PROTO_SignData done [14:09:05]FM_MakeSignedData done [14:09:05]CreateOFDProtocolMessage [14:09:05]wFMCommunicate request_size=4 [14:09:05]MH_SAM_APDU [14:09:05]CAPDU: 80 11 00 00 [14:09:05]Write to MH i2c: E2 08 00 1F 32 80 11 00 00 00 00 00 00 CB [14:09:05]Write i2c OK [14:09:05]MH_I2C_Read... [14:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:05]Read from MH i2c: E2 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: E2 17 00 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: E2 17 00 1F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1B [14:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:09:05]wFMCommunicate OK [14:09:05]CreateOFDProtocolMessage done [14:09:05]OFDSenderStorePacket 95167 [14:09:05]StoreOFDPacket docnum=95167 [14:09:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AC 5A 07 01 18 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 61 00 00 00 F4 03 04 00 05 62 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BF 73 01 00 35 04 06 00 A7 4C 05 B9 CC C2 8D 35 C3 A3 D8 F0 9C 6B [14:09:05]CheckFolder [14:09:05]dirname=/storage/ofd_packets [14:09:05]CheckFolder done [14:09:05]ProducePacketName [14:09:05]name=ofd_packets/00095167 [14:09:05]NVStorageSaveData ofd_packets/00095167 [14:09:05]File name is /storage/ofd_packets/00095167 [14:09:05]Write 301 bytes [14:09:05]NVStorageSaveData done [14:09:05]OFDSenderStorePacket done [14:09:05]KKMCreateOFDPacket done [14:09:05]NVStorageSaveData kkm_last_timestamp [14:09:05]File name is /storage/kkm_last_timestamp [14:09:05]Write 4 bytes [14:09:05]NVStorageSaveData done [14:09:05]ExternCall_PrintAddStr [14:09:05]wPrintStart [14:09:05]Write to MH i2c: 01 00 00 20 32 52 [14:09:05]Write i2c OK [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: 01 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: 01 07 00 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: 01 07 00 20 32 00 80 00 00 00 FF 0F E7 [14:09:05]RasterBufferAndPrint [14:09:05]line Счет N : (1)196136 [14:09:05]line ИНН: 02508201610067 [14:09:05]line Контрольно-Кассовый Чек [14:09:05]line ПРОДАЖА [14:09:05]line ТРК (МРК, ГНК) : 32 [14:09:05]line Товар: 2710124130 [14:09:05]line Аи-92-К-5 [14:09:05]line 4.770 * 62.90 [14:09:05]line = 300.03 [14:09:05]line НДС 12% НСП 1% [14:09:05]line > о реализуемом товаре [14:09:05]line ОКРУГЛЕНИЕ: -0.03 [14:09:05]line ИТОГО: 300.00 [14:09:05]line Внесено: 300.00 [14:09:05]line СДАЧА: 0.00 [14:09:05]line НСП 1% : 2.65 [14:09:05]line НДС 12% : 31.86 [14:09:05]line Наличными: 300.00 [14:09:05]line Безнал.: 0.00 [14:09:05]line Место: АЗС № 6 "Партнер Нефть" [14:09:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:09:05]line СНО: Общий режим [14:09:05]line Чек 97 12.03.2024 14:09 [14:09:05]line Смена: 327 ФФД: 1.0 [14:09:05]line ЗНМ: 0300000009 [14:09:05]line РНМ: 0000000000090555 [14:09:05]line Версия ККМ: 001 [14:09:05]line ФМ: 0000000000874811 [14:09:05]line ФД: 95167 [14:09:05]line ФПД: 183944955415746 [14:09:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T140909&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95167&fm=183944955415746&tin=02508201610067®Number=0000000000090555&sum=30000 [14:09:05]written 0, free lines is 4095 [14:09:05]OFD Sender: Processing packet 95167 [packets to send 30, broken 29] [14:09:05]ProducePacketName [14:09:05]name=ofd_packets/00095167 [14:09:05]OFD Sender: To server: pG, [14:09:05]CommunicateWithHost lk.salyk.kg:30040 [14:09:05]ConnectInit lk.salyk.kg [14:09:05]Connected sock=10 [14:09:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AC 5A 07 01 18 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 61 00 00 00 F4 03 04 00 05 62 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BF 73 01 00 35 04 06 00 A7 4C 05 B9 CC C2 8D 35 C3 A3 D8 F0 9C 6B [14:09:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 56 78 47 00 73 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BF 73 01 00 F4 03 04 00 5A 0D F0 65 B6 04 01 00 00 76 CC 43 BF 5D 12 64 B7 [14:09:05]CommunicateWithHost err = 0 [14:09:05]CheckOFDResponse [14:09:05]1017 (14) - 77093643461234 [14:09:05]1041 (16) - 0000000000874811 [14:09:05]1040 (4) - 95167 [14:09:05]1012 (4) - 12.03.2024 08:07 [14:09:05]1206 (1) - 0 [14:09:05]OFD Sender: Remove packet 95167 [14:09:05]ProducePacketName [14:09:05]name=ofd_packets/00095167 [14:09:05]NVStorageDeleteData [14:09:05]Write to MH i2c: 01 00 00 4B 32 7D [14:09:05]Write i2c OK [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: 01 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: 01 07 00 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: 01 07 00 4B 32 00 80 00 00 00 5D 0D 6E [14:09:05]RasterBufferAndPrint [14:09:05]line [14:09:05]line [14:09:05]line [14:09:05]line [14:09:05]line [14:09:05]written 0, free lines is 3427 [14:09:05]process_action close_receipt done [14:09:05]requested_data is exist [14:09:05]produce_requested_data [14:09:05]requested_item fm.sn is exist - process it [14:09:05]wFMCommunicate request_size=4 [14:09:05]MH_SAM_APDU [14:09:05]CAPDU: 80 11 00 00 [14:09:05]Write to MH i2c: E2 08 00 52 32 80 11 00 00 00 00 00 00 FE [14:09:05]Write i2c OK [14:09:05]MH_I2C_Read... [14:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:05]Read from MH i2c: E2 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: E2 17 00 [14:09:05]MH_I2C_Read... [14:09:05]Read from MH i2c: E2 17 00 52 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4E [14:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:09:05]wFMCommunicate OK [14:09:05]requested_item fd.num is exist - process it [14:09:05]SAM_PROTO_GetFieldsCounters [14:09:05]wFMCommunicate request_size=4 [14:09:05]MH_SAM_APDU [14:09:05]CAPDU: 80 13 00 00 [14:09:05]Write to MH i2c: E2 08 00 53 32 80 13 00 00 00 00 00 00 01 [14:09:05]Write i2c OK [14:09:05]MH_I2C_Read... [14:09:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:06]Read from MH i2c: E2 [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: E2 62 00 [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: E2 62 00 53 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BF 73 01 00 0E 04 04 00 47 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 BC [14:09:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BF 73 01 00 0E 04 04 00 47 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:09:06]wFMCommunicate OK [14:09:06]SAM_PROTO_GetFieldsCounters done [14:09:06]requested_item shift.num is exist - process it [14:09:06]requested_item shift.opened is exist - process it [14:09:06]req_shift_opened [14:09:06]FM_GetShiftState [14:09:06]SAM_PROTO_GetShiftState [14:09:06]wFMCommunicate request_size=4 [14:09:06]MH_SAM_APDU [14:09:06]CAPDU: 80 13 01 00 [14:09:06]Write to MH i2c: E2 08 00 54 32 80 13 01 00 00 00 00 00 03 [14:09:06]Write i2c OK [14:09:06]MH_I2C_Read... [14:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:06]Read from MH i2c: E2 [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: E2 0E 00 [14:09:06]MH_I2C_Read... [14:09:06]Read from MH i2c: E2 0E 00 54 32 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 77 [14:09:06]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:09:06]wFMCommunicate OK [14:09:06]SAM_PROTO_GetShiftState done [14:09:06]FM_GetShiftState done [14:09:06]req_shift_opened done [14:09:06]requested_item shift.open_date is exist - process it [14:09:06]req_shift_open_date [14:09:06]req_shift_open_date done [14:09:06]produce_requested_data done [14:09:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95167,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:09:06]process_action_free close_receipt [14:09:06]json_value_free [14:09:06]json_value_free done [14:09:06]process_json_proto returns [14:09:06]Send response to host [14:09:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95167,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:09:06]free response buf [14:09:06]execute_script done [14:09:06]execute_script returns [14:09:06]free content buf [14:09:06]Sock 9.Close socket [14:09:06]Sock 9.Thread stoped [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:45]accept exits with 8 [14:09:45]New connection [14:09:45]New thread 3066813796 created [14:09:45]Thread 3066957156 joined [14:09:45]Waiting for new connection... [14:09:45] Sock 8.Parse request [14:09:45]Sock 8.Check first char [14:09:45]Sock 8.First char is OK [14:09:45]request: POST /json_proto HTTP/1.0 [14:09:45]Method: POST [14:09:45]URL: /json_proto [14:09:45]Method is POST - this is cgi request [14:09:45]url: /json_proto [14:09:45]query_string will be loaded in cgi processing [14:09:45]execute_cgi json_proto POST (null) [14:09:45]execute_cgi path=json_proto method=POST [14:09:45]POST find Content-Length [14:09:45]Host: 172.17.62.67:8080 [14:09:45]Content-Length: 677 [14:09:45]Content-Type: application/json [14:09:45] [14:09:45]POST finish read [14:09:45]Found Content-Length = 677 [14:09:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:09:45]execute_script... [14:09:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:09:45]POST & json_proto [14:09:45]process_json_proto [14:09:45]json parsed OK: [14:09:45]protocol is kg_v1.0 [14:09:45]action value=close_receipt [14:09:45]process_action close_receipt [14:09:45]cmd_close_receipt [14:09:45]MH_GetDate [14:09:45]Write to MH i2c: F0 00 00 55 32 76 [14:09:45]Write i2c OK [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: F0 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: F0 05 00 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: F0 05 00 55 32 00 2E 62 F0 65 60 [14:09:45]GetLastDocTimeStamp 1710252549 [14:09:45]current date 1710252590 [14:09:45]FM_GetShiftState [14:09:45]SAM_PROTO_GetShiftState [14:09:45]wFMCommunicate request_size=4 [14:09:45]MH_SAM_APDU [14:09:45]CAPDU: 80 13 01 00 [14:09:45]Write to MH i2c: E2 08 00 56 32 80 13 01 00 00 00 00 00 05 [14:09:45]Write i2c OK [14:09:45]MH_I2C_Read... [14:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:45]Read from MH i2c: E2 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 0E 00 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 0E 00 56 32 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 79 [14:09:45]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:09:45]wFMCommunicate OK [14:09:45]SAM_PROTO_GetShiftState done [14:09:45]FM_GetShiftState done [14:09:45]opened in 1710201976 [14:09:45]opened+sec_in_day 1710288376 [14:09:45]quantity*price = 50005 [14:09:45]sum+1 = 50007 [14:09:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 98 12.03.2024 14:09 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95168 ФПД: 50084489751779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T140950&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95168&fm=50084489751779&tin=02508201610067®Number=0000000000090555&sum=50000 [14:09:46]StoreToDocumentArchive [14:09:46]shift 327 fd 95168 [14:09:46]save to /storage/0327/doc_00095168 [14:09:46]save last doc name /storage/0327/doc_00095168 to /storage/kkm_last_doc_name [14:09:46]save OK [14:09:46]Clear old archive folders... [14:09:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:46]tlvbuf is 01A34530 [14:09:46]SAM_PROTO_ClearQueue [14:09:46]wFMCommunicate request_size=4 [14:09:46]MH_SAM_APDU [14:09:46]CAPDU: 80 09 00 00 [14:09:46]Write to MH i2c: E2 08 00 63 32 80 09 00 00 00 00 00 00 07 [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:46]Read from MH i2c: E2 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 03 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 03 00 63 32 00 90 00 09 [14:09:46]RAPDU: 90 00 [14:09:46]wFMCommunicate OK [14:09:46]SAM_PROTO_ClearQueue done [14:09:46]KKMCreateOFDPacket [14:09:46]OFDProtocolAddRootSTLVToBuf [14:09:46]FM_MakeSignedData [14:09:46]FM_MakeSignedData [14:09:46]SAM_PROTO_SignData [14:09:46]wFMCommunicate request_size=4 [14:09:46]MH_SAM_APDU [14:09:46]CAPDU: 80 0D 01 02 [14:09:46]Write to MH i2c: E2 08 00 64 32 80 0D 01 02 00 00 00 00 0F [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:46]Read from MH i2c: E2 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 03 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 03 00 64 32 00 90 00 0A [14:09:46]RAPDU: 90 00 [14:09:46]wFMCommunicate OK [14:09:46]wFMCommunicate request_size=255 [14:09:46]MH_SAM_APDU [14:09:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 2E 62 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C0 73 01 00 35 04 06 00 2D [14:09:46]Write to MH i2c: E2 02 01 65 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 2E 62 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C0 73 01 00 35 04 06 00 2D 00 00 A8 [14:09:46]OFD Sender: No OFD packet to send [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:46]Read from MH i2c: E2 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 03 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 03 00 65 32 00 90 00 0B [14:09:46]RAPDU: 90 00 [14:09:46]wFMCommunicate OK [14:09:46]wFMCommunicate request_size=10 [14:09:46]MH_SAM_APDU [14:09:46]CAPDU: 80 0D 02 02 05 8D 34 38 6C E3 [14:09:46]Write to MH i2c: E2 0D 00 66 32 80 0D 02 02 05 00 8D 34 38 6C E3 00 00 64 [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:46]Read from MH i2c: E2 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 03 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 03 00 66 32 00 90 00 0C [14:09:46]RAPDU: 90 00 [14:09:46]wFMCommunicate OK [14:09:46]wFMCommunicate request_size=4 [14:09:46]MH_SAM_APDU [14:09:46]CAPDU: 80 0D 03 02 [14:09:46]Write to MH i2c: E2 08 00 67 32 80 0D 03 02 00 00 00 00 14 [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:46]Read from MH i2c: E2 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 0B 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 0B 00 67 32 00 6A B3 88 4A 5C 8A 89 60 90 00 D3 [14:09:46]RAPDU: 6A B3 88 4A 5C 8A 89 60 90 00 [14:09:46]wFMCommunicate OK [14:09:46]SAM_PROTO_SignData done [14:09:46]FM_MakeSignedData done [14:09:46]CreateOFDProtocolMessage [14:09:46]wFMCommunicate request_size=4 [14:09:46]MH_SAM_APDU [14:09:46]CAPDU: 80 11 00 00 [14:09:46]Write to MH i2c: E2 08 00 68 32 80 11 00 00 00 00 00 00 14 [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:46]Read from MH i2c: E2 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 17 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 17 00 68 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 64 [14:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:09:46]wFMCommunicate OK [14:09:46]CreateOFDProtocolMessage done [14:09:46]OFDSenderStorePacket 95168 [14:09:46]StoreOFDPacket docnum=95168 [14:09:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CB F8 07 01 10 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 2E 62 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C0 73 01 00 35 04 06 00 2D 8D 34 38 6C E3 6A B3 88 4A 5C 8A 89 60 [14:09:46]CheckFolder [14:09:46]dirname=/storage/ofd_packets [14:09:46]CheckFolder done [14:09:46]ProducePacketName [14:09:46]name=ofd_packets/00095168 [14:09:46]NVStorageSaveData ofd_packets/00095168 [14:09:46]File name is /storage/ofd_packets/00095168 [14:09:46]Write 301 bytes [14:09:46]NVStorageSaveData done [14:09:46]OFDSenderStorePacket done [14:09:46]KKMCreateOFDPacket done [14:09:46]NVStorageSaveData kkm_last_timestamp [14:09:46]File name is /storage/kkm_last_timestamp [14:09:46]Write 4 bytes [14:09:46]NVStorageSaveData done [14:09:46]ExternCall_PrintAddStr [14:09:46]wPrintStart [14:09:46]Write to MH i2c: 01 00 00 69 32 9B [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: 01 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: 01 07 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: 01 07 00 69 32 00 80 00 00 00 FF 0F 30 [14:09:46]RasterBufferAndPrint [14:09:46]line Счет N : (1)196137 [14:09:46]line ИНН: 02508201610067 [14:09:46]line Контрольно-Кассовый Чек [14:09:46]line ПРОДАЖА [14:09:46]line ТРК (МРК, ГНК) : 32 [14:09:46]line Товар: 2710124130 [14:09:46]line Аи-92-К-5 [14:09:46]line 7.950 * 62.90 [14:09:46]line = 500.06 [14:09:46]line НДС 12% НСП 1% [14:09:46]line > о реализуемом товаре [14:09:46]line ОКРУГЛЕНИЕ: -0.06 [14:09:46]line ИТОГО: 500.00 [14:09:46]line Внесено: 500.00 [14:09:46]line СДАЧА: 0.00 [14:09:46]line НСП 1% : 4.42 [14:09:46]line НДС 12% : 53.10 [14:09:46]line Наличными: 500.00 [14:09:46]line Безнал.: 0.00 [14:09:46]line Место: АЗС № 6 "Партнер Нефть" [14:09:46]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:09:46]line СНО: Общий режим [14:09:46]line Чек 98 12.03.2024 14:09 [14:09:46]line Смена: 327 ФФД: 1.0 [14:09:46]line ЗНМ: 0300000009 [14:09:46]line РНМ: 0000000000090555 [14:09:46]line Версия ККМ: 001 [14:09:46]line ФМ: 0000000000874811 [14:09:46]line ФД: 95168 [14:09:46]line ФПД: 50084489751779 [14:09:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T140950&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95168&fm=50084489751779&tin=02508201610067®Number=0000000000090555&sum=50000 [14:09:47]OFD Sender: Processing packet 95168 [packets to send 30, broken 29] [14:09:47]ProducePacketName [14:09:47]name=ofd_packets/00095168 [14:09:47]OFD Sender: To server: pG, [14:09:47]CommunicateWithHost lk.salyk.kg:30040 [14:09:47]ConnectInit lk.salyk.kg [14:09:47]written 0, free lines is 4095 [14:09:47]Connected sock=10 [14:09:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CB F8 07 01 10 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 2E 62 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C0 73 01 00 35 04 06 00 2D 8D 34 38 6C E3 6A B3 88 4A 5C 8A 89 60 [14:09:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 41 05 47 00 5D 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C0 73 01 00 F4 03 04 00 84 0D F0 65 B6 04 01 00 00 5A 68 E8 F7 DE F2 69 88 [14:09:47]CommunicateWithHost err = 0 [14:09:47]CheckOFDResponse [14:09:47]1017 (14) - 77093643461234 [14:09:47]1041 (16) - 0000000000874811 [14:09:47]1040 (4) - 95168 [14:09:47]1012 (4) - 12.03.2024 08:08 [14:09:47]1206 (1) - 0 [14:09:47]OFD Sender: Remove packet 95168 [14:09:47]ProducePacketName [14:09:47]name=ofd_packets/00095168 [14:09:47]NVStorageDeleteData [14:09:47]Write to MH i2c: 01 00 00 94 32 C6 [14:09:47]Write i2c OK [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: 01 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: 01 07 00 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: 01 07 00 94 32 00 80 00 00 00 54 0D AE [14:09:47]RasterBufferAndPrint [14:09:47]line [14:09:47]line [14:09:47]line [14:09:47]line [14:09:47]line [14:09:47]written 0, free lines is 3418 [14:09:47]process_action close_receipt done [14:09:47]requested_data is exist [14:09:47]produce_requested_data [14:09:47]requested_item fm.sn is exist - process it [14:09:47]wFMCommunicate request_size=4 [14:09:47]MH_SAM_APDU [14:09:47]CAPDU: 80 11 00 00 [14:09:47]Write to MH i2c: E2 08 00 9B 32 80 11 00 00 00 00 00 00 47 [14:09:47]Write i2c OK [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 [14:09:47]MH_I2C_Read... [14:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:47]Read from MH i2c: E2 17 00 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 17 00 9B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 97 [14:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:09:47]wFMCommunicate OK [14:09:47]requested_item fd.num is exist - process it [14:09:47]SAM_PROTO_GetFieldsCounters [14:09:47]wFMCommunicate request_size=4 [14:09:47]MH_SAM_APDU [14:09:47]CAPDU: 80 13 00 00 [14:09:47]Write to MH i2c: E2 08 00 9C 32 80 13 00 00 00 00 00 00 4A [14:09:47]Write i2c OK [14:09:47]MH_I2C_Read... [14:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:47]Read from MH i2c: E2 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 62 00 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 62 00 9C 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C0 73 01 00 0E 04 04 00 47 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 09 [14:09:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C0 73 01 00 0E 04 04 00 47 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:09:47]wFMCommunicate OK [14:09:47]SAM_PROTO_GetFieldsCounters done [14:09:47]requested_item shift.num is exist - process it [14:09:47]requested_item shift.opened is exist - process it [14:09:47]req_shift_opened [14:09:47]FM_GetShiftState [14:09:47]SAM_PROTO_GetShiftState [14:09:47]wFMCommunicate request_size=4 [14:09:47]MH_SAM_APDU [14:09:47]CAPDU: 80 13 01 00 [14:09:47]Write to MH i2c: E2 08 00 9D 32 80 13 01 00 00 00 00 00 4C [14:09:47]Write i2c OK [14:09:47]MH_I2C_Read... [14:09:47]OFD Sender: No OFD packet to send [14:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:47]Read from MH i2c: E2 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 0E 00 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 0E 00 9D 32 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C0 [14:09:47]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:09:47]wFMCommunicate OK [14:09:47]SAM_PROTO_GetShiftState done [14:09:47]FM_GetShiftState done [14:09:47]req_shift_opened done [14:09:47]requested_item shift.open_date is exist - process it [14:09:47]req_shift_open_date [14:09:47]req_shift_open_date done [14:09:47]produce_requested_data done [14:09:47]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95168,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:09:47]process_action_free close_receipt [14:09:47]json_value_free [14:09:47]json_value_free done [14:09:47]process_json_proto returns [14:09:47]Send response to host [14:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95168,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:09:47]free response buf [14:09:47]execute_script done [14:09:47]execute_script returns [14:09:47]free content buf [14:09:47]Sock 8.Close socket [14:09:47]Sock 8.Thread stoped [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:40]accept exits with 9 [14:10:40]New connection [14:10:40]New thread 3066957156 created [14:10:40]Thread 3066813796 joined [14:10:40]Waiting for new connection... [14:10:40] Sock 9.Parse request [14:10:40]Sock 9.Check first char [14:10:40]Sock 9.First char is OK [14:10:40]request: POST /json_proto HTTP/1.0 [14:10:40]Method: POST [14:10:40]URL: /json_proto [14:10:40]Method is POST - this is cgi request [14:10:40]url: /json_proto [14:10:40]query_string will be loaded in cgi processing [14:10:40]execute_cgi json_proto POST (null) [14:10:40]execute_cgi path=json_proto method=POST [14:10:40]POST find Content-Length [14:10:40]Host: 172.17.62.67:8080 [14:10:40]Content-Length: 1202 [14:10:40]Content-Type: application/json [14:10:40] [14:10:40]POST finish read [14:10:40]Found Content-Length = 1202 [14:10:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196138\u000A12.03.2024 14:04\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 0.090 x 69.50\u000A\u0418\u0422\u041E\u0413: 6.26\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:40]execute_script... [14:10:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196138\u000A12.03.2024 14:04\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 0.090 x 69.50\u000A\u0418\u0422\u041E\u0413: 6.26\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:40]POST & json_proto [14:10:40]process_json_proto [14:10:40]json parsed OK: [14:10:40]protocol is kg_v1.0 [14:10:40]action value=print_text [14:10:40]process_action print_text [14:10:40]cmd_print_text [14:10:40]ExternCall_PrintAddStr [14:10:40]wPrintStart [14:10:40]Write to MH i2c: 01 00 00 9E 32 D0 [14:10:40]Write i2c OK [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: 01 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: 01 07 00 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: 01 07 00 9E 32 00 80 00 00 00 FF 0F 65 [14:10:40]RasterBufferAndPrint [14:10:40]line *****ТОВАРНЫЙ ЧЕК***** [14:10:40]line АЗС 6 [14:10:40]line Партнер нефть [14:10:40]line 02508201610067 [14:10:40]line Кассир : Мыктыбекова И. [14:10:40]line Счет N : (1)196138 [14:10:40]line 12.03.2024 14:04 [14:10:40]line ПРОДАЖА [14:10:40]line ТРК (МРК, ГНК): 21 [14:10:40]line Вид ГСМ : 2710124500 [14:10:40]line Аи-95-К-5 [14:10:40]line 0.090 x 69.50 [14:10:40]line ИТОГ: 6.26 [14:10:40]line Тип оплаты: Технологический отпуск: [14:10:40]line ______________________ [14:10:40]line (подпись) [14:10:40]written 0, free lines is 4095 [14:10:40]Write to MH i2c: 01 00 00 B1 32 E3 [14:10:40]Write i2c OK [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: 01 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: 01 07 00 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: 01 07 00 B1 32 00 80 00 00 00 79 0E F1 [14:10:40]RasterBufferAndPrint [14:10:40]line [14:10:40]line [14:10:40]line [14:10:40]line [14:10:40]line [14:10:40]written 0, free lines is 3709 [14:10:40]process_action print_text done [14:10:40]requested_data is exist [14:10:40]produce_requested_data [14:10:40]requested_item fm.sn is exist - process it [14:10:40]wFMCommunicate request_size=4 [14:10:40]MH_SAM_APDU [14:10:40]CAPDU: 80 11 00 00 [14:10:40]Write to MH i2c: E2 08 00 B8 32 80 11 00 00 00 00 00 00 64 [14:10:40]Write i2c OK [14:10:40]MH_I2C_Read... [14:10:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:40]Read from MH i2c: E2 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: E2 17 00 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: E2 17 00 B8 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B4 [14:10:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:10:40]wFMCommunicate OK [14:10:40]requested_item fd.num is exist - process it [14:10:40]SAM_PROTO_GetFieldsCounters [14:10:40]wFMCommunicate request_size=4 [14:10:40]MH_SAM_APDU [14:10:40]CAPDU: 80 13 00 00 [14:10:40]Write to MH i2c: E2 08 00 B9 32 80 13 00 00 00 00 00 00 67 [14:10:40]Write i2c OK [14:10:40]MH_I2C_Read... [14:10:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:40]Read from MH i2c: E2 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: E2 62 00 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: E2 62 00 B9 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C0 73 01 00 0E 04 04 00 47 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 26 [14:10:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C0 73 01 00 0E 04 04 00 47 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:10:40]wFMCommunicate OK [14:10:40]SAM_PROTO_GetFieldsCounters done [14:10:40]requested_item shift.num is exist - process it [14:10:40]requested_item shift.opened is exist - process it [14:10:40]req_shift_opened [14:10:40]FM_GetShiftState [14:10:40]SAM_PROTO_GetShiftState [14:10:40]wFMCommunicate request_size=4 [14:10:40]MH_SAM_APDU [14:10:40]CAPDU: 80 13 01 00 [14:10:40]Write to MH i2c: E2 08 00 BA 32 80 13 01 00 00 00 00 00 69 [14:10:40]Write i2c OK [14:10:40]MH_I2C_Read... [14:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:40]Read from MH i2c: E2 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: E2 0E 00 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: E2 0E 00 BA 32 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 DD [14:10:40]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:10:40]wFMCommunicate OK [14:10:40]SAM_PROTO_GetShiftState done [14:10:40]FM_GetShiftState done [14:10:40]req_shift_opened done [14:10:40]requested_item shift.open_date is exist - process it [14:10:40]req_shift_open_date [14:10:40]req_shift_open_date done [14:10:40]produce_requested_data done [14:10:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95168,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:10:40]process_action_free print_text [14:10:40]json_value_free [14:10:40]json_value_free done [14:10:40]process_json_proto returns [14:10:40]Send response to host [14:10:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95168,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:10:40]free response buf [14:10:40]execute_script done [14:10:40]execute_script returns [14:10:40]free content buf [14:10:40]Sock 9.Close socket [14:10:40]Sock 9.Thread stoped [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]accept exits with 8 [14:20:03]New connection [14:20:03]New thread 3066813796 created [14:20:03]Thread 3066957156 joined [14:20:03]Waiting for new connection... [14:20:03] Sock 8.Parse request [14:20:03]Sock 8.Check first char [14:20:03]Sock 8.First char is OK [14:20:03]request: POST /json_proto HTTP/1.0 [14:20:03]Method: POST [14:20:03]URL: /json_proto [14:20:03]Method is POST - this is cgi request [14:20:03]url: /json_proto [14:20:03]query_string will be loaded in cgi processing [14:20:03]execute_cgi json_proto POST (null) [14:20:03]execute_cgi path=json_proto method=POST [14:20:03]POST find Content-Length [14:20:03]Host: 172.17.62.67:8080 [14:20:03]Content-Length: 816 [14:20:03]Content-Type: application/json [14:20:03] [14:20:03]POST finish read [14:20:03]Found Content-Length = 816 [14:20:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:03]execute_script... [14:20: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)196139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:03]POST & json_proto [14:20:03]process_json_proto [14:20:03]json parsed OK: [14:20:03]protocol is kg_v1.0 [14:20:03]action value=close_receipt [14:20:03]process_action close_receipt [14:20:03]cmd_close_receipt [14:20:03]MH_GetDate [14:20:03]Write to MH i2c: F0 00 00 BB 32 DC [14:20:03]Write i2c OK [14:20:03]MH_I2C_Read... [14:20:03]Read from MH i2c: F0 [14:20:03]MH_I2C_Read... [14:20:03]Read from MH i2c: F0 05 00 [14:20:03]MH_I2C_Read... [14:20:03]Read from MH i2c: F0 05 00 BB 32 00 98 64 F0 65 32 [14:20:03]GetLastDocTimeStamp 1710252590 [14:20:03]current date 1710253208 [14:20:03]FM_GetShiftState [14:20:03]SAM_PROTO_GetShiftState [14:20:03]wFMCommunicate request_size=4 [14:20:03]MH_SAM_APDU [14:20:03]CAPDU: 80 13 01 00 [14:20:03]Write to MH i2c: E2 08 00 BC 32 80 13 01 00 00 00 00 00 6B [14:20:03]Write i2c OK [14:20:03]MH_I2C_Read... [14:20:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:03]Read from MH i2c: E2 [14:20:03]MH_I2C_Read... [14:20:03]Read from MH i2c: E2 0E 00 [14:20:03]MH_I2C_Read... [14:20:03]Read from MH i2c: E2 0E 00 BC 32 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 DF [14:20:03]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:20:03]wFMCommunicate OK [14:20:03]SAM_PROTO_GetShiftState done [14:20:03]FM_GetShiftState done [14:20:03]opened in 1710201976 [14:20:03]opened+sec_in_day 1710288376 [14:20:03]quantity*price = 60006 [14:20:03]sum+1 = 60008 [14:20:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.07 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.07 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 99 12.03.2024 14:20 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95169 ФПД: 194495409449414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T142008&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95169&fm=194495409449414&tin=02508201610067®Number=0000000000090555&sum=60007 [14:20:04]StoreToDocumentArchive [14:20:04]shift 327 fd 95169 [14:20:04]save to /storage/0327/doc_00095169 [14:20:04]save last doc name /storage/0327/doc_00095169 to /storage/kkm_last_doc_name [14:20:04]save OK [14:20:04]Clear old archive folders... [14:20:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:04]tlvbuf is 01A9B080 [14:20:04]SAM_PROTO_ClearQueue [14:20:04]wFMCommunicate request_size=4 [14:20:04]MH_SAM_APDU [14:20:04]CAPDU: 80 09 00 00 [14:20:04]Write to MH i2c: E2 08 00 C9 32 80 09 00 00 00 00 00 00 6D [14:20:04]Write i2c OK [14:20:04]MH_I2C_Read... [14:20:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:04]Read from MH i2c: E2 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: E2 03 00 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: E2 03 00 C9 32 00 90 00 6F [14:20:04]RAPDU: 90 00 [14:20:04]wFMCommunicate OK [14:20:04]SAM_PROTO_ClearQueue done [14:20:04]KKMCreateOFDPacket [14:20:04]OFDProtocolAddRootSTLVToBuf [14:20:04]FM_MakeSignedData [14:20:04]FM_MakeSignedData [14:20:04]SAM_PROTO_SignData [14:20:04]wFMCommunicate request_size=4 [14:20:04]MH_SAM_APDU [14:20:04]CAPDU: 80 0D 01 02 [14:20:04]Write to MH i2c: E2 08 00 CA 32 80 0D 01 02 00 00 00 00 75 [14:20:04]Write i2c OK [14:20:04]MH_I2C_Read... [14:20:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:04]Read from MH i2c: E2 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: E2 03 00 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: E2 03 00 CA 32 00 90 00 70 [14:20:04]RAPDU: 90 00 [14:20:04]wFMCommunicate OK [14:20:04]wFMCommunicate request_size=255 [14:20:04]MH_SAM_APDU [14:20:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 98 64 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C1 73 01 00 35 04 06 00 B0 [14:20:04]Write to MH i2c: E2 02 01 CB 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 98 64 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C1 73 01 00 35 04 06 00 B0 00 00 73 [14:20:04]Write i2c OK [14:20:04]MH_I2C_Read... [14:20:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:04]Read from MH i2c: E2 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: E2 03 00 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: E2 03 00 CB 32 00 90 00 71 [14:20:04]RAPDU: 90 00 [14:20:04]wFMCommunicate OK [14:20:04]wFMCommunicate request_size=10 [14:20:04]MH_SAM_APDU [14:20:04]CAPDU: 80 0D 02 02 05 E4 7D CA 69 C6 [14:20:04]Write to MH i2c: E2 0D 00 CC 32 80 0D 02 02 05 00 E4 7D CA 69 C6 00 00 DC [14:20:04]Write i2c OK [14:20:04]MH_I2C_Read... [14:20:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:04]Read from MH i2c: E2 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: E2 03 00 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: E2 03 00 CC 32 00 90 00 72 [14:20:04]RAPDU: 90 00 [14:20:04]wFMCommunicate OK [14:20:04]wFMCommunicate request_size=4 [14:20:04]MH_SAM_APDU [14:20:04]CAPDU: 80 0D 03 02 [14:20:04]Write to MH i2c: E2 08 00 CD 32 80 0D 03 02 00 00 00 00 7A [14:20:04]Write i2c OK [14:20:04]MH_I2C_Read... [14:20:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:04]Read from MH i2c: E2 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: E2 0B 00 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: E2 0B 00 CD 32 00 BC CF 40 C2 01 A2 17 F6 90 00 B8 [14:20:04]RAPDU: BC CF 40 C2 01 A2 17 F6 90 00 [14:20:04]wFMCommunicate OK [14:20:04]SAM_PROTO_SignData done [14:20:04]FM_MakeSignedData done [14:20:04]CreateOFDProtocolMessage [14:20:04]wFMCommunicate request_size=4 [14:20:04]MH_SAM_APDU [14:20:04]CAPDU: 80 11 00 00 [14:20:04]Write to MH i2c: E2 08 00 CE 32 80 11 00 00 00 00 00 00 7A [14:20:04]Write i2c OK [14:20:04]MH_I2C_Read... [14:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:04]Read from MH i2c: E2 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: E2 17 00 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: E2 17 00 CE 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CA [14:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:20:04]wFMCommunicate OK [14:20:04]CreateOFDProtocolMessage done [14:20:04]OFDSenderStorePacket 95169 [14:20:04]StoreOFDPacket docnum=95169 [14:20:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D9 68 07 01 EC 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 98 64 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C1 73 01 00 35 04 06 00 B0 E4 7D CA 69 C6 BC CF 40 C2 01 A2 17 F6 [14:20:04]CheckFolder [14:20:04]dirname=/storage/ofd_packets [14:20:04]CheckFolder done [14:20:04]ProducePacketName [14:20:04]name=ofd_packets/00095169 [14:20:04]NVStorageSaveData ofd_packets/00095169 [14:20:04]File name is /storage/ofd_packets/00095169 [14:20:04]Write 301 bytes [14:20:04]NVStorageSaveData done [14:20:04]OFDSenderStorePacket done [14:20:04]KKMCreateOFDPacket done [14:20:04]NVStorageSaveData kkm_last_timestamp [14:20:04]File name is /storage/kkm_last_timestamp [14:20:04]Write 4 bytes [14:20:04]NVStorageSaveData done [14:20:04]ExternCall_PrintAddStr [14:20:04]wPrintStart [14:20:04]Write to MH i2c: 01 00 00 CF 32 01 [14:20:04]Write i2c OK [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: 01 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: 01 07 00 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: 01 07 00 CF 32 00 80 00 00 00 FF 0F 96 [14:20:04]RasterBufferAndPrint [14:20:04]line Счет N : (1)196139 [14:20:04]line ИНН: 02508201610067 [14:20:04]line Контрольно-Кассовый Чек [14:20:04]line ПРОДАЖА [14:20:04]line ТРК (МРК, ГНК) : 22 [14:20:04]line Товар: 2710124130 [14:20:04]line Аи-92-К-5 [14:20:04]line 9.540 * 62.90 [14:20:04]line = 600.07 [14:20:04]line НДС 12% НСП 1% [14:20:04]line > о реализуемом товаре [14:20:04]line ИТОГО: 600.07 [14:20:04]line НСП 1% : 5.31 [14:20:04]line НДС 12% : 63.72 [14:20:04]line Наличными: 0.00 [14:20:04]line Безнал.: 600.07 [14:20:04]line Место: АЗС № 6 "Партнер Нефть" [14:20:04]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:20:04]line СНО: Общий режим [14:20:04]line Чек 99 12.03.2024 14:20 [14:20:04]line Смена: 327 ФФД: 1.0 [14:20:04]line ЗНМ: 0300000009 [14:20:04]line РНМ: 0000000000090555 [14:20:04]line Версия ККМ: 001 [14:20:04]line Платежная система: Бакай Банк [14:20:04]line ФМ: 0000000000874811 [14:20:04]line ФД: 95169 [14:20:04]line ФПД: 194495409449414 [14:20:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T142008&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95169&fm=194495409449414&tin=02508201610067®Number=0000000000090555&sum=60007 [14:20:05]OFD Sender: Processing packet 95169 [packets to send 30, broken 29] [14:20:05]ProducePacketName [14:20:05]name=ofd_packets/00095169 [14:20:05]OFD Sender: To server: pG, [14:20:05]CommunicateWithHost lk.salyk.kg:30040 [14:20:05]ConnectInit lk.salyk.kg [14:20:05]written 0, free lines is 4095 [14:20:05]Connected sock=10 [14:20:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D9 68 07 01 EC 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 98 64 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C1 73 01 00 35 04 06 00 B0 E4 7D CA 69 C6 BC CF 40 C2 01 A2 17 F6 [14:20:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 77 CF 47 00 6D 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C1 73 01 00 F4 03 04 00 EE 0F F0 65 B6 04 01 00 00 8D 64 6A FA 04 3B D6 0E [14:20:05]CommunicateWithHost err = 0 [14:20:05]CheckOFDResponse [14:20:05]1017 (14) - 77093643461234 [14:20:05]1041 (16) - 0000000000874811 [14:20:05]1040 (4) - 95169 [14:20:05]1012 (4) - 12.03.2024 08:18 [14:20:05]1206 (1) - 0 [14:20:05]OFD Sender: Remove packet 95169 [14:20:05]ProducePacketName [14:20:05]name=ofd_packets/00095169 [14:20:05]NVStorageDeleteData [14:20:05]Write to MH i2c: 01 00 00 F9 32 2B [14:20:05]Write i2c OK [14:20:05]MH_I2C_Read... [14:20:05]Read from MH i2c: 01 [14:20:05]MH_I2C_Read... [14:20:05]Read from MH i2c: 01 07 00 [14:20:05]MH_I2C_Read... [14:20:05]Read from MH i2c: 01 07 00 F9 32 00 80 00 00 00 61 0D 20 [14:20:05]RasterBufferAndPrint [14:20:05]line [14:20:05]line [14:20:05]line [14:20:05]line [14:20:05]line [14:20:05]written 0, free lines is 3431 [14:20:05]process_action close_receipt done [14:20:05]requested_data is exist [14:20:05]produce_requested_data [14:20:05]requested_item fm.sn is exist - process it [14:20:05]wFMCommunicate request_size=4 [14:20:05]MH_SAM_APDU [14:20:05]CAPDU: 80 11 00 00 [14:20:05]Write to MH i2c: E2 08 00 00 33 80 11 00 00 00 00 00 00 AD [14:20:05]Write i2c OK [14:20:05]MH_I2C_Read... [14:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:05]Read from MH i2c: E2 [14:20:05]MH_I2C_Read... [14:20:05]Read from MH i2c: E2 17 00 [14:20:05]MH_I2C_Read... [14:20:05]Read from MH i2c: E2 17 00 00 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FD [14:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:20:05]wFMCommunicate OK [14:20:05]requested_item fd.num is exist - process it [14:20:05]SAM_PROTO_GetFieldsCounters [14:20:05]wFMCommunicate request_size=4 [14:20:05]MH_SAM_APDU [14:20:05]CAPDU: 80 13 00 00 [14:20:05]Write to MH i2c: E2 08 00 01 33 80 13 00 00 00 00 00 00 B0 [14:20:05]Write i2c OK [14:20:05]MH_I2C_Read... [14:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:05]Read from MH i2c: E2 [14:20:05]MH_I2C_Read... [14:20:05]Read from MH i2c: E2 62 00 [14:20:05]MH_I2C_Read... [14:20:05]Read from MH i2c: E2 62 00 01 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C1 73 01 00 0E 04 04 00 47 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 73 [14:20:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C1 73 01 00 0E 04 04 00 47 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:05]wFMCommunicate OK [14:20:05]SAM_PROTO_GetFieldsCounters done [14:20:05]requested_item shift.num is exist - process it [14:20:05]requested_item shift.opened is exist - process it [14:20:05]req_shift_opened [14:20:05]FM_GetShiftState [14:20:05]SAM_PROTO_GetShiftState [14:20:05]wFMCommunicate request_size=4 [14:20:05]MH_SAM_APDU [14:20:05]CAPDU: 80 13 01 00 [14:20:05]Write to MH i2c: E2 08 00 02 33 80 13 01 00 00 00 00 00 B2 [14:20:05]Write i2c OK [14:20:05]MH_I2C_Read... [14:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:06]Read from MH i2c: E2 [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: E2 0E 00 [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: E2 0E 00 02 33 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 26 [14:20:06]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:20:06]wFMCommunicate OK [14:20:06]SAM_PROTO_GetShiftState done [14:20:06]FM_GetShiftState done [14:20:06]req_shift_opened done [14:20:06]requested_item shift.open_date is exist - process it [14:20:06]req_shift_open_date [14:20:06]req_shift_open_date done [14:20:06]produce_requested_data done [14:20:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95169,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:20:06]process_action_free close_receipt [14:20:06]json_value_free [14:20:06]json_value_free done [14:20:06]process_json_proto returns [14:20:06]Send response to host [14:20:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95169,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:20:06]free response buf [14:20:06]execute_script done [14:20:06]execute_script returns [14:20:06]free content buf [14:20:06]Sock 8.Close socket [14:20:06]Sock 8.Thread stoped [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:25]accept exits with 9 [14:20:25]New connection [14:20:25]New thread 3066957156 created [14:20:25]Thread 3066813796 joined [14:20:25]Waiting for new connection... [14:20:25] Sock 9.Parse request [14:20:25]Sock 9.Check first char [14:20:25]Sock 9.First char is OK [14:20:25]request: POST /json_proto HTTP/1.0 [14:20:25]Method: POST [14:20:25]URL: /json_proto [14:20:25]Method is POST - this is cgi request [14:20:25]url: /json_proto [14:20:25]query_string will be loaded in cgi processing [14:20:25]execute_cgi json_proto POST (null) [14:20:25]execute_cgi path=json_proto method=POST [14:20:25]POST find Content-Length [14:20:25]Host: 172.17.62.67:8080 [14:20:25]Content-Length: 816 [14:20:25]Content-Type: application/json [14:20:25] [14:20:25]POST finish read [14:20:25]Found Content-Length = 816 [14:20:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:25]execute_script... [14:20: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)196140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:25]POST & json_proto [14:20:25]process_json_proto [14:20:25]json parsed OK: [14:20:25]protocol is kg_v1.0 [14:20:25]action value=close_receipt [14:20:25]process_action close_receipt [14:20:25]cmd_close_receipt [14:20:25]MH_GetDate [14:20:25]Write to MH i2c: F0 00 00 03 33 25 [14:20:25]Write i2c OK [14:20:25]MH_I2C_Read... [14:20:25]Read from MH i2c: F0 [14:20:25]MH_I2C_Read... [14:20:25]Read from MH i2c: F0 05 00 [14:20:25]MH_I2C_Read... [14:20:25]Read from MH i2c: F0 05 00 03 33 00 AF 64 F0 65 92 [14:20:25]GetLastDocTimeStamp 1710253208 [14:20:25]current date 1710253231 [14:20:25]FM_GetShiftState [14:20:25]SAM_PROTO_GetShiftState [14:20:25]wFMCommunicate request_size=4 [14:20:25]MH_SAM_APDU [14:20:25]CAPDU: 80 13 01 00 [14:20:25]Write to MH i2c: E2 08 00 04 33 80 13 01 00 00 00 00 00 B4 [14:20:25]Write i2c OK [14:20:25]MH_I2C_Read... [14:20:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:25]Read from MH i2c: E2 [14:20:25]MH_I2C_Read... [14:20:25]Read from MH i2c: E2 0E 00 [14:20:25]MH_I2C_Read... [14:20:25]Read from MH i2c: E2 0E 00 04 33 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 28 [14:20:25]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:20:25]wFMCommunicate OK [14:20:25]SAM_PROTO_GetShiftState done [14:20:25]FM_GetShiftState done [14:20:25]opened in 1710201976 [14:20:25]opened+sec_in_day 1710288376 [14:20:25]quantity*price = 40004 [14:20:25]sum+1 = 40005 [14:20:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.04 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.04 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 100 12.03.2024 14:20 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95170 ФПД: 146682775910587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T142031&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95170&fm=146682775910587&tin=02508201610067®Number=0000000000090555&sum=40004 [14:20:26]StoreToDocumentArchive [14:20:26]shift 327 fd 95170 [14:20:26]save to /storage/0327/doc_00095170 [14:20:26]save last doc name /storage/0327/doc_00095170 to /storage/kkm_last_doc_name [14:20:26]save OK [14:20:26]Clear old archive folders... [14:20:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:26]tlvbuf is 01AD2340 [14:20:26]SAM_PROTO_ClearQueue [14:20:26]wFMCommunicate request_size=4 [14:20:26]MH_SAM_APDU [14:20:26]CAPDU: 80 09 00 00 [14:20:26]Write to MH i2c: E2 08 00 11 33 80 09 00 00 00 00 00 00 B6 [14:20:26]Write i2c OK [14:20:26]MH_I2C_Read... [14:20:26]Read from MH i2c: E2 [14:20:26]MH_I2C_Read... [14:20:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:26]Read from MH i2c: E2 03 00 [14:20:26]MH_I2C_Read... [14:20:26]Read from MH i2c: E2 03 00 11 33 00 90 00 B8 [14:20:26]RAPDU: 90 00 [14:20:26]wFMCommunicate OK [14:20:26]SAM_PROTO_ClearQueue done [14:20:26]KKMCreateOFDPacket [14:20:26]OFDProtocolAddRootSTLVToBuf [14:20:26]FM_MakeSignedData [14:20:26]FM_MakeSignedData [14:20:26]SAM_PROTO_SignData [14:20:26]wFMCommunicate request_size=4 [14:20:26]MH_SAM_APDU [14:20:26]CAPDU: 80 0D 01 02 [14:20:26]Write to MH i2c: E2 08 00 12 33 80 0D 01 02 00 00 00 00 BE [14:20:26]Write i2c OK [14:20:26]MH_I2C_Read... [14:20:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:26]Read from MH i2c: E2 [14:20:26]MH_I2C_Read... [14:20:26]Read from MH i2c: E2 03 00 [14:20:26]MH_I2C_Read... [14:20:26]Read from MH i2c: E2 03 00 12 33 00 90 00 B9 [14:20:26]RAPDU: 90 00 [14:20:26]wFMCommunicate OK [14:20:26]wFMCommunicate request_size=255 [14:20:26]MH_SAM_APDU [14:20:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AF 64 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C2 73 01 00 35 04 06 00 85 [14:20:26]Write to MH i2c: E2 02 01 13 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AF 64 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C2 73 01 00 35 04 06 00 85 00 00 D8 [14:20:26]Write i2c OK [14:20:26]MH_I2C_Read... [14:20:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:27]Read from MH i2c: E2 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: E2 03 00 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: E2 03 00 13 33 00 90 00 BA [14:20:27]RAPDU: 90 00 [14:20:27]wFMCommunicate OK [14:20:27]wFMCommunicate request_size=10 [14:20:27]MH_SAM_APDU [14:20:27]CAPDU: 80 0D 02 02 05 68 3E C0 B8 BB [14:20:27]Write to MH i2c: E2 0D 00 14 33 80 0D 02 02 05 00 68 3E C0 B8 BB 00 00 A4 [14:20:27]Write i2c OK [14:20:27]MH_I2C_Read... [14:20:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:27]Read from MH i2c: E2 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: E2 03 00 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: E2 03 00 14 33 00 90 00 BB [14:20:27]RAPDU: 90 00 [14:20:27]wFMCommunicate OK [14:20:27]wFMCommunicate request_size=4 [14:20:27]MH_SAM_APDU [14:20:27]CAPDU: 80 0D 03 02 [14:20:27]Write to MH i2c: E2 08 00 15 33 80 0D 03 02 00 00 00 00 C3 [14:20:27]Write i2c OK [14:20:27]MH_I2C_Read... [14:20:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:27]Read from MH i2c: E2 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: E2 0B 00 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: E2 0B 00 15 33 00 EA 16 42 C7 19 8C C6 2B 90 00 63 [14:20:27]RAPDU: EA 16 42 C7 19 8C C6 2B 90 00 [14:20:27]wFMCommunicate OK [14:20:27]SAM_PROTO_SignData done [14:20:27]FM_MakeSignedData done [14:20:27]CreateOFDProtocolMessage [14:20:27]wFMCommunicate request_size=4 [14:20:27]MH_SAM_APDU [14:20:27]CAPDU: 80 11 00 00 [14:20:27]Write to MH i2c: E2 08 00 16 33 80 11 00 00 00 00 00 00 C3 [14:20:27]Write i2c OK [14:20:27]MH_I2C_Read... [14:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:27]Read from MH i2c: E2 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: E2 17 00 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: E2 17 00 16 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 13 [14:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:20:27]wFMCommunicate OK [14:20:27]CreateOFDProtocolMessage done [14:20:27]OFDSenderStorePacket 95170 [14:20:27]StoreOFDPacket docnum=95170 [14:20:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C9 A6 07 01 21 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AF 64 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C2 73 01 00 35 04 06 00 85 68 3E C0 B8 BB EA 16 42 C7 19 8C C6 2B [14:20:27]CheckFolder [14:20:27]dirname=/storage/ofd_packets [14:20:27]CheckFolder done [14:20:27]ProducePacketName [14:20:27]name=ofd_packets/00095170 [14:20:27]NVStorageSaveData ofd_packets/00095170 [14:20:27]File name is /storage/ofd_packets/00095170 [14:20:27]Write 301 bytes [14:20:27]NVStorageSaveData done [14:20:27]OFDSenderStorePacket done [14:20:27]KKMCreateOFDPacket done [14:20:27]NVStorageSaveData kkm_last_timestamp [14:20:27]File name is /storage/kkm_last_timestamp [14:20:27]Write 4 bytes [14:20:27]NVStorageSaveData done [14:20:27]ExternCall_PrintAddStr [14:20:27]wPrintStart [14:20:27]Write to MH i2c: 01 00 00 17 33 4A [14:20:27]Write i2c OK [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: 01 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: 01 07 00 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: 01 07 00 17 33 00 80 00 00 00 FF 0F DF [14:20:27]RasterBufferAndPrint [14:20:27]line Счет N : (1)196140 [14:20:27]line ИНН: 02508201610067 [14:20:27]line Контрольно-Кассовый Чек [14:20:27]line ПРОДАЖА [14:20:27]line ТРК (МРК, ГНК) : 12 [14:20:27]line Товар: 2710124130 [14:20:27]line Аи-92-К-5 [14:20:27]line 6.360 * 62.90 [14:20:27]line = 400.04 [14:20:27]line НДС 12% НСП 1% [14:20:27]line > о реализуемом товаре [14:20:27]line ИТОГО: 400.04 [14:20:27]line НСП 1% : 3.54 [14:20:27]line НДС 12% : 42.48 [14:20:27]line Наличными: 0.00 [14:20:27]line Безнал.: 400.04 [14:20:27]line Место: АЗС № 6 "Партнер Нефть" [14:20:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:20:27]line СНО: Общий режим [14:20:27]line Чек 100 12.03.2024 14:20 [14:20:27]line Смена: 327 ФФД: 1.0 [14:20:27]line ЗНМ: 0300000009 [14:20:27]line РНМ: 0000000000090555 [14:20:27]line Версия ККМ: 001 [14:20:27]line Платежная система: Бакай Банк [14:20:27]line ФМ: 0000000000874811 [14:20:27]line ФД: 95170 [14:20:27]line ФПД: 146682775910587 [14:20:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T142031&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95170&fm=146682775910587&tin=02508201610067®Number=0000000000090555&sum=40004 [14:20:27]written 0, free lines is 4095 [14:20:27]OFD Sender: Processing packet 95170 [packets to send 30, broken 29] [14:20:27]ProducePacketName [14:20:27]name=ofd_packets/00095170 [14:20:27]OFD Sender: To server: pG, [14:20:27]CommunicateWithHost lk.salyk.kg:30040 [14:20:27]ConnectInit lk.salyk.kg [14:20:27]Connected sock=11 [14:20:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C9 A6 07 01 21 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AF 64 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C2 73 01 00 35 04 06 00 85 68 3E C0 B8 BB EA 16 42 C7 19 8C C6 2B [14:20:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 BB 63 47 00 F4 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C2 73 01 00 F4 03 04 00 04 10 F0 65 B6 04 01 00 00 9B CD B3 95 71 4C FF 5D [14:20:27]CommunicateWithHost err = 0 [14:20:27]CheckOFDResponse [14:20:27]1017 (14) - 77093643461234 [14:20:27]1041 (16) - 0000000000874811 [14:20:27]1040 (4) - 95170 [14:20:27]1012 (4) - 12.03.2024 08:19 [14:20:27]1206 (1) - 0 [14:20:27]OFD Sender: Remove packet 95170 [14:20:27]ProducePacketName [14:20:27]name=ofd_packets/00095170 [14:20:27]NVStorageDeleteData [14:20:27]Write to MH i2c: 01 00 00 41 33 74 [14:20:27]Write i2c OK [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: 01 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: 01 07 00 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: 01 07 00 41 33 00 80 00 00 00 5D 0D 65 [14:20:27]RasterBufferAndPrint [14:20:27]line [14:20:27]line [14:20:27]line [14:20:27]line [14:20:27]line [14:20:27]written 0, free lines is 3425 [14:20:27]process_action close_receipt done [14:20:27]requested_data is exist [14:20:27]produce_requested_data [14:20:27]requested_item fm.sn is exist - process it [14:20:27]wFMCommunicate request_size=4 [14:20:27]MH_SAM_APDU [14:20:27]CAPDU: 80 11 00 00 [14:20:27]Write to MH i2c: E2 08 00 48 33 80 11 00 00 00 00 00 00 F5 [14:20:27]Write i2c OK [14:20:27]MH_I2C_Read... [14:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:27]Read from MH i2c: E2 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: E2 17 00 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: E2 17 00 48 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 45 [14:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:20:27]wFMCommunicate OK [14:20:27]requested_item fd.num is exist - process it [14:20:27]SAM_PROTO_GetFieldsCounters [14:20:27]wFMCommunicate request_size=4 [14:20:27]MH_SAM_APDU [14:20:27]CAPDU: 80 13 00 00 [14:20:27]Write to MH i2c: E2 08 00 49 33 80 13 00 00 00 00 00 00 F8 [14:20:27]Write i2c OK [14:20:27]MH_I2C_Read... [14:20:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:27]Read from MH i2c: E2 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: E2 62 00 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: E2 62 00 49 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C2 73 01 00 0E 04 04 00 47 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 BF [14:20:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C2 73 01 00 0E 04 04 00 47 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:20:27]wFMCommunicate OK [14:20:27]SAM_PROTO_GetFieldsCounters done [14:20:27]requested_item shift.num is exist - process it [14:20:27]requested_item shift.opened is exist - process it [14:20:27]req_shift_opened [14:20:27]FM_GetShiftState [14:20:27]SAM_PROTO_GetShiftState [14:20:27]wFMCommunicate request_size=4 [14:20:27]MH_SAM_APDU [14:20:27]CAPDU: 80 13 01 00 [14:20:27]Write to MH i2c: E2 08 00 4A 33 80 13 01 00 00 00 00 00 FA [14:20:27]Write i2c OK [14:20:27]MH_I2C_Read... [14:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:27]Read from MH i2c: E2 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: E2 0E 00 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: E2 0E 00 4A 33 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 6E [14:20:27]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:20:27]wFMCommunicate OK [14:20:27]SAM_PROTO_GetShiftState done [14:20:27]FM_GetShiftState done [14:20:27]req_shift_opened done [14:20:27]requested_item shift.open_date is exist - process it [14:20:27]req_shift_open_date [14:20:27]req_shift_open_date done [14:20:27]produce_requested_data done [14:20:27]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95170,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:20:27]process_action_free close_receipt [14:20:27]json_value_free [14:20:27]json_value_free done [14:20:27]process_json_proto returns [14:20:27]Send response to host [14:20:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95170,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:20:27]free response buf [14:20:27]execute_script done [14:20:27]execute_script returns [14:20:27]free content buf [14:20:27]Sock 9.Close socket [14:20:27]Sock 9.Thread stoped [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:35]int [14:20:35]Write to MH i2c: 01 00 00 4B 33 7E [14:20:35]Write i2c OK [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: 01 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: 01 07 00 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: 01 07 00 4B 33 00 81 00 00 00 FF 0F 14 [14:20:35]state=0 [14:20:35]No paper [14:20:35]int [14:20:35]Write to MH i2c: 01 00 00 4C 33 7F [14:20:35]Write i2c OK [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: 01 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: 01 07 00 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: 01 07 00 4C 33 00 83 00 00 00 FF 0F 17 [14:20:35]state=0 [14:20:35]No paper [14:20:35]Cover opened [14:20:36]int [14:20:36]Write to MH i2c: 01 00 00 4D 33 80 [14:20:36]Write i2c OK [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: 01 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: 01 07 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: 01 07 00 4D 33 00 81 00 00 00 FF 0F 16 [14:20:36]state=3 [14:20:36]No paper [14:20:36]Cover closed [14:20:36]int [14:20:36]Write to MH i2c: 01 00 00 4E 33 81 [14:20:36]Write i2c OK [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: 01 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: 01 07 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: 01 07 00 4E 33 00 83 00 00 00 FF 0F 19 [14:20:36]state=0 [14:20:36]No paper [14:20:36]Cover opened [14:20:38]OFD Sender: No OFD packet to send [14:20:41]Write to MH i2c: 01 00 00 4F 33 82 [14:20:41]Write i2c OK [14:20:41]MH_I2C_Read... [14:20:41]Read from MH i2c: 01 [14:20:41]MH_I2C_Read... [14:20:41]Read from MH i2c: 01 07 00 [14:20:41]MH_I2C_Read... [14:20:41]Read from MH i2c: 01 07 00 4F 33 00 83 00 00 00 FF 0F 1A [14:20:41]state=3 [14:20:41]No paper [14:20:41]Cover opened [14:20:43]OFD Sender: No OFD packet to send [14:20:44]int [14:20:44]Write to MH i2c: 01 00 00 50 33 83 [14:20:44]Write i2c OK [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: 01 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: 01 07 00 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: 01 07 00 50 33 00 81 00 00 00 FF 0F 19 [14:20:44]state=3 [14:20:44]No paper [14:20:44]Cover closed [14:20:44]int [14:20:44]Write to MH i2c: 01 00 00 51 33 84 [14:20:44]Write i2c OK [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: 01 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: 01 07 00 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: 01 07 00 51 33 00 80 00 00 00 FF 0F 19 [14:20:44]state=0 [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:51]accept exits with 8 [14:22:51]New connection [14:22:51]New thread 3066813796 created [14:22:51]Thread 3066957156 joined [14:22:51]Waiting for new connection... [14:22:51] Sock 8.Parse request [14:22:51]Sock 8.Check first char [14:22:51]Sock 8.First char is OK [14:22:51]request: POST /json_proto HTTP/1.0 [14:22:51]Method: POST [14:22:51]URL: /json_proto [14:22:51]Method is POST - this is cgi request [14:22:51]url: /json_proto [14:22:51]query_string will be loaded in cgi processing [14:22:51]execute_cgi json_proto POST (null) [14:22:51]execute_cgi path=json_proto method=POST [14:22:51]POST find Content-Length [14:22:51]Host: 172.17.62.67:8080 [14:22:51]Content-Length: 677 [14:22:51]Content-Type: application/json [14:22:51] [14:22:51]POST finish read [14:22:51]Found Content-Length = 677 [14:22:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:51]execute_script... [14:22:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:51]POST & json_proto [14:22:51]process_json_proto [14:22:51]json parsed OK: [14:22:51]protocol is kg_v1.0 [14:22:51]action value=close_receipt [14:22:51]process_action close_receipt [14:22:51]cmd_close_receipt [14:22:51]MH_GetDate [14:22:51]Write to MH i2c: F0 00 00 52 33 74 [14:22:51]Write i2c OK [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: F0 [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: F0 05 00 [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: F0 05 00 52 33 00 41 65 F0 65 74 [14:22:51]GetLastDocTimeStamp 1710253231 [14:22:51]current date 1710253377 [14:22:51]FM_GetShiftState [14:22:51]SAM_PROTO_GetShiftState [14:22:51]wFMCommunicate request_size=4 [14:22:51]MH_SAM_APDU [14:22:51]CAPDU: 80 13 01 00 [14:22:51]Write to MH i2c: E2 08 00 53 33 80 13 01 00 00 00 00 00 03 [14:22:51]Write i2c OK [14:22:51]MH_I2C_Read... [14:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:51]Read from MH i2c: E2 [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: E2 0E 00 [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: E2 0E 00 53 33 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 77 [14:22:51]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:22:51]wFMCommunicate OK [14:22:51]SAM_PROTO_GetShiftState done [14:22:51]FM_GetShiftState done [14:22:51]opened in 1710201976 [14:22:51]opened+sec_in_day 1710288376 [14:22:51]quantity*price = 60006 [14:22:51]sum+1 = 60008 [14:22:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 101 12.03.2024 14:22 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95171 ФПД: 261766351001940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T142257&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95171&fm=261766351001940&tin=02508201610067®Number=0000000000090555&sum=60000 [14:22:52]StoreToDocumentArchive [14:22:52]shift 327 fd 95171 [14:22:52]save to /storage/0327/doc_00095171 [14:22:52]save last doc name /storage/0327/doc_00095171 to /storage/kkm_last_doc_name [14:22:52]save OK [14:22:52]Clear old archive folders... [14:22:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:52]tlvbuf is 01A46580 [14:22:52]SAM_PROTO_ClearQueue [14:22:52]wFMCommunicate request_size=4 [14:22:52]MH_SAM_APDU [14:22:52]CAPDU: 80 09 00 00 [14:22:52]Write to MH i2c: E2 08 00 60 33 80 09 00 00 00 00 00 00 05 [14:22:52]Write i2c OK [14:22:52]MH_I2C_Read... [14:22:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:52]Read from MH i2c: E2 [14:22:52]MH_I2C_Read... [14:22:52]Read from MH i2c: E2 03 00 [14:22:52]MH_I2C_Read... [14:22:52]Read from MH i2c: E2 03 00 60 33 00 90 00 07 [14:22:52]RAPDU: 90 00 [14:22:52]wFMCommunicate OK [14:22:52]SAM_PROTO_ClearQueue done [14:22:52]KKMCreateOFDPacket [14:22:52]OFDProtocolAddRootSTLVToBuf [14:22:52]FM_MakeSignedData [14:22:52]FM_MakeSignedData [14:22:52]SAM_PROTO_SignData [14:22:52]wFMCommunicate request_size=4 [14:22:52]MH_SAM_APDU [14:22:52]CAPDU: 80 0D 01 02 [14:22:52]Write to MH i2c: E2 08 00 61 33 80 0D 01 02 00 00 00 00 0D [14:22:52]Write i2c OK [14:22:52]MH_I2C_Read... [14:22:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:52]Read from MH i2c: E2 [14:22:52]MH_I2C_Read... [14:22:52]Read from MH i2c: E2 03 00 [14:22:52]MH_I2C_Read... [14:22:52]Read from MH i2c: E2 03 00 61 33 00 90 00 08 [14:22:52]RAPDU: 90 00 [14:22:52]wFMCommunicate OK [14:22:52]wFMCommunicate request_size=255 [14:22:52]MH_SAM_APDU [14:22:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 41 65 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C3 73 01 00 35 04 06 00 EE [14:22:52]Write to MH i2c: E2 02 01 62 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 41 65 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C3 73 01 00 35 04 06 00 EE 00 00 E9 [14:22:52]Write i2c OK [14:22:52]MH_I2C_Read... [14:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:53]Read from MH i2c: E2 [14:22:53]MH_I2C_Read... [14:22:53]Read from MH i2c: E2 03 00 [14:22:53]MH_I2C_Read... [14:22:53]Read from MH i2c: E2 03 00 62 33 00 90 00 09 [14:22:53]RAPDU: 90 00 [14:22:53]wFMCommunicate OK [14:22:53]wFMCommunicate request_size=10 [14:22:53]MH_SAM_APDU [14:22:53]CAPDU: 80 0D 02 02 05 13 3A 5D 99 54 [14:22:53]Write to MH i2c: E2 0D 00 63 33 80 0D 02 02 05 00 13 3A 5D 99 54 00 00 B1 [14:22:53]OFD Sender: No OFD packet to send [14:22:53]Write i2c OK [14:22:53]MH_I2C_Read... [14:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:53]Read from MH i2c: E2 [14:22:53]MH_I2C_Read... [14:22:53]Read from MH i2c: E2 03 00 [14:22:53]MH_I2C_Read... [14:22:53]Read from MH i2c: E2 03 00 63 33 00 90 00 0A [14:22:53]RAPDU: 90 00 [14:22:53]wFMCommunicate OK [14:22:53]wFMCommunicate request_size=4 [14:22:53]MH_SAM_APDU [14:22:53]CAPDU: 80 0D 03 02 [14:22:53]Write to MH i2c: E2 08 00 64 33 80 0D 03 02 00 00 00 00 12 [14:22:53]Write i2c OK [14:22:53]MH_I2C_Read... [14:22:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:53]Read from MH i2c: E2 [14:22:53]MH_I2C_Read... [14:22:53]Read from MH i2c: E2 0B 00 [14:22:53]MH_I2C_Read... [14:22:53]Read from MH i2c: E2 0B 00 64 33 00 F1 41 95 C3 63 06 78 85 90 00 03 [14:22:53]RAPDU: F1 41 95 C3 63 06 78 85 90 00 [14:22:53]wFMCommunicate OK [14:22:53]SAM_PROTO_SignData done [14:22:53]FM_MakeSignedData done [14:22:53]CreateOFDProtocolMessage [14:22:53]wFMCommunicate request_size=4 [14:22:53]MH_SAM_APDU [14:22:53]CAPDU: 80 11 00 00 [14:22:53]Write to MH i2c: E2 08 00 65 33 80 11 00 00 00 00 00 00 12 [14:22:53]Write i2c OK [14:22:53]MH_I2C_Read... [14:22:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:53]Read from MH i2c: E2 [14:22:53]MH_I2C_Read... [14:22:53]Read from MH i2c: E2 17 00 [14:22:53]MH_I2C_Read... [14:22:53]Read from MH i2c: E2 17 00 65 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 62 [14:22:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:22:53]wFMCommunicate OK [14:22:53]CreateOFDProtocolMessage done [14:22:53]OFDSenderStorePacket 95171 [14:22:53]StoreOFDPacket docnum=95171 [14:22:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2A 31 07 01 C8 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 41 65 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C3 73 01 00 35 04 06 00 EE 13 3A 5D 99 54 F1 41 95 C3 63 06 78 85 [14:22:53]CheckFolder [14:22:53]dirname=/storage/ofd_packets [14:22:53]CheckFolder done [14:22:53]ProducePacketName [14:22:53]name=ofd_packets/00095171 [14:22:53]NVStorageSaveData ofd_packets/00095171 [14:22:53]File name is /storage/ofd_packets/00095171 [14:22:53]Write 301 bytes [14:22:53]NVStorageSaveData done [14:22:53]OFDSenderStorePacket done [14:22:53]KKMCreateOFDPacket done [14:22:53]NVStorageSaveData kkm_last_timestamp [14:22:53]File name is /storage/kkm_last_timestamp [14:22:53]Write 4 bytes [14:22:53]NVStorageSaveData done [14:22:53]ExternCall_PrintAddStr [14:22:53]wPrintStart [14:22:53]Write to MH i2c: 01 00 00 66 33 99 [14:22:53]Write i2c OK [14:22:53]MH_I2C_Read... [14:22:53]Read from MH i2c: 01 [14:22:53]MH_I2C_Read... [14:22:53]Read from MH i2c: 01 07 00 [14:22:53]MH_I2C_Read... [14:22:53]Read from MH i2c: 01 07 00 66 33 00 80 00 00 00 FF 0F 2E [14:22:53]RasterBufferAndPrint [14:22:53]line Счет N : (1)196142 [14:22:53]line ИНН: 02508201610067 [14:22:53]line Контрольно-Кассовый Чек [14:22:53]line ПРОДАЖА [14:22:53]line ТРК (МРК, ГНК) : 12 [14:22:53]line Товар: 2710124130 [14:22:53]line Аи-92-К-5 [14:22:53]line 9.540 * 62.90 [14:22:53]line = 600.07 [14:22:53]line НДС 12% НСП 1% [14:22:53]line > о реализуемом товаре [14:22:53]line ОКРУГЛЕНИЕ: -0.07 [14:22:53]line ИТОГО: 600.00 [14:22:53]line Внесено: 600.00 [14:22:53]line СДАЧА: 0.00 [14:22:53]line НСП 1% : 5.31 [14:22:53]line НДС 12% : 63.72 [14:22:53]line Наличными: 600.00 [14:22:53]line Безнал.: 0.00 [14:22:53]line Место: АЗС № 6 "Партнер Нефть" [14:22:53]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:22:53]line СНО: Общий режим [14:22:53]line Чек 101 12.03.2024 14:22 [14:22:53]line Смена: 327 ФФД: 1.0 [14:22:53]line ЗНМ: 0300000009 [14:22:53]line РНМ: 0000000000090555 [14:22:53]line Версия ККМ: 001 [14:22:53]line ФМ: 0000000000874811 [14:22:53]line ФД: 95171 [14:22:53]line ФПД: 261766351001940 [14:22:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T142257&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95171&fm=261766351001940&tin=02508201610067®Number=0000000000090555&sum=60000 [14:22:53]OFD Sender: Processing packet 95171 [packets to send 30, broken 29] [14:22:53]ProducePacketName [14:22:53]name=ofd_packets/00095171 [14:22:53]OFD Sender: To server: pG, [14:22:53]CommunicateWithHost lk.salyk.kg:30040 [14:22:53]ConnectInit lk.salyk.kg [14:22:53]written 0, free lines is 4095 [14:22:53]Connected sock=10 [14:22:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2A 31 07 01 C8 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 41 65 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C3 73 01 00 35 04 06 00 EE 13 3A 5D 99 54 F1 41 95 C3 63 06 78 85 [14:22:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 1A BA 47 00 84 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C3 73 01 00 F4 03 04 00 97 10 F0 65 B6 04 01 00 00 27 6D D4 C4 8D EE 2B 84 [14:22:53]CommunicateWithHost err = 0 [14:22:53]CheckOFDResponse [14:22:53]1017 (14) - 77093643461234 [14:22:53]1041 (16) - 0000000000874811 [14:22:53]1040 (4) - 95171 [14:22:53]1012 (4) - 12.03.2024 08:21 [14:22:53]1206 (1) - 0 [14:22:53]OFD Sender: Remove packet 95171 [14:22:53]ProducePacketName [14:22:53]name=ofd_packets/00095171 [14:22:53]NVStorageDeleteData [14:22:54]Write to MH i2c: 01 00 00 91 33 C4 [14:22:54]Write i2c OK [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: 01 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: 01 07 00 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: 01 07 00 91 33 00 80 00 00 00 4A 0D A2 [14:22:54]RasterBufferAndPrint [14:22:54]line [14:22:54]line [14:22:54]line [14:22:54]line [14:22:54]line [14:22:54]written 0, free lines is 3408 [14:22:54]process_action close_receipt done [14:22:54]requested_data is exist [14:22:54]produce_requested_data [14:22:54]requested_item fm.sn is exist - process it [14:22:54]wFMCommunicate request_size=4 [14:22:54]MH_SAM_APDU [14:22:54]CAPDU: 80 11 00 00 [14:22:54]Write to MH i2c: E2 08 00 98 33 80 11 00 00 00 00 00 00 45 [14:22:54]Write i2c OK [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 [14:22:54]MH_I2C_Read... [14:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:54]Read from MH i2c: E2 17 00 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 17 00 98 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 95 [14:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:22:54]wFMCommunicate OK [14:22:54]requested_item fd.num is exist - process it [14:22:54]SAM_PROTO_GetFieldsCounters [14:22:54]wFMCommunicate request_size=4 [14:22:54]MH_SAM_APDU [14:22:54]CAPDU: 80 13 00 00 [14:22:54]Write to MH i2c: E2 08 00 99 33 80 13 00 00 00 00 00 00 48 [14:22:54]Write i2c OK [14:22:54]MH_I2C_Read... [14:22:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:54]Read from MH i2c: E2 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 62 00 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 62 00 99 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C3 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [14:22:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C3 73 01 00 0E 04 04 00 47 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:22:54]wFMCommunicate OK [14:22:54]SAM_PROTO_GetFieldsCounters done [14:22:54]requested_item shift.num is exist - process it [14:22:54]requested_item shift.opened is exist - process it [14:22:54]req_shift_opened [14:22:54]FM_GetShiftState [14:22:54]SAM_PROTO_GetShiftState [14:22:54]wFMCommunicate request_size=4 [14:22:54]MH_SAM_APDU [14:22:54]CAPDU: 80 13 01 00 [14:22:54]Write to MH i2c: E2 08 00 9A 33 80 13 01 00 00 00 00 00 4A [14:22:54]Write i2c OK [14:22:54]MH_I2C_Read... [14:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:54]Read from MH i2c: E2 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 0E 00 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 0E 00 9A 33 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 BE [14:22:54]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:22:54]wFMCommunicate OK [14:22:54]SAM_PROTO_GetShiftState done [14:22:54]FM_GetShiftState done [14:22:54]req_shift_opened done [14:22:54]requested_item shift.open_date is exist - process it [14:22:54]req_shift_open_date [14:22:54]req_shift_open_date done [14:22:54]produce_requested_data done [14:22:54]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95171,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:22:54]process_action_free close_receipt [14:22:54]json_value_free [14:22:54]json_value_free done [14:22:54]process_json_proto returns [14:22:54]Send response to host [14:22:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95171,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:22:54]free response buf [14:22:54]execute_script done [14:22:54]execute_script returns [14:22:54]free content buf [14:22:54]Sock 8.Close socket [14:22:54]Sock 8.Thread stoped [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]accept exits with 9 [14:23:39]New connection [14:23:39]New thread 3066957156 created [14:23:39]Thread 3066813796 joined [14:23:39]Waiting for new connection... [14:23:39] Sock 9.Parse request [14:23:39]Sock 9.Check first char [14:23:39]Sock 9.First char is OK [14:23:39]request: POST /json_proto HTTP/1.0 [14:23:39]Method: POST [14:23:39]URL: /json_proto [14:23:39]Method is POST - this is cgi request [14:23:39]url: /json_proto [14:23:39]query_string will be loaded in cgi processing [14:23:39]execute_cgi json_proto POST (null) [14:23:39]execute_cgi path=json_proto method=POST [14:23:39]POST find Content-Length [14:23:39]Host: 172.17.62.67:8080 [14:23:39]Content-Length: 819 [14:23:39]Content-Type: application/json [14:23:39] [14:23:39]POST finish read [14:23:39]Found Content-Length = 819 [14:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 23.850, "sum" : 1500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:39]execute_script... [14:23: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)196141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 23.850, "sum" : 1500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:39]POST & json_proto [14:23:39]process_json_proto [14:23:39]json parsed OK: [14:23:39]protocol is kg_v1.0 [14:23:39]action value=close_receipt [14:23:39]process_action close_receipt [14:23:39]cmd_close_receipt [14:23:39]MH_GetDate [14:23:39]Write to MH i2c: F0 00 00 9B 33 BD [14:23:39]Write i2c OK [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: F0 [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: F0 05 00 [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: F0 05 00 9B 33 00 70 65 F0 65 EC [14:23:39]GetLastDocTimeStamp 1710253377 [14:23:39]current date 1710253424 [14:23:39]FM_GetShiftState [14:23:39]SAM_PROTO_GetShiftState [14:23:39]wFMCommunicate request_size=4 [14:23:39]MH_SAM_APDU [14:23:39]CAPDU: 80 13 01 00 [14:23:39]Write to MH i2c: E2 08 00 9C 33 80 13 01 00 00 00 00 00 4C [14:23:39]Write i2c OK [14:23:39]MH_I2C_Read... [14:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:39]Read from MH i2c: E2 [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: E2 0E 00 [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: E2 0E 00 9C 33 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C0 [14:23:39]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:23:39]wFMCommunicate OK [14:23:39]SAM_PROTO_GetShiftState done [14:23:39]FM_GetShiftState done [14:23:39]opened in 1710201976 [14:23:39]opened+sec_in_day 1710288376 [14:23:39]quantity*price = 150016 [14:23:39]sum+1 = 150018 [14:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.17 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 0.00 Безнал.: 1500.17 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 102 12.03.2024 14:23 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95172 ФПД: 191326722132700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T142344&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95172&fm=191326722132700&tin=02508201610067®Number=0000000000090555&sum=150017 [14:23:40]StoreToDocumentArchive [14:23:40]shift 327 fd 95172 [14:23:40]save to /storage/0327/doc_00095172 [14:23:40]save last doc name /storage/0327/doc_00095172 to /storage/kkm_last_doc_name [14:23:40]save OK [14:23:40]Clear old archive folders... [14:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:40]tlvbuf is 01A462C0 [14:23:40]SAM_PROTO_ClearQueue [14:23:40]wFMCommunicate request_size=4 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 09 00 00 [14:23:40]Write to MH i2c: E2 08 00 A9 33 80 09 00 00 00 00 00 00 4E [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 A9 33 00 90 00 50 [14:23:40]RAPDU: 90 00 [14:23:40]wFMCommunicate OK [14:23:40]SAM_PROTO_ClearQueue done [14:23:40]KKMCreateOFDPacket [14:23:40]OFDProtocolAddRootSTLVToBuf [14:23:40]FM_MakeSignedData [14:23:40]FM_MakeSignedData [14:23:40]SAM_PROTO_SignData [14:23:40]wFMCommunicate request_size=4 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 0D 01 02 [14:23:40]Write to MH i2c: E2 08 00 AA 33 80 0D 01 02 00 00 00 00 56 [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 AA 33 00 90 00 51 [14:23:40]RAPDU: 90 00 [14:23:40]wFMCommunicate OK [14:23:40]wFMCommunicate request_size=255 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 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 01 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 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 70 65 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C4 73 01 00 35 04 06 00 AE [14:23:40]Write to MH i2c: E2 02 01 AB 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 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 01 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 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 70 65 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C4 73 01 00 35 04 06 00 AE 00 00 E0 [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 AB 33 00 90 00 52 [14:23:40]RAPDU: 90 00 [14:23:40]wFMCommunicate OK [14:23:40]wFMCommunicate request_size=10 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 0D 02 02 05 02 B9 4F 0A DC [14:23:40]Write to MH i2c: E2 0D 00 AC 33 80 0D 02 02 05 00 02 B9 4F 0A DC 00 00 53 [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 AC 33 00 90 00 53 [14:23:40]RAPDU: 90 00 [14:23:40]wFMCommunicate OK [14:23:40]wFMCommunicate request_size=4 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 0D 03 02 [14:23:40]Write to MH i2c: E2 08 00 AD 33 80 0D 03 02 00 00 00 00 5B [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 0B 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 0B 00 AD 33 00 C5 42 2D 2A E6 92 E8 C5 90 00 DF [14:23:40]RAPDU: C5 42 2D 2A E6 92 E8 C5 90 00 [14:23:40]wFMCommunicate OK [14:23:40]SAM_PROTO_SignData done [14:23:40]FM_MakeSignedData done [14:23:40]CreateOFDProtocolMessage [14:23:40]wFMCommunicate request_size=4 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 11 00 00 [14:23:40]Write to MH i2c: E2 08 00 AE 33 80 11 00 00 00 00 00 00 5B [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 17 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 17 00 AE 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AB [14:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:23:40]wFMCommunicate OK [14:23:40]CreateOFDProtocolMessage done [14:23:40]OFDSenderStorePacket 95172 [14:23:40]StoreOFDPacket docnum=95172 [14:23:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B2 8B 07 01 F9 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 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 01 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 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 70 65 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C4 73 01 00 35 04 06 00 AE 02 B9 4F 0A DC C5 42 2D 2A E6 92 E8 C5 [14:23:40]CheckFolder [14:23:40]dirname=/storage/ofd_packets [14:23:40]CheckFolder done [14:23:40]ProducePacketName [14:23:40]name=ofd_packets/00095172 [14:23:40]NVStorageSaveData ofd_packets/00095172 [14:23:40]File name is /storage/ofd_packets/00095172 [14:23:40]Write 301 bytes [14:23:40]NVStorageSaveData done [14:23:40]OFDSenderStorePacket done [14:23:40]KKMCreateOFDPacket done [14:23:40]NVStorageSaveData kkm_last_timestamp [14:23:40]File name is /storage/kkm_last_timestamp [14:23:40]Write 4 bytes [14:23:40]NVStorageSaveData done [14:23:40]ExternCall_PrintAddStr [14:23:40]wPrintStart [14:23:40]Write to MH i2c: 01 00 00 AF 33 E2 [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: 01 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: 01 07 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: 01 07 00 AF 33 00 80 00 00 00 FF 0F 77 [14:23:40]RasterBufferAndPrint [14:23:40]line Счет N : (1)196141 [14:23:40]line ИНН: 02508201610067 [14:23:40]line Контрольно-Кассовый Чек [14:23:40]line ПРОДАЖА [14:23:40]line ТРК (МРК, ГНК) : 22 [14:23:40]line Товар: 2710124130 [14:23:40]line Аи-92-К-5 [14:23:40]line 23.850 * 62.90 [14:23:40]line = 1500.17 [14:23:40]line НДС 12% НСП 1% [14:23:40]line > о реализуемом товаре [14:23:40]line ИТОГО: 1500.17 [14:23:40]line НСП 1% : 13.28 [14:23:40]line НДС 12% : 159.31 [14:23:40]line Наличными: 0.00 [14:23:40]line Безнал.: 1500.17 [14:23:40]line Место: АЗС № 6 "Партнер Нефть" [14:23:40]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:23:40]line СНО: Общий режим [14:23:40]line Чек 102 12.03.2024 14:23 [14:23:40]line Смена: 327 ФФД: 1.0 [14:23:40]line ЗНМ: 0300000009 [14:23:40]line РНМ: 0000000000090555 [14:23:40]line Версия ККМ: 001 [14:23:40]line Платежная система: Бакай Банк [14:23:40]line ФМ: 0000000000874811 [14:23:40]line ФД: 95172 [14:23:40]line ФПД: 191326722132700 [14:23:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T142344&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95172&fm=191326722132700&tin=02508201610067®Number=0000000000090555&sum=150017 [14:23:41]OFD Sender: Processing packet 95172 [packets to send 30, broken 29] [14:23:41]ProducePacketName [14:23:41]name=ofd_packets/00095172 [14:23:41]OFD Sender: To server: pG, [14:23:41]CommunicateWithHost lk.salyk.kg:30040 [14:23:41]ConnectInit lk.salyk.kg [14:23:41]written 0, free lines is 4095 [14:23:41]Connected sock=10 [14:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B2 8B 07 01 F9 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 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 01 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 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 70 65 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C4 73 01 00 35 04 06 00 AE 02 B9 4F 0A DC C5 42 2D 2A E6 92 E8 C5 [14:23:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 8E 0C 47 00 52 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C4 73 01 00 F4 03 04 00 C6 10 F0 65 B6 04 01 00 00 D7 A3 DF FF 50 D0 F7 D5 [14:23:41]CommunicateWithHost err = 0 [14:23:41]CheckOFDResponse [14:23:41]1017 (14) - 77093643461234 [14:23:41]1041 (16) - 0000000000874811 [14:23:41]1040 (4) - 95172 [14:23:41]1012 (4) - 12.03.2024 08:22 [14:23:41]1206 (1) - 0 [14:23:41]OFD Sender: Remove packet 95172 [14:23:41]ProducePacketName [14:23:41]name=ofd_packets/00095172 [14:23:41]NVStorageDeleteData [14:23:41]Write to MH i2c: 01 00 00 D9 33 0C [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: 01 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: 01 07 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: 01 07 00 D9 33 00 80 00 00 00 68 0D 08 [14:23:41]RasterBufferAndPrint [14:23:41]line [14:23:41]line [14:23:41]line [14:23:41]line [14:23:41]line [14:23:41]written 0, free lines is 3438 [14:23:41]process_action close_receipt done [14:23:41]requested_data is exist [14:23:41]produce_requested_data [14:23:41]requested_item fm.sn is exist - process it [14:23:41]wFMCommunicate request_size=4 [14:23:41]MH_SAM_APDU [14:23:41]CAPDU: 80 11 00 00 [14:23:41]Write to MH i2c: E2 08 00 E0 33 80 11 00 00 00 00 00 00 8D [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 17 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 17 00 E0 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DD [14:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:23:41]wFMCommunicate OK [14:23:41]requested_item fd.num is exist - process it [14:23:41]SAM_PROTO_GetFieldsCounters [14:23:41]wFMCommunicate request_size=4 [14:23:41]MH_SAM_APDU [14:23:41]CAPDU: 80 13 00 00 [14:23:41]Write to MH i2c: E2 08 00 E1 33 80 13 00 00 00 00 00 00 90 [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 62 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 62 00 E1 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C4 73 01 00 0E 04 04 00 47 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 5F [14:23:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C4 73 01 00 0E 04 04 00 47 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:23:41]wFMCommunicate OK [14:23:41]SAM_PROTO_GetFieldsCounters done [14:23:41]requested_item shift.num is exist - process it [14:23:41]requested_item shift.opened is exist - process it [14:23:41]req_shift_opened [14:23:41]FM_GetShiftState [14:23:41]SAM_PROTO_GetShiftState [14:23:41]wFMCommunicate request_size=4 [14:23:41]MH_SAM_APDU [14:23:41]CAPDU: 80 13 01 00 [14:23:41]Write to MH i2c: E2 08 00 E2 33 80 13 01 00 00 00 00 00 92 [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 0E 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 0E 00 E2 33 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 06 [14:23:41]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:23:41]wFMCommunicate OK [14:23:41]SAM_PROTO_GetShiftState done [14:23:41]FM_GetShiftState done [14:23:41]req_shift_opened done [14:23:41]requested_item shift.open_date is exist - process it [14:23:41]req_shift_open_date [14:23:41]req_shift_open_date done [14:23:41]produce_requested_data done [14:23:41]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95172,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:23:41]process_action_free close_receipt [14:23:41]json_value_free [14:23:41]json_value_free done [14:23:41]process_json_proto returns [14:23:41]Send response to host [14:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95172,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:23:41]free response buf [14:23:41]execute_script done [14:23:41]execute_script returns [14:23:41]free content buf [14:23:41]Sock 9.Close socket [14:23:41]Sock 9.Thread stoped [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:47]accept exits with 8 [14:24:47]New connection [14:24:47]New thread 3066813796 created [14:24:47]Thread 3066957156 joined [14:24:47]Waiting for new connection... [14:24:47] Sock 8.Parse request [14:24:47]Sock 8.Check first char [14:24:47]Sock 8.First char is OK [14:24:47]request: POST /json_proto HTTP/1.0 [14:24:47]Method: POST [14:24:47]URL: /json_proto [14:24:47]Method is POST - this is cgi request [14:24:47]url: /json_proto [14:24:47]query_string will be loaded in cgi processing [14:24:47]execute_cgi json_proto POST (null) [14:24:47]execute_cgi path=json_proto method=POST [14:24:47]POST find Content-Length [14:24:47]Host: 172.17.62.67:8080 [14:24:47]Content-Length: 819 [14:24:47]Content-Type: application/json [14:24:47] [14:24:47]POST finish read [14:24:47]Found Content-Length = 819 [14:24:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:47]execute_script... [14:24:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:47]POST & json_proto [14:24:47]process_json_proto [14:24:47]json parsed OK: [14:24:47]protocol is kg_v1.0 [14:24:47]action value=close_receipt [14:24:47]process_action close_receipt [14:24:47]cmd_close_receipt [14:24:47]MH_GetDate [14:24:47]Write to MH i2c: F0 00 00 E3 33 05 [14:24:47]Write i2c OK [14:24:47]MH_I2C_Read... [14:24:47]Read from MH i2c: F0 [14:24:47]MH_I2C_Read... [14:24:47]Read from MH i2c: F0 05 00 [14:24:47]MH_I2C_Read... [14:24:47]Read from MH i2c: F0 05 00 E3 33 00 B5 65 F0 65 79 [14:24:47]GetLastDocTimeStamp 1710253424 [14:24:47]current date 1710253493 [14:24:47]FM_GetShiftState [14:24:47]SAM_PROTO_GetShiftState [14:24:47]wFMCommunicate request_size=4 [14:24:47]MH_SAM_APDU [14:24:47]CAPDU: 80 13 01 00 [14:24:47]Write to MH i2c: E2 08 00 E4 33 80 13 01 00 00 00 00 00 94 [14:24:47]Write i2c OK [14:24:47]MH_I2C_Read... [14:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:47]Read from MH i2c: E2 [14:24:47]MH_I2C_Read... [14:24:47]Read from MH i2c: E2 0E 00 [14:24:47]MH_I2C_Read... [14:24:47]Read from MH i2c: E2 0E 00 E4 33 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 08 [14:24:47]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:24:47]wFMCommunicate OK [14:24:47]SAM_PROTO_GetShiftState done [14:24:47]FM_GetShiftState done [14:24:47]opened in 1710201976 [14:24:47]opened+sec_in_day 1710288376 [14:24:47]quantity*price = 100011 [14:24:47]sum+1 = 100012 [14:24:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 103 12.03.2024 14:24 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95173 ФПД: 95348194680844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T142453&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95173&fm=95348194680844&tin=02508201610067®Number=0000000000090555&sum=100011 [14:24:48]StoreToDocumentArchive [14:24:48]shift 327 fd 95173 [14:24:48]save to /storage/0327/doc_00095173 [14:24:48]save last doc name /storage/0327/doc_00095173 to /storage/kkm_last_doc_name [14:24:48]save OK [14:24:48]Clear old archive folders... [14:24:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:48]tlvbuf is 01AF2830 [14:24:48]SAM_PROTO_ClearQueue [14:24:48]wFMCommunicate request_size=4 [14:24:48]MH_SAM_APDU [14:24:48]CAPDU: 80 09 00 00 [14:24:48]Write to MH i2c: E2 08 00 F1 33 80 09 00 00 00 00 00 00 96 [14:24:48]Write i2c OK [14:24:48]MH_I2C_Read... [14:24:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:48]Read from MH i2c: E2 [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: E2 03 00 [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: E2 03 00 F1 33 00 90 00 98 [14:24:48]RAPDU: 90 00 [14:24:48]wFMCommunicate OK [14:24:48]SAM_PROTO_ClearQueue done [14:24:48]KKMCreateOFDPacket [14:24:48]OFDProtocolAddRootSTLVToBuf [14:24:48]FM_MakeSignedData [14:24:48]FM_MakeSignedData [14:24:48]SAM_PROTO_SignData [14:24:48]wFMCommunicate request_size=4 [14:24:48]MH_SAM_APDU [14:24:48]CAPDU: 80 0D 01 02 [14:24:48]Write to MH i2c: E2 08 00 F2 33 80 0D 01 02 00 00 00 00 9E [14:24:48]Write i2c OK [14:24:48]MH_I2C_Read... [14:24:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:49]Read from MH i2c: E2 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 03 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 03 00 F2 33 00 90 00 99 [14:24:49]RAPDU: 90 00 [14:24:49]wFMCommunicate OK [14:24:49]wFMCommunicate request_size=255 [14:24:49]MH_SAM_APDU [14:24:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B5 65 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C5 73 01 00 35 04 06 00 56 [14:24:49]Write to MH i2c: E2 02 01 F3 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B5 65 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C5 73 01 00 35 04 06 00 56 00 00 09 [14:24:49]Write i2c OK [14:24:49]MH_I2C_Read... [14:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:49]Read from MH i2c: E2 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 03 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 03 00 F3 33 00 90 00 9A [14:24:49]RAPDU: 90 00 [14:24:49]wFMCommunicate OK [14:24:49]wFMCommunicate request_size=10 [14:24:49]MH_SAM_APDU [14:24:49]CAPDU: 80 0D 02 02 05 B7 FB 46 20 0C [14:24:49]Write to MH i2c: E2 0D 00 F4 33 80 0D 02 02 05 00 B7 FB 46 20 0C 00 00 CF [14:24:49]Write i2c OK [14:24:49]MH_I2C_Read... [14:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:49]Read from MH i2c: E2 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 03 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 03 00 F4 33 00 90 00 9B [14:24:49]RAPDU: 90 00 [14:24:49]wFMCommunicate OK [14:24:49]wFMCommunicate request_size=4 [14:24:49]MH_SAM_APDU [14:24:49]CAPDU: 80 0D 03 02 [14:24:49]Write to MH i2c: E2 08 00 F5 33 80 0D 03 02 00 00 00 00 A3 [14:24:49]Write i2c OK [14:24:49]MH_I2C_Read... [14:24:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:49]Read from MH i2c: E2 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 0B 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 0B 00 F5 33 00 39 F0 FC B5 D6 FB 04 C7 90 00 1A [14:24:49]RAPDU: 39 F0 FC B5 D6 FB 04 C7 90 00 [14:24:49]wFMCommunicate OK [14:24:49]SAM_PROTO_SignData done [14:24:49]FM_MakeSignedData done [14:24:49]CreateOFDProtocolMessage [14:24:49]wFMCommunicate request_size=4 [14:24:49]MH_SAM_APDU [14:24:49]CAPDU: 80 11 00 00 [14:24:49]Write to MH i2c: E2 08 00 F6 33 80 11 00 00 00 00 00 00 A3 [14:24:49]Write i2c OK [14:24:49]MH_I2C_Read... [14:24:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:49]Read from MH i2c: E2 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 17 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 17 00 F6 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F3 [14:24:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:24:49]wFMCommunicate OK [14:24:49]CreateOFDProtocolMessage done [14:24:49]OFDSenderStorePacket 95173 [14:24:49]StoreOFDPacket docnum=95173 [14:24:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 69 3C 07 01 BD 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B5 65 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C5 73 01 00 35 04 06 00 56 B7 FB 46 20 0C 39 F0 FC B5 D6 FB 04 C7 [14:24:49]CheckFolder [14:24:49]dirname=/storage/ofd_packets [14:24:49]CheckFolder done [14:24:49]ProducePacketName [14:24:49]name=ofd_packets/00095173 [14:24:49]NVStorageSaveData ofd_packets/00095173 [14:24:49]File name is /storage/ofd_packets/00095173 [14:24:49]Write 301 bytes [14:24:49]NVStorageSaveData done [14:24:49]OFDSenderStorePacket done [14:24:49]KKMCreateOFDPacket done [14:24:49]NVStorageSaveData kkm_last_timestamp [14:24:49]File name is /storage/kkm_last_timestamp [14:24:49]Write 4 bytes [14:24:49]NVStorageSaveData done [14:24:49]ExternCall_PrintAddStr [14:24:49]wPrintStart [14:24:49]Write to MH i2c: 01 00 00 F7 33 2A [14:24:49]Write i2c OK [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: 01 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: 01 07 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: 01 07 00 F7 33 00 80 00 00 00 FF 0F BF [14:24:49]RasterBufferAndPrint [14:24:49]line Счет N : (1)196143 [14:24:49]line ИНН: 02508201610067 [14:24:49]line Контрольно-Кассовый Чек [14:24:49]line ПРОДАЖА [14:24:49]line ТРК (МРК, ГНК) : 42 [14:24:49]line Товар: 2710124130 [14:24:49]line Аи-92-К-5 [14:24:49]line 15.900 * 62.90 [14:24:49]line = 1000.11 [14:24:49]line НДС 12% НСП 1% [14:24:49]line > о реализуемом товаре [14:24:49]line ИТОГО: 1000.11 [14:24:49]line НСП 1% : 8.85 [14:24:49]line НДС 12% : 106.21 [14:24:49]line Наличными: 0.00 [14:24:49]line Безнал.: 1000.11 [14:24:49]line Место: АЗС № 6 "Партнер Нефть" [14:24:49]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:24:49]line СНО: Общий режим [14:24:49]line Чек 103 12.03.2024 14:24 [14:24:49]line Смена: 327 ФФД: 1.0 [14:24:49]line ЗНМ: 0300000009 [14:24:49]line РНМ: 0000000000090555 [14:24:49]line Версия ККМ: 001 [14:24:49]line Платежная система: Бакай Банк [14:24:49]line ФМ: 0000000000874811 [14:24:49]line ФД: 95173 [14:24:49]line ФПД: 95348194680844 [14:24:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T142453&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95173&fm=95348194680844&tin=02508201610067®Number=0000000000090555&sum=100011 [14:24:49]OFD Sender: Processing packet 95173 [packets to send 30, broken 29] [14:24:49]ProducePacketName [14:24:49]name=ofd_packets/00095173 [14:24:49]OFD Sender: To server: pG, [14:24:49]CommunicateWithHost lk.salyk.kg:30040 [14:24:49]ConnectInit lk.salyk.kg [14:24:49]written 0, free lines is 4095 [14:24:49]Connected sock=10 [14:24:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 69 3C 07 01 BD 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B5 65 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C5 73 01 00 35 04 06 00 56 B7 FB 46 20 0C 39 F0 FC B5 D6 FB 04 C7 [14:24:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 BE BB 47 00 D8 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C5 73 01 00 F4 03 04 00 0B 11 F0 65 B6 04 01 00 00 F0 E6 D7 08 BB 1E 28 FA [14:24:50]CommunicateWithHost err = 0 [14:24:50]CheckOFDResponse [14:24:50]1017 (14) - 77093643461234 [14:24:50]1041 (16) - 0000000000874811 [14:24:50]1040 (4) - 95173 [14:24:50]1012 (4) - 12.03.2024 08:23 [14:24:50]1206 (1) - 0 [14:24:50]OFD Sender: Remove packet 95173 [14:24:50]ProducePacketName [14:24:50]name=ofd_packets/00095173 [14:24:50]NVStorageDeleteData [14:24:50]Write to MH i2c: 01 00 00 21 34 55 [14:24:50]Write i2c OK [14:24:50]MH_I2C_Read... [14:24:50]Read from MH i2c: 01 [14:24:50]MH_I2C_Read... [14:24:50]Read from MH i2c: 01 07 00 [14:24:50]MH_I2C_Read... [14:24:50]Read from MH i2c: 01 07 00 21 34 00 80 00 00 00 63 0D 4C [14:24:50]RasterBufferAndPrint [14:24:50]line [14:24:50]line [14:24:50]line [14:24:50]line [14:24:50]line [14:24:50]written 0, free lines is 3433 [14:24:50]process_action close_receipt done [14:24:50]requested_data is exist [14:24:50]produce_requested_data [14:24:50]requested_item fm.sn is exist - process it [14:24:50]wFMCommunicate request_size=4 [14:24:50]MH_SAM_APDU [14:24:50]CAPDU: 80 11 00 00 [14:24:50]Write to MH i2c: E2 08 00 28 34 80 11 00 00 00 00 00 00 D6 [14:24:50]Write i2c OK [14:24:50]MH_I2C_Read... [14:24:50]Read from MH i2c: E2 [14:24:50]MH_I2C_Read... [14:24:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:50]Read from MH i2c: E2 17 00 [14:24:50]MH_I2C_Read... [14:24:50]Read from MH i2c: E2 17 00 28 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 26 [14:24:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:24:50]wFMCommunicate OK [14:24:50]requested_item fd.num is exist - process it [14:24:50]SAM_PROTO_GetFieldsCounters [14:24:50]wFMCommunicate request_size=4 [14:24:50]MH_SAM_APDU [14:24:50]CAPDU: 80 13 00 00 [14:24:50]Write to MH i2c: E2 08 00 29 34 80 13 00 00 00 00 00 00 D9 [14:24:50]Write i2c OK [14:24:50]MH_I2C_Read... [14:24:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:50]Read from MH i2c: E2 [14:24:50]MH_I2C_Read... [14:24:50]Read from MH i2c: E2 62 00 [14:24:50]MH_I2C_Read... [14:24:50]Read from MH i2c: E2 62 00 29 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C5 73 01 00 0E 04 04 00 47 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 AC [14:24:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C5 73 01 00 0E 04 04 00 47 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:24:50]wFMCommunicate OK [14:24:50]SAM_PROTO_GetFieldsCounters done [14:24:50]requested_item shift.num is exist - process it [14:24:50]requested_item shift.opened is exist - process it [14:24:50]req_shift_opened [14:24:50]FM_GetShiftState [14:24:50]SAM_PROTO_GetShiftState [14:24:50]wFMCommunicate request_size=4 [14:24:50]MH_SAM_APDU [14:24:50]CAPDU: 80 13 01 00 [14:24:50]Write to MH i2c: E2 08 00 2A 34 80 13 01 00 00 00 00 00 DB [14:24:50]Write i2c OK [14:24:50]MH_I2C_Read... [14:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:50]Read from MH i2c: E2 [14:24:50]MH_I2C_Read... [14:24:50]Read from MH i2c: E2 0E 00 [14:24:50]MH_I2C_Read... [14:24:50]Read from MH i2c: E2 0E 00 2A 34 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 4F [14:24:50]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:24:50]wFMCommunicate OK [14:24:50]SAM_PROTO_GetShiftState done [14:24:50]FM_GetShiftState done [14:24:50]req_shift_opened done [14:24:50]requested_item shift.open_date is exist - process it [14:24:50]req_shift_open_date [14:24:50]req_shift_open_date done [14:24:50]produce_requested_data done [14:24:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95173,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:24:50]process_action_free close_receipt [14:24:50]json_value_free [14:24:50]json_value_free done [14:24:50]process_json_proto returns [14:24:50]Send response to host [14:24:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95173,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:24:50]free response buf [14:24:50]execute_script done [14:24:50]execute_script returns [14:24:50]free content buf [14:24:50]Sock 8.Close socket [14:24:50]Sock 8.Thread stoped [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:36]accept exits with 9 [14:26:36]New connection [14:26:36]New thread 3066957156 created [14:26:36]Thread 3066813796 joined [14:26:36]Waiting for new connection... [14:26:36] Sock 9.Parse request [14:26:36]Sock 9.Check first char [14:26:36]Sock 9.First char is OK [14:26:36]request: POST /json_proto HTTP/1.0 [14:26:36]Method: POST [14:26:36]URL: /json_proto [14:26:36]Method is POST - this is cgi request [14:26:36]url: /json_proto [14:26:36]query_string will be loaded in cgi processing [14:26:36]execute_cgi json_proto POST (null) [14:26:36]execute_cgi path=json_proto method=POST [14:26:36]POST find Content-Length [14:26:36]Host: 172.17.62.67:8080 [14:26:36]Content-Length: 819 [14:26:36]Content-Type: application/json [14:26:36] [14:26:36]POST finish read [14:26:36]Found Content-Length = 819 [14:26:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 23.850, "sum" : 1500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:36]execute_script... [14:26: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)196144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 23.850, "sum" : 1500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:36]POST & json_proto [14:26:36]process_json_proto [14:26:36]json parsed OK: [14:26:36]protocol is kg_v1.0 [14:26:36]action value=close_receipt [14:26:36]process_action close_receipt [14:26:36]cmd_close_receipt [14:26:36]MH_GetDate [14:26:36]Write to MH i2c: F0 00 00 2B 34 4E [14:26:36]Write i2c OK [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: F0 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: F0 05 00 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: F0 05 00 2B 34 00 21 66 F0 65 2F [14:26:36]GetLastDocTimeStamp 1710253493 [14:26:36]current date 1710253601 [14:26:36]FM_GetShiftState [14:26:36]SAM_PROTO_GetShiftState [14:26:36]wFMCommunicate request_size=4 [14:26:36]MH_SAM_APDU [14:26:36]CAPDU: 80 13 01 00 [14:26:36]Write to MH i2c: E2 08 00 2C 34 80 13 01 00 00 00 00 00 DD [14:26:36]Write i2c OK [14:26:36]MH_I2C_Read... [14:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:36]Read from MH i2c: E2 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 0E 00 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 0E 00 2C 34 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 51 [14:26:36]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:26:36]wFMCommunicate OK [14:26:36]SAM_PROTO_GetShiftState done [14:26:36]FM_GetShiftState done [14:26:36]opened in 1710201976 [14:26:36]opened+sec_in_day 1710288376 [14:26:36]quantity*price = 150016 [14:26:36]sum+1 = 150018 [14:26:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.17 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 0.00 Безнал.: 1500.17 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 104 12.03.2024 14:26 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95174 ФПД: 18639772923111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T142641&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95174&fm=18639772923111&tin=02508201610067®Number=0000000000090555&sum=150017 [14:26:37]StoreToDocumentArchive [14:26:37]shift 327 fd 95174 [14:26:37]save to /storage/0327/doc_00095174 [14:26:37]save last doc name /storage/0327/doc_00095174 to /storage/kkm_last_doc_name [14:26:37]save OK [14:26:37]Clear old archive folders... [14:26:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:37]tlvbuf is 01AD2060 [14:26:37]SAM_PROTO_ClearQueue [14:26:37]wFMCommunicate request_size=4 [14:26:37]MH_SAM_APDU [14:26:37]CAPDU: 80 09 00 00 [14:26:37]Write to MH i2c: E2 08 00 39 34 80 09 00 00 00 00 00 00 DF [14:26:37]Write i2c OK [14:26:37]MH_I2C_Read... [14:26:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:37]Read from MH i2c: E2 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: E2 03 00 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: E2 03 00 39 34 00 90 00 E1 [14:26:37]RAPDU: 90 00 [14:26:37]wFMCommunicate OK [14:26:37]SAM_PROTO_ClearQueue done [14:26:37]KKMCreateOFDPacket [14:26:37]OFDProtocolAddRootSTLVToBuf [14:26:37]FM_MakeSignedData [14:26:37]FM_MakeSignedData [14:26:37]SAM_PROTO_SignData [14:26:37]wFMCommunicate request_size=4 [14:26:37]MH_SAM_APDU [14:26:37]CAPDU: 80 0D 01 02 [14:26:37]Write to MH i2c: E2 08 00 3A 34 80 0D 01 02 00 00 00 00 E7 [14:26:37]Write i2c OK [14:26:37]MH_I2C_Read... [14:26:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:37]Read from MH i2c: E2 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: E2 03 00 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: E2 03 00 3A 34 00 90 00 E2 [14:26:37]RAPDU: 90 00 [14:26:37]wFMCommunicate OK [14:26:37]wFMCommunicate request_size=255 [14:26:37]MH_SAM_APDU [14:26:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 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 01 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 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 21 66 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C6 73 01 00 35 04 06 00 10 [14:26:37]Write to MH i2c: E2 02 01 3B 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 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 01 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 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 21 66 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C6 73 01 00 35 04 06 00 10 00 00 89 [14:26:37]Write i2c OK [14:26:37]MH_I2C_Read... [14:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:37]Read from MH i2c: E2 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: E2 03 00 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: E2 03 00 3B 34 00 90 00 E3 [14:26:37]RAPDU: 90 00 [14:26:37]wFMCommunicate OK [14:26:37]wFMCommunicate request_size=10 [14:26:37]MH_SAM_APDU [14:26:37]CAPDU: 80 0D 02 02 05 F3 E9 0B 34 E7 [14:26:37]Write to MH i2c: E2 0D 00 3C 34 80 0D 02 02 05 00 F3 E9 0B 34 E7 00 00 F6 [14:26:37]Write i2c OK [14:26:37]MH_I2C_Read... [14:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:37]Read from MH i2c: E2 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: E2 03 00 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: E2 03 00 3C 34 00 90 00 E4 [14:26:37]RAPDU: 90 00 [14:26:37]wFMCommunicate OK [14:26:37]wFMCommunicate request_size=4 [14:26:37]MH_SAM_APDU [14:26:37]CAPDU: 80 0D 03 02 [14:26:37]Write to MH i2c: E2 08 00 3D 34 80 0D 03 02 00 00 00 00 EC [14:26:37]Write i2c OK [14:26:37]MH_I2C_Read... [14:26:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:37]Read from MH i2c: E2 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: E2 0B 00 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: E2 0B 00 3D 34 00 04 FF 76 F1 35 4F D2 98 90 00 45 [14:26:37]RAPDU: 04 FF 76 F1 35 4F D2 98 90 00 [14:26:37]wFMCommunicate OK [14:26:37]SAM_PROTO_SignData done [14:26:37]FM_MakeSignedData done [14:26:37]CreateOFDProtocolMessage [14:26:37]wFMCommunicate request_size=4 [14:26:37]MH_SAM_APDU [14:26:37]CAPDU: 80 11 00 00 [14:26:37]Write to MH i2c: E2 08 00 3E 34 80 11 00 00 00 00 00 00 EC [14:26:37]Write i2c OK [14:26:37]MH_I2C_Read... [14:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:37]Read from MH i2c: E2 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: E2 17 00 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: E2 17 00 3E 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3C [14:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:26:37]wFMCommunicate OK [14:26:37]CreateOFDProtocolMessage done [14:26:37]OFDSenderStorePacket 95174 [14:26:37]StoreOFDPacket docnum=95174 [14:26:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CB 9D 07 01 FA 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 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 01 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 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 21 66 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C6 73 01 00 35 04 06 00 10 F3 E9 0B 34 E7 04 FF 76 F1 35 4F D2 98 [14:26:37]CheckFolder [14:26:37]dirname=/storage/ofd_packets [14:26:37]CheckFolder done [14:26:37]ProducePacketName [14:26:37]name=ofd_packets/00095174 [14:26:37]NVStorageSaveData ofd_packets/00095174 [14:26:37]File name is /storage/ofd_packets/00095174 [14:26:37]Write 301 bytes [14:26:37]NVStorageSaveData done [14:26:37]OFDSenderStorePacket done [14:26:37]KKMCreateOFDPacket done [14:26:37]NVStorageSaveData kkm_last_timestamp [14:26:37]File name is /storage/kkm_last_timestamp [14:26:37]Write 4 bytes [14:26:37]NVStorageSaveData done [14:26:37]ExternCall_PrintAddStr [14:26:37]wPrintStart [14:26:37]Write to MH i2c: 01 00 00 3F 34 73 [14:26:37]Write i2c OK [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: 01 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: 01 07 00 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: 01 07 00 3F 34 00 80 00 00 00 FF 0F 08 [14:26:37]RasterBufferAndPrint [14:26:37]line Счет N : (1)196144 [14:26:37]line ИНН: 02508201610067 [14:26:37]line Контрольно-Кассовый Чек [14:26:37]line ПРОДАЖА [14:26:37]line ТРК (МРК, ГНК) : 32 [14:26:37]line Товар: 2710124130 [14:26:37]line Аи-92-К-5 [14:26:37]line 23.850 * 62.90 [14:26:37]line = 1500.17 [14:26:37]line НДС 12% НСП 1% [14:26:37]line > о реализуемом товаре [14:26:37]line ИТОГО: 1500.17 [14:26:37]line НСП 1% : 13.28 [14:26:37]line НДС 12% : 159.31 [14:26:37]line Наличными: 0.00 [14:26:37]line Безнал.: 1500.17 [14:26:37]line Место: АЗС № 6 "Партнер Нефть" [14:26:37]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:26:37]line СНО: Общий режим [14:26:37]line Чек 104 12.03.2024 14:26 [14:26:37]line Смена: 327 ФФД: 1.0 [14:26:37]line ЗНМ: 0300000009 [14:26:37]line РНМ: 0000000000090555 [14:26:37]line Версия ККМ: 001 [14:26:37]line Платежная система: Бакай Банк [14:26:37]line ФМ: 0000000000874811 [14:26:37]line ФД: 95174 [14:26:37]line ФПД: 18639772923111 [14:26:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T142641&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95174&fm=18639772923111&tin=02508201610067®Number=0000000000090555&sum=150017 [14:26:38]OFD Sender: Processing packet 95174 [packets to send 30, broken 29] [14:26:38]ProducePacketName [14:26:38]name=ofd_packets/00095174 [14:26:38]OFD Sender: To server: pG, [14:26:38]CommunicateWithHost lk.salyk.kg:30040 [14:26:38]ConnectInit lk.salyk.kg [14:26:38]written 0, free lines is 4095 [14:26:38]Connected sock=10 [14:26:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CB 9D 07 01 FA 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 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 01 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 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 21 66 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C6 73 01 00 35 04 06 00 10 F3 E9 0B 34 E7 04 FF 76 F1 35 4F D2 98 [14:26:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E1 E2 47 00 FB 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C6 73 01 00 F4 03 04 00 77 11 F0 65 B6 04 01 00 00 56 13 42 11 86 FE 30 C3 [14:26:38]CommunicateWithHost err = 0 [14:26:38]CheckOFDResponse [14:26:38]1017 (14) - 77093643461234 [14:26:38]1041 (16) - 0000000000874811 [14:26:38]1040 (4) - 95174 [14:26:38]1012 (4) - 12.03.2024 08:25 [14:26:38]1206 (1) - 0 [14:26:38]OFD Sender: Remove packet 95174 [14:26:38]ProducePacketName [14:26:38]name=ofd_packets/00095174 [14:26:38]NVStorageDeleteData [14:26:38]Write to MH i2c: 01 00 00 69 34 9D [14:26:38]Write i2c OK [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: 01 [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: 01 07 00 [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: 01 07 00 69 34 00 80 00 00 00 6A 0D 9B [14:26:38]RasterBufferAndPrint [14:26:38]line [14:26:38]line [14:26:38]line [14:26:38]line [14:26:38]line [14:26:38]written 0, free lines is 3440 [14:26:38]process_action close_receipt done [14:26:38]requested_data is exist [14:26:38]produce_requested_data [14:26:38]requested_item fm.sn is exist - process it [14:26:38]wFMCommunicate request_size=4 [14:26:38]MH_SAM_APDU [14:26:38]CAPDU: 80 11 00 00 [14:26:38]Write to MH i2c: E2 08 00 70 34 80 11 00 00 00 00 00 00 1E [14:26:38]Write i2c OK [14:26:38]MH_I2C_Read... [14:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:38]Read from MH i2c: E2 [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: E2 17 00 [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: E2 17 00 70 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6E [14:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:26:38]wFMCommunicate OK [14:26:38]requested_item fd.num is exist - process it [14:26:38]SAM_PROTO_GetFieldsCounters [14:26:38]wFMCommunicate request_size=4 [14:26:38]MH_SAM_APDU [14:26:38]CAPDU: 80 13 00 00 [14:26:38]Write to MH i2c: E2 08 00 71 34 80 13 00 00 00 00 00 00 21 [14:26:38]Write i2c OK [14:26:38]MH_I2C_Read... [14:26:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:39]Read from MH i2c: E2 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 62 00 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 62 00 71 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C6 73 01 00 0E 04 04 00 47 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 F8 [14:26:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C6 73 01 00 0E 04 04 00 47 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:26:39]wFMCommunicate OK [14:26:39]SAM_PROTO_GetFieldsCounters done [14:26:39]requested_item shift.num is exist - process it [14:26:39]requested_item shift.opened is exist - process it [14:26:39]req_shift_opened [14:26:39]FM_GetShiftState [14:26:39]SAM_PROTO_GetShiftState [14:26:39]wFMCommunicate request_size=4 [14:26:39]MH_SAM_APDU [14:26:39]CAPDU: 80 13 01 00 [14:26:39]Write to MH i2c: E2 08 00 72 34 80 13 01 00 00 00 00 00 23 [14:26:39]Write i2c OK [14:26:39]MH_I2C_Read... [14:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:39]Read from MH i2c: E2 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 0E 00 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 0E 00 72 34 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 97 [14:26:39]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:26:39]wFMCommunicate OK [14:26:39]SAM_PROTO_GetShiftState done [14:26:39]FM_GetShiftState done [14:26:39]req_shift_opened done [14:26:39]requested_item shift.open_date is exist - process it [14:26:39]req_shift_open_date [14:26:39]req_shift_open_date done [14:26:39]produce_requested_data done [14:26:39]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95174,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:26:39]process_action_free close_receipt [14:26:39]json_value_free [14:26:39]json_value_free done [14:26:39]process_json_proto returns [14:26:39]Send response to host [14:26:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95174,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:26:39]free response buf [14:26:39]execute_script done [14:26:39]execute_script returns [14:26:39]free content buf [14:26:39]Sock 9.Close socket [14:26:39]Sock 9.Thread stoped [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:18]accept exits with 8 [14:27:18]New connection [14:27:18]New thread 3066813796 created [14:27:18]Thread 3066957156 joined [14:27:18]Waiting for new connection... [14:27:18] Sock 8.Parse request [14:27:18]Sock 8.Check first char [14:27:18]Sock 8.First char is OK [14:27:18]request: POST /json_proto HTTP/1.0 [14:27:18]Method: POST [14:27:18]URL: /json_proto [14:27:18]Method is POST - this is cgi request [14:27:18]url: /json_proto [14:27:18]query_string will be loaded in cgi processing [14:27:18]execute_cgi json_proto POST (null) [14:27:18]execute_cgi path=json_proto method=POST [14:27:18]POST find Content-Length [14:27:18]Host: 172.17.62.67:8080 [14:27:18]Content-Length: 677 [14:27:18]Content-Type: application/json [14:27:18] [14:27:18]POST finish read [14:27:18]Found Content-Length = 677 [14:27:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.090, "sum" : 320.16, "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:18]execute_script... [14:27: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)196145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.090, "sum" : 320.16, "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:18]POST & json_proto [14:27:18]process_json_proto [14:27:18]json parsed OK: [14:27:18]protocol is kg_v1.0 [14:27:18]action value=close_receipt [14:27:18]process_action close_receipt [14:27:18]cmd_close_receipt [14:27:18]MH_GetDate [14:27:18]Write to MH i2c: F0 00 00 73 34 96 [14:27:18]Write i2c OK [14:27:18]MH_I2C_Read... [14:27:18]Read from MH i2c: F0 [14:27:18]MH_I2C_Read... [14:27:18]Read from MH i2c: F0 05 00 [14:27:18]MH_I2C_Read... [14:27:18]Read from MH i2c: F0 05 00 73 34 00 4B 66 F0 65 A1 [14:27:18]GetLastDocTimeStamp 1710253601 [14:27:18]current date 1710253643 [14:27:18]FM_GetShiftState [14:27:18]SAM_PROTO_GetShiftState [14:27:18]wFMCommunicate request_size=4 [14:27:18]MH_SAM_APDU [14:27:18]CAPDU: 80 13 01 00 [14:27:18]Write to MH i2c: E2 08 00 74 34 80 13 01 00 00 00 00 00 25 [14:27:18]Write i2c OK [14:27:18]MH_I2C_Read... [14:27:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:18]Read from MH i2c: E2 [14:27:18]MH_I2C_Read... [14:27:18]Read from MH i2c: E2 0E 00 [14:27:18]MH_I2C_Read... [14:27:18]Read from MH i2c: E2 0E 00 74 34 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 99 [14:27:18]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:27:18]wFMCommunicate OK [14:27:18]SAM_PROTO_GetShiftState done [14:27:18]FM_GetShiftState done [14:27:18]opened in 1710201976 [14:27:18]opened+sec_in_day 1710288376 [14:27:18]quantity*price = 32016 [14:27:18]sum+1 = 32017 [14:27:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 34.00 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 105 12.03.2024 14:27 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95175 ФПД: 146146048766923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T142723&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95175&fm=146146048766923&tin=02508201610067®Number=0000000000090555&sum=32000 [14:27:19]StoreToDocumentArchive [14:27:19]shift 327 fd 95175 [14:27:19]save to /storage/0327/doc_00095175 [14:27:19]save last doc name /storage/0327/doc_00095175 to /storage/kkm_last_doc_name [14:27:19]save OK [14:27:19]Clear old archive folders... [14:27:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:19]tlvbuf is 01B21990 [14:27:19]SAM_PROTO_ClearQueue [14:27:19]wFMCommunicate request_size=4 [14:27:19]MH_SAM_APDU [14:27:19]CAPDU: 80 09 00 00 [14:27:19]Write to MH i2c: E2 08 00 81 34 80 09 00 00 00 00 00 00 27 [14:27:19]Write i2c OK [14:27:19]MH_I2C_Read... [14:27:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:19]Read from MH i2c: E2 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 03 00 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 03 00 81 34 00 90 00 29 [14:27:19]RAPDU: 90 00 [14:27:19]wFMCommunicate OK [14:27:19]SAM_PROTO_ClearQueue done [14:27:19]KKMCreateOFDPacket [14:27:19]OFDProtocolAddRootSTLVToBuf [14:27:19]FM_MakeSignedData [14:27:19]FM_MakeSignedData [14:27:19]SAM_PROTO_SignData [14:27:19]wFMCommunicate request_size=4 [14:27:19]MH_SAM_APDU [14:27:19]CAPDU: 80 0D 01 02 [14:27:19]Write to MH i2c: E2 08 00 82 34 80 0D 01 02 00 00 00 00 2F [14:27:19]Write i2c OK [14:27:19]MH_I2C_Read... [14:27:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:19]Read from MH i2c: E2 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 03 00 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 03 00 82 34 00 90 00 2A [14:27:19]RAPDU: 90 00 [14:27:19]wFMCommunicate OK [14:27:19]wFMCommunicate request_size=255 [14:27:19]MH_SAM_APDU [14:27:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 10 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 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 69 00 00 00 F4 03 04 00 4B 66 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C7 73 01 00 35 04 06 00 84 [14:27:19]Write to MH i2c: E2 02 01 83 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 10 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 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 69 00 00 00 F4 03 04 00 4B 66 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C7 73 01 00 35 04 06 00 84 00 00 42 [14:27:19]Write i2c OK [14:27:19]MH_I2C_Read... [14:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:19]Read from MH i2c: E2 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 03 00 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 03 00 83 34 00 90 00 2B [14:27:19]RAPDU: 90 00 [14:27:19]wFMCommunicate OK [14:27:19]wFMCommunicate request_size=10 [14:27:19]MH_SAM_APDU [14:27:19]CAPDU: 80 0D 02 02 05 EB 47 52 73 CB [14:27:19]Write to MH i2c: E2 0D 00 84 34 80 0D 02 02 05 00 EB 47 52 73 CB 00 00 FE [14:27:19]Write i2c OK [14:27:19]MH_I2C_Read... [14:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:19]Read from MH i2c: E2 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 03 00 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 03 00 84 34 00 90 00 2C [14:27:19]RAPDU: 90 00 [14:27:19]wFMCommunicate OK [14:27:19]wFMCommunicate request_size=4 [14:27:19]MH_SAM_APDU [14:27:19]CAPDU: 80 0D 03 02 [14:27:19]Write to MH i2c: E2 08 00 85 34 80 0D 03 02 00 00 00 00 34 [14:27:19]Write i2c OK [14:27:19]MH_I2C_Read... [14:27:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:19]Read from MH i2c: E2 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 0B 00 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 0B 00 85 34 00 95 9F FA 5F 6A CC 3E D8 90 00 0E [14:27:19]RAPDU: 95 9F FA 5F 6A CC 3E D8 90 00 [14:27:19]wFMCommunicate OK [14:27:19]SAM_PROTO_SignData done [14:27:19]FM_MakeSignedData done [14:27:19]CreateOFDProtocolMessage [14:27:19]wFMCommunicate request_size=4 [14:27:19]MH_SAM_APDU [14:27:19]CAPDU: 80 11 00 00 [14:27:19]Write to MH i2c: E2 08 00 86 34 80 11 00 00 00 00 00 00 34 [14:27:19]Write i2c OK [14:27:19]MH_I2C_Read... [14:27:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:19]Read from MH i2c: E2 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 17 00 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 17 00 86 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 84 [14:27:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:27:19]wFMCommunicate OK [14:27:19]CreateOFDProtocolMessage done [14:27:19]OFDSenderStorePacket 95175 [14:27:19]StoreOFDPacket docnum=95175 [14:27:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 DB D2 07 01 E1 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 10 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 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 69 00 00 00 F4 03 04 00 4B 66 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C7 73 01 00 35 04 06 00 84 EB 47 52 73 CB 95 9F FA 5F 6A CC 3E D8 [14:27:19]CheckFolder [14:27:19]dirname=/storage/ofd_packets [14:27:19]CheckFolder done [14:27:19]ProducePacketName [14:27:19]name=ofd_packets/00095175 [14:27:19]NVStorageSaveData ofd_packets/00095175 [14:27:19]File name is /storage/ofd_packets/00095175 [14:27:19]Write 301 bytes [14:27:19]NVStorageSaveData done [14:27:19]OFDSenderStorePacket done [14:27:19]KKMCreateOFDPacket done [14:27:19]NVStorageSaveData kkm_last_timestamp [14:27:19]File name is /storage/kkm_last_timestamp [14:27:19]Write 4 bytes [14:27:19]NVStorageSaveData done [14:27:19]ExternCall_PrintAddStr [14:27:19]wPrintStart [14:27:19]Write to MH i2c: 01 00 00 87 34 BB [14:27:19]Write i2c OK [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: 01 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: 01 07 00 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: 01 07 00 87 34 00 80 00 00 00 FF 0F 50 [14:27:19]RasterBufferAndPrint [14:27:19]line Счет N : (1)196145 [14:27:19]line ИНН: 02508201610067 [14:27:19]line Контрольно-Кассовый Чек [14:27:19]line ПРОДАЖА [14:27:19]line ТРК (МРК, ГНК) : 42 [14:27:19]line Товар: 2710124130 [14:27:19]line Аи-92-К-5 [14:27:19]line 5.090 * 62.90 [14:27:19]line = 320.16 [14:27:19]line НДС 12% НСП 1% [14:27:19]line > о реализуемом товаре [14:27:19]line ОКРУГЛЕНИЕ: -0.16 [14:27:19]line ИТОГО: 320.00 [14:27:19]line Внесено: 320.00 [14:27:19]line СДАЧА: 0.00 [14:27:19]line НСП 1% : 2.83 [14:27:19]line НДС 12% : 34.00 [14:27:19]line Наличными: 320.00 [14:27:19]line Безнал.: 0.00 [14:27:19]line Место: АЗС № 6 "Партнер Нефть" [14:27:19]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:27:19]line СНО: Общий режим [14:27:19]line Чек 105 12.03.2024 14:27 [14:27:19]line Смена: 327 ФФД: 1.0 [14:27:19]line ЗНМ: 0300000009 [14:27:19]line РНМ: 0000000000090555 [14:27:19]line Версия ККМ: 001 [14:27:19]line ФМ: 0000000000874811 [14:27:19]line ФД: 95175 [14:27:19]line ФПД: 146146048766923 [14:27:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T142723&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95175&fm=146146048766923&tin=02508201610067®Number=0000000000090555&sum=32000 [14:27:20]OFD Sender: Processing packet 95175 [packets to send 30, broken 29] [14:27:20]ProducePacketName [14:27:20]name=ofd_packets/00095175 [14:27:20]OFD Sender: To server: pG, [14:27:20]CommunicateWithHost lk.salyk.kg:30040 [14:27:20]ConnectInit lk.salyk.kg [14:27:20]written 0, free lines is 4095 [14:27:20]Connected sock=10 [14:27:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 DB D2 07 01 E1 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 10 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 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 69 00 00 00 F4 03 04 00 4B 66 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C7 73 01 00 35 04 06 00 84 EB 47 52 73 CB 95 9F FA 5F 6A CC 3E D8 [14:27:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 10 08 47 00 95 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C7 73 01 00 F4 03 04 00 A1 11 F0 65 B6 04 01 00 00 D1 FB 38 3A 46 94 C9 CD [14:27:20]CommunicateWithHost err = 0 [14:27:20]CheckOFDResponse [14:27:20]1017 (14) - 77093643461234 [14:27:20]1041 (16) - 0000000000874811 [14:27:20]1040 (4) - 95175 [14:27:20]1012 (4) - 12.03.2024 08:26 [14:27:20]1206 (1) - 0 [14:27:20]OFD Sender: Remove packet 95175 [14:27:20]ProducePacketName [14:27:20]name=ofd_packets/00095175 [14:27:20]NVStorageDeleteData [14:27:20]Write to MH i2c: 01 00 00 B2 34 E6 [14:27:20]Write i2c OK [14:27:20]MH_I2C_Read... [14:27:20]Read from MH i2c: 01 [14:27:20]MH_I2C_Read... [14:27:20]Read from MH i2c: 01 07 00 [14:27:20]MH_I2C_Read... [14:27:20]Read from MH i2c: 01 07 00 B2 34 00 80 00 00 00 53 0D CD [14:27:20]RasterBufferAndPrint [14:27:20]line [14:27:20]line [14:27:20]line [14:27:20]line [14:27:20]line [14:27:20]written 0, free lines is 3417 [14:27:20]process_action close_receipt done [14:27:20]requested_data is exist [14:27:20]produce_requested_data [14:27:20]requested_item fm.sn is exist - process it [14:27:20]wFMCommunicate request_size=4 [14:27:20]MH_SAM_APDU [14:27:20]CAPDU: 80 11 00 00 [14:27:20]Write to MH i2c: E2 08 00 B9 34 80 11 00 00 00 00 00 00 67 [14:27:20]Write i2c OK [14:27:20]MH_I2C_Read... [14:27:20]Read from MH i2c: E2 [14:27:20]MH_I2C_Read... [14:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:20]Read from MH i2c: E2 17 00 [14:27:20]MH_I2C_Read... [14:27:20]Read from MH i2c: E2 17 00 B9 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B7 [14:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:27:20]wFMCommunicate OK [14:27:20]requested_item fd.num is exist - process it [14:27:20]SAM_PROTO_GetFieldsCounters [14:27:20]wFMCommunicate request_size=4 [14:27:20]MH_SAM_APDU [14:27:20]CAPDU: 80 13 00 00 [14:27:20]Write to MH i2c: E2 08 00 BA 34 80 13 00 00 00 00 00 00 6A [14:27:20]Write i2c OK [14:27:20]MH_I2C_Read... [14:27:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:21]Read from MH i2c: E2 [14:27:21]MH_I2C_Read... [14:27:21]Read from MH i2c: E2 62 00 [14:27:21]MH_I2C_Read... [14:27:21]Read from MH i2c: E2 62 00 BA 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C7 73 01 00 0E 04 04 00 47 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 45 [14:27:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C7 73 01 00 0E 04 04 00 47 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:27:21]wFMCommunicate OK [14:27:21]SAM_PROTO_GetFieldsCounters done [14:27:21]requested_item shift.num is exist - process it [14:27:21]requested_item shift.opened is exist - process it [14:27:21]req_shift_opened [14:27:21]FM_GetShiftState [14:27:21]SAM_PROTO_GetShiftState [14:27:21]wFMCommunicate request_size=4 [14:27:21]MH_SAM_APDU [14:27:21]CAPDU: 80 13 01 00 [14:27:21]Write to MH i2c: E2 08 00 BB 34 80 13 01 00 00 00 00 00 6C [14:27:21]Write i2c OK [14:27:21]MH_I2C_Read... [14:27:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:21]Read from MH i2c: E2 [14:27:21]MH_I2C_Read... [14:27:21]Read from MH i2c: E2 0E 00 [14:27:21]MH_I2C_Read... [14:27:21]Read from MH i2c: E2 0E 00 BB 34 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 E0 [14:27:21]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:27:21]wFMCommunicate OK [14:27:21]SAM_PROTO_GetShiftState done [14:27:21]FM_GetShiftState done [14:27:21]req_shift_opened done [14:27:21]requested_item shift.open_date is exist - process it [14:27:21]req_shift_open_date [14:27:21]req_shift_open_date done [14:27:21]produce_requested_data done [14:27:21]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95175,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:27:21]process_action_free close_receipt [14:27:21]json_value_free [14:27:21]json_value_free done [14:27:21]process_json_proto returns [14:27:21]Send response to host [14:27:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95175,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:27:21]free response buf [14:27:21]execute_script done [14:27:21]execute_script returns [14:27:21]free content buf [14:27:21]Sock 8.Close socket [14:27:21]Sock 8.Thread stoped [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:00]accept exits with 9 [14:30:00]New connection [14:30:00]New thread 3066957156 created [14:30:00]Thread 3066813796 joined [14:30:00]Waiting for new connection... [14:30:00] Sock 9.Parse request [14:30:00]Sock 9.Check first char [14:30:00]Sock 9.First char is OK [14:30:00]request: POST /json_proto HTTP/1.0 [14:30:00]Method: POST [14:30:00]URL: /json_proto [14:30:00]Method is POST - this is cgi request [14:30:00]url: /json_proto [14:30:00]query_string will be loaded in cgi processing [14:30:00]execute_cgi json_proto POST (null) [14:30:00]execute_cgi path=json_proto method=POST [14:30:00]POST find Content-Length [14:30:00]Host: 172.17.62.67:8080 [14:30:00]Content-Length: 679 [14:30:00]Content-Type: application/json [14:30:00] [14:30:00]POST finish read [14:30:00]Found Content-Length = 679 [14:30:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:30:00]execute_script... [14:30:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:30:00]POST & json_proto [14:30:00]process_json_proto [14:30:00]json parsed OK: [14:30:00]protocol is kg_v1.0 [14:30:00]action value=close_receipt [14:30:00]process_action close_receipt [14:30:00]cmd_close_receipt [14:30:00]MH_GetDate [14:30:00]Write to MH i2c: F0 00 00 BC 34 DF [14:30:00]Write i2c OK [14:30:00]MH_I2C_Read... [14:30:00]Read from MH i2c: F0 [14:30:00]MH_I2C_Read... [14:30:00]Read from MH i2c: F0 05 00 [14:30:00]MH_I2C_Read... [14:30:00]Read from MH i2c: F0 05 00 BC 34 00 ED 66 F0 65 8C [14:30:00]GetLastDocTimeStamp 1710253643 [14:30:00]current date 1710253805 [14:30:00]FM_GetShiftState [14:30:00]SAM_PROTO_GetShiftState [14:30:00]wFMCommunicate request_size=4 [14:30:00]MH_SAM_APDU [14:30:00]CAPDU: 80 13 01 00 [14:30:00]Write to MH i2c: E2 08 00 BD 34 80 13 01 00 00 00 00 00 6E [14:30:00]Write i2c OK [14:30:00]MH_I2C_Read... [14:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:00]Read from MH i2c: E2 [14:30:00]MH_I2C_Read... [14:30:00]Read from MH i2c: E2 0E 00 [14:30:00]MH_I2C_Read... [14:30:00]Read from MH i2c: E2 0E 00 BD 34 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 E2 [14:30:00]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:30:00]wFMCommunicate OK [14:30:00]SAM_PROTO_GetShiftState done [14:30:00]FM_GetShiftState done [14:30:00]opened in 1710201976 [14:30:00]opened+sec_in_day 1710288376 [14:30:00]quantity*price = 100039 [14:30:00]sum+1 = 100041 [14:30:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 106 12.03.2024 14:30 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95176 ФПД: 232601518294308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T143006&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95176&fm=232601518294308&tin=02508201610067®Number=0000000000090555&sum=100000 [14:30:01]StoreToDocumentArchive [14:30:01]shift 327 fd 95176 [14:30:01]save to /storage/0327/doc_00095176 [14:30:01]save last doc name /storage/0327/doc_00095176 to /storage/kkm_last_doc_name [14:30:01]save OK [14:30:01]Clear old archive folders... [14:30:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:30:01]tlvbuf is 01A25D20 [14:30:01]SAM_PROTO_ClearQueue [14:30:01]wFMCommunicate request_size=4 [14:30:01]MH_SAM_APDU [14:30:01]CAPDU: 80 09 00 00 [14:30:01]Write to MH i2c: E2 08 00 CA 34 80 09 00 00 00 00 00 00 70 [14:30:01]Write i2c OK [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: E2 [14:30:01]MH_I2C_Read... [14:30:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:01]Read from MH i2c: E2 03 00 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: E2 03 00 CA 34 00 90 00 72 [14:30:01]RAPDU: 90 00 [14:30:01]wFMCommunicate OK [14:30:01]SAM_PROTO_ClearQueue done [14:30:01]KKMCreateOFDPacket [14:30:01]OFDProtocolAddRootSTLVToBuf [14:30:01]FM_MakeSignedData [14:30:01]FM_MakeSignedData [14:30:01]SAM_PROTO_SignData [14:30:01]wFMCommunicate request_size=4 [14:30:01]MH_SAM_APDU [14:30:01]CAPDU: 80 0D 01 02 [14:30:01]Write to MH i2c: E2 08 00 CB 34 80 0D 01 02 00 00 00 00 78 [14:30:01]Write i2c OK [14:30:01]MH_I2C_Read... [14:30:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:01]Read from MH i2c: E2 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: E2 03 00 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: E2 03 00 CB 34 00 90 00 73 [14:30:01]RAPDU: 90 00 [14:30:01]wFMCommunicate OK [14:30:01]wFMCommunicate request_size=255 [14:30:01]MH_SAM_APDU [14:30:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 EE 66 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C8 73 01 00 35 04 06 00 D3 8C C2 DF [14:30:01]Write to MH i2c: E2 02 01 CC 34 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 EE 66 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C8 73 01 00 35 04 06 00 D3 8C C2 DF 00 00 48 [14:30:01]Write i2c OK [14:30:01]MH_I2C_Read... [14:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:01]Read from MH i2c: E2 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: E2 03 00 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: E2 03 00 CC 34 00 90 00 74 [14:30:01]RAPDU: 90 00 [14:30:01]wFMCommunicate OK [14:30:01]wFMCommunicate request_size=7 [14:30:01]MH_SAM_APDU [14:30:01]CAPDU: 80 0D 02 02 02 45 24 [14:30:01]Write to MH i2c: E2 0A 00 CD 34 80 0D 02 02 02 00 45 24 00 00 E8 [14:30:01]Write i2c OK [14:30:01]MH_I2C_Read... [14:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:01]Read from MH i2c: E2 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: E2 03 00 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: E2 03 00 CD 34 00 90 00 75 [14:30:01]RAPDU: 90 00 [14:30:01]wFMCommunicate OK [14:30:01]wFMCommunicate request_size=4 [14:30:01]MH_SAM_APDU [14:30:01]CAPDU: 80 0D 03 02 [14:30:01]Write to MH i2c: E2 08 00 CE 34 80 0D 03 02 00 00 00 00 7D [14:30:01]Write i2c OK [14:30:01]MH_I2C_Read... [14:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:02]Read from MH i2c: E2 [14:30:02]MH_I2C_Read... [14:30:02]Read from MH i2c: E2 0B 00 [14:30:02]MH_I2C_Read... [14:30:02]Read from MH i2c: E2 0B 00 CE 34 00 2C 3B 74 14 88 5F F2 3D 90 00 83 [14:30:02]RAPDU: 2C 3B 74 14 88 5F F2 3D 90 00 [14:30:02]wFMCommunicate OK [14:30:02]SAM_PROTO_SignData done [14:30:02]FM_MakeSignedData done [14:30:02]CreateOFDProtocolMessage [14:30:02]wFMCommunicate request_size=4 [14:30:02]MH_SAM_APDU [14:30:02]CAPDU: 80 11 00 00 [14:30:02]Write to MH i2c: E2 08 00 CF 34 80 11 00 00 00 00 00 00 7D [14:30:02]Write i2c OK [14:30:02]MH_I2C_Read... [14:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:02]Read from MH i2c: E2 [14:30:02]MH_I2C_Read... [14:30:02]Read from MH i2c: E2 17 00 [14:30:02]MH_I2C_Read... [14:30:02]Read from MH i2c: E2 17 00 CF 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CD [14:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:30:02]wFMCommunicate OK [14:30:02]CreateOFDProtocolMessage done [14:30:02]OFDSenderStorePacket 95176 [14:30:02]StoreOFDPacket docnum=95176 [14:30:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 4E 8B 04 01 8D C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 EE 66 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C8 73 01 00 35 04 06 00 D3 8C C2 DF 45 24 2C 3B 74 14 88 5F F2 3D [14:30:02]CheckFolder [14:30:02]dirname=/storage/ofd_packets [14:30:02]CheckFolder done [14:30:02]ProducePacketName [14:30:02]name=ofd_packets/00095176 [14:30:02]NVStorageSaveData ofd_packets/00095176 [14:30:02]File name is /storage/ofd_packets/00095176 [14:30:02]Write 298 bytes [14:30:02]NVStorageSaveData done [14:30:02]OFDSenderStorePacket done [14:30:02]KKMCreateOFDPacket done [14:30:02]NVStorageSaveData kkm_last_timestamp [14:30:02]File name is /storage/kkm_last_timestamp [14:30:02]Write 4 bytes [14:30:02]NVStorageSaveData done [14:30:02]ExternCall_PrintAddStr [14:30:02]wPrintStart [14:30:02]Write to MH i2c: 01 00 00 D0 34 04 [14:30:02]Write i2c OK [14:30:02]MH_I2C_Read... [14:30:02]Read from MH i2c: 01 [14:30:02]MH_I2C_Read... [14:30:02]Read from MH i2c: 01 07 00 [14:30:02]MH_I2C_Read... [14:30:02]Read from MH i2c: 01 07 00 D0 34 00 80 00 00 00 FF 0F 99 [14:30:02]RasterBufferAndPrint [14:30:02]line Счет N : (1)196146 [14:30:02]line ИНН: 02508201610067 [14:30:02]line Контрольно-Кассовый Чек [14:30:02]line ПРОДАЖА [14:30:02]line ТРК (МРК, ГНК) : 51 [14:30:02]line Товар: 2710194210 [14:30:02]line ДТ-К-5 [14:30:02]line 14.110 * 70.90 [14:30:02]line = 1000.40 [14:30:02]line НДС 12% НСП 1% [14:30:02]line > о реализуемом товаре [14:30:02]line ОКРУГЛЕНИЕ: -0.40 [14:30:02]line ИТОГО: 1000.00 [14:30:02]line Внесено: 1000.00 [14:30:02]line СДАЧА: 0.00 [14:30:02]line НСП 1% : 8.85 [14:30:02]line НДС 12% : 106.24 [14:30:02]line Наличными: 1000.00 [14:30:02]line Безнал.: 0.00 [14:30:02]line Место: АЗС № 6 "Партнер Нефть" [14:30:02]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:30:02]line СНО: Общий режим [14:30:02]line Чек 106 12.03.2024 14:30 [14:30:02]line Смена: 327 ФФД: 1.0 [14:30:02]line ЗНМ: 0300000009 [14:30:02]line РНМ: 0000000000090555 [14:30:02]line Версия ККМ: 001 [14:30:02]line ФМ: 0000000000874811 [14:30:02]line ФД: 95176 [14:30:02]line ФПД: 232601518294308 [14:30:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T143006&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95176&fm=232601518294308&tin=02508201610067®Number=0000000000090555&sum=100000 [14:30:02]OFD Sender: Processing packet 95176 [packets to send 30, broken 29] [14:30:02]ProducePacketName [14:30:02]name=ofd_packets/00095176 [14:30:02]OFD Sender: To server: pG, [14:30:02]CommunicateWithHost lk.salyk.kg:30040 [14:30:02]ConnectInit lk.salyk.kg [14:30:02]written 0, free lines is 4095 [14:30:02]Connected sock=11 [14:30:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 4E 8B 04 01 8D C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 EE 66 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C8 73 01 00 35 04 06 00 D3 8C C2 DF 45 24 2C 3B 74 14 88 5F F2 3D [14:30:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 A9 F9 47 00 10 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C8 73 01 00 F4 03 04 00 43 12 F0 65 B6 04 01 00 00 1E CC FA 62 1B DB A6 A6 [14:30:02]CommunicateWithHost err = 0 [14:30:02]CheckOFDResponse [14:30:02]1017 (14) - 77093643461234 [14:30:02]1041 (16) - 0000000000874811 [14:30:02]1040 (4) - 95176 [14:30:02]1012 (4) - 12.03.2024 08:28 [14:30:02]1206 (1) - 0 [14:30:02]OFD Sender: Remove packet 95176 [14:30:02]ProducePacketName [14:30:02]name=ofd_packets/00095176 [14:30:02]NVStorageDeleteData [14:30:02]Write to MH i2c: 01 00 00 FB 34 2F [14:30:02]Write i2c OK [14:30:02]MH_I2C_Read... [14:30:02]Read from MH i2c: 01 [14:30:02]MH_I2C_Read... [14:30:02]Read from MH i2c: 01 07 00 [14:30:02]MH_I2C_Read... [14:30:02]Read from MH i2c: 01 07 00 FB 34 00 80 00 00 00 50 0D 13 [14:30:02]RasterBufferAndPrint [14:30:02]line [14:30:02]line [14:30:02]line [14:30:02]line [14:30:02]line [14:30:02]written 0, free lines is 3414 [14:30:02]process_action close_receipt done [14:30:02]requested_data is exist [14:30:02]produce_requested_data [14:30:02]requested_item fm.sn is exist - process it [14:30:02]wFMCommunicate request_size=4 [14:30:02]MH_SAM_APDU [14:30:02]CAPDU: 80 11 00 00 [14:30:02]Write to MH i2c: E2 08 00 02 35 80 11 00 00 00 00 00 00 B1 [14:30:02]Write i2c OK [14:30:02]MH_I2C_Read... [14:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:02]Read from MH i2c: E2 [14:30:02]MH_I2C_Read... [14:30:02]Read from MH i2c: E2 17 00 [14:30:02]MH_I2C_Read... [14:30:02]Read from MH i2c: E2 17 00 02 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 01 [14:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:30:02]wFMCommunicate OK [14:30:02]requested_item fd.num is exist - process it [14:30:02]SAM_PROTO_GetFieldsCounters [14:30:02]wFMCommunicate request_size=4 [14:30:02]MH_SAM_APDU [14:30:02]CAPDU: 80 13 00 00 [14:30:02]Write to MH i2c: E2 08 00 03 35 80 13 00 00 00 00 00 00 B4 [14:30:02]Write i2c OK [14:30:02]MH_I2C_Read... [14:30:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:03]Read from MH i2c: E2 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 62 00 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 62 00 03 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C8 73 01 00 0E 04 04 00 47 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 93 [14:30:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C8 73 01 00 0E 04 04 00 47 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:30:03]wFMCommunicate OK [14:30:03]SAM_PROTO_GetFieldsCounters done [14:30:03]requested_item shift.num is exist - process it [14:30:03]requested_item shift.opened is exist - process it [14:30:03]req_shift_opened [14:30:03]FM_GetShiftState [14:30:03]SAM_PROTO_GetShiftState [14:30:03]wFMCommunicate request_size=4 [14:30:03]MH_SAM_APDU [14:30:03]CAPDU: 80 13 01 00 [14:30:03]Write to MH i2c: E2 08 00 04 35 80 13 01 00 00 00 00 00 B6 [14:30:03]Write i2c OK [14:30:03]MH_I2C_Read... [14:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:03]Read from MH i2c: E2 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 0E 00 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 0E 00 04 35 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 2A [14:30:03]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:30:03]wFMCommunicate OK [14:30:03]SAM_PROTO_GetShiftState done [14:30:03]FM_GetShiftState done [14:30:03]req_shift_opened done [14:30:03]requested_item shift.open_date is exist - process it [14:30:03]req_shift_open_date [14:30:03]req_shift_open_date done [14:30:03]produce_requested_data done [14:30:03]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95176,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:30:03]process_action_free close_receipt [14:30:03]json_value_free [14:30:03]json_value_free done [14:30:03]process_json_proto returns [14:30:03]Send response to host [14:30:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95176,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:30:03]free response buf [14:30:03]execute_script done [14:30:03]execute_script returns [14:30:03]free content buf [14:30:03]Sock 9.Close socket [14:30:03]Sock 9.Thread stoped [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31: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:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:04]accept exits with 8 [14:33:04]New connection [14:33:04]New thread 3066813796 created [14:33:04]Thread 3066957156 joined [14:33:04]Waiting for new connection... [14:33:04] Sock 8.Parse request [14:33:04]Sock 8.Check first char [14:33:04]Sock 8.First char is OK [14:33:04]request: POST /json_proto HTTP/1.0 [14:33:04]Method: POST [14:33:04]URL: /json_proto [14:33:04]Method is POST - this is cgi request [14:33:04]url: /json_proto [14:33:04]query_string will be loaded in cgi processing [14:33:04]execute_cgi json_proto POST (null) [14:33:04]execute_cgi path=json_proto method=POST [14:33:04]POST find Content-Length [14:33:04]Host: 172.17.62.67:8080 [14:33:04]Content-Length: 677 [14:33:04]Content-Type: application/json [14:33:04] [14:33:04]POST finish read [14:33:04]Found Content-Length = 677 [14:33:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:04]execute_script... [14:33: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)196147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:04]POST & json_proto [14:33:04]process_json_proto [14:33:04]json parsed OK: [14:33:04]protocol is kg_v1.0 [14:33:04]action value=close_receipt [14:33:04]process_action close_receipt [14:33:04]cmd_close_receipt [14:33:04]MH_GetDate [14:33:04]Write to MH i2c: F0 00 00 05 35 29 [14:33:04]Write i2c OK [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: F0 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: F0 05 00 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: F0 05 00 05 35 00 A5 67 F0 65 8F [14:33:04]GetLastDocTimeStamp 1710253806 [14:33:04]current date 1710253989 [14:33:04]FM_GetShiftState [14:33:04]SAM_PROTO_GetShiftState [14:33:04]wFMCommunicate request_size=4 [14:33:04]MH_SAM_APDU [14:33:04]CAPDU: 80 13 01 00 [14:33:04]Write to MH i2c: E2 08 00 06 35 80 13 01 00 00 00 00 00 B8 [14:33:04]Write i2c OK [14:33:04]MH_I2C_Read... [14:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:04]Read from MH i2c: E2 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 0E 00 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 0E 00 06 35 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 2C [14:33:04]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:33:04]wFMCommunicate OK [14:33:04]SAM_PROTO_GetShiftState done [14:33:04]FM_GetShiftState done [14:33:04]opened in 1710201976 [14:33:04]opened+sec_in_day 1710288376 [14:33:04]quantity*price = 60006 [14:33:04]sum+1 = 60008 [14:33:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 107 12.03.2024 14:33 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95177 ФПД: 88891267772988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T143309&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95177&fm=88891267772988&tin=02508201610067®Number=0000000000090555&sum=60000 [14:33:05]StoreToDocumentArchive [14:33:05]shift 327 fd 95177 [14:33:05]save to /storage/0327/doc_00095177 [14:33:05]save last doc name /storage/0327/doc_00095177 to /storage/kkm_last_doc_name [14:33:05]save OK [14:33:05]Clear old archive folders... [14:33:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:05]tlvbuf is 01A5FC00 [14:33:05]SAM_PROTO_ClearQueue [14:33:05]wFMCommunicate request_size=4 [14:33:05]MH_SAM_APDU [14:33:05]CAPDU: 80 09 00 00 [14:33:05]Write to MH i2c: E2 08 00 13 35 80 09 00 00 00 00 00 00 BA [14:33:05]Write i2c OK [14:33:05]MH_I2C_Read... [14:33:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:05]Read from MH i2c: E2 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 03 00 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 03 00 13 35 00 90 00 BC [14:33:05]RAPDU: 90 00 [14:33:05]wFMCommunicate OK [14:33:05]SAM_PROTO_ClearQueue done [14:33:05]KKMCreateOFDPacket [14:33:05]OFDProtocolAddRootSTLVToBuf [14:33:05]FM_MakeSignedData [14:33:05]FM_MakeSignedData [14:33:05]SAM_PROTO_SignData [14:33:05]wFMCommunicate request_size=4 [14:33:05]MH_SAM_APDU [14:33:05]CAPDU: 80 0D 01 02 [14:33:05]Write to MH i2c: E2 08 00 14 35 80 0D 01 02 00 00 00 00 C2 [14:33:05]Write i2c OK [14:33:05]MH_I2C_Read... [14:33:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:05]Read from MH i2c: E2 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 03 00 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 03 00 14 35 00 90 00 BD [14:33:05]RAPDU: 90 00 [14:33:05]wFMCommunicate OK [14:33:05]wFMCommunicate request_size=255 [14:33:05]MH_SAM_APDU [14:33:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 A5 67 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C9 73 01 00 35 04 06 00 50 [14:33:05]Write to MH i2c: E2 02 01 15 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 A5 67 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C9 73 01 00 35 04 06 00 50 00 00 72 [14:33:05]Write i2c OK [14:33:05]MH_I2C_Read... [14:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:05]Read from MH i2c: E2 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 03 00 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 03 00 15 35 00 90 00 BE [14:33:05]RAPDU: 90 00 [14:33:05]wFMCommunicate OK [14:33:05]wFMCommunicate request_size=10 [14:33:05]MH_SAM_APDU [14:33:05]CAPDU: 80 0D 02 02 05 D8 9C 70 72 3C [14:33:05]Write to MH i2c: E2 0D 00 16 35 80 0D 02 02 05 00 D8 9C 70 72 3C 00 00 61 [14:33:05]Write i2c OK [14:33:05]MH_I2C_Read... [14:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:05]Read from MH i2c: E2 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 03 00 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 03 00 16 35 00 90 00 BF [14:33:05]RAPDU: 90 00 [14:33:05]wFMCommunicate OK [14:33:05]wFMCommunicate request_size=4 [14:33:05]MH_SAM_APDU [14:33:05]CAPDU: 80 0D 03 02 [14:33:05]Write to MH i2c: E2 08 00 17 35 80 0D 03 02 00 00 00 00 C7 [14:33:05]Write i2c OK [14:33:05]MH_I2C_Read... [14:33:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:05]Read from MH i2c: E2 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 0B 00 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 0B 00 17 35 00 79 12 D9 B8 92 5E A0 60 90 00 D4 [14:33:05]RAPDU: 79 12 D9 B8 92 5E A0 60 90 00 [14:33:05]wFMCommunicate OK [14:33:05]SAM_PROTO_SignData done [14:33:05]FM_MakeSignedData done [14:33:05]CreateOFDProtocolMessage [14:33:05]wFMCommunicate request_size=4 [14:33:05]MH_SAM_APDU [14:33:05]CAPDU: 80 11 00 00 [14:33:05]Write to MH i2c: E2 08 00 18 35 80 11 00 00 00 00 00 00 C7 [14:33:05]Write i2c OK [14:33:05]MH_I2C_Read... [14:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:05]Read from MH i2c: E2 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 17 00 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 17 00 18 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 17 [14:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:33:05]wFMCommunicate OK [14:33:05]CreateOFDProtocolMessage done [14:33:05]OFDSenderStorePacket 95177 [14:33:05]StoreOFDPacket docnum=95177 [14:33:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 76 7A 07 01 D5 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 A5 67 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C9 73 01 00 35 04 06 00 50 D8 9C 70 72 3C 79 12 D9 B8 92 5E A0 60 [14:33:05]CheckFolder [14:33:05]dirname=/storage/ofd_packets [14:33:05]CheckFolder done [14:33:05]ProducePacketName [14:33:05]name=ofd_packets/00095177 [14:33:05]NVStorageSaveData ofd_packets/00095177 [14:33:05]File name is /storage/ofd_packets/00095177 [14:33:05]Write 301 bytes [14:33:05]NVStorageSaveData done [14:33:05]OFDSenderStorePacket done [14:33:05]KKMCreateOFDPacket done [14:33:05]NVStorageSaveData kkm_last_timestamp [14:33:05]File name is /storage/kkm_last_timestamp [14:33:05]Write 4 bytes [14:33:05]NVStorageSaveData done [14:33:05]ExternCall_PrintAddStr [14:33:05]wPrintStart [14:33:05]Write to MH i2c: 01 00 00 19 35 4E [14:33:05]Write i2c OK [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: 01 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: 01 07 00 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: 01 07 00 19 35 00 80 00 00 00 FF 0F E3 [14:33:05]RasterBufferAndPrint [14:33:05]line Счет N : (1)196147 [14:33:05]line ИНН: 02508201610067 [14:33:05]line Контрольно-Кассовый Чек [14:33:05]line ПРОДАЖА [14:33:05]line ТРК (МРК, ГНК) : 32 [14:33:05]line Товар: 2710124130 [14:33:05]line Аи-92-К-5 [14:33:05]line 9.540 * 62.90 [14:33:05]line = 600.07 [14:33:05]line НДС 12% НСП 1% [14:33:05]line > о реализуемом товаре [14:33:05]line ОКРУГЛЕНИЕ: -0.07 [14:33:05]line ИТОГО: 600.00 [14:33:05]line Внесено: 600.00 [14:33:05]line СДАЧА: 0.00 [14:33:05]line НСП 1% : 5.31 [14:33:05]line НДС 12% : 63.72 [14:33:05]line Наличными: 600.00 [14:33:05]line Безнал.: 0.00 [14:33:05]line Место: АЗС № 6 "Партнер Нефть" [14:33:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:33:05]line СНО: Общий режим [14:33:05]line Чек 107 12.03.2024 14:33 [14:33:05]line Смена: 327 ФФД: 1.0 [14:33:05]line ЗНМ: 0300000009 [14:33:05]line РНМ: 0000000000090555 [14:33:05]line Версия ККМ: 001 [14:33:05]line ФМ: 0000000000874811 [14:33:05]line ФД: 95177 [14:33:05]line ФПД: 88891267772988 [14:33:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T143309&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95177&fm=88891267772988&tin=02508201610067®Number=0000000000090555&sum=60000 [14:33:06]OFD Sender: Processing packet 95177 [packets to send 30, broken 29] [14:33:06]ProducePacketName [14:33:06]name=ofd_packets/00095177 [14:33:06]OFD Sender: To server: pG, [14:33:06]CommunicateWithHost lk.salyk.kg:30040 [14:33:06]ConnectInit lk.salyk.kg [14:33:06]written 0, free lines is 4095 [14:33:06]Connected sock=10 [14:33:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 76 7A 07 01 D5 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 A5 67 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C9 73 01 00 35 04 06 00 50 D8 9C 70 72 3C 79 12 D9 B8 92 5E A0 60 [14:33:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 2B BE 47 00 D5 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C9 73 01 00 F4 03 04 00 FB 12 F0 65 B6 04 01 00 00 82 2F DD 55 2B E3 7A 54 [14:33:06]CommunicateWithHost err = 0 [14:33:06]CheckOFDResponse [14:33:06]1017 (14) - 77093643461234 [14:33:06]1041 (16) - 0000000000874811 [14:33:06]1040 (4) - 95177 [14:33:06]1012 (4) - 12.03.2024 08:31 [14:33:06]1206 (1) - 0 [14:33:06]OFD Sender: Remove packet 95177 [14:33:06]ProducePacketName [14:33:06]name=ofd_packets/00095177 [14:33:06]NVStorageDeleteData [14:33:06]Write to MH i2c: 01 00 00 44 35 79 [14:33:06]Write i2c OK [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: 01 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: 01 07 00 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: 01 07 00 44 35 00 80 00 00 00 4F 0D 5C [14:33:06]RasterBufferAndPrint [14:33:06]line [14:33:06]line [14:33:06]line [14:33:06]line [14:33:06]line [14:33:06]written 0, free lines is 3413 [14:33:06]process_action close_receipt done [14:33:06]requested_data is exist [14:33:06]produce_requested_data [14:33:06]requested_item fm.sn is exist - process it [14:33:06]wFMCommunicate request_size=4 [14:33:06]MH_SAM_APDU [14:33:06]CAPDU: 80 11 00 00 [14:33:06]Write to MH i2c: E2 08 00 4B 35 80 11 00 00 00 00 00 00 FA [14:33:06]Write i2c OK [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 [14:33:06]MH_I2C_Read... [14:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:06]Read from MH i2c: E2 17 00 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 17 00 4B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4A [14:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:33:06]wFMCommunicate OK [14:33:06]requested_item fd.num is exist - process it [14:33:06]SAM_PROTO_GetFieldsCounters [14:33:06]wFMCommunicate request_size=4 [14:33:06]MH_SAM_APDU [14:33:06]CAPDU: 80 13 00 00 [14:33:06]Write to MH i2c: E2 08 00 4C 35 80 13 00 00 00 00 00 00 FD [14:33:06]Write i2c OK [14:33:06]MH_I2C_Read... [14:33:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:06]Read from MH i2c: E2 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 62 00 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 62 00 4C 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C9 73 01 00 0E 04 04 00 47 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 E0 [14:33:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C9 73 01 00 0E 04 04 00 47 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:33:06]wFMCommunicate OK [14:33:06]SAM_PROTO_GetFieldsCounters done [14:33:06]requested_item shift.num is exist - process it [14:33:06]requested_item shift.opened is exist - process it [14:33:06]req_shift_opened [14:33:06]FM_GetShiftState [14:33:06]SAM_PROTO_GetShiftState [14:33:06]wFMCommunicate request_size=4 [14:33:06]MH_SAM_APDU [14:33:06]CAPDU: 80 13 01 00 [14:33:06]Write to MH i2c: E2 08 00 4D 35 80 13 01 00 00 00 00 00 FF [14:33:06]Write i2c OK [14:33:06]MH_I2C_Read... [14:33:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:06]OFD Sender: No OFD packet to send [14:33:06]Read from MH i2c: E2 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 0E 00 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 0E 00 4D 35 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 73 [14:33:06]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:33:06]wFMCommunicate OK [14:33:06]SAM_PROTO_GetShiftState done [14:33:06]FM_GetShiftState done [14:33:06]req_shift_opened done [14:33:06]requested_item shift.open_date is exist - process it [14:33:06]req_shift_open_date [14:33:06]req_shift_open_date done [14:33:06]produce_requested_data done [14:33:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95177,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:33:06]process_action_free close_receipt [14:33:06]json_value_free [14:33:06]json_value_free done [14:33:06]process_json_proto returns [14:33:06]Send response to host [14:33:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95177,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:33:06]free response buf [14:33:06]execute_script done [14:33:06]execute_script returns [14:33:06]free content buf [14:33:06]Sock 8.Close socket [14:33:06]Sock 8.Thread stoped [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:29]accept exits with 9 [14:33:29]New connection [14:33:29]New thread 3066957156 created [14:33:29]Thread 3066813796 joined [14:33:29]Waiting for new connection... [14:33:29] Sock 9.Parse request [14:33:29]Sock 9.Check first char [14:33:29]Sock 9.First char is OK [14:33:29]request: POST /json_proto HTTP/1.0 [14:33:29]Method: POST [14:33:29]URL: /json_proto [14:33:29]Method is POST - this is cgi request [14:33:29]url: /json_proto [14:33:29]query_string will be loaded in cgi processing [14:33:29]execute_cgi json_proto POST (null) [14:33:29]execute_cgi path=json_proto method=POST [14:33:29]POST find Content-Length [14:33:29]Host: 172.17.62.67:8080 [14:33:29]Content-Length: 733 [14:33:29]Content-Type: application/json [14:33:29] [14:33:29]POST finish read [14:33:29]Found Content-Length = 733 [14:33:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95177, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:29]execute_script... [14:33:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95177, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:29]POST & json_proto [14:33:29]process_json_proto [14:33:29]json parsed OK: [14:33:29]protocol is kg_v1.0 [14:33:29]action value=close_receipt [14:33:29]process_action close_receipt [14:33:29]cmd_close_receipt [14:33:29]MH_GetDate [14:33:29]Write to MH i2c: F0 00 00 4E 35 72 [14:33:29]Write i2c OK [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: F0 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: F0 05 00 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: F0 05 00 4E 35 00 BE 67 F0 65 F1 [14:33:29]GetLastDocTimeStamp 1710253989 [14:33:29]current date 1710254014 [14:33:29]FM_GetShiftState [14:33:29]SAM_PROTO_GetShiftState [14:33:29]wFMCommunicate request_size=4 [14:33:29]MH_SAM_APDU [14:33:29]CAPDU: 80 13 01 00 [14:33:29]Write to MH i2c: E2 08 00 4F 35 80 13 01 00 00 00 00 00 01 [14:33:29]Write i2c OK [14:33:29]MH_I2C_Read... [14:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:29]Read from MH i2c: E2 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 0E 00 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 0E 00 4F 35 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 75 [14:33:29]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:33:29]wFMCommunicate OK [14:33:29]SAM_PROTO_GetShiftState done [14:33:29]FM_GetShiftState done [14:33:29]opened in 1710201976 [14:33:29]opened+sec_in_day 1710288376 [14:33:29]quantity*price = 60006 [14:33:29]sum+1 = 60008 [14:33:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 108 12.03.2024 14:33 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95177 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95178 ФПД: 266295241046684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T143334&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95178&fm=266295241046684&tin=02508201610067®Number=0000000000090555&sum=60000 [14:33:30]StoreToDocumentArchive [14:33:30]shift 327 fd 95178 [14:33:30]save to /storage/0327/doc_00095178 [14:33:30]save last doc name /storage/0327/doc_00095178 to /storage/kkm_last_doc_name [14:33:30]save OK [14:33:30]Clear old archive folders... [14:33:30]ProcessDocumentItem done err = 0, tmpTLVsize=279 [14:33:30]tlvbuf is 01A26110 [14:33:30]SAM_PROTO_ClearQueue [14:33:30]wFMCommunicate request_size=4 [14:33:30]MH_SAM_APDU [14:33:30]CAPDU: 80 09 00 00 [14:33:30]Write to MH i2c: E2 08 00 5E 35 80 09 00 00 00 00 00 00 05 [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:30]Read from MH i2c: E2 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 03 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 03 00 5E 35 00 90 00 07 [14:33:30]RAPDU: 90 00 [14:33:30]wFMCommunicate OK [14:33:30]SAM_PROTO_ClearQueue done [14:33:30]KKMCreateOFDPacket [14:33:30]OFDProtocolAddRootSTLVToBuf [14:33:30]FM_MakeSignedData [14:33:30]FM_MakeSignedData [14:33:30]SAM_PROTO_SignData [14:33:30]wFMCommunicate request_size=4 [14:33:30]MH_SAM_APDU [14:33:30]CAPDU: 80 0D 01 02 [14:33:30]Write to MH i2c: E2 08 00 5F 35 80 0D 01 02 00 00 00 00 0D [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:30]Read from MH i2c: E2 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 03 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 03 00 5F 35 00 90 00 08 [14:33:30]RAPDU: 90 00 [14:33:30]wFMCommunicate OK [14:33:30]wFMCommunicate request_size=255 [14:33:30]MH_SAM_APDU [14:33:30]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 BE 67 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 C9 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 [14:33:30]Write to MH i2c: E2 02 01 60 35 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 BE 67 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 C9 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 00 00 E9 [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:30]Read from MH i2c: E2 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 03 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 03 00 60 35 00 90 00 09 [14:33:30]RAPDU: 90 00 [14:33:30]wFMCommunicate OK [14:33:30]wFMCommunicate request_size=38 [14:33:30]MH_SAM_APDU [14:33:30]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CA 73 01 00 35 04 06 00 F2 31 B1 3F 7A 9C [14:33:30]Write to MH i2c: E2 29 00 61 35 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CA 73 01 00 35 04 06 00 F2 31 B1 3F 7A 9C 00 00 FD [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:30]Read from MH i2c: E2 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 03 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 03 00 61 35 00 90 00 0A [14:33:30]RAPDU: 90 00 [14:33:30]wFMCommunicate OK [14:33:30]wFMCommunicate request_size=4 [14:33:30]MH_SAM_APDU [14:33:30]CAPDU: 80 0D 03 02 [14:33:30]Write to MH i2c: E2 08 00 62 35 80 0D 03 02 00 00 00 00 12 [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:30]Read from MH i2c: E2 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 0B 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 0B 00 62 35 00 F1 AA 5E 55 42 69 83 E9 90 00 78 [14:33:30]RAPDU: F1 AA 5E 55 42 69 83 E9 90 00 [14:33:30]wFMCommunicate OK [14:33:30]SAM_PROTO_SignData done [14:33:30]FM_MakeSignedData done [14:33:30]CreateOFDProtocolMessage [14:33:30]wFMCommunicate request_size=4 [14:33:30]MH_SAM_APDU [14:33:30]CAPDU: 80 11 00 00 [14:33:30]Write to MH i2c: E2 08 00 63 35 80 11 00 00 00 00 00 00 12 [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:30]Read from MH i2c: E2 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 17 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 17 00 63 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 62 [14:33:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:33:30]wFMCommunicate OK [14:33:30]CreateOFDProtocolMessage done [14:33:30]OFDSenderStorePacket 95178 [14:33:30]StoreOFDPacket docnum=95178 [14:33:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 8B AC 23 01 9D B1 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 BE 67 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 C9 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CA 73 01 00 35 04 06 00 F2 31 B1 3F 7A 9C F1 AA 5E 55 42 69 83 E9 [14:33:30]CheckFolder [14:33:30]dirname=/storage/ofd_packets [14:33:30]CheckFolder done [14:33:30]ProducePacketName [14:33:30]name=ofd_packets/00095178 [14:33:30]NVStorageSaveData ofd_packets/00095178 [14:33:30]File name is /storage/ofd_packets/00095178 [14:33:30]Write 329 bytes [14:33:30]NVStorageSaveData done [14:33:30]OFDSenderStorePacket done [14:33:30]KKMCreateOFDPacket done [14:33:30]NVStorageSaveData kkm_last_timestamp [14:33:30]File name is /storage/kkm_last_timestamp [14:33:30]Write 4 bytes [14:33:30]NVStorageSaveData done [14:33:30]ExternCall_PrintAddStr [14:33:30]wPrintStart [14:33:30]Write to MH i2c: 01 00 00 64 35 99 [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: 01 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: 01 07 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: 01 07 00 64 35 00 80 00 00 00 FF 0F 2E [14:33:30]RasterBufferAndPrint [14:33:30]line Счет N : (1)196147 [14:33:30]line ИНН: 02508201610067 [14:33:30]line Контрольно-Кассовый Чек [14:33:30]line ВОЗВРАТ ПРОДАЖИ [14:33:30]line ТРК (МРК, ГНК) : 32 [14:33:30]line Товар: 2710124130 [14:33:30]line Аи-92-К-5 [14:33:30]line 9.540 * 62.90 [14:33:30]line = 600.07 [14:33:30]line НДС 12% НСП 1% [14:33:30]line > о реализуемом товаре [14:33:30]line ОКРУГЛЕНИЕ: -0.07 [14:33:30]line ИТОГО: 600.00 [14:33:30]line НСП 1% : 5.31 [14:33:30]line НДС 12% : 63.72 [14:33:30]line Наличными: 600.00 [14:33:30]line Безнал.: 0.00 [14:33:30]line Место: АЗС № 6 "Партнер Нефть" [14:33:30]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:33:30]line СНО: Общий режим [14:33:30]line Чек 108 12.03.2024 14:33 [14:33:30]line Смена: 327 ФФД: 1.0 [14:33:30]line ЗНМ: 0300000009 [14:33:30]line РНМ: 0000000000090555 [14:33:30]line Версия ККМ: 001 [14:33:30]line ФД осн.: 95177 [14:33:30]line ФМ осн.: 0000000000874811 [14:33:30]line ФМ: 0000000000874811 [14:33:30]line ФД: 95178 [14:33:30]line ФПД: 266295241046684 [14:33:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T143334&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95178&fm=266295241046684&tin=02508201610067®Number=0000000000090555&sum=60000 [14:33:31]OFD Sender: Processing packet 95178 [packets to send 30, broken 29] [14:33:31]ProducePacketName [14:33:31]name=ofd_packets/00095178 [14:33:31]OFD Sender: To server: pG, [14:33:31]CommunicateWithHost lk.salyk.kg:30040 [14:33:31]ConnectInit lk.salyk.kg [14:33:31]written 0, free lines is 4095 [14:33:31]Connected sock=10 [14:33:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 8B AC 23 01 9D B1 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 BE 67 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 C9 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CA 73 01 00 35 04 06 00 F2 31 B1 3F 7A 9C F1 AA 5E 55 42 69 83 E9 [14:33:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 EC 20 47 00 7B 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CA 73 01 00 F4 03 04 00 14 13 F0 65 B6 04 01 00 00 7E 92 4C 6F 02 3F 01 F7 [14:33:31]CommunicateWithHost err = 0 [14:33:31]CheckOFDResponse [14:33:31]1017 (14) - 77093643461234 [14:33:31]1041 (16) - 0000000000874811 [14:33:31]1040 (4) - 95178 [14:33:31]1012 (4) - 12.03.2024 08:32 [14:33:31]1206 (1) - 0 [14:33:31]OFD Sender: Remove packet 95178 [14:33:31]ProducePacketName [14:33:31]name=ofd_packets/00095178 [14:33:31]NVStorageDeleteData [14:33:31]Write to MH i2c: 01 00 00 8F 35 C4 [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: 01 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: 01 07 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: 01 07 00 8F 35 00 80 00 00 00 5C 0D B4 [14:33:31]RasterBufferAndPrint [14:33:31]line [14:33:31]line [14:33:31]line [14:33:31]line [14:33:31]line [14:33:31]written 0, free lines is 3428 [14:33:31]process_action close_receipt done [14:33:31]requested_data is exist [14:33:31]produce_requested_data [14:33:31]requested_item fm.sn is exist - process it [14:33:31]wFMCommunicate request_size=4 [14:33:31]MH_SAM_APDU [14:33:31]CAPDU: 80 11 00 00 [14:33:31]Write to MH i2c: E2 08 00 96 35 80 11 00 00 00 00 00 00 45 [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:31]Read from MH i2c: E2 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 17 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 17 00 96 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 95 [14:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:33:31]wFMCommunicate OK [14:33:31]requested_item fd.num is exist - process it [14:33:31]SAM_PROTO_GetFieldsCounters [14:33:31]wFMCommunicate request_size=4 [14:33:31]MH_SAM_APDU [14:33:31]CAPDU: 80 13 00 00 [14:33:31]Write to MH i2c: E2 08 00 97 35 80 13 00 00 00 00 00 00 48 [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 62 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 62 00 97 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CA 73 01 00 0E 04 04 00 47 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 2F [14:33:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CA 73 01 00 0E 04 04 00 47 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:33:32]wFMCommunicate OK [14:33:32]SAM_PROTO_GetFieldsCounters done [14:33:32]requested_item shift.num is exist - process it [14:33:32]requested_item shift.opened is exist - process it [14:33:32]req_shift_opened [14:33:32]FM_GetShiftState [14:33:32]SAM_PROTO_GetShiftState [14:33:32]wFMCommunicate request_size=4 [14:33:32]MH_SAM_APDU [14:33:32]CAPDU: 80 13 01 00 [14:33:32]Write to MH i2c: E2 08 00 98 35 80 13 01 00 00 00 00 00 4A [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]OFD Sender: No OFD packet to send [14:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 0E 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 0E 00 98 35 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 BE [14:33:32]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:33:32]wFMCommunicate OK [14:33:32]SAM_PROTO_GetShiftState done [14:33:32]FM_GetShiftState done [14:33:32]req_shift_opened done [14:33:32]requested_item shift.open_date is exist - process it [14:33:32]req_shift_open_date [14:33:32]req_shift_open_date done [14:33:32]produce_requested_data done [14:33:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95178,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:33:32]process_action_free close_receipt [14:33:32]json_value_free [14:33:32]json_value_free done [14:33:32]process_json_proto returns [14:33:32]Send response to host [14:33:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95178,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:33:32]free response buf [14:33:32]execute_script done [14:33:32]execute_script returns [14:33:32]free content buf [14:33:32]Sock 9.Close socket [14:33:32]Sock 9.Thread stoped [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:50]accept exits with 8 [14:34:50]New connection [14:34:50]New thread 3066813796 created [14:34:50]Thread 3066957156 joined [14:34:50]Waiting for new connection... [14:34:50] Sock 8.Parse request [14:34:50]Sock 8.Check first char [14:34:50]Sock 8.First char is OK [14:34:50]request: POST /json_proto HTTP/1.0 [14:34:50]Method: POST [14:34:50]URL: /json_proto [14:34:50]Method is POST - this is cgi request [14:34:50]url: /json_proto [14:34:50]query_string will be loaded in cgi processing [14:34:50]execute_cgi json_proto POST (null) [14:34:50]execute_cgi path=json_proto method=POST [14:34:50]POST find Content-Length [14:34:50]Host: 172.17.62.67:8080 [14:34:50]Content-Length: 677 [14:34:50]Content-Type: application/json [14:34:50] [14:34:50]POST finish read [14:34:50]Found Content-Length = 677 [14:34:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:50]execute_script... [14:34: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)196148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:50]POST & json_proto [14:34:50]process_json_proto [14:34:50]json parsed OK: [14:34:50]protocol is kg_v1.0 [14:34:50]action value=close_receipt [14:34:50]process_action close_receipt [14:34:50]cmd_close_receipt [14:34:50]MH_GetDate [14:34:50]Write to MH i2c: F0 00 00 99 35 BD [14:34:50]Write i2c OK [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: F0 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: F0 05 00 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: F0 05 00 99 35 00 0F 68 F0 65 8E [14:34:50]GetLastDocTimeStamp 1710254014 [14:34:50]current date 1710254095 [14:34:50]FM_GetShiftState [14:34:50]SAM_PROTO_GetShiftState [14:34:50]wFMCommunicate request_size=4 [14:34:50]MH_SAM_APDU [14:34:50]CAPDU: 80 13 01 00 [14:34:50]Write to MH i2c: E2 08 00 9A 35 80 13 01 00 00 00 00 00 4C [14:34:50]Write i2c OK [14:34:50]MH_I2C_Read... [14:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:50]Read from MH i2c: E2 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: E2 0E 00 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: E2 0E 00 9A 35 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C0 [14:34:50]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:34:50]wFMCommunicate OK [14:34:50]SAM_PROTO_GetShiftState done [14:34:50]FM_GetShiftState done [14:34:50]opened in 1710201976 [14:34:50]opened+sec_in_day 1710288376 [14:34:50]quantity*price = 60006 [14:34:50]sum+1 = 60008 [14:34:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 109 12.03.2024 14:34 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95179 ФПД: 138779966271908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T143456&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95179&fm=138779966271908&tin=02508201610067®Number=0000000000090555&sum=60000 [14:34:51]StoreToDocumentArchive [14:34:51]shift 327 fd 95179 [14:34:51]save to /storage/0327/doc_00095179 [14:34:51]save last doc name /storage/0327/doc_00095179 to /storage/kkm_last_doc_name [14:34:51]save OK [14:34:51]Clear old archive folders... [14:34:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:51]tlvbuf is 01B3C9D0 [14:34:51]SAM_PROTO_ClearQueue [14:34:51]wFMCommunicate request_size=4 [14:34:51]MH_SAM_APDU [14:34:51]CAPDU: 80 09 00 00 [14:34:51]Write to MH i2c: E2 08 00 A7 35 80 09 00 00 00 00 00 00 4E [14:34:51]Write i2c OK [14:34:51]MH_I2C_Read... [14:34:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:51]Read from MH i2c: E2 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 03 00 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 03 00 A7 35 00 90 00 50 [14:34:51]RAPDU: 90 00 [14:34:51]wFMCommunicate OK [14:34:51]SAM_PROTO_ClearQueue done [14:34:51]KKMCreateOFDPacket [14:34:51]OFDProtocolAddRootSTLVToBuf [14:34:51]FM_MakeSignedData [14:34:51]FM_MakeSignedData [14:34:51]SAM_PROTO_SignData [14:34:51]wFMCommunicate request_size=4 [14:34:51]MH_SAM_APDU [14:34:51]CAPDU: 80 0D 01 02 [14:34:51]Write to MH i2c: E2 08 00 A8 35 80 0D 01 02 00 00 00 00 56 [14:34:51]Write i2c OK [14:34:51]MH_I2C_Read... [14:34:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:51]Read from MH i2c: E2 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 03 00 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 03 00 A8 35 00 90 00 51 [14:34:51]RAPDU: 90 00 [14:34:51]wFMCommunicate OK [14:34:51]wFMCommunicate request_size=255 [14:34:51]MH_SAM_APDU [14:34:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 10 68 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CB 73 01 00 35 04 06 00 7E [14:34:51]Write to MH i2c: E2 02 01 A9 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 10 68 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CB 73 01 00 35 04 06 00 7E 00 00 A4 [14:34:51]Write i2c OK [14:34:51]MH_I2C_Read... [14:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:51]Read from MH i2c: E2 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 03 00 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 03 00 A9 35 00 90 00 52 [14:34:51]RAPDU: 90 00 [14:34:51]wFMCommunicate OK [14:34:51]wFMCommunicate request_size=10 [14:34:51]MH_SAM_APDU [14:34:51]CAPDU: 80 0D 02 02 05 38 3A 97 71 A4 [14:34:51]Write to MH i2c: E2 0D 00 AA 35 80 0D 02 02 05 00 38 3A 97 71 A4 00 00 81 [14:34:51]Write i2c OK [14:34:51]MH_I2C_Read... [14:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:51]Read from MH i2c: E2 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 03 00 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 03 00 AA 35 00 90 00 53 [14:34:51]RAPDU: 90 00 [14:34:51]wFMCommunicate OK [14:34:51]wFMCommunicate request_size=4 [14:34:51]MH_SAM_APDU [14:34:51]CAPDU: 80 0D 03 02 [14:34:51]Write to MH i2c: E2 08 00 AB 35 80 0D 03 02 00 00 00 00 5B [14:34:51]Write i2c OK [14:34:51]MH_I2C_Read... [14:34:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:51]Read from MH i2c: E2 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 0B 00 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 0B 00 AB 35 00 98 B7 F0 AB 80 B5 50 21 90 00 EC [14:34:51]RAPDU: 98 B7 F0 AB 80 B5 50 21 90 00 [14:34:51]wFMCommunicate OK [14:34:51]SAM_PROTO_SignData done [14:34:51]FM_MakeSignedData done [14:34:51]CreateOFDProtocolMessage [14:34:51]wFMCommunicate request_size=4 [14:34:51]MH_SAM_APDU [14:34:51]CAPDU: 80 11 00 00 [14:34:51]Write to MH i2c: E2 08 00 AC 35 80 11 00 00 00 00 00 00 5B [14:34:51]Write i2c OK [14:34:51]MH_I2C_Read... [14:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:52]Read from MH i2c: E2 [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: E2 17 00 [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: E2 17 00 AC 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AB [14:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:34:52]wFMCommunicate OK [14:34:52]CreateOFDProtocolMessage done [14:34:52]OFDSenderStorePacket 95179 [14:34:52]StoreOFDPacket docnum=95179 [14:34:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 97 3B 07 01 2A 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 10 68 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CB 73 01 00 35 04 06 00 7E 38 3A 97 71 A4 98 B7 F0 AB 80 B5 50 21 [14:34:52]CheckFolder [14:34:52]dirname=/storage/ofd_packets [14:34:52]CheckFolder done [14:34:52]ProducePacketName [14:34:52]name=ofd_packets/00095179 [14:34:52]NVStorageSaveData ofd_packets/00095179 [14:34:52]File name is /storage/ofd_packets/00095179 [14:34:52]Write 301 bytes [14:34:52]NVStorageSaveData done [14:34:52]OFDSenderStorePacket done [14:34:52]KKMCreateOFDPacket done [14:34:52]NVStorageSaveData kkm_last_timestamp [14:34:52]File name is /storage/kkm_last_timestamp [14:34:52]Write 4 bytes [14:34:52]NVStorageSaveData done [14:34:52]ExternCall_PrintAddStr [14:34:52]wPrintStart [14:34:52]Write to MH i2c: 01 00 00 AD 35 E2 [14:34:52]Write i2c OK [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: 01 [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: 01 07 00 [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: 01 07 00 AD 35 00 80 00 00 00 FF 0F 77 [14:34:52]RasterBufferAndPrint [14:34:52]line Счет N : (1)196148 [14:34:52]line ИНН: 02508201610067 [14:34:52]line Контрольно-Кассовый Чек [14:34:52]line ПРОДАЖА [14:34:52]line ТРК (МРК, ГНК) : 32 [14:34:52]line Товар: 2710124130 [14:34:52]line Аи-92-К-5 [14:34:52]line 9.540 * 62.90 [14:34:52]line = 600.07 [14:34:52]line НДС 12% НСП 1% [14:34:52]line > о реализуемом товаре [14:34:52]line ОКРУГЛЕНИЕ: -0.07 [14:34:52]line ИТОГО: 600.00 [14:34:52]line Внесено: 600.00 [14:34:52]line СДАЧА: 0.00 [14:34:52]line НСП 1% : 5.31 [14:34:52]line НДС 12% : 63.72 [14:34:52]line Наличными: 600.00 [14:34:52]line Безнал.: 0.00 [14:34:52]line Место: АЗС № 6 "Партнер Нефть" [14:34:52]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:34:52]line СНО: Общий режим [14:34:52]line Чек 109 12.03.2024 14:34 [14:34:52]line Смена: 327 ФФД: 1.0 [14:34:52]line ЗНМ: 0300000009 [14:34:52]line РНМ: 0000000000090555 [14:34:52]line Версия ККМ: 001 [14:34:52]line ФМ: 0000000000874811 [14:34:52]line ФД: 95179 [14:34:52]line ФПД: 138779966271908 [14:34:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T143456&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95179&fm=138779966271908&tin=02508201610067®Number=0000000000090555&sum=60000 [14:34:52]OFD Sender: Processing packet 95179 [packets to send 30, broken 29] [14:34:52]ProducePacketName [14:34:52]name=ofd_packets/00095179 [14:34:52]OFD Sender: To server: pG, [14:34:52]CommunicateWithHost lk.salyk.kg:30040 [14:34:52]ConnectInit lk.salyk.kg [14:34:52]written 0, free lines is 4095 [14:34:52]Connected sock=11 [14:34:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 97 3B 07 01 2A 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 10 68 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CB 73 01 00 35 04 06 00 7E 38 3A 97 71 A4 98 B7 F0 AB 80 B5 50 21 [14:34:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 34 10 47 00 85 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CB 73 01 00 F4 03 04 00 65 13 F0 65 B6 04 01 00 00 A9 24 8C 27 27 57 8C E5 [14:34:52]CommunicateWithHost err = 0 [14:34:52]CheckOFDResponse [14:34:52]1017 (14) - 77093643461234 [14:34:52]1041 (16) - 0000000000874811 [14:34:52]1040 (4) - 95179 [14:34:52]1012 (4) - 12.03.2024 08:33 [14:34:52]1206 (1) - 0 [14:34:52]OFD Sender: Remove packet 95179 [14:34:52]ProducePacketName [14:34:52]name=ofd_packets/00095179 [14:34:52]NVStorageDeleteData [14:34:52]Write to MH i2c: 01 00 00 D8 35 0D [14:34:52]Write i2c OK [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: 01 [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: 01 07 00 [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: 01 07 00 D8 35 00 80 00 00 00 50 0D F1 [14:34:52]RasterBufferAndPrint [14:34:52]line [14:34:52]line [14:34:52]line [14:34:52]line [14:34:52]line [14:34:52]written 0, free lines is 3412 [14:34:52]process_action close_receipt done [14:34:52]requested_data is exist [14:34:52]produce_requested_data [14:34:52]requested_item fm.sn is exist - process it [14:34:52]wFMCommunicate request_size=4 [14:34:52]MH_SAM_APDU [14:34:52]CAPDU: 80 11 00 00 [14:34:52]Write to MH i2c: E2 08 00 DF 35 80 11 00 00 00 00 00 00 8E [14:34:52]Write i2c OK [14:34:52]MH_I2C_Read... [14:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:52]Read from MH i2c: E2 [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: E2 17 00 [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: E2 17 00 DF 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DE [14:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:34:52]wFMCommunicate OK [14:34:52]requested_item fd.num is exist - process it [14:34:52]SAM_PROTO_GetFieldsCounters [14:34:52]wFMCommunicate request_size=4 [14:34:52]MH_SAM_APDU [14:34:52]CAPDU: 80 13 00 00 [14:34:52]Write to MH i2c: E2 08 00 E0 35 80 13 00 00 00 00 00 00 91 [14:34:52]Write i2c OK [14:34:52]MH_I2C_Read... [14:34:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:53]Read from MH i2c: E2 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: E2 62 00 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: E2 62 00 E0 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CB 73 01 00 0E 04 04 00 47 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 7C [14:34:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CB 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:53]wFMCommunicate OK [14:34:53]SAM_PROTO_GetFieldsCounters done [14:34:53]requested_item shift.num is exist - process it [14:34:53]requested_item shift.opened is exist - process it [14:34:53]req_shift_opened [14:34:53]FM_GetShiftState [14:34:53]SAM_PROTO_GetShiftState [14:34:53]wFMCommunicate request_size=4 [14:34:53]MH_SAM_APDU [14:34:53]CAPDU: 80 13 01 00 [14:34:53]Write to MH i2c: E2 08 00 E1 35 80 13 01 00 00 00 00 00 93 [14:34:53]Write i2c OK [14:34:53]MH_I2C_Read... [14:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:53]Read from MH i2c: E2 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: E2 0E 00 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: E2 0E 00 E1 35 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 07 [14:34:53]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:34:53]wFMCommunicate OK [14:34:53]SAM_PROTO_GetShiftState done [14:34:53]FM_GetShiftState done [14:34:53]req_shift_opened done [14:34:53]requested_item shift.open_date is exist - process it [14:34:53]req_shift_open_date [14:34:53]req_shift_open_date done [14:34:53]produce_requested_data done [14:34:53]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95179,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:34:53]process_action_free close_receipt [14:34:53]json_value_free [14:34:53]json_value_free done [14:34:53]process_json_proto returns [14:34:53]Send response to host [14:34:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95179,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:34:53]free response buf [14:34:53]execute_script done [14:34:53]execute_script returns [14:34:53]free content buf [14:34:53]Sock 8.Close socket [14:34:53]Sock 8.Thread stoped [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:08]accept exits with 9 [14:36:08]New connection [14:36:08]New thread 3066957156 created [14:36:08]Thread 3066813796 joined [14:36:08]Waiting for new connection... [14:36:08] Sock 9.Parse request [14:36:08]Sock 9.Check first char [14:36:08]Sock 9.First char is OK [14:36:08]request: POST /json_proto HTTP/1.0 [14:36:08]Method: POST [14:36:08]URL: /json_proto [14:36:08]Method is POST - this is cgi request [14:36:08]url: /json_proto [14:36:08]query_string will be loaded in cgi processing [14:36:08]execute_cgi json_proto POST (null) [14:36:08]execute_cgi path=json_proto method=POST [14:36:08]POST find Content-Length [14:36:08]Host: 172.17.62.67:8080 [14:36:08]Content-Length: 674 [14:36:08]Content-Type: application/json [14:36:08] [14:36:08]POST finish read [14:36:08]Found Content-Length = 674 [14:36:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "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:36:08]execute_script... [14:36:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "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:36:08]POST & json_proto [14:36:08]process_json_proto [14:36:08]json parsed OK: [14:36:08]protocol is kg_v1.0 [14:36:08]action value=close_receipt [14:36:08]process_action close_receipt [14:36:08]cmd_close_receipt [14:36:08]MH_GetDate [14:36:08]Write to MH i2c: F0 00 00 E2 35 06 [14:36:08]Write i2c OK [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: F0 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: F0 05 00 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: F0 05 00 E2 35 00 5E 68 F0 65 26 [14:36:08]GetLastDocTimeStamp 1710254096 [14:36:08]current date 1710254174 [14:36:08]FM_GetShiftState [14:36:08]SAM_PROTO_GetShiftState [14:36:08]wFMCommunicate request_size=4 [14:36:08]MH_SAM_APDU [14:36:08]CAPDU: 80 13 01 00 [14:36:08]Write to MH i2c: E2 08 00 E3 35 80 13 01 00 00 00 00 00 95 [14:36:08]Write i2c OK [14:36:08]MH_I2C_Read... [14:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:08]Read from MH i2c: E2 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: E2 0E 00 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: E2 0E 00 E3 35 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 09 [14:36:08]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:36:08]wFMCommunicate OK [14:36:08]SAM_PROTO_GetShiftState done [14:36:08]FM_GetShiftState done [14:36:08]opened in 1710201976 [14:36:08]opened+sec_in_day 1710288376 [14:36:08]quantity*price = 50055 [14:36:08]sum+1 = 50056 [14:36:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 110 12.03.2024 14:36 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95180 ФПД: 37396120058969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T143614&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95180&fm=37396120058969&tin=02508201610067®Number=0000000000090555&sum=50000 [14:36:10]StoreToDocumentArchive [14:36:10]shift 327 fd 95180 [14:36:10]save to /storage/0327/doc_00095180 [14:36:10]save last doc name /storage/0327/doc_00095180 to /storage/kkm_last_doc_name [14:36:10]save OK [14:36:10]Clear old archive folders... [14:36:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:36:10]tlvbuf is 01A5F740 [14:36:10]SAM_PROTO_ClearQueue [14:36:10]wFMCommunicate request_size=4 [14:36:10]MH_SAM_APDU [14:36:10]CAPDU: 80 09 00 00 [14:36:10]Write to MH i2c: E2 08 00 F0 35 80 09 00 00 00 00 00 00 97 [14:36:10]Write i2c OK [14:36:10]MH_I2C_Read... [14:36:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:10]Read from MH i2c: E2 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 F0 35 00 90 00 99 [14:36:10]RAPDU: 90 00 [14:36:10]wFMCommunicate OK [14:36:10]SAM_PROTO_ClearQueue done [14:36:10]KKMCreateOFDPacket [14:36:10]OFDProtocolAddRootSTLVToBuf [14:36:10]FM_MakeSignedData [14:36:10]FM_MakeSignedData [14:36:10]SAM_PROTO_SignData [14:36:10]wFMCommunicate request_size=4 [14:36:10]MH_SAM_APDU [14:36:10]CAPDU: 80 0D 01 02 [14:36:10]Write to MH i2c: E2 08 00 F1 35 80 0D 01 02 00 00 00 00 9F [14:36:10]Write i2c OK [14:36:10]MH_I2C_Read... [14:36:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:10]Read from MH i2c: E2 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 F1 35 00 90 00 9A [14:36:10]RAPDU: 90 00 [14:36:10]wFMCommunicate OK [14:36:10]wFMCommunicate request_size=255 [14:36:10]MH_SAM_APDU [14:36:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 5E 68 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CC 73 01 00 35 04 06 00 22 02 F6 73 [14:36:10]Write to MH i2c: E2 02 01 F2 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 5E 68 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CC 73 01 00 35 04 06 00 22 02 F6 73 00 00 16 [14:36:10]Write i2c OK [14:36:10]MH_I2C_Read... [14:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:10]Read from MH i2c: E2 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 F2 35 00 90 00 9B [14:36:10]RAPDU: 90 00 [14:36:10]wFMCommunicate OK [14:36:10]wFMCommunicate request_size=7 [14:36:10]MH_SAM_APDU [14:36:10]CAPDU: 80 0D 02 02 02 BC 59 [14:36:10]Write to MH i2c: E2 0A 00 F3 35 80 0D 02 02 02 00 BC 59 00 00 BB [14:36:10]Write i2c OK [14:36:10]MH_I2C_Read... [14:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:10]Read from MH i2c: E2 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 F3 35 00 90 00 9C [14:36:10]RAPDU: 90 00 [14:36:10]wFMCommunicate OK [14:36:10]wFMCommunicate request_size=4 [14:36:10]MH_SAM_APDU [14:36:10]CAPDU: 80 0D 03 02 [14:36:10]Write to MH i2c: E2 08 00 F4 35 80 0D 03 02 00 00 00 00 A4 [14:36:10]Write i2c OK [14:36:10]MH_I2C_Read... [14:36:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:10]Read from MH i2c: E2 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 0B 00 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 0B 00 F4 35 00 54 B7 15 FD A2 29 9E 6A 90 00 95 [14:36:10]RAPDU: 54 B7 15 FD A2 29 9E 6A 90 00 [14:36:10]wFMCommunicate OK [14:36:10]SAM_PROTO_SignData done [14:36:10]FM_MakeSignedData done [14:36:10]CreateOFDProtocolMessage [14:36:10]wFMCommunicate request_size=4 [14:36:10]MH_SAM_APDU [14:36:10]CAPDU: 80 11 00 00 [14:36:10]Write to MH i2c: E2 08 00 F5 35 80 11 00 00 00 00 00 00 A4 [14:36:10]Write i2c OK [14:36:10]MH_I2C_Read... [14:36:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:10]Read from MH i2c: E2 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 17 00 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 17 00 F5 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F4 [14:36:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:36:10]wFMCommunicate OK [14:36:10]CreateOFDProtocolMessage done [14:36:10]OFDSenderStorePacket 95180 [14:36:10]StoreOFDPacket docnum=95180 [14:36:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 45 CD 04 01 29 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 5E 68 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CC 73 01 00 35 04 06 00 22 02 F6 73 BC 59 54 B7 15 FD A2 29 9E 6A [14:36:10]CheckFolder [14:36:10]dirname=/storage/ofd_packets [14:36:10]CheckFolder done [14:36:10]ProducePacketName [14:36:10]name=ofd_packets/00095180 [14:36:10]NVStorageSaveData ofd_packets/00095180 [14:36:10]File name is /storage/ofd_packets/00095180 [14:36:10]Write 298 bytes [14:36:10]NVStorageSaveData done [14:36:10]OFDSenderStorePacket done [14:36:10]KKMCreateOFDPacket done [14:36:10]NVStorageSaveData kkm_last_timestamp [14:36:10]File name is /storage/kkm_last_timestamp [14:36:10]Write 4 bytes [14:36:10]NVStorageSaveData done [14:36:10]ExternCall_PrintAddStr [14:36:10]wPrintStart [14:36:10]Write to MH i2c: 01 00 00 F6 35 2B [14:36:10]Write i2c OK [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: 01 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: 01 07 00 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: 01 07 00 F6 35 00 80 00 00 00 FF 0F C0 [14:36:10]RasterBufferAndPrint [14:36:10]line Счет N : (1)196149 [14:36:10]line ИНН: 02508201610067 [14:36:10]line Контрольно-Кассовый Чек [14:36:10]line ПРОДАЖА [14:36:10]line ТРК (МРК, ГНК) : 51 [14:36:10]line Товар: 2710194210 [14:36:10]line ДТ-К-5 [14:36:10]line 7.060 * 70.90 [14:36:10]line = 500.55 [14:36:10]line НДС 12% НСП 1% [14:36:10]line > о реализуемом товаре [14:36:10]line ОКРУГЛЕНИЕ: -0.55 [14:36:10]line ИТОГО: 500.00 [14:36:10]line Внесено: 500.00 [14:36:10]line СДАЧА: 0.00 [14:36:10]line НСП 1% : 4.43 [14:36:10]line НДС 12% : 53.16 [14:36:10]line Наличными: 500.00 [14:36:10]line Безнал.: 0.00 [14:36:10]line Место: АЗС № 6 "Партнер Нефть" [14:36:10]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:36:10]line СНО: Общий режим [14:36:10]line Чек 110 12.03.2024 14:36 [14:36:10]line Смена: 327 ФФД: 1.0 [14:36:10]line ЗНМ: 0300000009 [14:36:10]line РНМ: 0000000000090555 [14:36:10]line Версия ККМ: 001 [14:36:10]line ФМ: 0000000000874811 [14:36:10]line ФД: 95180 [14:36:10]line ФПД: 37396120058969 [14:36:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T143614&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95180&fm=37396120058969&tin=02508201610067®Number=0000000000090555&sum=50000 [14:36:10]written 0, free lines is 4095 [14:36:10]OFD Sender: Processing packet 95180 [packets to send 30, broken 29] [14:36:10]ProducePacketName [14:36:10]name=ofd_packets/00095180 [14:36:10]OFD Sender: To server: pG, [14:36:10]CommunicateWithHost lk.salyk.kg:30040 [14:36:10]ConnectInit lk.salyk.kg [14:36:10]Connected sock=10 [14:36:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 45 CD 04 01 29 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 5E 68 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CC 73 01 00 35 04 06 00 22 02 F6 73 BC 59 54 B7 15 FD A2 29 9E 6A [14:36:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E1 95 47 00 FA 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CC 73 01 00 F4 03 04 00 B4 13 F0 65 B6 04 01 00 00 8F 37 F8 DD 8E B1 92 EB [14:36:10]CommunicateWithHost err = 0 [14:36:10]CheckOFDResponse [14:36:10]1017 (14) - 77093643461234 [14:36:10]1041 (16) - 0000000000874811 [14:36:10]1040 (4) - 95180 [14:36:10]1012 (4) - 12.03.2024 08:35 [14:36:10]1206 (1) - 0 [14:36:10]OFD Sender: Remove packet 95180 [14:36:10]ProducePacketName [14:36:10]name=ofd_packets/00095180 [14:36:10]NVStorageDeleteData [14:36:11]Write to MH i2c: 01 00 00 21 36 57 [14:36:11]Write i2c OK [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: 01 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: 01 07 00 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: 01 07 00 21 36 00 80 00 00 00 5D 0D 48 [14:36:11]RasterBufferAndPrint [14:36:11]line [14:36:11]line [14:36:11]line [14:36:11]line [14:36:11]line [14:36:11]written 0, free lines is 3427 [14:36:11]process_action close_receipt done [14:36:11]requested_data is exist [14:36:11]produce_requested_data [14:36:11]requested_item fm.sn is exist - process it [14:36:11]wFMCommunicate request_size=4 [14:36:11]MH_SAM_APDU [14:36:11]CAPDU: 80 11 00 00 [14:36:11]Write to MH i2c: E2 08 00 28 36 80 11 00 00 00 00 00 00 D8 [14:36:11]Write i2c OK [14:36:11]MH_I2C_Read... [14:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:11]Read from MH i2c: E2 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: E2 17 00 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: E2 17 00 28 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 28 [14:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:36:11]wFMCommunicate OK [14:36:11]requested_item fd.num is exist - process it [14:36:11]SAM_PROTO_GetFieldsCounters [14:36:11]wFMCommunicate request_size=4 [14:36:11]MH_SAM_APDU [14:36:11]CAPDU: 80 13 00 00 [14:36:11]Write to MH i2c: E2 08 00 29 36 80 13 00 00 00 00 00 00 DB [14:36:11]Write i2c OK [14:36:11]MH_I2C_Read... [14:36:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:11]Read from MH i2c: E2 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: E2 62 00 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: E2 62 00 29 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CC 73 01 00 0E 04 04 00 47 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 CA [14:36:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CC 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:11]wFMCommunicate OK [14:36:11]SAM_PROTO_GetFieldsCounters done [14:36:11]requested_item shift.num is exist - process it [14:36:11]requested_item shift.opened is exist - process it [14:36:11]req_shift_opened [14:36:11]FM_GetShiftState [14:36:11]SAM_PROTO_GetShiftState [14:36:11]wFMCommunicate request_size=4 [14:36:11]MH_SAM_APDU [14:36:11]CAPDU: 80 13 01 00 [14:36:11]Write to MH i2c: E2 08 00 2A 36 80 13 01 00 00 00 00 00 DD [14:36:11]Write i2c OK [14:36:11]MH_I2C_Read... [14:36:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:11]Read from MH i2c: E2 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: E2 0E 00 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: E2 0E 00 2A 36 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 51 [14:36:11]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:36:11]wFMCommunicate OK [14:36:11]SAM_PROTO_GetShiftState done [14:36:11]FM_GetShiftState done [14:36:11]req_shift_opened done [14:36:11]requested_item shift.open_date is exist - process it [14:36:11]req_shift_open_date [14:36:11]req_shift_open_date done [14:36:11]produce_requested_data done [14:36:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95180,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:36:11]process_action_free close_receipt [14:36:11]json_value_free [14:36:11]json_value_free done [14:36:11]process_json_proto returns [14:36:11]Send response to host [14:36:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95180,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:36:11]free response buf [14:36:11]execute_script done [14:36:11]execute_script returns [14:36:11]free content buf [14:36:11]Sock 9.Close socket [14:36:11]Sock 9.Thread stoped [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:18]accept exits with 8 [14:39:18]New connection [14:39:18]New thread 3066813796 created [14:39:18]Thread 3066957156 joined [14:39:18]Waiting for new connection... [14:39:18] Sock 8.Parse request [14:39:18]Sock 8.Check first char [14:39:18]Sock 8.First char is OK [14:39:18]request: POST /json_proto HTTP/1.0 [14:39:18]Method: POST [14:39:18]URL: /json_proto [14:39:18]Method is POST - this is cgi request [14:39:18]url: /json_proto [14:39:18]query_string will be loaded in cgi processing [14:39:18]execute_cgi json_proto POST (null) [14:39:18]execute_cgi path=json_proto method=POST [14:39:18]POST find Content-Length [14:39:18]Host: 172.17.62.67:8080 [14:39:18]Content-Length: 805 [14:39:18]Content-Type: application/json [14:39:18] [14:39:18]POST finish read [14:39:18]Found Content-Length = 805 [14:39:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.870, "sum" : 495.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 495.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:18]execute_script... [14:39: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)196150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.870, "sum" : 495.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 495.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:18]POST & json_proto [14:39:18]process_json_proto [14:39:18]json parsed OK: [14:39:18]protocol is kg_v1.0 [14:39:18]action value=close_receipt [14:39:18]process_action close_receipt [14:39:18]cmd_close_receipt [14:39:18]MH_GetDate [14:39:18]Write to MH i2c: F0 00 00 2B 36 50 [14:39:18]Write i2c OK [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: F0 [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: F0 05 00 [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: F0 05 00 2B 36 00 1C 69 F0 65 2F [14:39:18]GetLastDocTimeStamp 1710254174 [14:39:18]current date 1710254364 [14:39:18]FM_GetShiftState [14:39:18]SAM_PROTO_GetShiftState [14:39:18]wFMCommunicate request_size=4 [14:39:18]MH_SAM_APDU [14:39:18]CAPDU: 80 13 01 00 [14:39:18]Write to MH i2c: E2 08 00 2C 36 80 13 01 00 00 00 00 00 DF [14:39:18]Write i2c OK [14:39:18]MH_I2C_Read... [14:39:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:18]Read from MH i2c: E2 [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: E2 0E 00 [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: E2 0E 00 2C 36 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 53 [14:39:18]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:39:18]wFMCommunicate OK [14:39:18]SAM_PROTO_GetShiftState done [14:39:18]FM_GetShiftState done [14:39:18]opened in 1710201976 [14:39:18]opened+sec_in_day 1710288376 [14:39:18]quantity*price = 49502 [14:39:18]sum+1 = 49503 [14:39:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 495.02 НСП 1% : 4.38 НДС 12% : 52.57 Наличными: 0.00 Безнал.: 495.02 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 111 12.03.2024 14:39 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95181 ФПД: 236416286326173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T143924&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95181&fm=236416286326173&tin=02508201610067®Number=0000000000090555&sum=49502 [14:39:20]StoreToDocumentArchive [14:39:20]shift 327 fd 95181 [14:39:20]save to /storage/0327/doc_00095181 [14:39:20]save last doc name /storage/0327/doc_00095181 to /storage/kkm_last_doc_name [14:39:20]save OK [14:39:20]Clear old archive folders... [14:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:20]tlvbuf is 01A9B430 [14:39:20]SAM_PROTO_ClearQueue [14:39:20]wFMCommunicate request_size=4 [14:39:20]MH_SAM_APDU [14:39:20]CAPDU: 80 09 00 00 [14:39:20]Write to MH i2c: E2 08 00 39 36 80 09 00 00 00 00 00 00 E1 [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:20]Read from MH i2c: E2 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 03 00 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 03 00 39 36 00 90 00 E3 [14:39:20]RAPDU: 90 00 [14:39:20]wFMCommunicate OK [14:39:20]SAM_PROTO_ClearQueue done [14:39:20]KKMCreateOFDPacket [14:39:20]OFDProtocolAddRootSTLVToBuf [14:39:20]FM_MakeSignedData [14:39:20]FM_MakeSignedData [14:39:20]SAM_PROTO_SignData [14:39:20]wFMCommunicate request_size=4 [14:39:20]MH_SAM_APDU [14:39:20]CAPDU: 80 0D 01 02 [14:39:20]Write to MH i2c: E2 08 00 3A 36 80 0D 01 02 00 00 00 00 E9 [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:20]Read from MH i2c: E2 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 03 00 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 03 00 3A 36 00 90 00 E4 [14:39:20]RAPDU: 90 00 [14:39:20]wFMCommunicate OK [14:39:20]wFMCommunicate request_size=255 [14:39:20]MH_SAM_APDU [14:39:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 1E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 5E C1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E C1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1C 69 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CD 73 01 00 35 04 06 00 D7 [14:39:20]Write to MH i2c: E2 02 01 3B 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 1E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 5E C1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E C1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1C 69 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CD 73 01 00 35 04 06 00 D7 00 00 CF [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:20]Read from MH i2c: E2 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 03 00 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 03 00 3B 36 00 90 00 E5 [14:39:20]RAPDU: 90 00 [14:39:20]wFMCommunicate OK [14:39:20]wFMCommunicate request_size=10 [14:39:20]MH_SAM_APDU [14:39:20]CAPDU: 80 0D 02 02 05 04 F4 C3 FD 9D [14:39:20]Write to MH i2c: E2 0D 00 3C 36 80 0D 02 02 05 00 04 F4 C3 FD 9D 00 00 4B [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:20]Read from MH i2c: E2 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 03 00 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 03 00 3C 36 00 90 00 E6 [14:39:20]RAPDU: 90 00 [14:39:20]wFMCommunicate OK [14:39:20]wFMCommunicate request_size=4 [14:39:20]MH_SAM_APDU [14:39:20]CAPDU: 80 0D 03 02 [14:39:20]Write to MH i2c: E2 08 00 3D 36 80 0D 03 02 00 00 00 00 EE [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:20]Read from MH i2c: E2 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 0B 00 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 0B 00 3D 36 00 69 15 89 E8 45 A8 92 D9 90 00 36 [14:39:20]RAPDU: 69 15 89 E8 45 A8 92 D9 90 00 [14:39:20]wFMCommunicate OK [14:39:20]SAM_PROTO_SignData done [14:39:20]FM_MakeSignedData done [14:39:20]CreateOFDProtocolMessage [14:39:20]wFMCommunicate request_size=4 [14:39:20]MH_SAM_APDU [14:39:20]CAPDU: 80 11 00 00 [14:39:20]Write to MH i2c: E2 08 00 3E 36 80 11 00 00 00 00 00 00 EE [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:20]Read from MH i2c: E2 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 17 00 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 17 00 3E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3E [14:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:39:20]wFMCommunicate OK [14:39:20]CreateOFDProtocolMessage done [14:39:20]OFDSenderStorePacket 95181 [14:39:20]StoreOFDPacket docnum=95181 [14:39:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 79 51 07 01 93 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 1E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 5E C1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E C1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1C 69 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CD 73 01 00 35 04 06 00 D7 04 F4 C3 FD 9D 69 15 89 E8 45 A8 92 D9 [14:39:20]CheckFolder [14:39:20]dirname=/storage/ofd_packets [14:39:20]CheckFolder done [14:39:20]ProducePacketName [14:39:20]name=ofd_packets/00095181 [14:39:20]NVStorageSaveData ofd_packets/00095181 [14:39:20]File name is /storage/ofd_packets/00095181 [14:39:20]Write 301 bytes [14:39:20]NVStorageSaveData done [14:39:20]OFDSenderStorePacket done [14:39:20]KKMCreateOFDPacket done [14:39:20]NVStorageSaveData kkm_last_timestamp [14:39:20]File name is /storage/kkm_last_timestamp [14:39:20]Write 4 bytes [14:39:20]NVStorageSaveData done [14:39:20]ExternCall_PrintAddStr [14:39:20]wPrintStart [14:39:20]Write to MH i2c: 01 00 00 3F 36 75 [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: 01 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: 01 07 00 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: 01 07 00 3F 36 00 80 00 00 00 FF 0F 0A [14:39:20]RasterBufferAndPrint [14:39:20]line Счет N : (1)196150 [14:39:20]line ИНН: 02508201610067 [14:39:20]line Контрольно-Кассовый Чек [14:39:20]line ПРОДАЖА [14:39:20]line ТРК (МРК, ГНК) : 22 [14:39:20]line Товар: 2710124130 [14:39:20]line Аи-92-К-5 [14:39:20]line 7.870 * 62.90 [14:39:20]line = 495.02 [14:39:20]line НДС 12% НСП 1% [14:39:20]line > о реализуемом товаре [14:39:20]line ИТОГО: 495.02 [14:39:20]line НСП 1% : 4.38 [14:39:20]line НДС 12% : 52.57 [14:39:20]line Наличными: 0.00 [14:39:20]line Безнал.: 495.02 [14:39:20]line Место: АЗС № 6 "Партнер Нефть" [14:39:20]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:39:20]line СНО: Общий режим [14:39:20]line Чек 111 12.03.2024 14:39 [14:39:20]line Смена: 327 ФФД: 1.0 [14:39:20]line ЗНМ: 0300000009 [14:39:20]line РНМ: 0000000000090555 [14:39:20]line Версия ККМ: 001 [14:39:20]line Платежная система: О! деньги [14:39:20]line ФМ: 0000000000874811 [14:39:20]line ФД: 95181 [14:39:20]line ФПД: 236416286326173 [14:39:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T143924&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95181&fm=236416286326173&tin=02508201610067®Number=0000000000090555&sum=49502 [14:39:20]OFD Sender: Processing packet 95181 [packets to send 30, broken 29] [14:39:20]ProducePacketName [14:39:20]name=ofd_packets/00095181 [14:39:20]OFD Sender: To server: pG, [14:39:20]CommunicateWithHost lk.salyk.kg:30040 [14:39:20]ConnectInit lk.salyk.kg [14:39:20]written 0, free lines is 4095 [14:39:21]Connected sock=10 [14:39:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 79 51 07 01 93 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 1E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 5E C1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E C1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1C 69 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CD 73 01 00 35 04 06 00 D7 04 F4 C3 FD 9D 69 15 89 E8 45 A8 92 D9 [14:39:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 09 A0 47 00 65 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CD 73 01 00 F4 03 04 00 72 14 F0 65 B6 04 01 00 00 E5 D8 93 83 0D 1C 11 1C [14:39:21]CommunicateWithHost err = 0 [14:39:21]CheckOFDResponse [14:39:21]1017 (14) - 77093643461234 [14:39:21]1041 (16) - 0000000000874811 [14:39:21]1040 (4) - 95181 [14:39:21]1012 (4) - 12.03.2024 08:38 [14:39:21]1206 (1) - 0 [14:39:21]OFD Sender: Remove packet 95181 [14:39:21]ProducePacketName [14:39:21]name=ofd_packets/00095181 [14:39:21]NVStorageDeleteData [14:39:21]Write to MH i2c: 01 00 00 69 36 9F [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: 01 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: 01 07 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: 01 07 00 69 36 00 80 00 00 00 60 0D 93 [14:39:21]RasterBufferAndPrint [14:39:21]line [14:39:21]line [14:39:21]line [14:39:21]line [14:39:21]line [14:39:21]written 0, free lines is 3430 [14:39:21]process_action close_receipt done [14:39:21]requested_data is exist [14:39:21]produce_requested_data [14:39:21]requested_item fm.sn is exist - process it [14:39:21]wFMCommunicate request_size=4 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 11 00 00 [14:39:21]Write to MH i2c: E2 08 00 70 36 80 11 00 00 00 00 00 00 20 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 17 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 17 00 70 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 70 [14:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:39:21]wFMCommunicate OK [14:39:21]requested_item fd.num is exist - process it [14:39:21]SAM_PROTO_GetFieldsCounters [14:39:21]wFMCommunicate request_size=4 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 13 00 00 [14:39:21]Write to MH i2c: E2 08 00 71 36 80 13 00 00 00 00 00 00 23 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 62 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 62 00 71 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CD 73 01 00 0E 04 04 00 47 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 16 [14:39:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CD 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:21]wFMCommunicate OK [14:39:21]SAM_PROTO_GetFieldsCounters done [14:39:21]requested_item shift.num is exist - process it [14:39:21]requested_item shift.opened is exist - process it [14:39:21]req_shift_opened [14:39:21]FM_GetShiftState [14:39:21]SAM_PROTO_GetShiftState [14:39:21]wFMCommunicate request_size=4 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 13 01 00 [14:39:21]Write to MH i2c: E2 08 00 72 36 80 13 01 00 00 00 00 00 25 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 0E 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 0E 00 72 36 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 99 [14:39:21]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:39:21]wFMCommunicate OK [14:39:21]SAM_PROTO_GetShiftState done [14:39:21]FM_GetShiftState done [14:39:21]req_shift_opened done [14:39:21]requested_item shift.open_date is exist - process it [14:39:21]req_shift_open_date [14:39:21]req_shift_open_date done [14:39:21]produce_requested_data done [14:39:21]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95181,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:39:21]process_action_free close_receipt [14:39:21]json_value_free [14:39:21]json_value_free done [14:39:21]process_json_proto returns [14:39:21]Send response to host [14:39:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95181,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:39:21]free response buf [14:39:21]execute_script done [14:39:21]execute_script returns [14:39:21]free content buf [14:39:21]Sock 8.Close socket [14:39:21]Sock 8.Thread stoped [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43: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:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:16]accept exits with 9 [14:47:16]New connection [14:47:16]New thread 3066957156 created [14:47:16]Thread 3066813796 joined [14:47:16]Waiting for new connection... [14:47:16] Sock 9.Parse request [14:47:16]Sock 9.Check first char [14:47:16]Sock 9.First char is OK [14:47:16]request: POST /json_proto HTTP/1.0 [14:47:16]Method: POST [14:47:16]URL: /json_proto [14:47:16]Method is POST - this is cgi request [14:47:16]url: /json_proto [14:47:16]query_string will be loaded in cgi processing [14:47:16]execute_cgi json_proto POST (null) [14:47:16]execute_cgi path=json_proto method=POST [14:47:16]POST find Content-Length [14:47:16]Host: 172.17.62.67:8080 [14:47:16]Content-Length: 816 [14:47:16]Content-Type: application/json [14:47:16] [14:47:16]POST finish read [14:47:16]Found Content-Length = 816 [14:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:16]execute_script... [14:47:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:16]POST & json_proto [14:47:16]process_json_proto [14:47:16]json parsed OK: [14:47:16]protocol is kg_v1.0 [14:47:16]action value=close_receipt [14:47:16]process_action close_receipt [14:47:16]cmd_close_receipt [14:47:16]MH_GetDate [14:47:16]Write to MH i2c: F0 00 00 73 36 98 [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: F0 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: F0 05 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: F0 05 00 73 36 00 FA 6A F0 65 56 [14:47:16]GetLastDocTimeStamp 1710254364 [14:47:16]current date 1710254842 [14:47:16]FM_GetShiftState [14:47:16]SAM_PROTO_GetShiftState [14:47:16]wFMCommunicate request_size=4 [14:47:16]MH_SAM_APDU [14:47:16]CAPDU: 80 13 01 00 [14:47:16]Write to MH i2c: E2 08 00 74 36 80 13 01 00 00 00 00 00 27 [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:16]Read from MH i2c: E2 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 0E 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 0E 00 74 36 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 9B [14:47:16]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:47:16]wFMCommunicate OK [14:47:16]SAM_PROTO_GetShiftState done [14:47:16]FM_GetShiftState done [14:47:16]opened in 1710201976 [14:47:16]opened+sec_in_day 1710288376 [14:47:16]quantity*price = 40004 [14:47:16]sum+1 = 40005 [14:47:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.04 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.04 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 112 12.03.2024 14:47 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95182 ФПД: 96103796176339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T144722&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95182&fm=96103796176339&tin=02508201610067®Number=0000000000090555&sum=40004 [14:47:17]StoreToDocumentArchive [14:47:17]shift 327 fd 95182 [14:47:17]save to /storage/0327/doc_00095182 [14:47:17]save last doc name /storage/0327/doc_00095182 to /storage/kkm_last_doc_name [14:47:17]save OK [14:47:17]Clear old archive folders... [14:47:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:17]tlvbuf is 01AD1FB0 [14:47:17]SAM_PROTO_ClearQueue [14:47:17]wFMCommunicate request_size=4 [14:47:17]MH_SAM_APDU [14:47:17]CAPDU: 80 09 00 00 [14:47:17]Write to MH i2c: E2 08 00 81 36 80 09 00 00 00 00 00 00 29 [14:47:17]Write i2c OK [14:47:17]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 81 36 00 90 00 2B [14:47:18]RAPDU: 90 00 [14:47:18]wFMCommunicate OK [14:47:18]SAM_PROTO_ClearQueue done [14:47:18]KKMCreateOFDPacket [14:47:18]OFDProtocolAddRootSTLVToBuf [14:47:18]FM_MakeSignedData [14:47:18]FM_MakeSignedData [14:47:18]SAM_PROTO_SignData [14:47:18]wFMCommunicate request_size=4 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 0D 01 02 [14:47:18]Write to MH i2c: E2 08 00 82 36 80 0D 01 02 00 00 00 00 31 [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 82 36 00 90 00 2C [14:47:18]RAPDU: 90 00 [14:47:18]wFMCommunicate OK [14:47:18]wFMCommunicate request_size=255 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 FA 6A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CE 73 01 00 35 04 06 00 57 [14:47:18]Write to MH i2c: E2 02 01 83 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 FA 6A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CE 73 01 00 35 04 06 00 57 00 00 86 [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 83 36 00 90 00 2D [14:47:18]RAPDU: 90 00 [14:47:18]wFMCommunicate OK [14:47:18]wFMCommunicate request_size=10 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 0D 02 02 05 67 E8 A1 F5 D3 [14:47:18]Write to MH i2c: E2 0D 00 84 36 80 0D 02 02 05 00 67 E8 A1 F5 D3 00 00 F6 [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 84 36 00 90 00 2E [14:47:18]RAPDU: 90 00 [14:47:18]wFMCommunicate OK [14:47:18]wFMCommunicate request_size=4 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 0D 03 02 [14:47:18]Write to MH i2c: E2 08 00 85 36 80 0D 03 02 00 00 00 00 36 [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 0B 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 0B 00 85 36 00 B6 67 91 BA F3 3E 7C A0 90 00 EC [14:47:18]RAPDU: B6 67 91 BA F3 3E 7C A0 90 00 [14:47:18]wFMCommunicate OK [14:47:18]SAM_PROTO_SignData done [14:47:18]FM_MakeSignedData done [14:47:18]CreateOFDProtocolMessage [14:47:18]wFMCommunicate request_size=4 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 11 00 00 [14:47:18]Write to MH i2c: E2 08 00 86 36 80 11 00 00 00 00 00 00 36 [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 17 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 17 00 86 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 86 [14:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:47:18]wFMCommunicate OK [14:47:18]CreateOFDProtocolMessage done [14:47:18]OFDSenderStorePacket 95182 [14:47:18]StoreOFDPacket docnum=95182 [14:47:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 40 70 07 01 04 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 FA 6A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CE 73 01 00 35 04 06 00 57 67 E8 A1 F5 D3 B6 67 91 BA F3 3E 7C A0 [14:47:18]CheckFolder [14:47:18]dirname=/storage/ofd_packets [14:47:18]CheckFolder done [14:47:18]ProducePacketName [14:47:18]name=ofd_packets/00095182 [14:47:18]NVStorageSaveData ofd_packets/00095182 [14:47:18]File name is /storage/ofd_packets/00095182 [14:47:18]Write 301 bytes [14:47:18]NVStorageSaveData done [14:47:18]OFDSenderStorePacket done [14:47:18]KKMCreateOFDPacket done [14:47:18]NVStorageSaveData kkm_last_timestamp [14:47:18]File name is /storage/kkm_last_timestamp [14:47:18]Write 4 bytes [14:47:18]NVStorageSaveData done [14:47:18]ExternCall_PrintAddStr [14:47:18]wPrintStart [14:47:18]Write to MH i2c: 01 00 00 87 36 BD [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 07 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 07 00 87 36 00 80 00 00 00 FF 0F 52 [14:47:18]RasterBufferAndPrint [14:47:18]line Счет N : (1)196151 [14:47:18]line ИНН: 02508201610067 [14:47:18]line Контрольно-Кассовый Чек [14:47:18]line ПРОДАЖА [14:47:18]line ТРК (МРК, ГНК) : 22 [14:47:18]line Товар: 2710124130 [14:47:18]line Аи-92-К-5 [14:47:18]line 6.360 * 62.90 [14:47:18]line = 400.04 [14:47:18]line НДС 12% НСП 1% [14:47:18]line > о реализуемом товаре [14:47:18]line ИТОГО: 400.04 [14:47:18]line НСП 1% : 3.54 [14:47:18]line НДС 12% : 42.48 [14:47:18]line Наличными: 0.00 [14:47:18]line Безнал.: 400.04 [14:47:18]line Место: АЗС № 6 "Партнер Нефть" [14:47:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:47:18]line СНО: Общий режим [14:47:18]line Чек 112 12.03.2024 14:47 [14:47:18]line Смена: 327 ФФД: 1.0 [14:47:18]line ЗНМ: 0300000009 [14:47:18]line РНМ: 0000000000090555 [14:47:18]line Версия ККМ: 001 [14:47:18]line Платежная система: Бакай Банк [14:47:18]line ФМ: 0000000000874811 [14:47:18]line ФД: 95182 [14:47:18]line ФПД: 96103796176339 [14:47:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T144722&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95182&fm=96103796176339&tin=02508201610067®Number=0000000000090555&sum=40004 [14:47:18]OFD Sender: Processing packet 95182 [packets to send 30, broken 29] [14:47:18]ProducePacketName [14:47:18]name=ofd_packets/00095182 [14:47:18]OFD Sender: To server: pG, [14:47:18]CommunicateWithHost lk.salyk.kg:30040 [14:47:18]ConnectInit lk.salyk.kg [14:47:18]written 0, free lines is 4095 [14:47:18]Connected sock=10 [14:47:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 40 70 07 01 04 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 FA 6A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CE 73 01 00 35 04 06 00 57 67 E8 A1 F5 D3 B6 67 91 BA F3 3E 7C A0 [14:47:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 8D C6 47 00 B5 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CE 73 01 00 F4 03 04 00 50 16 F0 65 B6 04 01 00 00 19 D0 CE 06 5D 6D CB F9 [14:47:19]CommunicateWithHost err = 0 [14:47:19]CheckOFDResponse [14:47:19]1017 (14) - 77093643461234 [14:47:19]1041 (16) - 0000000000874811 [14:47:19]1040 (4) - 95182 [14:47:19]1012 (4) - 12.03.2024 08:46 [14:47:19]1206 (1) - 0 [14:47:19]OFD Sender: Remove packet 95182 [14:47:19]ProducePacketName [14:47:19]name=ofd_packets/00095182 [14:47:19]NVStorageDeleteData [14:47:19]Write to MH i2c: 01 00 00 B1 36 E7 [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 07 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 07 00 B1 36 00 80 00 00 00 62 0D DD [14:47:19]RasterBufferAndPrint [14:47:19]line [14:47:19]line [14:47:19]line [14:47:19]line [14:47:19]line [14:47:19]written 0, free lines is 3432 [14:47:19]process_action close_receipt done [14:47:19]requested_data is exist [14:47:19]produce_requested_data [14:47:19]requested_item fm.sn is exist - process it [14:47:19]wFMCommunicate request_size=4 [14:47:19]MH_SAM_APDU [14:47:19]CAPDU: 80 11 00 00 [14:47:19]Write to MH i2c: E2 08 00 B8 36 80 11 00 00 00 00 00 00 68 [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:19]Read from MH i2c: E2 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 17 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 17 00 B8 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B8 [14:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:47:19]wFMCommunicate OK [14:47:19]requested_item fd.num is exist - process it [14:47:19]SAM_PROTO_GetFieldsCounters [14:47:19]wFMCommunicate request_size=4 [14:47:19]MH_SAM_APDU [14:47:19]CAPDU: 80 13 00 00 [14:47:19]Write to MH i2c: E2 08 00 B9 36 80 13 00 00 00 00 00 00 6B [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:19]Read from MH i2c: E2 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 62 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 62 00 B9 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CE 73 01 00 0E 04 04 00 47 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 62 [14:47:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CE 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:19]wFMCommunicate OK [14:47:19]SAM_PROTO_GetFieldsCounters done [14:47:19]requested_item shift.num is exist - process it [14:47:19]requested_item shift.opened is exist - process it [14:47:19]req_shift_opened [14:47:19]FM_GetShiftState [14:47:19]SAM_PROTO_GetShiftState [14:47:19]wFMCommunicate request_size=4 [14:47:19]MH_SAM_APDU [14:47:19]CAPDU: 80 13 01 00 [14:47:19]Write to MH i2c: E2 08 00 BA 36 80 13 01 00 00 00 00 00 6D [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:19]Read from MH i2c: E2 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 0E 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 0E 00 BA 36 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 E1 [14:47:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:47:19]wFMCommunicate OK [14:47:19]SAM_PROTO_GetShiftState done [14:47:19]FM_GetShiftState done [14:47:19]req_shift_opened done [14:47:19]requested_item shift.open_date is exist - process it [14:47:19]req_shift_open_date [14:47:19]req_shift_open_date done [14:47:19]produce_requested_data done [14:47:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95182,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:47:19]process_action_free close_receipt [14:47:19]json_value_free [14:47:19]json_value_free done [14:47:19]process_json_proto returns [14:47:19]Send response to host [14:47:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95182,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:47:19]free response buf [14:47:19]execute_script done [14:47:19]execute_script returns [14:47:19]free content buf [14:47:19]Sock 9.Close socket [14:47:19]Sock 9.Thread stoped [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:47]accept exits with 8 [14:49:47]New connection [14:49:47]New thread 3066813796 created [14:49:47]Thread 3066957156 joined [14:49:47]Waiting for new connection... [14:49:47] Sock 8.Parse request [14:49:47]Sock 8.Check first char [14:49:47]Sock 8.First char is OK [14:49:47]request: POST /json_proto HTTP/1.0 [14:49:47]Method: POST [14:49:47]URL: /json_proto [14:49:47]Method is POST - this is cgi request [14:49:47]url: /json_proto [14:49:47]query_string will be loaded in cgi processing [14:49:47]execute_cgi json_proto POST (null) [14:49:47]execute_cgi path=json_proto method=POST [14:49:47]POST find Content-Length [14:49:47]Host: 172.17.62.67:8080 [14:49:47]Content-Length: 816 [14:49:47]Content-Type: application/json [14:49:47] [14:49:47]POST finish read [14:49:47]Found Content-Length = 816 [14:49:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 50.000, "sum" : 3545.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3545.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:47]execute_script... [14:49:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 50.000, "sum" : 3545.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3545.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:47]POST & json_proto [14:49:47]process_json_proto [14:49:47]json parsed OK: [14:49:47]protocol is kg_v1.0 [14:49:47]action value=close_receipt [14:49:47]process_action close_receipt [14:49:47]cmd_close_receipt [14:49:47]MH_GetDate [14:49:47]Write to MH i2c: F0 00 00 BB 36 E0 [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: F0 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: F0 05 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: F0 05 00 BB 36 00 91 6B F0 65 36 [14:49:47]GetLastDocTimeStamp 1710254842 [14:49:47]current date 1710254993 [14:49:47]FM_GetShiftState [14:49:47]SAM_PROTO_GetShiftState [14:49:47]wFMCommunicate request_size=4 [14:49:47]MH_SAM_APDU [14:49:47]CAPDU: 80 13 01 00 [14:49:47]Write to MH i2c: E2 08 00 BC 36 80 13 01 00 00 00 00 00 6F [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:47]Read from MH i2c: E2 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 0E 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 0E 00 BC 36 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 E3 [14:49:47]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:49:47]wFMCommunicate OK [14:49:47]SAM_PROTO_GetShiftState done [14:49:47]FM_GetShiftState done [14:49:47]opened in 1710201976 [14:49:47]opened+sec_in_day 1710288376 [14:49:47]quantity*price = 354500 [14:49:47]sum+1 = 354501 [14:49:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3545.00 НСП 1% : 31.37 НДС 12% : 376.46 Наличными: 0.00 Безнал.: 3545.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 113 12.03.2024 14:49 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95183 ФПД: 226596026597291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T144953&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95183&fm=226596026597291&tin=02508201610067®Number=0000000000090555&sum=354500 [14:49:48]StoreToDocumentArchive [14:49:48]shift 327 fd 95183 [14:49:48]save to /storage/0327/doc_00095183 [14:49:48]save last doc name /storage/0327/doc_00095183 to /storage/kkm_last_doc_name [14:49:48]save OK [14:49:48]Clear old archive folders... [14:49:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:49:48]tlvbuf is 01AF26B0 [14:49:48]SAM_PROTO_ClearQueue [14:49:48]wFMCommunicate request_size=4 [14:49:48]MH_SAM_APDU [14:49:48]CAPDU: 80 09 00 00 [14:49:48]Write to MH i2c: E2 08 00 C9 36 80 09 00 00 00 00 00 00 71 [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:48]Read from MH i2c: E2 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 03 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 03 00 C9 36 00 90 00 73 [14:49:48]RAPDU: 90 00 [14:49:48]wFMCommunicate OK [14:49:48]SAM_PROTO_ClearQueue done [14:49:48]KKMCreateOFDPacket [14:49:48]OFDProtocolAddRootSTLVToBuf [14:49:48]FM_MakeSignedData [14:49:48]FM_MakeSignedData [14:49:48]SAM_PROTO_SignData [14:49:48]wFMCommunicate request_size=4 [14:49:48]MH_SAM_APDU [14:49:48]CAPDU: 80 0D 01 02 [14:49:48]Write to MH i2c: E2 08 00 CA 36 80 0D 01 02 00 00 00 00 79 [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:48]Read from MH i2c: E2 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 03 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 03 00 CA 36 00 90 00 74 [14:49:48]RAPDU: 90 00 [14:49:48]wFMCommunicate OK [14:49:48]wFMCommunicate request_size=255 [14:49:48]MH_SAM_APDU [14:49:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C4 68 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 68 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 93 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 68 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 91 6B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CF 73 01 00 35 04 06 00 CE 16 7F AC [14:49:48]Write to MH i2c: E2 02 01 CB 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C4 68 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 68 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 93 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 68 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 91 6B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CF 73 01 00 35 04 06 00 CE 16 7F AC 00 00 8F [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:48]Read from MH i2c: E2 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 03 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 03 00 CB 36 00 90 00 75 [14:49:48]RAPDU: 90 00 [14:49:48]wFMCommunicate OK [14:49:48]wFMCommunicate request_size=7 [14:49:48]MH_SAM_APDU [14:49:48]CAPDU: 80 0D 02 02 02 3F AB [14:49:48]Write to MH i2c: E2 0A 00 CC 36 80 0D 02 02 02 00 3F AB 00 00 6A [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:48]Read from MH i2c: E2 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 03 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 03 00 CC 36 00 90 00 76 [14:49:48]RAPDU: 90 00 [14:49:48]wFMCommunicate OK [14:49:48]wFMCommunicate request_size=4 [14:49:48]MH_SAM_APDU [14:49:48]CAPDU: 80 0D 03 02 [14:49:48]Write to MH i2c: E2 08 00 CD 36 80 0D 03 02 00 00 00 00 7E [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:48]Read from MH i2c: E2 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 0B 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 0B 00 CD 36 00 D3 B5 C0 74 B4 7C 3C 75 90 00 1C [14:49:48]RAPDU: D3 B5 C0 74 B4 7C 3C 75 90 00 [14:49:48]wFMCommunicate OK [14:49:48]SAM_PROTO_SignData done [14:49:48]FM_MakeSignedData done [14:49:48]CreateOFDProtocolMessage [14:49:48]wFMCommunicate request_size=4 [14:49:48]MH_SAM_APDU [14:49:48]CAPDU: 80 11 00 00 [14:49:48]Write to MH i2c: E2 08 00 CE 36 80 11 00 00 00 00 00 00 7E [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:49]Read from MH i2c: E2 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: E2 17 00 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: E2 17 00 CE 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CE [14:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:49:49]wFMCommunicate OK [14:49:49]CreateOFDProtocolMessage done [14:49:49]OFDSenderStorePacket 95183 [14:49:49]StoreOFDPacket docnum=95183 [14:49:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 82 E1 04 01 DA 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C4 68 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 68 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 93 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 68 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 91 6B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CF 73 01 00 35 04 06 00 CE 16 7F AC 3F AB D3 B5 C0 74 B4 7C 3C 75 [14:49:49]CheckFolder [14:49:49]dirname=/storage/ofd_packets [14:49:49]CheckFolder done [14:49:49]ProducePacketName [14:49:49]name=ofd_packets/00095183 [14:49:49]NVStorageSaveData ofd_packets/00095183 [14:49:49]File name is /storage/ofd_packets/00095183 [14:49:49]Write 298 bytes [14:49:49]NVStorageSaveData done [14:49:49]OFDSenderStorePacket done [14:49:49]KKMCreateOFDPacket done [14:49:49]NVStorageSaveData kkm_last_timestamp [14:49:49]File name is /storage/kkm_last_timestamp [14:49:49]Write 4 bytes [14:49:49]NVStorageSaveData done [14:49:49]ExternCall_PrintAddStr [14:49:49]wPrintStart [14:49:49]Write to MH i2c: 01 00 00 CF 36 05 [14:49:49]Write i2c OK [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: 01 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: 01 07 00 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: 01 07 00 CF 36 00 80 00 00 00 FF 0F 9A [14:49:49]RasterBufferAndPrint [14:49:49]line Счет N : (1)196153 [14:49:49]line ИНН: 02508201610067 [14:49:49]line Контрольно-Кассовый Чек [14:49:49]line ПРОДАЖА [14:49:49]line ТРК (МРК, ГНК) : 61 [14:49:49]line Товар: 2710194210 [14:49:49]line ДТ-К-5 [14:49:49]line 50.000 * 70.90 [14:49:49]line = 3545.00 [14:49:49]line НДС 12% НСП 1% [14:49:49]line > о реализуемом товаре [14:49:49]line ИТОГО: 3545.00 [14:49:49]line НСП 1% : 31.37 [14:49:49]line НДС 12% : 376.46 [14:49:49]line Наличными: 0.00 [14:49:49]line Безнал.: 3545.00 [14:49:49]line Место: АЗС № 6 "Партнер Нефть" [14:49:49]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:49:49]line СНО: Общий режим [14:49:49]line Чек 113 12.03.2024 14:49 [14:49:49]line Смена: 327 ФФД: 1.0 [14:49:49]line ЗНМ: 0300000009 [14:49:49]line РНМ: 0000000000090555 [14:49:49]line Версия ККМ: 001 [14:49:49]line Платежная система: Бакай Банк [14:49:49]line ФМ: 0000000000874811 [14:49:49]line ФД: 95183 [14:49:49]line ФПД: 226596026597291 [14:49:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T144953&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95183&fm=226596026597291&tin=02508201610067®Number=0000000000090555&sum=354500 [14:49:49]OFD Sender: Processing packet 95183 [packets to send 30, broken 29] [14:49:49]ProducePacketName [14:49:49]name=ofd_packets/00095183 [14:49:49]OFD Sender: To server: pG, [14:49:49]CommunicateWithHost lk.salyk.kg:30040 [14:49:49]ConnectInit lk.salyk.kg [14:49:49]written 0, free lines is 4095 [14:49:49]Connected sock=10 [14:49:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 82 E1 04 01 DA 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C4 68 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 68 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 93 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 68 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 91 6B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CF 73 01 00 35 04 06 00 CE 16 7F AC 3F AB D3 B5 C0 74 B4 7C 3C 75 [14:49:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 05 2B 47 00 57 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CF 73 01 00 F4 03 04 00 E6 16 F0 65 B6 04 01 00 00 11 53 49 F2 26 E0 DA 15 [14:49:49]CommunicateWithHost err = 0 [14:49:49]CheckOFDResponse [14:49:49]1017 (14) - 77093643461234 [14:49:49]1041 (16) - 0000000000874811 [14:49:49]1040 (4) - 95183 [14:49:49]1012 (4) - 12.03.2024 08:48 [14:49:49]1206 (1) - 0 [14:49:49]OFD Sender: Remove packet 95183 [14:49:49]ProducePacketName [14:49:49]name=ofd_packets/00095183 [14:49:49]NVStorageDeleteData [14:49:49]Write to MH i2c: 01 00 00 F9 36 2F [14:49:49]Write i2c OK [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: 01 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: 01 07 00 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: 01 07 00 F9 36 00 80 00 00 00 73 0D 36 [14:49:49]RasterBufferAndPrint [14:49:49]line [14:49:49]line [14:49:49]line [14:49:49]line [14:49:49]line [14:49:49]written 0, free lines is 3449 [14:49:49]process_action close_receipt done [14:49:49]requested_data is exist [14:49:49]produce_requested_data [14:49:49]requested_item fm.sn is exist - process it [14:49:49]wFMCommunicate request_size=4 [14:49:49]MH_SAM_APDU [14:49:49]CAPDU: 80 11 00 00 [14:49:49]Write to MH i2c: E2 08 00 00 37 80 11 00 00 00 00 00 00 B1 [14:49:49]Write i2c OK [14:49:49]MH_I2C_Read... [14:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:49]Read from MH i2c: E2 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: E2 17 00 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: E2 17 00 00 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 01 [14:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:49:49]wFMCommunicate OK [14:49:49]requested_item fd.num is exist - process it [14:49:49]SAM_PROTO_GetFieldsCounters [14:49:49]wFMCommunicate request_size=4 [14:49:49]MH_SAM_APDU [14:49:49]CAPDU: 80 13 00 00 [14:49:49]Write to MH i2c: E2 08 00 01 37 80 13 00 00 00 00 00 00 B4 [14:49:49]Write i2c OK [14:49:49]MH_I2C_Read... [14:49:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:50]Read from MH i2c: E2 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 62 00 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 62 00 01 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CF 73 01 00 0E 04 04 00 47 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 AF [14:49:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CF 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:50]wFMCommunicate OK [14:49:50]SAM_PROTO_GetFieldsCounters done [14:49:50]requested_item shift.num is exist - process it [14:49:50]requested_item shift.opened is exist - process it [14:49:50]req_shift_opened [14:49:50]FM_GetShiftState [14:49:50]SAM_PROTO_GetShiftState [14:49:50]wFMCommunicate request_size=4 [14:49:50]MH_SAM_APDU [14:49:50]CAPDU: 80 13 01 00 [14:49:50]Write to MH i2c: E2 08 00 02 37 80 13 01 00 00 00 00 00 B6 [14:49:50]Write i2c OK [14:49:50]MH_I2C_Read... [14:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:50]Read from MH i2c: E2 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 0E 00 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 0E 00 02 37 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 2A [14:49:50]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:49:50]wFMCommunicate OK [14:49:50]SAM_PROTO_GetShiftState done [14:49:50]FM_GetShiftState done [14:49:50]req_shift_opened done [14:49:50]requested_item shift.open_date is exist - process it [14:49:50]req_shift_open_date [14:49:50]req_shift_open_date done [14:49:50]produce_requested_data done [14:49:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95183,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:49:50]process_action_free close_receipt [14:49:50]json_value_free [14:49:50]json_value_free done [14:49:50]process_json_proto returns [14:49:50]Send response to host [14:49:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95183,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:49:50]free response buf [14:49:50]execute_script done [14:49:50]execute_script returns [14:49:50]free content buf [14:49:50]Sock 8.Close socket [14:49:50]Sock 8.Thread stoped [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:15]accept exits with 9 [14:51:15]New connection [14:51:15]New thread 3066957156 created [14:51:15]Thread 3066813796 joined [14:51:15]Waiting for new connection... [14:51:15] Sock 9.Parse request [14:51:15]Sock 9.Check first char [14:51:15]Sock 9.First char is OK [14:51:15]request: POST /json_proto HTTP/1.0 [14:51:15]Method: POST [14:51:15]URL: /json_proto [14:51:15]Method is POST - this is cgi request [14:51:15]url: /json_proto [14:51:15]query_string will be loaded in cgi processing [14:51:15]execute_cgi json_proto POST (null) [14:51:15]execute_cgi path=json_proto method=POST [14:51:15]POST find Content-Length [14:51:15]Host: 172.17.62.67:8080 [14:51:15]Content-Length: 1209 [14:51:15]Content-Type: application/json [14:51:15] [14:51:15]POST finish read [14:51:15]Found Content-Length = 1209 [14:51:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196152\u000A12.03.2024 14:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 141.040 x 70.90\u000A\u0418\u0422\u041E\u0413: 9999.74\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\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:15]execute_script... [14:51:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196152\u000A12.03.2024 14:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 141.040 x 70.90\u000A\u0418\u0422\u041E\u0413: 9999.74\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\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:15]POST & json_proto [14:51:15]process_json_proto [14:51:15]json parsed OK: [14:51:15]protocol is kg_v1.0 [14:51:15]action value=print_text [14:51:15]process_action print_text [14:51:15]cmd_print_text [14:51:15]ExternCall_PrintAddStr [14:51:15]wPrintStart [14:51:15]Write to MH i2c: 01 00 00 03 37 3A [14:51:15]Write i2c OK [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: 01 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: 01 07 00 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: 01 07 00 03 37 00 80 00 00 00 FF 0F CF [14:51:15]RasterBufferAndPrint [14:51:15]line *****ТОВАРНЫЙ ЧЕК***** [14:51:15]line АЗС 6 [14:51:15]line Партнер нефть [14:51:15]line 02508201610067 [14:51:15]line Кассир : Мыктыбекова И. [14:51:15]line Счет N : (1)196152 [14:51:15]line 12.03.2024 14:45 [14:51:15]line ПРОДАЖА [14:51:15]line ТРК (МРК, ГНК): 51 [14:51:15]line Вид ГСМ : 2710194210 [14:51:15]line ДТ-К-5 [14:51:15]line 141.040 x 70.90 [14:51:15]line ИТОГ: 9999.74 [14:51:15]line Тип оплаты: Талоны: Топливная Карта [14:51:15]line 74820 [14:51:15]line ______________________ [14:51:15]line (подпись) [14:51:15]written 0, free lines is 4095 [14:51:15]Write to MH i2c: 01 00 00 17 37 4E [14:51:15]Write i2c OK [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: 01 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: 01 07 00 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: 01 07 00 17 37 00 80 00 00 00 62 0E 45 [14:51:15]RasterBufferAndPrint [14:51:15]line [14:51:15]line [14:51:15]line [14:51:15]line [14:51:15]line [14:51:15]written 0, free lines is 3685 [14:51:15]process_action print_text done [14:51:15]requested_data is exist [14:51:15]produce_requested_data [14:51:15]requested_item fm.sn is exist - process it [14:51:15]wFMCommunicate request_size=4 [14:51:15]MH_SAM_APDU [14:51:15]CAPDU: 80 11 00 00 [14:51:15]Write to MH i2c: E2 08 00 1E 37 80 11 00 00 00 00 00 00 CF [14:51:15]Write i2c OK [14:51:15]MH_I2C_Read... [14:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:15]Read from MH i2c: E2 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 17 00 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 17 00 1E 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1F [14:51:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:51:15]wFMCommunicate OK [14:51:15]requested_item fd.num is exist - process it [14:51:15]SAM_PROTO_GetFieldsCounters [14:51:15]wFMCommunicate request_size=4 [14:51:15]MH_SAM_APDU [14:51:15]CAPDU: 80 13 00 00 [14:51:15]Write to MH i2c: E2 08 00 1F 37 80 13 00 00 00 00 00 00 D2 [14:51:15]Write i2c OK [14:51:15]MH_I2C_Read... [14:51:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:15]Read from MH i2c: E2 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 62 00 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 62 00 1F 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CF 73 01 00 0E 04 04 00 47 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 CD [14:51:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CF 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:15]wFMCommunicate OK [14:51:15]SAM_PROTO_GetFieldsCounters done [14:51:15]requested_item shift.num is exist - process it [14:51:15]requested_item shift.opened is exist - process it [14:51:15]req_shift_opened [14:51:15]FM_GetShiftState [14:51:15]SAM_PROTO_GetShiftState [14:51:15]wFMCommunicate request_size=4 [14:51:15]MH_SAM_APDU [14:51:15]CAPDU: 80 13 01 00 [14:51:15]Write to MH i2c: E2 08 00 20 37 80 13 01 00 00 00 00 00 D4 [14:51:15]Write i2c OK [14:51:15]MH_I2C_Read... [14:51:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:15]Read from MH i2c: E2 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 0E 00 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 0E 00 20 37 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 48 [14:51:15]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:51:15]wFMCommunicate OK [14:51:15]SAM_PROTO_GetShiftState done [14:51:15]FM_GetShiftState done [14:51:15]req_shift_opened done [14:51:15]requested_item shift.open_date is exist - process it [14:51:15]req_shift_open_date [14:51:15]req_shift_open_date done [14:51:15]produce_requested_data done [14:51:15]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95183,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:51:15]process_action_free print_text [14:51:15]json_value_free [14:51:15]json_value_free done [14:51:15]process_json_proto returns [14:51:15]Send response to host [14:51:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95183,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:51:15]free response buf [14:51:15]execute_script done [14:51:15]execute_script returns [14:51:15]free content buf [14:51:15]Sock 9.Close socket [14:51:15]Sock 9.Thread stoped [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:44]accept exits with 8 [14:51:44]New connection [14:51:44]New thread 3066813796 created [14:51:44]Thread 3066957156 joined [14:51:44]Waiting for new connection... [14:51:44] Sock 8.Parse request [14:51:44]Sock 8.Check first char [14:51:44]Sock 8.First char is OK [14:51:44]request: POST /json_proto HTTP/1.0 [14:51:44]Method: POST [14:51:44]URL: /json_proto [14:51:44]Method is POST - this is cgi request [14:51:44]url: /json_proto [14:51:44]query_string will be loaded in cgi processing [14:51:44]execute_cgi json_proto POST (null) [14:51:44]execute_cgi path=json_proto method=POST [14:51:44]POST find Content-Length [14:51:44]Host: 172.17.62.67:8080 [14:51:44]Content-Length: 813 [14:51:44]Content-Type: application/json [14:51:44] [14:51:44]POST finish read [14:51:44]Found Content-Length = 813 [14:51:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 8.470, "sum" : 600.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:44]execute_script... [14:51: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)196154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 8.470, "sum" : 600.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:44]POST & json_proto [14:51:44]process_json_proto [14:51:44]json parsed OK: [14:51:44]protocol is kg_v1.0 [14:51:44]action value=close_receipt [14:51:44]process_action close_receipt [14:51:44]cmd_close_receipt [14:51:44]MH_GetDate [14:51:44]Write to MH i2c: F0 00 00 21 37 47 [14:51:44]Write i2c OK [14:51:44]MH_I2C_Read... [14:51:44]Read from MH i2c: F0 [14:51:44]MH_I2C_Read... [14:51:44]Read from MH i2c: F0 05 00 [14:51:44]MH_I2C_Read... [14:51:44]Read from MH i2c: F0 05 00 21 37 00 05 6C F0 65 12 [14:51:44]GetLastDocTimeStamp 1710254993 [14:51:44]current date 1710255109 [14:51:44]FM_GetShiftState [14:51:44]SAM_PROTO_GetShiftState [14:51:44]wFMCommunicate request_size=4 [14:51:44]MH_SAM_APDU [14:51:44]CAPDU: 80 13 01 00 [14:51:44]Write to MH i2c: E2 08 00 22 37 80 13 01 00 00 00 00 00 D6 [14:51:44]Write i2c OK [14:51:44]MH_I2C_Read... [14:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:44]Read from MH i2c: E2 [14:51:44]MH_I2C_Read... [14:51:44]Read from MH i2c: E2 0E 00 [14:51:44]MH_I2C_Read... [14:51:44]Read from MH i2c: E2 0E 00 22 37 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 4A [14:51:44]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:51:44]wFMCommunicate OK [14:51:44]SAM_PROTO_GetShiftState done [14:51:44]FM_GetShiftState done [14:51:44]opened in 1710201976 [14:51:44]opened+sec_in_day 1710288376 [14:51:44]quantity*price = 60052 [14:51:44]sum+1 = 60053 [14:51:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.52 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.52 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 114 12.03.2024 14:51 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95184 ФПД: 131352284276956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T145150&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95184&fm=131352284276956&tin=02508201610067®Number=0000000000090555&sum=60052 [14:51:45]StoreToDocumentArchive [14:51:45]shift 327 fd 95184 [14:51:45]save to /storage/0327/doc_00095184 [14:51:45]save last doc name /storage/0327/doc_00095184 to /storage/kkm_last_doc_name [14:51:45]save OK [14:51:45]Clear old archive folders... [14:51:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:51:45]tlvbuf is 01AE2620 [14:51:45]SAM_PROTO_ClearQueue [14:51:45]wFMCommunicate request_size=4 [14:51:45]MH_SAM_APDU [14:51:45]CAPDU: 80 09 00 00 [14:51:45]Write to MH i2c: E2 08 00 2F 37 80 09 00 00 00 00 00 00 D8 [14:51:45]Write i2c OK [14:51:45]MH_I2C_Read... [14:51:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:45]Read from MH i2c: E2 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 03 00 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 03 00 2F 37 00 90 00 DA [14:51:45]RAPDU: 90 00 [14:51:45]wFMCommunicate OK [14:51:45]SAM_PROTO_ClearQueue done [14:51:45]KKMCreateOFDPacket [14:51:45]OFDProtocolAddRootSTLVToBuf [14:51:45]FM_MakeSignedData [14:51:45]FM_MakeSignedData [14:51:45]SAM_PROTO_SignData [14:51:45]wFMCommunicate request_size=4 [14:51:45]MH_SAM_APDU [14:51:45]CAPDU: 80 0D 01 02 [14:51:45]Write to MH i2c: E2 08 00 30 37 80 0D 01 02 00 00 00 00 E0 [14:51:45]Write i2c OK [14:51:45]MH_I2C_Read... [14:51:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:45]Read from MH i2c: E2 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 03 00 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 03 00 30 37 00 90 00 DB [14:51:45]RAPDU: 90 00 [14:51:45]wFMCommunicate OK [14:51:45]wFMCommunicate request_size=255 [14:51:45]MH_SAM_APDU [14:51:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 21 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 94 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 06 6C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D0 73 01 00 35 04 06 00 77 76 D6 3E [14:51:45]Write to MH i2c: E2 02 01 31 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 21 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 94 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 06 6C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D0 73 01 00 35 04 06 00 77 76 D6 3E 00 00 93 [14:51:45]Write i2c OK [14:51:45]MH_I2C_Read... [14:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:45]Read from MH i2c: E2 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 03 00 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 03 00 31 37 00 90 00 DC [14:51:45]RAPDU: 90 00 [14:51:45]wFMCommunicate OK [14:51:45]wFMCommunicate request_size=7 [14:51:45]MH_SAM_APDU [14:51:45]CAPDU: 80 0D 02 02 02 A8 DC [14:51:45]Write to MH i2c: E2 0A 00 32 37 80 0D 02 02 02 00 A8 DC 00 00 6B [14:51:45]Write i2c OK [14:51:45]MH_I2C_Read... [14:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:45]Read from MH i2c: E2 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 03 00 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 03 00 32 37 00 90 00 DD [14:51:45]RAPDU: 90 00 [14:51:45]wFMCommunicate OK [14:51:45]wFMCommunicate request_size=4 [14:51:45]MH_SAM_APDU [14:51:45]CAPDU: 80 0D 03 02 [14:51:45]Write to MH i2c: E2 08 00 33 37 80 0D 03 02 00 00 00 00 E5 [14:51:45]Write i2c OK [14:51:45]MH_I2C_Read... [14:51:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:45]Read from MH i2c: E2 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 0B 00 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 0B 00 33 37 00 77 36 47 27 24 CE 7E EC 90 00 5D [14:51:45]RAPDU: 77 36 47 27 24 CE 7E EC 90 00 [14:51:45]wFMCommunicate OK [14:51:45]SAM_PROTO_SignData done [14:51:45]FM_MakeSignedData done [14:51:45]CreateOFDProtocolMessage [14:51:45]wFMCommunicate request_size=4 [14:51:45]MH_SAM_APDU [14:51:45]CAPDU: 80 11 00 00 [14:51:45]Write to MH i2c: E2 08 00 34 37 80 11 00 00 00 00 00 00 E5 [14:51:45]Write i2c OK [14:51:45]MH_I2C_Read... [14:51:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:45]Read from MH i2c: E2 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 17 00 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 17 00 34 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 35 [14:51:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:51:45]wFMCommunicate OK [14:51:45]CreateOFDProtocolMessage done [14:51:45]OFDSenderStorePacket 95184 [14:51:45]StoreOFDPacket docnum=95184 [14:51:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 7E 2D 04 01 E9 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 21 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 94 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 06 6C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D0 73 01 00 35 04 06 00 77 76 D6 3E A8 DC 77 36 47 27 24 CE 7E EC [14:51:45]CheckFolder [14:51:45]dirname=/storage/ofd_packets [14:51:45]CheckFolder done [14:51:45]ProducePacketName [14:51:45]name=ofd_packets/00095184 [14:51:45]NVStorageSaveData ofd_packets/00095184 [14:51:45]File name is /storage/ofd_packets/00095184 [14:51:45]Write 298 bytes [14:51:45]NVStorageSaveData done [14:51:45]OFDSenderStorePacket done [14:51:45]KKMCreateOFDPacket done [14:51:45]NVStorageSaveData kkm_last_timestamp [14:51:45]File name is /storage/kkm_last_timestamp [14:51:45]Write 4 bytes [14:51:45]NVStorageSaveData done [14:51:45]ExternCall_PrintAddStr [14:51:45]wPrintStart [14:51:45]Write to MH i2c: 01 00 00 35 37 6C [14:51:45]Write i2c OK [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: 01 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: 01 07 00 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: 01 07 00 35 37 00 80 00 00 00 FF 0F 01 [14:51:45]RasterBufferAndPrint [14:51:45]line Счет N : (1)196154 [14:51:45]line ИНН: 02508201610067 [14:51:45]line Контрольно-Кассовый Чек [14:51:45]line ПРОДАЖА [14:51:45]line ТРК (МРК, ГНК) : 61 [14:51:45]line Товар: 2710194210 [14:51:45]line ДТ-К-5 [14:51:45]line 8.470 * 70.90 [14:51:45]line = 600.52 [14:51:45]line НДС 12% НСП 1% [14:51:45]line > о реализуемом товаре [14:51:45]line ИТОГО: 600.52 [14:51:45]line НСП 1% : 5.31 [14:51:45]line НДС 12% : 63.77 [14:51:45]line Наличными: 0.00 [14:51:45]line Безнал.: 600.52 [14:51:45]line Место: АЗС № 6 "Партнер Нефть" [14:51:45]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:51:45]line СНО: Общий режим [14:51:45]line Чек 114 12.03.2024 14:51 [14:51:45]line Смена: 327 ФФД: 1.0 [14:51:45]line ЗНМ: 0300000009 [14:51:45]line РНМ: 0000000000090555 [14:51:45]line Версия ККМ: 001 [14:51:45]line Платежная система: Бакай Банк [14:51:45]line ФМ: 0000000000874811 [14:51:45]line ФД: 95184 [14:51:45]line ФПД: 131352284276956 [14:51:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T145150&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95184&fm=131352284276956&tin=02508201610067®Number=0000000000090555&sum=60052 [14:51:46]OFD Sender: Processing packet 95184 [packets to send 30, broken 29] [14:51:46]ProducePacketName [14:51:46]name=ofd_packets/00095184 [14:51:46]OFD Sender: To server: pG, [14:51:46]CommunicateWithHost lk.salyk.kg:30040 [14:51:46]ConnectInit lk.salyk.kg [14:51:46]written 0, free lines is 4095 [14:51:46]Connected sock=10 [14:51:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 7E 2D 04 01 E9 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 21 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 94 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 06 6C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D0 73 01 00 35 04 06 00 77 76 D6 3E A8 DC 77 36 47 27 24 CE 7E EC [14:51:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 73 46 47 00 A0 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D0 73 01 00 F4 03 04 00 5B 17 F0 65 B6 04 01 00 00 70 83 25 EB C2 15 2C 5E [14:51:46]CommunicateWithHost err = 0 [14:51:46]CheckOFDResponse [14:51:46]1017 (14) - 77093643461234 [14:51:46]1041 (16) - 0000000000874811 [14:51:46]1040 (4) - 95184 [14:51:46]1012 (4) - 12.03.2024 08:50 [14:51:46]1206 (1) - 0 [14:51:46]OFD Sender: Remove packet 95184 [14:51:46]ProducePacketName [14:51:46]name=ofd_packets/00095184 [14:51:46]NVStorageDeleteData [14:51:46]Write to MH i2c: 01 00 00 5F 37 96 [14:51:46]Write i2c OK [14:51:46]MH_I2C_Read... [14:51:46]Read from MH i2c: 01 [14:51:46]MH_I2C_Read... [14:51:46]Read from MH i2c: 01 07 00 [14:51:46]MH_I2C_Read... [14:51:46]Read from MH i2c: 01 07 00 5F 37 00 80 00 00 00 57 0D 81 [14:51:46]RasterBufferAndPrint [14:51:46]line [14:51:46]line [14:51:46]line [14:51:46]line [14:51:46]line [14:51:46]written 0, free lines is 3420 [14:51:46]process_action close_receipt done [14:51:46]requested_data is exist [14:51:46]produce_requested_data [14:51:46]requested_item fm.sn is exist - process it [14:51:46]wFMCommunicate request_size=4 [14:51:46]MH_SAM_APDU [14:51:46]CAPDU: 80 11 00 00 [14:51:46]Write to MH i2c: E2 08 00 66 37 80 11 00 00 00 00 00 00 17 [14:51:46]Write i2c OK [14:51:46]MH_I2C_Read... [14:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:46]Read from MH i2c: E2 [14:51:46]MH_I2C_Read... [14:51:46]Read from MH i2c: E2 17 00 [14:51:46]MH_I2C_Read... [14:51:46]Read from MH i2c: E2 17 00 66 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 67 [14:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:51:46]wFMCommunicate OK [14:51:46]requested_item fd.num is exist - process it [14:51:46]SAM_PROTO_GetFieldsCounters [14:51:46]wFMCommunicate request_size=4 [14:51:46]MH_SAM_APDU [14:51:46]CAPDU: 80 13 00 00 [14:51:46]Write to MH i2c: E2 08 00 67 37 80 13 00 00 00 00 00 00 1A [14:51:46]Write i2c OK [14:51:46]MH_I2C_Read... [14:51:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:46]Read from MH i2c: E2 [14:51:46]MH_I2C_Read... [14:51:46]Read from MH i2c: E2 62 00 [14:51:46]MH_I2C_Read... [14:51:47]Read from MH i2c: E2 62 00 67 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D0 73 01 00 0E 04 04 00 47 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 19 [14:51:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D0 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:47]wFMCommunicate OK [14:51:47]SAM_PROTO_GetFieldsCounters done [14:51:47]requested_item shift.num is exist - process it [14:51:47]requested_item shift.opened is exist - process it [14:51:47]req_shift_opened [14:51:47]FM_GetShiftState [14:51:47]SAM_PROTO_GetShiftState [14:51:47]wFMCommunicate request_size=4 [14:51:47]MH_SAM_APDU [14:51:47]CAPDU: 80 13 01 00 [14:51:47]Write to MH i2c: E2 08 00 68 37 80 13 01 00 00 00 00 00 1C [14:51:47]Write i2c OK [14:51:47]MH_I2C_Read... [14:51:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:47]Read from MH i2c: E2 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: E2 0E 00 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: E2 0E 00 68 37 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 90 [14:51:47]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:51:47]wFMCommunicate OK [14:51:47]SAM_PROTO_GetShiftState done [14:51:47]FM_GetShiftState done [14:51:47]req_shift_opened done [14:51:47]requested_item shift.open_date is exist - process it [14:51:47]req_shift_open_date [14:51:47]req_shift_open_date done [14:51:47]produce_requested_data done [14:51:47]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95184,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:51:47]process_action_free close_receipt [14:51:47]json_value_free [14:51:47]json_value_free done [14:51:47]process_json_proto returns [14:51:47]Send response to host [14:51:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95184,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:51:47]free response buf [14:51:47]execute_script done [14:51:47]execute_script returns [14:51:47]free content buf [14:51:47]Sock 8.Close socket [14:51:47]Sock 8.Thread stoped [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:15]accept exits with 9 [14:58:15]New connection [14:58:15]New thread 3066957156 created [14:58:15]Thread 3066813796 joined [14:58:15]Waiting for new connection... [14:58:15] Sock 9.Parse request [14:58:15]Sock 9.Check first char [14:58:15]Sock 9.First char is OK [14:58:15]request: POST /json_proto HTTP/1.0 [14:58:15]Method: POST [14:58:15]URL: /json_proto [14:58:15]Method is POST - this is cgi request [14:58:15]url: /json_proto [14:58:15]query_string will be loaded in cgi processing [14:58:15]execute_cgi json_proto POST (null) [14:58:15]execute_cgi path=json_proto method=POST [14:58:15]POST find Content-Length [14:58:15]Host: 172.17.62.67:8080 [14:58:15]Content-Length: 677 [14:58:15]Content-Type: application/json [14:58:15] [14:58:15]POST finish read [14:58:15]Found Content-Length = 677 [14:58:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:58:15]execute_script... [14:58: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)196155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:58:15]POST & json_proto [14:58:15]process_json_proto [14:58:15]json parsed OK: [14:58:15]protocol is kg_v1.0 [14:58:15]action value=close_receipt [14:58:15]process_action close_receipt [14:58:15]cmd_close_receipt [14:58:15]MH_GetDate [14:58:15]Write to MH i2c: F0 00 00 69 37 8F [14:58:15]Write i2c OK [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: F0 [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: F0 05 00 [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: F0 05 00 69 37 00 8C 6D F0 65 E2 [14:58:15]GetLastDocTimeStamp 1710255110 [14:58:15]current date 1710255500 [14:58:15]FM_GetShiftState [14:58:15]SAM_PROTO_GetShiftState [14:58:15]wFMCommunicate request_size=4 [14:58:15]MH_SAM_APDU [14:58:15]CAPDU: 80 13 01 00 [14:58:15]Write to MH i2c: E2 08 00 6A 37 80 13 01 00 00 00 00 00 1E [14:58:15]Write i2c OK [14:58:15]MH_I2C_Read... [14:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:15]Read from MH i2c: E2 [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: E2 0E 00 [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: E2 0E 00 6A 37 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 92 [14:58:15]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:58:15]wFMCommunicate OK [14:58:15]SAM_PROTO_GetShiftState done [14:58:15]FM_GetShiftState done [14:58:15]opened in 1710201976 [14:58:15]opened+sec_in_day 1710288376 [14:58:15]quantity*price = 50005 [14:58:15]sum+1 = 50007 [14:58:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 115 12.03.2024 14:58 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95185 ФПД: 141858846016288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T145821&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95185&fm=141858846016288&tin=02508201610067®Number=0000000000090555&sum=50000 [14:58:16]StoreToDocumentArchive [14:58:16]shift 327 fd 95185 [14:58:16]save to /storage/0327/doc_00095185 [14:58:16]save last doc name /storage/0327/doc_00095185 to /storage/kkm_last_doc_name [14:58:16]save OK [14:58:16]Clear old archive folders... [14:58:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:16]tlvbuf is 01A46730 [14:58:16]SAM_PROTO_ClearQueue [14:58:16]wFMCommunicate request_size=4 [14:58:16]MH_SAM_APDU [14:58:16]CAPDU: 80 09 00 00 [14:58:16]Write to MH i2c: E2 08 00 77 37 80 09 00 00 00 00 00 00 20 [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:16]Read from MH i2c: E2 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 03 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 03 00 77 37 00 90 00 22 [14:58:16]RAPDU: 90 00 [14:58:16]wFMCommunicate OK [14:58:16]SAM_PROTO_ClearQueue done [14:58:16]KKMCreateOFDPacket [14:58:16]OFDProtocolAddRootSTLVToBuf [14:58:16]FM_MakeSignedData [14:58:16]FM_MakeSignedData [14:58:16]SAM_PROTO_SignData [14:58:16]wFMCommunicate request_size=4 [14:58:16]MH_SAM_APDU [14:58:16]CAPDU: 80 0D 01 02 [14:58:16]Write to MH i2c: E2 08 00 78 37 80 0D 01 02 00 00 00 00 28 [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:16]Read from MH i2c: E2 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 03 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 03 00 78 37 00 90 00 23 [14:58:16]RAPDU: 90 00 [14:58:16]wFMCommunicate OK [14:58:16]wFMCommunicate request_size=255 [14:58:16]MH_SAM_APDU [14:58:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 8D 6D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D1 73 01 00 35 04 06 00 81 [14:58:16]Write to MH i2c: E2 02 01 79 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 8D 6D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D1 73 01 00 35 04 06 00 81 00 00 A1 [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:16]Read from MH i2c: E2 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 03 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 03 00 79 37 00 90 00 24 [14:58:16]RAPDU: 90 00 [14:58:16]wFMCommunicate OK [14:58:16]wFMCommunicate request_size=10 [14:58:16]MH_SAM_APDU [14:58:16]CAPDU: 80 0D 02 02 05 05 16 20 03 20 [14:58:16]Write to MH i2c: E2 0D 00 7A 37 80 0D 02 02 05 00 05 16 20 03 20 00 00 93 [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:16]Read from MH i2c: E2 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 03 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 03 00 7A 37 00 90 00 25 [14:58:16]RAPDU: 90 00 [14:58:16]wFMCommunicate OK [14:58:16]wFMCommunicate request_size=4 [14:58:16]MH_SAM_APDU [14:58:16]CAPDU: 80 0D 03 02 [14:58:16]Write to MH i2c: E2 08 00 7B 37 80 0D 03 02 00 00 00 00 2D [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:16]Read from MH i2c: E2 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 0B 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 0B 00 7B 37 00 55 B8 CB 0F EB 53 98 1F 90 00 0A [14:58:16]RAPDU: 55 B8 CB 0F EB 53 98 1F 90 00 [14:58:16]wFMCommunicate OK [14:58:16]SAM_PROTO_SignData done [14:58:16]FM_MakeSignedData done [14:58:16]CreateOFDProtocolMessage [14:58:16]wFMCommunicate request_size=4 [14:58:16]MH_SAM_APDU [14:58:16]CAPDU: 80 11 00 00 [14:58:16]Write to MH i2c: E2 08 00 7C 37 80 11 00 00 00 00 00 00 2D [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:16]Read from MH i2c: E2 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 17 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 17 00 7C 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7D [14:58:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:58:16]wFMCommunicate OK [14:58:16]CreateOFDProtocolMessage done [14:58:16]OFDSenderStorePacket 95185 [14:58:16]StoreOFDPacket docnum=95185 [14:58:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 EC 52 07 01 B4 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 8D 6D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D1 73 01 00 35 04 06 00 81 05 16 20 03 20 55 B8 CB 0F EB 53 98 1F [14:58:16]CheckFolder [14:58:16]dirname=/storage/ofd_packets [14:58:16]CheckFolder done [14:58:16]ProducePacketName [14:58:16]name=ofd_packets/00095185 [14:58:16]NVStorageSaveData ofd_packets/00095185 [14:58:16]File name is /storage/ofd_packets/00095185 [14:58:16]Write 301 bytes [14:58:16]NVStorageSaveData done [14:58:16]OFDSenderStorePacket done [14:58:16]KKMCreateOFDPacket done [14:58:16]NVStorageSaveData kkm_last_timestamp [14:58:16]File name is /storage/kkm_last_timestamp [14:58:16]Write 4 bytes [14:58:16]NVStorageSaveData done [14:58:16]ExternCall_PrintAddStr [14:58:16]wPrintStart [14:58:16]Write to MH i2c: 01 00 00 7D 37 B4 [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: 01 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: 01 07 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: 01 07 00 7D 37 00 80 00 00 00 FF 0F 49 [14:58:16]RasterBufferAndPrint [14:58:16]line Счет N : (1)196155 [14:58:16]line ИНН: 02508201610067 [14:58:16]line Контрольно-Кассовый Чек [14:58:16]line ПРОДАЖА [14:58:16]line ТРК (МРК, ГНК) : 12 [14:58:16]line Товар: 2710124130 [14:58:16]line Аи-92-К-5 [14:58:16]line 7.950 * 62.90 [14:58:16]line = 500.06 [14:58:16]line НДС 12% НСП 1% [14:58:16]line > о реализуемом товаре [14:58:16]line ОКРУГЛЕНИЕ: -0.06 [14:58:16]line ИТОГО: 500.00 [14:58:16]line Внесено: 500.00 [14:58:16]line СДАЧА: 0.00 [14:58:16]line НСП 1% : 4.42 [14:58:16]line НДС 12% : 53.10 [14:58:16]line Наличными: 500.00 [14:58:16]line Безнал.: 0.00 [14:58:16]line Место: АЗС № 6 "Партнер Нефть" [14:58:16]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:58:16]line СНО: Общий режим [14:58:16]line Чек 115 12.03.2024 14:58 [14:58:16]line Смена: 327 ФФД: 1.0 [14:58:16]line ЗНМ: 0300000009 [14:58:16]line РНМ: 0000000000090555 [14:58:16]line Версия ККМ: 001 [14:58:16]line ФМ: 0000000000874811 [14:58:16]line ФД: 95185 [14:58:16]line ФПД: 141858846016288 [14:58:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T145821&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95185&fm=141858846016288&tin=02508201610067®Number=0000000000090555&sum=50000 [14:58:17]OFD Sender: Processing packet 95185 [packets to send 30, broken 29] [14:58:17]ProducePacketName [14:58:17]name=ofd_packets/00095185 [14:58:17]OFD Sender: To server: pG, [14:58:17]CommunicateWithHost lk.salyk.kg:30040 [14:58:17]ConnectInit lk.salyk.kg [14:58:17]written 0, free lines is 4095 [14:58:17]Connected sock=10 [14:58:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 EC 52 07 01 B4 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 8D 6D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D1 73 01 00 35 04 06 00 81 05 16 20 03 20 55 B8 CB 0F EB 53 98 1F [14:58:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 EA CB 47 00 2D F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D1 73 01 00 F4 03 04 00 E2 18 F0 65 B6 04 01 00 00 BC E4 6F 4D C3 B2 1F 51 [14:58:17]CommunicateWithHost err = 0 [14:58:17]CheckOFDResponse [14:58:17]1017 (14) - 77093643461234 [14:58:17]1041 (16) - 0000000000874811 [14:58:17]1040 (4) - 95185 [14:58:17]1012 (4) - 12.03.2024 08:57 [14:58:17]1206 (1) - 0 [14:58:17]OFD Sender: Remove packet 95185 [14:58:17]ProducePacketName [14:58:17]name=ofd_packets/00095185 [14:58:17]NVStorageDeleteData [14:58:17]Write to MH i2c: 01 00 00 A8 37 DF [14:58:17]Write i2c OK [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: 01 [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: 01 07 00 [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: 01 07 00 A8 37 00 80 00 00 00 47 0D BA [14:58:17]RasterBufferAndPrint [14:58:17]line [14:58:17]line [14:58:17]line [14:58:17]line [14:58:17]line [14:58:17]written 0, free lines is 3405 [14:58:17]process_action close_receipt done [14:58:17]requested_data is exist [14:58:17]produce_requested_data [14:58:17]requested_item fm.sn is exist - process it [14:58:17]wFMCommunicate request_size=4 [14:58:17]MH_SAM_APDU [14:58:17]CAPDU: 80 11 00 00 [14:58:17]Write to MH i2c: E2 08 00 AF 37 80 11 00 00 00 00 00 00 60 [14:58:17]Write i2c OK [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: E2 [14:58:17]MH_I2C_Read... [14:58:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:17]Read from MH i2c: E2 17 00 [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: E2 17 00 AF 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B0 [14:58:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:58:17]wFMCommunicate OK [14:58:17]requested_item fd.num is exist - process it [14:58:17]SAM_PROTO_GetFieldsCounters [14:58:17]wFMCommunicate request_size=4 [14:58:17]MH_SAM_APDU [14:58:17]CAPDU: 80 13 00 00 [14:58:17]Write to MH i2c: E2 08 00 B0 37 80 13 00 00 00 00 00 00 63 [14:58:17]Write i2c OK [14:58:17]MH_I2C_Read... [14:58:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:18]Read from MH i2c: E2 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: E2 62 00 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: E2 62 00 B0 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D1 73 01 00 0E 04 04 00 47 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 66 [14:58:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D1 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:18]wFMCommunicate OK [14:58:18]SAM_PROTO_GetFieldsCounters done [14:58:18]requested_item shift.num is exist - process it [14:58:18]requested_item shift.opened is exist - process it [14:58:18]req_shift_opened [14:58:18]FM_GetShiftState [14:58:18]SAM_PROTO_GetShiftState [14:58:18]wFMCommunicate request_size=4 [14:58:18]MH_SAM_APDU [14:58:18]CAPDU: 80 13 01 00 [14:58:18]Write to MH i2c: E2 08 00 B1 37 80 13 01 00 00 00 00 00 65 [14:58:18]Write i2c OK [14:58:18]MH_I2C_Read... [14:58:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:18]Read from MH i2c: E2 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: E2 0E 00 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: E2 0E 00 B1 37 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D9 [14:58:18]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [14:58:18]wFMCommunicate OK [14:58:18]SAM_PROTO_GetShiftState done [14:58:18]FM_GetShiftState done [14:58:18]req_shift_opened done [14:58:18]requested_item shift.open_date is exist - process it [14:58:18]req_shift_open_date [14:58:18]req_shift_open_date done [14:58:18]produce_requested_data done [14:58:18]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95185,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [14:58:18]process_action_free close_receipt [14:58:18]json_value_free [14:58:18]json_value_free done [14:58:18]process_json_proto returns [14:58:18]Send response to host [14:58:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95185,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [14:58:18]free response buf [14:58:18]execute_script done [14:58:18]execute_script returns [14:58:18]free content buf [14:58:18]Sock 9.Close socket [14:58:18]Sock 9.Thread stoped [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:17]accept exits with 8 [15:00:17]New connection [15:00:17]New thread 3066813796 created [15:00:17]Thread 3066957156 joined [15:00:17]Waiting for new connection... [15:00:17] Sock 8.Parse request [15:00:17]Sock 8.Check first char [15:00:17]Sock 8.First char is OK [15:00:17]request: POST /json_proto HTTP/1.0 [15:00:17]Method: POST [15:00:17]URL: /json_proto [15:00:17]Method is POST - this is cgi request [15:00:17]url: /json_proto [15:00:17]query_string will be loaded in cgi processing [15:00:17]execute_cgi json_proto POST (null) [15:00:17]execute_cgi path=json_proto method=POST [15:00:17]POST find Content-Length [15:00:17]Host: 172.17.62.67:8080 [15:00:17]Content-Length: 816 [15:00:17]Content-Type: application/json [15:00:17] [15:00:17]POST finish read [15:00:17]Found Content-Length = 816 [15:00:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:17]execute_script... [15:00: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)196156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:17]POST & json_proto [15:00:17]process_json_proto [15:00:17]json parsed OK: [15:00:17]protocol is kg_v1.0 [15:00:17]action value=close_receipt [15:00:17]process_action close_receipt [15:00:17]cmd_close_receipt [15:00:17]MH_GetDate [15:00:17]Write to MH i2c: F0 00 00 B2 37 D8 [15:00:17]Write i2c OK [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: F0 [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: F0 05 00 [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: F0 05 00 B2 37 00 07 6E F0 65 A7 [15:00:17]GetLastDocTimeStamp 1710255501 [15:00:17]current date 1710255623 [15:00:17]FM_GetShiftState [15:00:17]SAM_PROTO_GetShiftState [15:00:17]wFMCommunicate request_size=4 [15:00:17]MH_SAM_APDU [15:00:17]CAPDU: 80 13 01 00 [15:00:17]Write to MH i2c: E2 08 00 B3 37 80 13 01 00 00 00 00 00 67 [15:00:17]Write i2c OK [15:00:17]MH_I2C_Read... [15:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:17]Read from MH i2c: E2 [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: E2 0E 00 [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: E2 0E 00 B3 37 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 DB [15:00:17]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:00:17]wFMCommunicate OK [15:00:17]SAM_PROTO_GetShiftState done [15:00:17]FM_GetShiftState done [15:00:17]opened in 1710201976 [15:00:17]opened+sec_in_day 1710288376 [15:00:17]quantity*price = 30003 [15:00:17]sum+1 = 30004 [15:00:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.03 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.03 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 116 12.03.2024 15:00 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95186 ФПД: 109498189949221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T150023&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95186&fm=109498189949221&tin=02508201610067®Number=0000000000090555&sum=30003 [15:00:18]StoreToDocumentArchive [15:00:18]shift 327 fd 95186 [15:00:18]save to /storage/0327/doc_00095186 [15:00:18]save last doc name /storage/0327/doc_00095186 to /storage/kkm_last_doc_name [15:00:18]save OK [15:00:18]Clear old archive folders... [15:00:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:18]tlvbuf is 01A46120 [15:00:18]SAM_PROTO_ClearQueue [15:00:18]wFMCommunicate request_size=4 [15:00:18]MH_SAM_APDU [15:00:18]CAPDU: 80 09 00 00 [15:00:18]Write to MH i2c: E2 08 00 C0 37 80 09 00 00 00 00 00 00 69 [15:00:18]Write i2c OK [15:00:18]MH_I2C_Read... [15:00:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:18]Read from MH i2c: E2 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: E2 03 00 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: E2 03 00 C0 37 00 90 00 6B [15:00:18]RAPDU: 90 00 [15:00:18]wFMCommunicate OK [15:00:18]SAM_PROTO_ClearQueue done [15:00:18]KKMCreateOFDPacket [15:00:18]OFDProtocolAddRootSTLVToBuf [15:00:18]FM_MakeSignedData [15:00:18]FM_MakeSignedData [15:00:18]SAM_PROTO_SignData [15:00:18]wFMCommunicate request_size=4 [15:00:18]MH_SAM_APDU [15:00:18]CAPDU: 80 0D 01 02 [15:00:18]Write to MH i2c: E2 08 00 C1 37 80 0D 01 02 00 00 00 00 71 [15:00:18]Write i2c OK [15:00:18]MH_I2C_Read... [15:00:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:18]Read from MH i2c: E2 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: E2 03 00 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: E2 03 00 C1 37 00 90 00 6C [15:00:18]RAPDU: 90 00 [15:00:18]wFMCommunicate OK [15:00:18]wFMCommunicate request_size=255 [15:00:18]MH_SAM_APDU [15:00:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 33 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 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 07 6E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D2 73 01 00 35 04 06 00 63 [15:00:18]Write to MH i2c: E2 02 01 C2 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 33 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 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 07 6E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D2 73 01 00 35 04 06 00 63 00 00 84 [15:00:18]Write i2c OK [15:00:18]MH_I2C_Read... [15:00:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:19]Read from MH i2c: E2 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 03 00 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 03 00 C2 37 00 90 00 6D [15:00:19]RAPDU: 90 00 [15:00:19]wFMCommunicate OK [15:00:19]wFMCommunicate request_size=10 [15:00:19]MH_SAM_APDU [15:00:19]CAPDU: 80 0D 02 02 05 96 88 B7 29 25 [15:00:19]Write to MH i2c: E2 0D 00 C3 37 80 0D 02 02 05 00 96 88 B7 29 25 00 00 A1 [15:00:19]Write i2c OK [15:00:19]MH_I2C_Read... [15:00:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:19]Read from MH i2c: E2 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 03 00 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 03 00 C3 37 00 90 00 6E [15:00:19]RAPDU: 90 00 [15:00:19]wFMCommunicate OK [15:00:19]wFMCommunicate request_size=4 [15:00:19]MH_SAM_APDU [15:00:19]CAPDU: 80 0D 03 02 [15:00:19]Write to MH i2c: E2 08 00 C4 37 80 0D 03 02 00 00 00 00 76 [15:00:19]Write i2c OK [15:00:19]MH_I2C_Read... [15:00:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:19]Read from MH i2c: E2 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 0B 00 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 0B 00 C4 37 00 00 69 30 88 AB FA 58 6C 90 00 01 [15:00:19]RAPDU: 00 69 30 88 AB FA 58 6C 90 00 [15:00:19]wFMCommunicate OK [15:00:19]SAM_PROTO_SignData done [15:00:19]FM_MakeSignedData done [15:00:19]CreateOFDProtocolMessage [15:00:19]wFMCommunicate request_size=4 [15:00:19]MH_SAM_APDU [15:00:19]CAPDU: 80 11 00 00 [15:00:19]Write to MH i2c: E2 08 00 C5 37 80 11 00 00 00 00 00 00 76 [15:00:19]Write i2c OK [15:00:19]MH_I2C_Read... [15:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:19]Read from MH i2c: E2 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 17 00 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 17 00 C5 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C6 [15:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:00:19]wFMCommunicate OK [15:00:19]CreateOFDProtocolMessage done [15:00:19]OFDSenderStorePacket 95186 [15:00:19]StoreOFDPacket docnum=95186 [15:00:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A4 5E 07 01 7A F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 33 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 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 07 6E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D2 73 01 00 35 04 06 00 63 96 88 B7 29 25 00 69 30 88 AB FA 58 6C [15:00:19]CheckFolder [15:00:19]dirname=/storage/ofd_packets [15:00:19]CheckFolder done [15:00:19]ProducePacketName [15:00:19]name=ofd_packets/00095186 [15:00:19]NVStorageSaveData ofd_packets/00095186 [15:00:19]File name is /storage/ofd_packets/00095186 [15:00:19]Write 301 bytes [15:00:19]NVStorageSaveData done [15:00:19]OFDSenderStorePacket done [15:00:19]KKMCreateOFDPacket done [15:00:19]NVStorageSaveData kkm_last_timestamp [15:00:19]File name is /storage/kkm_last_timestamp [15:00:19]Write 4 bytes [15:00:19]NVStorageSaveData done [15:00:19]ExternCall_PrintAddStr [15:00:19]wPrintStart [15:00:19]Write to MH i2c: 01 00 00 C6 37 FD [15:00:19]Write i2c OK [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: 01 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: 01 07 00 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: 01 07 00 C6 37 00 80 00 00 00 FF 0F 92 [15:00:19]RasterBufferAndPrint [15:00:19]line Счет N : (1)196156 [15:00:19]line ИНН: 02508201610067 [15:00:19]line Контрольно-Кассовый Чек [15:00:19]line ПРОДАЖА [15:00:19]line ТРК (МРК, ГНК) : 22 [15:00:19]line Товар: 2710124130 [15:00:19]line Аи-92-К-5 [15:00:19]line 4.770 * 62.90 [15:00:19]line = 300.03 [15:00:19]line НДС 12% НСП 1% [15:00:19]line > о реализуемом товаре [15:00:19]line ИТОГО: 300.03 [15:00:19]line НСП 1% : 2.65 [15:00:19]line НДС 12% : 31.86 [15:00:19]line Наличными: 0.00 [15:00:19]line Безнал.: 300.03 [15:00:19]line Место: АЗС № 6 "Партнер Нефть" [15:00:19]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:00:19]line СНО: Общий режим [15:00:19]line Чек 116 12.03.2024 15:00 [15:00:19]line Смена: 327 ФФД: 1.0 [15:00:19]line ЗНМ: 0300000009 [15:00:19]line РНМ: 0000000000090555 [15:00:19]line Версия ККМ: 001 [15:00:19]line Платежная система: Бакай Банк [15:00:19]line ФМ: 0000000000874811 [15:00:19]line ФД: 95186 [15:00:19]line ФПД: 109498189949221 [15:00:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T150023&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95186&fm=109498189949221&tin=02508201610067®Number=0000000000090555&sum=30003 [15:00:19]OFD Sender: Processing packet 95186 [packets to send 30, broken 29] [15:00:19]ProducePacketName [15:00:19]name=ofd_packets/00095186 [15:00:19]OFD Sender: To server: pG, [15:00:19]CommunicateWithHost lk.salyk.kg:30040 [15:00:19]ConnectInit lk.salyk.kg [15:00:19]written 0, free lines is 4095 [15:00:19]Connected sock=10 [15:00:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A4 5E 07 01 7A F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 33 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 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 07 6E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D2 73 01 00 35 04 06 00 63 96 88 B7 29 25 00 69 30 88 AB FA 58 6C [15:00:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 21 C5 47 00 50 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D2 73 01 00 F4 03 04 00 5D 19 F0 65 B6 04 01 00 00 BE 3F C4 53 5A CF C4 F8 [15:00:19]CommunicateWithHost err = 0 [15:00:19]CheckOFDResponse [15:00:19]1017 (14) - 77093643461234 [15:00:19]1041 (16) - 0000000000874811 [15:00:19]1040 (4) - 95186 [15:00:19]1012 (4) - 12.03.2024 08:59 [15:00:19]1206 (1) - 0 [15:00:19]OFD Sender: Remove packet 95186 [15:00:19]ProducePacketName [15:00:19]name=ofd_packets/00095186 [15:00:19]NVStorageDeleteData [15:00:19]Write to MH i2c: 01 00 00 F0 37 27 [15:00:19]Write i2c OK [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: 01 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: 01 07 00 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: 01 07 00 F0 37 00 80 00 00 00 62 0D 1D [15:00:20]RasterBufferAndPrint [15:00:20]line [15:00:20]line [15:00:20]line [15:00:20]line [15:00:20]line [15:00:20]written 0, free lines is 3432 [15:00:20]process_action close_receipt done [15:00:20]requested_data is exist [15:00:20]produce_requested_data [15:00:20]requested_item fm.sn is exist - process it [15:00:20]wFMCommunicate request_size=4 [15:00:20]MH_SAM_APDU [15:00:20]CAPDU: 80 11 00 00 [15:00:20]Write to MH i2c: E2 08 00 F7 37 80 11 00 00 00 00 00 00 A8 [15:00:20]Write i2c OK [15:00:20]MH_I2C_Read... [15:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:20]Read from MH i2c: E2 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 17 00 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 17 00 F7 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F8 [15:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:00:20]wFMCommunicate OK [15:00:20]requested_item fd.num is exist - process it [15:00:20]SAM_PROTO_GetFieldsCounters [15:00:20]wFMCommunicate request_size=4 [15:00:20]MH_SAM_APDU [15:00:20]CAPDU: 80 13 00 00 [15:00:20]Write to MH i2c: E2 08 00 F8 37 80 13 00 00 00 00 00 00 AB [15:00:20]Write i2c OK [15:00:20]MH_I2C_Read... [15:00:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:20]Read from MH i2c: E2 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 62 00 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 62 00 F8 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D2 73 01 00 0E 04 04 00 47 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 B2 [15:00:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D2 73 01 00 0E 04 04 00 47 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:00:20]wFMCommunicate OK [15:00:20]SAM_PROTO_GetFieldsCounters done [15:00:20]requested_item shift.num is exist - process it [15:00:20]requested_item shift.opened is exist - process it [15:00:20]req_shift_opened [15:00:20]FM_GetShiftState [15:00:20]SAM_PROTO_GetShiftState [15:00:20]wFMCommunicate request_size=4 [15:00:20]MH_SAM_APDU [15:00:20]CAPDU: 80 13 01 00 [15:00:20]Write to MH i2c: E2 08 00 F9 37 80 13 01 00 00 00 00 00 AD [15:00:20]Write i2c OK [15:00:20]MH_I2C_Read... [15:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:20]OFD Sender: No OFD packet to send [15:00:20]Read from MH i2c: E2 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 0E 00 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 0E 00 F9 37 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 21 [15:00:20]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:00:20]wFMCommunicate OK [15:00:20]SAM_PROTO_GetShiftState done [15:00:20]FM_GetShiftState done [15:00:20]req_shift_opened done [15:00:20]requested_item shift.open_date is exist - process it [15:00:20]req_shift_open_date [15:00:20]req_shift_open_date done [15:00:20]produce_requested_data done [15:00:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95186,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:00:20]process_action_free close_receipt [15:00:20]json_value_free [15:00:20]json_value_free done [15:00:20]process_json_proto returns [15:00:20]Send response to host [15:00:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95186,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:00:20]free response buf [15:00:20]execute_script done [15:00:20]execute_script returns [15:00:20]free content buf [15:00:20]Sock 8.Close socket [15:00:20]Sock 8.Thread stoped [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:16]accept exits with 9 [15:02:16]New connection [15:02:16]New thread 3066957156 created [15:02:16]Thread 3066813796 joined [15:02:16]Waiting for new connection... [15:02:16] Sock 9.Parse request [15:02:16]Sock 9.Check first char [15:02:16]Sock 9.First char is OK [15:02:16]request: POST /json_proto HTTP/1.0 [15:02:16]Method: POST [15:02:16]URL: /json_proto [15:02:16]Method is POST - this is cgi request [15:02:16]url: /json_proto [15:02:16]query_string will be loaded in cgi processing [15:02:16]execute_cgi json_proto POST (null) [15:02:16]execute_cgi path=json_proto method=POST [15:02:16]POST find Content-Length [15:02:16]Host: 172.17.62.67:8080 [15:02:16]Content-Length: 677 [15:02:16]Content-Type: application/json [15:02:16] [15:02:16]POST finish read [15:02:16]Found Content-Length = 677 [15:02:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "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:02:16]execute_script... [15:02:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "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:02:16]POST & json_proto [15:02:16]process_json_proto [15:02:16]json parsed OK: [15:02:16]protocol is kg_v1.0 [15:02:16]action value=close_receipt [15:02:16]process_action close_receipt [15:02:16]cmd_close_receipt [15:02:16]MH_GetDate [15:02:16]Write to MH i2c: F0 00 00 FA 37 20 [15:02:16]Write i2c OK [15:02:16]MH_I2C_Read... [15:02:16]Read from MH i2c: F0 [15:02:16]MH_I2C_Read... [15:02:16]Read from MH i2c: F0 05 00 [15:02:16]MH_I2C_Read... [15:02:16]Read from MH i2c: F0 05 00 FA 37 00 7E 6E F0 65 66 [15:02:16]GetLastDocTimeStamp 1710255623 [15:02:16]current date 1710255742 [15:02:16]FM_GetShiftState [15:02:16]SAM_PROTO_GetShiftState [15:02:16]wFMCommunicate request_size=4 [15:02:16]MH_SAM_APDU [15:02:16]CAPDU: 80 13 01 00 [15:02:16]Write to MH i2c: E2 08 00 FB 37 80 13 01 00 00 00 00 00 AF [15:02:16]Write i2c OK [15:02:16]MH_I2C_Read... [15:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:16]Read from MH i2c: E2 [15:02:16]MH_I2C_Read... [15:02:16]Read from MH i2c: E2 0E 00 [15:02:16]MH_I2C_Read... [15:02:16]Read from MH i2c: E2 0E 00 FB 37 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 23 [15:02:16]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:02:16]wFMCommunicate OK [15:02:16]SAM_PROTO_GetShiftState done [15:02:16]FM_GetShiftState done [15:02:16]opened in 1710201976 [15:02:16]opened+sec_in_day 1710288376 [15:02:16]quantity*price = 20002 [15:02:16]sum+1 = 20003 [15:02:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 117 12.03.2024 15:02 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95187 ФПД: 273066817686351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T150222&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95187&fm=273066817686351&tin=02508201610067®Number=0000000000090555&sum=20000 [15:02:17]StoreToDocumentArchive [15:02:17]shift 327 fd 95187 [15:02:17]save to /storage/0327/doc_00095187 [15:02:17]save last doc name /storage/0327/doc_00095187 to /storage/kkm_last_doc_name [15:02:17]save OK [15:02:17]Clear old archive folders... [15:02:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:02:17]tlvbuf is 01A5F340 [15:02:17]SAM_PROTO_ClearQueue [15:02:17]wFMCommunicate request_size=4 [15:02:17]MH_SAM_APDU [15:02:17]CAPDU: 80 09 00 00 [15:02:17]Write to MH i2c: E2 08 00 08 38 80 09 00 00 00 00 00 00 B2 [15:02:17]Write i2c OK [15:02:17]MH_I2C_Read... [15:02:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:17]Read from MH i2c: E2 [15:02:17]MH_I2C_Read... [15:02:17]Read from MH i2c: E2 03 00 [15:02:17]MH_I2C_Read... [15:02:17]Read from MH i2c: E2 03 00 08 38 00 90 00 B4 [15:02:17]RAPDU: 90 00 [15:02:17]wFMCommunicate OK [15:02:17]SAM_PROTO_ClearQueue done [15:02:17]KKMCreateOFDPacket [15:02:17]OFDProtocolAddRootSTLVToBuf [15:02:17]FM_MakeSignedData [15:02:17]FM_MakeSignedData [15:02:17]SAM_PROTO_SignData [15:02:17]wFMCommunicate request_size=4 [15:02:17]MH_SAM_APDU [15:02:17]CAPDU: 80 0D 01 02 [15:02:17]Write to MH i2c: E2 08 00 09 38 80 0D 01 02 00 00 00 00 BA [15:02:17]Write i2c OK [15:02:17]MH_I2C_Read... [15:02:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:17]Read from MH i2c: E2 [15:02:17]MH_I2C_Read... [15:02:17]Read from MH i2c: E2 03 00 [15:02:17]MH_I2C_Read... [15:02:17]Read from MH i2c: E2 03 00 09 38 00 90 00 B5 [15:02:17]RAPDU: 90 00 [15:02:17]wFMCommunicate OK [15:02:17]wFMCommunicate request_size=255 [15:02:17]MH_SAM_APDU [15:02:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 75 00 00 00 F4 03 04 00 7E 6E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D3 73 01 00 35 04 06 00 F8 [15:02:17]Write to MH i2c: E2 02 01 0A 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 75 00 00 00 F4 03 04 00 7E 6E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D3 73 01 00 35 04 06 00 F8 00 00 70 [15:02:18]Write i2c OK [15:02:18]MH_I2C_Read... [15:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:18]Read from MH i2c: E2 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 03 00 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 03 00 0A 38 00 90 00 B6 [15:02:18]RAPDU: 90 00 [15:02:18]wFMCommunicate OK [15:02:18]wFMCommunicate request_size=10 [15:02:18]MH_SAM_APDU [15:02:18]CAPDU: 80 0D 02 02 05 5A 52 AB 0B 4F [15:02:18]Write to MH i2c: E2 0D 00 0B 38 80 0D 02 02 05 00 5A 52 AB 0B 4F 00 00 78 [15:02:18]Write i2c OK [15:02:18]MH_I2C_Read... [15:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:18]Read from MH i2c: E2 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 03 00 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 03 00 0B 38 00 90 00 B7 [15:02:18]RAPDU: 90 00 [15:02:18]wFMCommunicate OK [15:02:18]wFMCommunicate request_size=4 [15:02:18]MH_SAM_APDU [15:02:18]CAPDU: 80 0D 03 02 [15:02:18]Write to MH i2c: E2 08 00 0C 38 80 0D 03 02 00 00 00 00 BF [15:02:18]Write i2c OK [15:02:18]MH_I2C_Read... [15:02:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:18]Read from MH i2c: E2 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 0B 00 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 0B 00 0C 38 00 14 21 5A E3 B3 70 13 51 90 00 B9 [15:02:18]RAPDU: 14 21 5A E3 B3 70 13 51 90 00 [15:02:18]wFMCommunicate OK [15:02:18]SAM_PROTO_SignData done [15:02:18]FM_MakeSignedData done [15:02:18]CreateOFDProtocolMessage [15:02:18]wFMCommunicate request_size=4 [15:02:18]MH_SAM_APDU [15:02:18]CAPDU: 80 11 00 00 [15:02:18]Write to MH i2c: E2 08 00 0D 38 80 11 00 00 00 00 00 00 BF [15:02:18]Write i2c OK [15:02:18]MH_I2C_Read... [15:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:18]Read from MH i2c: E2 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 17 00 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 17 00 0D 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0F [15:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:02:18]wFMCommunicate OK [15:02:18]CreateOFDProtocolMessage done [15:02:18]OFDSenderStorePacket 95187 [15:02:18]StoreOFDPacket docnum=95187 [15:02:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2A 32 07 01 D6 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 75 00 00 00 F4 03 04 00 7E 6E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D3 73 01 00 35 04 06 00 F8 5A 52 AB 0B 4F 14 21 5A E3 B3 70 13 51 [15:02:18]CheckFolder [15:02:18]dirname=/storage/ofd_packets [15:02:18]CheckFolder done [15:02:18]ProducePacketName [15:02:18]name=ofd_packets/00095187 [15:02:18]NVStorageSaveData ofd_packets/00095187 [15:02:18]File name is /storage/ofd_packets/00095187 [15:02:18]Write 301 bytes [15:02:18]NVStorageSaveData done [15:02:18]OFDSenderStorePacket done [15:02:18]KKMCreateOFDPacket done [15:02:18]NVStorageSaveData kkm_last_timestamp [15:02:18]File name is /storage/kkm_last_timestamp [15:02:18]Write 4 bytes [15:02:18]NVStorageSaveData done [15:02:18]OFD Sender: Processing packet 95187 [packets to send 30, broken 29] [15:02:18]ProducePacketName [15:02:18]name=ofd_packets/00095187 [15:02:18]OFD Sender: To server: pG, [15:02:18]CommunicateWithHost lk.salyk.kg:30040 [15:02:18]ConnectInit lk.salyk.kg [15:02:18]ExternCall_PrintAddStr [15:02:18]wPrintStart [15:02:18]Write to MH i2c: 01 00 00 0E 38 46 [15:02:18]Write i2c OK [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: 01 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: 01 07 00 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: 01 07 00 0E 38 00 80 00 00 00 FF 0F DB [15:02:18]RasterBufferAndPrint [15:02:18]line Счет N : (1)196157 [15:02:18]line ИНН: 02508201610067 [15:02:18]line Контрольно-Кассовый Чек [15:02:18]line ПРОДАЖА [15:02:18]line ТРК (МРК, ГНК) : 22 [15:02:18]line Товар: 2710124130 [15:02:18]line Аи-92-К-5 [15:02:18]line 3.180 * 62.90 [15:02:18]line = 200.02 [15:02:18]line НДС 12% НСП 1% [15:02:18]line > о реализуемом товаре [15:02:18]line ОКРУГЛЕНИЕ: -0.02 [15:02:18]line ИТОГО: 200.00 [15:02:18]line Внесено: 200.00 [15:02:18]line СДАЧА: 0.00 [15:02:18]line НСП 1% : 1.77 [15:02:18]line НДС 12% : 21.24 [15:02:18]line Наличными: 200.00 [15:02:18]line Безнал.: 0.00 [15:02:18]line Место: АЗС № 6 "Партнер Нефть" [15:02:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:02:18]line СНО: Общий режим [15:02:18]line Чек 117 12.03.2024 15:02 [15:02:18]line Смена: 327 ФФД: 1.0 [15:02:18]line ЗНМ: 0300000009 [15:02:18]line РНМ: 0000000000090555 [15:02:18]line Версия ККМ: 001 [15:02:18]line ФМ: 0000000000874811 [15:02:18]line ФД: 95187 [15:02:18]line ФПД: 273066817686351 [15:02:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T150222&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95187&fm=273066817686351&tin=02508201610067®Number=0000000000090555&sum=20000 [15:02:18]Connected sock=11 [15:02:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2A 32 07 01 D6 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 75 00 00 00 F4 03 04 00 7E 6E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D3 73 01 00 35 04 06 00 F8 5A 52 AB 0B 4F 14 21 5A E3 B3 70 13 51 [15:02:18]written 0, free lines is 4095 [15:02:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 53 09 47 00 76 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D3 73 01 00 F4 03 04 00 D4 19 F0 65 B6 04 01 00 00 A3 21 12 D4 37 F9 0C 89 [15:02:18]CommunicateWithHost err = 0 [15:02:18]CheckOFDResponse [15:02:18]1017 (14) - 77093643461234 [15:02:18]1041 (16) - 0000000000874811 [15:02:18]1040 (4) - 95187 [15:02:18]1012 (4) - 12.03.2024 09:01 [15:02:18]1206 (1) - 0 [15:02:18]OFD Sender: Remove packet 95187 [15:02:18]ProducePacketName [15:02:18]name=ofd_packets/00095187 [15:02:18]NVStorageDeleteData [15:02:19]Write to MH i2c: 01 00 00 39 38 71 [15:02:19]Write i2c OK [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: 01 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: 01 07 00 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: 01 07 00 39 38 00 80 00 00 00 50 0D 55 [15:02:19]RasterBufferAndPrint [15:02:19]line [15:02:19]line [15:02:19]line [15:02:19]line [15:02:19]line [15:02:19]written 0, free lines is 3414 [15:02:19]process_action close_receipt done [15:02:19]requested_data is exist [15:02:19]produce_requested_data [15:02:19]requested_item fm.sn is exist - process it [15:02:19]wFMCommunicate request_size=4 [15:02:19]MH_SAM_APDU [15:02:19]CAPDU: 80 11 00 00 [15:02:19]Write to MH i2c: E2 08 00 40 38 80 11 00 00 00 00 00 00 F2 [15:02:19]Write i2c OK [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: E2 [15:02:19]MH_I2C_Read... [15:02:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:19]Read from MH i2c: E2 17 00 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: E2 17 00 40 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 42 [15:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:02:19]wFMCommunicate OK [15:02:19]requested_item fd.num is exist - process it [15:02:19]SAM_PROTO_GetFieldsCounters [15:02:19]wFMCommunicate request_size=4 [15:02:19]MH_SAM_APDU [15:02:19]CAPDU: 80 13 00 00 [15:02:19]Write to MH i2c: E2 08 00 41 38 80 13 00 00 00 00 00 00 F5 [15:02:19]Write i2c OK [15:02:19]MH_I2C_Read... [15:02:19]OFD Sender: No OFD packet to send [15:02:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:19]Read from MH i2c: E2 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: E2 62 00 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: E2 62 00 41 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D3 73 01 00 0E 04 04 00 47 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 00 [15:02:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D3 73 01 00 0E 04 04 00 47 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:02:19]wFMCommunicate OK [15:02:19]SAM_PROTO_GetFieldsCounters done [15:02:19]requested_item shift.num is exist - process it [15:02:19]requested_item shift.opened is exist - process it [15:02:19]req_shift_opened [15:02:19]FM_GetShiftState [15:02:19]SAM_PROTO_GetShiftState [15:02:19]wFMCommunicate request_size=4 [15:02:19]MH_SAM_APDU [15:02:19]CAPDU: 80 13 01 00 [15:02:19]Write to MH i2c: E2 08 00 42 38 80 13 01 00 00 00 00 00 F7 [15:02:19]Write i2c OK [15:02:19]MH_I2C_Read... [15:02:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:19]Read from MH i2c: E2 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: E2 0E 00 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: E2 0E 00 42 38 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 6B [15:02:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:02:19]wFMCommunicate OK [15:02:19]SAM_PROTO_GetShiftState done [15:02:19]FM_GetShiftState done [15:02:19]req_shift_opened done [15:02:19]requested_item shift.open_date is exist - process it [15:02:19]req_shift_open_date [15:02:19]req_shift_open_date done [15:02:19]produce_requested_data done [15:02:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95187,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:02:19]process_action_free close_receipt [15:02:19]json_value_free [15:02:19]json_value_free done [15:02:19]process_json_proto returns [15:02:19]Send response to host [15:02:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95187,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:02:19]free response buf [15:02:19]execute_script done [15:02:19]execute_script returns [15:02:19]free content buf [15:02:19]Sock 9.Close socket [15:02:19]Sock 9.Thread stoped [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:48]accept exits with 8 [15:08:48]New connection [15:08:48]New thread 3066813796 created [15:08:48]Thread 3066957156 joined [15:08:48]Waiting for new connection... [15:08:48] Sock 8.Parse request [15:08:48]Sock 8.Check first char [15:08:48]Sock 8.First char is OK [15:08:48]request: POST /json_proto HTTP/1.0 [15:08:48]Method: POST [15:08:48]URL: /json_proto [15:08:48]Method is POST - this is cgi request [15:08:48]url: /json_proto [15:08:48]query_string will be loaded in cgi processing [15:08:48]execute_cgi json_proto POST (null) [15:08:48]execute_cgi path=json_proto method=POST [15:08:48]POST find Content-Length [15:08:48]Host: 172.17.62.67:8080 [15:08:48]Content-Length: 805 [15:08:48]Content-Type: application/json [15:08:48] [15:08:48]POST finish read [15:08:48]Found Content-Length = 805 [15:08:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 4.670, "sum" : 324.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 324.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:48]execute_script... [15: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)196158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 4.670, "sum" : 324.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 324.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:48]POST & json_proto [15:08:48]process_json_proto [15:08:48]json parsed OK: [15:08:48]protocol is kg_v1.0 [15:08:48]action value=close_receipt [15:08:48]process_action close_receipt [15:08:48]cmd_close_receipt [15:08:48]MH_GetDate [15:08:48]Write to MH i2c: F0 00 00 43 38 6A [15:08:48]Write i2c OK [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: F0 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: F0 05 00 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: F0 05 00 43 38 00 06 70 F0 65 3A [15:08:48]GetLastDocTimeStamp 1710255742 [15:08:48]current date 1710256134 [15:08:48]FM_GetShiftState [15:08:48]SAM_PROTO_GetShiftState [15:08:48]wFMCommunicate request_size=4 [15:08:48]MH_SAM_APDU [15:08:48]CAPDU: 80 13 01 00 [15:08:48]Write to MH i2c: E2 08 00 44 38 80 13 01 00 00 00 00 00 F9 [15:08:48]Write i2c OK [15:08:48]MH_I2C_Read... [15:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:49]Read from MH i2c: E2 [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: E2 0E 00 [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: E2 0E 00 44 38 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 6D [15:08:49]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:08:49]wFMCommunicate OK [15:08:49]SAM_PROTO_GetShiftState done [15:08:49]FM_GetShiftState done [15:08:49]opened in 1710201976 [15:08:49]opened+sec_in_day 1710288376 [15:08:49]quantity*price = 32456 [15:08:49]sum+1 = 32458 [15:08:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 324.57 НСП 1% : 2.87 НДС 12% : 34.47 Наличными: 0.00 Безнал.: 324.57 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 118 12.03.2024 15:08 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95188 ФПД: 279339659406349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T150854&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95188&fm=279339659406349&tin=02508201610067®Number=0000000000090555&sum=32457 [15:08:50]StoreToDocumentArchive [15:08:50]shift 327 fd 95188 [15:08:50]save to /storage/0327/doc_00095188 [15:08:50]save last doc name /storage/0327/doc_00095188 to /storage/kkm_last_doc_name [15:08:50]save OK [15:08:50]Clear old archive folders... [15:08:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:50]tlvbuf is 01B36E60 [15:08:50]SAM_PROTO_ClearQueue [15:08:50]wFMCommunicate request_size=4 [15:08:50]MH_SAM_APDU [15:08:50]CAPDU: 80 09 00 00 [15:08:50]Write to MH i2c: E2 08 00 51 38 80 09 00 00 00 00 00 00 FB [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:50]Read from MH i2c: E2 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 03 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 03 00 51 38 00 90 00 FD [15:08:50]RAPDU: 90 00 [15:08:50]wFMCommunicate OK [15:08:50]SAM_PROTO_ClearQueue done [15:08:50]KKMCreateOFDPacket [15:08:50]OFDProtocolAddRootSTLVToBuf [15:08:50]FM_MakeSignedData [15:08:50]FM_MakeSignedData [15:08:50]SAM_PROTO_SignData [15:08:50]wFMCommunicate request_size=4 [15:08:50]MH_SAM_APDU [15:08:50]CAPDU: 80 0D 01 02 [15:08:50]Write to MH i2c: E2 08 00 52 38 80 0D 01 02 00 00 00 00 03 [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:50]Read from MH i2c: E2 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 03 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 03 00 52 38 00 90 00 FE [15:08:50]RAPDU: 90 00 [15:08:50]wFMCommunicate OK [15:08:50]wFMCommunicate request_size=255 [15:08:50]MH_SAM_APDU [15:08:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 C9 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 06 70 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D4 73 01 00 35 04 06 00 FE [15:08:50]Write to MH i2c: E2 02 01 53 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 C9 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 06 70 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D4 73 01 00 35 04 06 00 FE 00 00 E6 [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:50]Read from MH i2c: E2 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 03 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 03 00 53 38 00 90 00 FF [15:08:50]RAPDU: 90 00 [15:08:50]wFMCommunicate OK [15:08:50]wFMCommunicate request_size=10 [15:08:50]MH_SAM_APDU [15:08:50]CAPDU: 80 0D 02 02 05 0E D5 2B AC 0D [15:08:50]Write to MH i2c: E2 0D 00 54 38 80 0D 02 02 05 00 0E D5 2B AC 0D 00 00 D7 [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:50]Read from MH i2c: E2 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 03 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 03 00 54 38 00 90 00 00 [15:08:50]RAPDU: 90 00 [15:08:50]wFMCommunicate OK [15:08:50]wFMCommunicate request_size=4 [15:08:50]MH_SAM_APDU [15:08:50]CAPDU: 80 0D 03 02 [15:08:50]Write to MH i2c: E2 08 00 55 38 80 0D 03 02 00 00 00 00 08 [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:50]Read from MH i2c: E2 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 0B 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 0B 00 55 38 00 FA AC DA 91 CE E0 1B 16 90 00 F9 [15:08:50]RAPDU: FA AC DA 91 CE E0 1B 16 90 00 [15:08:50]wFMCommunicate OK [15:08:50]SAM_PROTO_SignData done [15:08:50]FM_MakeSignedData done [15:08:50]CreateOFDProtocolMessage [15:08:50]wFMCommunicate request_size=4 [15:08:50]MH_SAM_APDU [15:08:50]CAPDU: 80 11 00 00 [15:08:50]Write to MH i2c: E2 08 00 56 38 80 11 00 00 00 00 00 00 08 [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:50]Read from MH i2c: E2 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 17 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 17 00 56 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 58 [15:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:08:50]wFMCommunicate OK [15:08:50]CreateOFDProtocolMessage done [15:08:50]OFDSenderStorePacket 95188 [15:08:50]StoreOFDPacket docnum=95188 [15:08:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 80 67 07 01 B4 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 C9 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 06 70 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D4 73 01 00 35 04 06 00 FE 0E D5 2B AC 0D FA AC DA 91 CE E0 1B 16 [15:08:50]CheckFolder [15:08:50]dirname=/storage/ofd_packets [15:08:50]CheckFolder done [15:08:50]ProducePacketName [15:08:50]name=ofd_packets/00095188 [15:08:50]NVStorageSaveData ofd_packets/00095188 [15:08:50]File name is /storage/ofd_packets/00095188 [15:08:50]Write 301 bytes [15:08:50]NVStorageSaveData done [15:08:50]OFDSenderStorePacket done [15:08:50]KKMCreateOFDPacket done [15:08:50]NVStorageSaveData kkm_last_timestamp [15:08:50]File name is /storage/kkm_last_timestamp [15:08:50]Write 4 bytes [15:08:50]NVStorageSaveData done [15:08:50]ExternCall_PrintAddStr [15:08:50]wPrintStart [15:08:50]Write to MH i2c: 01 00 00 57 38 8F [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: 01 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: 01 07 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: 01 07 00 57 38 00 80 00 00 00 FF 0F 24 [15:08:50]RasterBufferAndPrint [15:08:50]line Счет N : (1)196158 [15:08:50]line ИНН: 02508201610067 [15:08:50]line Контрольно-Кассовый Чек [15:08:50]line ПРОДАЖА [15:08:50]line ТРК (МРК, ГНК) : 11 [15:08:50]line Товар: 2710124500 [15:08:50]line Аи-95-К-5 [15:08:50]line 4.670 * 69.50 [15:08:50]line = 324.57 [15:08:50]line НДС 12% НСП 1% [15:08:50]line > о реализуемом товаре [15:08:50]line ИТОГО: 324.57 [15:08:50]line НСП 1% : 2.87 [15:08:50]line НДС 12% : 34.47 [15:08:50]line Наличными: 0.00 [15:08:50]line Безнал.: 324.57 [15:08:50]line Место: АЗС № 6 "Партнер Нефть" [15:08:50]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:08:50]line СНО: Общий режим [15:08:50]line Чек 118 12.03.2024 15:08 [15:08:50]line Смена: 327 ФФД: 1.0 [15:08:50]line ЗНМ: 0300000009 [15:08:50]line РНМ: 0000000000090555 [15:08:50]line Версия ККМ: 001 [15:08:50]line Платежная система: О! деньги [15:08:50]line ФМ: 0000000000874811 [15:08:50]line ФД: 95188 [15:08:50]line ФПД: 279339659406349 [15:08:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T150854&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95188&fm=279339659406349&tin=02508201610067®Number=0000000000090555&sum=32457 [15:08:51]OFD Sender: Processing packet 95188 [packets to send 30, broken 29] [15:08:51]ProducePacketName [15:08:51]name=ofd_packets/00095188 [15:08:51]OFD Sender: To server: pG, [15:08:51]CommunicateWithHost lk.salyk.kg:30040 [15:08:51]ConnectInit lk.salyk.kg [15:08:51]written 0, free lines is 4095 [15:08:51]Connected sock=10 [15:08:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 80 67 07 01 B4 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 C9 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 06 70 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D4 73 01 00 35 04 06 00 FE 0E D5 2B AC 0D FA AC DA 91 CE E0 1B 16 [15:08:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B3 25 47 00 92 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D4 73 01 00 F4 03 04 00 5C 1B F0 65 B6 04 01 00 00 EE 21 E2 68 49 BF 8D 69 [15:08:51]CommunicateWithHost err = 0 [15:08:51]CheckOFDResponse [15:08:51]1017 (14) - 77093643461234 [15:08:51]1041 (16) - 0000000000874811 [15:08:51]1040 (4) - 95188 [15:08:51]1012 (4) - 12.03.2024 09:07 [15:08:51]1206 (1) - 0 [15:08:51]OFD Sender: Remove packet 95188 [15:08:51]ProducePacketName [15:08:51]name=ofd_packets/00095188 [15:08:51]NVStorageDeleteData [15:08:51]Write to MH i2c: 01 00 00 81 38 B9 [15:08:51]Write i2c OK [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: 01 [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: 01 07 00 [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: 01 07 00 81 38 00 80 00 00 00 5A 0D A7 [15:08:51]RasterBufferAndPrint [15:08:51]line [15:08:51]line [15:08:51]line [15:08:51]line [15:08:51]line [15:08:51]written 0, free lines is 3422 [15:08:51]process_action close_receipt done [15:08:51]requested_data is exist [15:08:51]produce_requested_data [15:08:51]requested_item fm.sn is exist - process it [15:08:51]wFMCommunicate request_size=4 [15:08:51]MH_SAM_APDU [15:08:51]CAPDU: 80 11 00 00 [15:08:51]Write to MH i2c: E2 08 00 88 38 80 11 00 00 00 00 00 00 3A [15:08:51]Write i2c OK [15:08:51]MH_I2C_Read... [15:08:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:51]Read from MH i2c: E2 [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: E2 17 00 [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: E2 17 00 88 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8A [15:08:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:08:51]wFMCommunicate OK [15:08:51]requested_item fd.num is exist - process it [15:08:51]SAM_PROTO_GetFieldsCounters [15:08:51]wFMCommunicate request_size=4 [15:08:51]MH_SAM_APDU [15:08:51]CAPDU: 80 13 00 00 [15:08:51]Write to MH i2c: E2 08 00 89 38 80 13 00 00 00 00 00 00 3D [15:08:51]Write i2c OK [15:08:51]MH_I2C_Read... [15:08:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:51]Read from MH i2c: E2 [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: E2 62 00 [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: E2 62 00 89 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D4 73 01 00 0E 04 04 00 47 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 4C [15:08:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D4 73 01 00 0E 04 04 00 47 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:08:51]wFMCommunicate OK [15:08:51]SAM_PROTO_GetFieldsCounters done [15:08:51]requested_item shift.num is exist - process it [15:08:51]requested_item shift.opened is exist - process it [15:08:51]req_shift_opened [15:08:51]FM_GetShiftState [15:08:51]SAM_PROTO_GetShiftState [15:08:51]wFMCommunicate request_size=4 [15:08:51]MH_SAM_APDU [15:08:51]CAPDU: 80 13 01 00 [15:08:51]Write to MH i2c: E2 08 00 8A 38 80 13 01 00 00 00 00 00 3F [15:08:51]Write i2c OK [15:08:51]MH_I2C_Read... [15:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:51]Read from MH i2c: E2 [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: E2 0E 00 [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: E2 0E 00 8A 38 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B3 [15:08:51]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:08:51]wFMCommunicate OK [15:08:51]SAM_PROTO_GetShiftState done [15:08:51]FM_GetShiftState done [15:08:51]req_shift_opened done [15:08:51]requested_item shift.open_date is exist - process it [15:08:51]req_shift_open_date [15:08:51]req_shift_open_date done [15:08:51]produce_requested_data done [15:08:51]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95188,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:08:51]process_action_free close_receipt [15:08:51]json_value_free [15:08:51]json_value_free done [15:08:51]process_json_proto returns [15:08:51]Send response to host [15:08:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95188,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:08:51]free response buf [15:08:51]execute_script done [15:08:51]execute_script returns [15:08:51]free content buf [15:08:51]Sock 8.Close socket [15:08:51]Sock 8.Thread stoped [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:44]accept exits with 9 [15:09:44]New connection [15:09:44]New thread 3066957156 created [15:09:44]Thread 3066813796 joined [15:09:44]Waiting for new connection... [15:09:44] Sock 9.Parse request [15:09:44]Sock 9.Check first char [15:09:44]Sock 9.First char is OK [15:09:44]request: POST /json_proto HTTP/1.0 [15:09:44]Method: POST [15:09:44]URL: /json_proto [15:09:44]Method is POST - this is cgi request [15:09:44]url: /json_proto [15:09:44]query_string will be loaded in cgi processing [15:09:44]execute_cgi json_proto POST (null) [15:09:44]execute_cgi path=json_proto method=POST [15:09:44]POST find Content-Length [15:09:44]Host: 172.17.62.67:8080 [15:09:44]Content-Length: 678 [15:09:44]Content-Type: application/json [15:09:44] [15:09:44]POST finish read [15:09:44]Found Content-Length = 678 [15:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:44]execute_script... [15:09: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)196159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:44]POST & json_proto [15:09:44]process_json_proto [15:09:44]json parsed OK: [15:09:44]protocol is kg_v1.0 [15:09:44]action value=close_receipt [15:09:44]process_action close_receipt [15:09:44]cmd_close_receipt [15:09:44]MH_GetDate [15:09:44]Write to MH i2c: F0 00 00 8B 38 B2 [15:09:44]Write i2c OK [15:09:44]MH_I2C_Read... [15:09:44]Read from MH i2c: F0 [15:09:44]MH_I2C_Read... [15:09:44]Read from MH i2c: F0 05 00 [15:09:44]MH_I2C_Read... [15:09:44]Read from MH i2c: F0 05 00 8B 38 00 3E 70 F0 65 BA [15:09:44]GetLastDocTimeStamp 1710256134 [15:09:44]current date 1710256190 [15:09:44]FM_GetShiftState [15:09:44]SAM_PROTO_GetShiftState [15:09:44]wFMCommunicate request_size=4 [15:09:44]MH_SAM_APDU [15:09:44]CAPDU: 80 13 01 00 [15:09:44]Write to MH i2c: E2 08 00 8C 38 80 13 01 00 00 00 00 00 41 [15:09:44]Write i2c OK [15:09:44]MH_I2C_Read... [15:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:44]Read from MH i2c: E2 [15:09:44]MH_I2C_Read... [15:09:44]Read from MH i2c: E2 0E 00 [15:09:44]MH_I2C_Read... [15:09:44]Read from MH i2c: E2 0E 00 8C 38 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B5 [15:09:44]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:09:44]wFMCommunicate OK [15:09:44]SAM_PROTO_GetShiftState done [15:09:44]FM_GetShiftState done [15:09:44]opened in 1710201976 [15:09:44]opened+sec_in_day 1710288376 [15:09:44]quantity*price = 70007 [15:09:44]sum+1 = 70009 [15:09:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 119 12.03.2024 15:09 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95189 ФПД: 79320914782395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T150950&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95189&fm=79320914782395&tin=02508201610067®Number=0000000000090555&sum=70000 [15:09:45]StoreToDocumentArchive [15:09:45]shift 327 fd 95189 [15:09:45]save to /storage/0327/doc_00095189 [15:09:45]save last doc name /storage/0327/doc_00095189 to /storage/kkm_last_doc_name [15:09:45]save OK [15:09:45]Clear old archive folders... [15:09:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:45]tlvbuf is 01A8DA90 [15:09:45]SAM_PROTO_ClearQueue [15:09:45]wFMCommunicate request_size=4 [15:09:45]MH_SAM_APDU [15:09:45]CAPDU: 80 09 00 00 [15:09:45]Write to MH i2c: E2 08 00 99 38 80 09 00 00 00 00 00 00 43 [15:09:45]Write i2c OK [15:09:45]MH_I2C_Read... [15:09:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:45]Read from MH i2c: E2 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 03 00 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 03 00 99 38 00 90 00 45 [15:09:45]RAPDU: 90 00 [15:09:45]wFMCommunicate OK [15:09:45]SAM_PROTO_ClearQueue done [15:09:45]KKMCreateOFDPacket [15:09:45]OFDProtocolAddRootSTLVToBuf [15:09:45]FM_MakeSignedData [15:09:45]FM_MakeSignedData [15:09:45]SAM_PROTO_SignData [15:09:45]wFMCommunicate request_size=4 [15:09:45]MH_SAM_APDU [15:09:45]CAPDU: 80 0D 01 02 [15:09:45]Write to MH i2c: E2 08 00 9A 38 80 0D 01 02 00 00 00 00 4B [15:09:45]Write i2c OK [15:09:45]MH_I2C_Read... [15:09:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:45]Read from MH i2c: E2 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 03 00 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 03 00 9A 38 00 90 00 46 [15:09:45]RAPDU: 90 00 [15:09:45]wFMCommunicate OK [15:09:45]wFMCommunicate request_size=255 [15:09:45]MH_SAM_APDU [15:09:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 77 00 00 00 F4 03 04 00 3E 70 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D5 73 01 00 35 04 06 00 48 [15:09:45]Write to MH i2c: E2 02 01 9B 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 77 00 00 00 F4 03 04 00 3E 70 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D5 73 01 00 35 04 06 00 48 00 00 15 [15:09:45]Write i2c OK [15:09:45]MH_I2C_Read... [15:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:45]Read from MH i2c: E2 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 03 00 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 03 00 9B 38 00 90 00 47 [15:09:45]RAPDU: 90 00 [15:09:45]wFMCommunicate OK [15:09:45]wFMCommunicate request_size=10 [15:09:45]MH_SAM_APDU [15:09:45]CAPDU: 80 0D 02 02 05 24 56 F2 E8 BB [15:09:45]Write to MH i2c: E2 0D 00 9C 38 80 0D 02 02 05 00 24 56 F2 E8 BB 00 00 67 [15:09:45]Write i2c OK [15:09:45]MH_I2C_Read... [15:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:45]Read from MH i2c: E2 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 03 00 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 03 00 9C 38 00 90 00 48 [15:09:45]RAPDU: 90 00 [15:09:45]wFMCommunicate OK [15:09:45]wFMCommunicate request_size=4 [15:09:45]MH_SAM_APDU [15:09:45]CAPDU: 80 0D 03 02 [15:09:45]Write to MH i2c: E2 08 00 9D 38 80 0D 03 02 00 00 00 00 50 [15:09:45]Write i2c OK [15:09:45]MH_I2C_Read... [15:09:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:46]Read from MH i2c: E2 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: E2 0B 00 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: E2 0B 00 9D 38 00 00 E7 11 78 46 88 C5 ED 90 00 41 [15:09:46]RAPDU: 00 E7 11 78 46 88 C5 ED 90 00 [15:09:46]wFMCommunicate OK [15:09:46]SAM_PROTO_SignData done [15:09:46]FM_MakeSignedData done [15:09:46]CreateOFDProtocolMessage [15:09:46]wFMCommunicate request_size=4 [15:09:46]MH_SAM_APDU [15:09:46]CAPDU: 80 11 00 00 [15:09:46]Write to MH i2c: E2 08 00 9E 38 80 11 00 00 00 00 00 00 50 [15:09:46]Write i2c OK [15:09:46]MH_I2C_Read... [15:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:46]Read from MH i2c: E2 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: E2 17 00 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: E2 17 00 9E 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A0 [15:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:09:46]wFMCommunicate OK [15:09:46]CreateOFDProtocolMessage done [15:09:46]OFDSenderStorePacket 95189 [15:09:46]StoreOFDPacket docnum=95189 [15:09:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 6E 2C 07 01 26 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 77 00 00 00 F4 03 04 00 3E 70 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D5 73 01 00 35 04 06 00 48 24 56 F2 E8 BB 00 E7 11 78 46 88 C5 ED [15:09:46]CheckFolder [15:09:46]dirname=/storage/ofd_packets [15:09:46]CheckFolder done [15:09:46]ProducePacketName [15:09:46]name=ofd_packets/00095189 [15:09:46]NVStorageSaveData ofd_packets/00095189 [15:09:46]File name is /storage/ofd_packets/00095189 [15:09:46]Write 301 bytes [15:09:46]NVStorageSaveData done [15:09:46]OFDSenderStorePacket done [15:09:46]KKMCreateOFDPacket done [15:09:46]NVStorageSaveData kkm_last_timestamp [15:09:46]File name is /storage/kkm_last_timestamp [15:09:46]Write 4 bytes [15:09:46]NVStorageSaveData done [15:09:46]ExternCall_PrintAddStr [15:09:46]wPrintStart [15:09:46]Write to MH i2c: 01 00 00 9F 38 D7 [15:09:46]Write i2c OK [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: 01 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: 01 07 00 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: 01 07 00 9F 38 00 80 00 00 00 FF 0F 6C [15:09:46]RasterBufferAndPrint [15:09:46]line Счет N : (1)196159 [15:09:46]line ИНН: 02508201610067 [15:09:46]line Контрольно-Кассовый Чек [15:09:46]line ПРОДАЖА [15:09:46]line ТРК (МРК, ГНК) : 32 [15:09:46]line Товар: 2710124130 [15:09:46]line Аи-92-К-5 [15:09:46]line 11.130 * 62.90 [15:09:46]line = 700.08 [15:09:46]line НДС 12% НСП 1% [15:09:46]line > о реализуемом товаре [15:09:46]line ОКРУГЛЕНИЕ: -0.08 [15:09:46]line ИТОГО: 700.00 [15:09:46]line Внесено: 700.00 [15:09:46]line СДАЧА: 0.00 [15:09:46]line НСП 1% : 6.19 [15:09:46]line НДС 12% : 74.34 [15:09:46]line Наличными: 700.00 [15:09:46]line Безнал.: 0.00 [15:09:46]line Место: АЗС № 6 "Партнер Нефть" [15:09:46]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:09:46]line СНО: Общий режим [15:09:46]line Чек 119 12.03.2024 15:09 [15:09:46]line Смена: 327 ФФД: 1.0 [15:09:46]line ЗНМ: 0300000009 [15:09:46]line РНМ: 0000000000090555 [15:09:46]line Версия ККМ: 001 [15:09:46]line ФМ: 0000000000874811 [15:09:46]line ФД: 95189 [15:09:46]line ФПД: 79320914782395 [15:09:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T150950&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95189&fm=79320914782395&tin=02508201610067®Number=0000000000090555&sum=70000 [15:09:46]OFD Sender: Processing packet 95189 [packets to send 30, broken 29] [15:09:46]ProducePacketName [15:09:46]name=ofd_packets/00095189 [15:09:46]OFD Sender: To server: pG, [15:09:46]CommunicateWithHost lk.salyk.kg:30040 [15:09:46]ConnectInit lk.salyk.kg [15:09:46]written 0, free lines is 4095 [15:09:46]Connected sock=10 [15:09:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 6E 2C 07 01 26 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 77 00 00 00 F4 03 04 00 3E 70 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D5 73 01 00 35 04 06 00 48 24 56 F2 E8 BB 00 E7 11 78 46 88 C5 ED [15:09:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 68 AB 47 00 38 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D5 73 01 00 F4 03 04 00 93 1B F0 65 B6 04 01 00 00 12 71 EA E6 52 B9 ED 42 [15:09:46]CommunicateWithHost err = 0 [15:09:46]CheckOFDResponse [15:09:46]1017 (14) - 77093643461234 [15:09:46]1041 (16) - 0000000000874811 [15:09:46]1040 (4) - 95189 [15:09:46]1012 (4) - 12.03.2024 09:08 [15:09:46]1206 (1) - 0 [15:09:46]OFD Sender: Remove packet 95189 [15:09:46]ProducePacketName [15:09:46]name=ofd_packets/00095189 [15:09:46]NVStorageDeleteData [15:09:46]Write to MH i2c: 01 00 00 CA 38 02 [15:09:46]Write i2c OK [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: 01 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: 01 07 00 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: 01 07 00 CA 38 00 80 00 00 00 53 0D E9 [15:09:46]RasterBufferAndPrint [15:09:46]line [15:09:46]line [15:09:46]line [15:09:46]line [15:09:46]line [15:09:46]written 0, free lines is 3417 [15:09:46]process_action close_receipt done [15:09:46]requested_data is exist [15:09:46]produce_requested_data [15:09:46]requested_item fm.sn is exist - process it [15:09:46]wFMCommunicate request_size=4 [15:09:46]MH_SAM_APDU [15:09:46]CAPDU: 80 11 00 00 [15:09:46]Write to MH i2c: E2 08 00 D1 38 80 11 00 00 00 00 00 00 83 [15:09:46]Write i2c OK [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: E2 [15:09:46]MH_I2C_Read... [15:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:46]Read from MH i2c: E2 17 00 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: E2 17 00 D1 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D3 [15:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:09:46]wFMCommunicate OK [15:09:46]requested_item fd.num is exist - process it [15:09:46]SAM_PROTO_GetFieldsCounters [15:09:46]wFMCommunicate request_size=4 [15:09:46]MH_SAM_APDU [15:09:46]CAPDU: 80 13 00 00 [15:09:46]Write to MH i2c: E2 08 00 D2 38 80 13 00 00 00 00 00 00 86 [15:09:46]Write i2c OK [15:09:46]MH_I2C_Read... [15:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:47]Read from MH i2c: E2 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 62 00 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 62 00 D2 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D5 73 01 00 0E 04 04 00 47 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 99 [15:09:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D5 73 01 00 0E 04 04 00 47 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:09:47]wFMCommunicate OK [15:09:47]SAM_PROTO_GetFieldsCounters done [15:09:47]requested_item shift.num is exist - process it [15:09:47]requested_item shift.opened is exist - process it [15:09:47]req_shift_opened [15:09:47]FM_GetShiftState [15:09:47]SAM_PROTO_GetShiftState [15:09:47]wFMCommunicate request_size=4 [15:09:47]MH_SAM_APDU [15:09:47]CAPDU: 80 13 01 00 [15:09:47]Write to MH i2c: E2 08 00 D3 38 80 13 01 00 00 00 00 00 88 [15:09:47]Write i2c OK [15:09:47]MH_I2C_Read... [15:09:47]OFD Sender: No OFD packet to send [15:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:47]Read from MH i2c: E2 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 0E 00 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 0E 00 D3 38 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 FC [15:09:47]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:09:47]wFMCommunicate OK [15:09:47]SAM_PROTO_GetShiftState done [15:09:47]FM_GetShiftState done [15:09:47]req_shift_opened done [15:09:47]requested_item shift.open_date is exist - process it [15:09:47]req_shift_open_date [15:09:47]req_shift_open_date done [15:09:47]produce_requested_data done [15:09:47]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95189,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:09:47]process_action_free close_receipt [15:09:47]json_value_free [15:09:47]json_value_free done [15:09:47]process_json_proto returns [15:09:47]Send response to host [15:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95189,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:09:47]free response buf [15:09:47]execute_script done [15:09:47]execute_script returns [15:09:47]free content buf [15:09:47]Sock 9.Close socket [15:09:47]Sock 9.Thread stoped [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:22]OFD Sender: No OFD packet to send [15:11:27]OFD Sender: No OFD packet to send [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:29]accept exits with 8 [15:12:29]New connection [15:12:29]New thread 3066813796 created [15:12:29]Thread 3066957156 joined [15:12:29]Waiting for new connection... [15:12:29] Sock 8.Parse request [15:12:29]Sock 8.Check first char [15:12:29]Sock 8.First char is OK [15:12:29]request: POST /json_proto HTTP/1.0 [15:12:29]Method: POST [15:12:29]URL: /json_proto [15:12:29]Method is POST - this is cgi request [15:12:29]url: /json_proto [15:12:29]query_string will be loaded in cgi processing [15:12:29]execute_cgi json_proto POST (null) [15:12:29]execute_cgi path=json_proto method=POST [15:12:29]POST find Content-Length [15:12:29]Host: 172.17.62.67:8080 [15:12:29]Content-Length: 675 [15:12:29]Content-Type: application/json [15:12:29] [15:12:29]POST finish read [15:12:29]Found Content-Length = 675 [15:12:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 31.300, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:29]execute_script... [15:12: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)196160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 31.300, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:29]POST & json_proto [15:12:29]process_json_proto [15:12:29]json parsed OK: [15:12:29]protocol is kg_v1.0 [15:12:29]action value=close_receipt [15:12:29]process_action close_receipt [15:12:29]cmd_close_receipt [15:12:29]MH_GetDate [15:12:29]Write to MH i2c: F0 00 00 D4 38 FB [15:12:29]Write i2c OK [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: F0 [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: F0 05 00 [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: F0 05 00 D4 38 00 E3 70 F0 65 A8 [15:12:29]GetLastDocTimeStamp 1710256190 [15:12:29]current date 1710256355 [15:12:29]FM_GetShiftState [15:12:29]SAM_PROTO_GetShiftState [15:12:29]wFMCommunicate request_size=4 [15:12:29]MH_SAM_APDU [15:12:29]CAPDU: 80 13 01 00 [15:12:29]Write to MH i2c: E2 08 00 D5 38 80 13 01 00 00 00 00 00 8A [15:12:29]Write i2c OK [15:12:29]MH_I2C_Read... [15:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:29]Read from MH i2c: E2 [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: E2 0E 00 [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: E2 0E 00 D5 38 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 FE [15:12:29]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:12:29]wFMCommunicate OK [15:12:29]SAM_PROTO_GetShiftState done [15:12:29]FM_GetShiftState done [15:12:29]opened in 1710201976 [15:12:29]opened+sec_in_day 1710288376 [15:12:29]quantity*price = 200007 [15:12:29]sum+1 = 200008 [15:12:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 120 12.03.2024 15:12 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95190 ФПД: 229054599033652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T151235&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95190&fm=229054599033652&tin=02508201610067®Number=0000000000090555&sum=200000 [15:12:31]StoreToDocumentArchive [15:12:31]shift 327 fd 95190 [15:12:31]save to /storage/0327/doc_00095190 [15:12:31]save last doc name /storage/0327/doc_00095190 to /storage/kkm_last_doc_name [15:12:31]save OK [15:12:31]Clear old archive folders... [15:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:12:31]tlvbuf is 01AF29D0 [15:12:31]SAM_PROTO_ClearQueue [15:12:31]wFMCommunicate request_size=4 [15:12:31]MH_SAM_APDU [15:12:31]CAPDU: 80 09 00 00 [15:12:31]Write to MH i2c: E2 08 00 E2 38 80 09 00 00 00 00 00 00 8C [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:31]Read from MH i2c: E2 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 03 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 03 00 E2 38 00 90 00 8E [15:12:31]RAPDU: 90 00 [15:12:31]wFMCommunicate OK [15:12:31]SAM_PROTO_ClearQueue done [15:12:31]KKMCreateOFDPacket [15:12:31]OFDProtocolAddRootSTLVToBuf [15:12:31]FM_MakeSignedData [15:12:31]FM_MakeSignedData [15:12:31]SAM_PROTO_SignData [15:12:31]wFMCommunicate request_size=4 [15:12:31]MH_SAM_APDU [15:12:31]CAPDU: 80 0D 01 02 [15:12:31]Write to MH i2c: E2 08 00 E3 38 80 0D 01 02 00 00 00 00 94 [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:31]Read from MH i2c: E2 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 03 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 03 00 E3 38 00 90 00 8F [15:12:31]RAPDU: 90 00 [15:12:31]wFMCommunicate OK [15:12:31]wFMCommunicate request_size=255 [15:12:31]MH_SAM_APDU [15:12:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 E3 70 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D6 73 01 00 35 04 06 00 [15:12:31]Write to MH i2c: E2 02 01 E4 38 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 E3 70 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D6 73 01 00 35 04 06 00 00 00 E6 [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:31]Read from MH i2c: E2 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 03 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 03 00 E4 38 00 90 00 90 [15:12:31]RAPDU: 90 00 [15:12:31]wFMCommunicate OK [15:12:31]wFMCommunicate request_size=11 [15:12:31]MH_SAM_APDU [15:12:31]CAPDU: 80 0D 02 02 06 D0 52 EE 02 73 34 [15:12:31]Write to MH i2c: E2 0E 00 E5 38 80 0D 02 02 06 00 D0 52 EE 02 73 34 00 00 5C [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:31]Read from MH i2c: E2 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 03 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 03 00 E5 38 00 90 00 91 [15:12:31]RAPDU: 90 00 [15:12:31]wFMCommunicate OK [15:12:31]wFMCommunicate request_size=4 [15:12:31]MH_SAM_APDU [15:12:31]CAPDU: 80 0D 03 02 [15:12:31]Write to MH i2c: E2 08 00 E6 38 80 0D 03 02 00 00 00 00 99 [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:31]Read from MH i2c: E2 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 0B 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 0B 00 E6 38 00 FE E3 B7 6F FC FA 9A 22 90 00 53 [15:12:31]RAPDU: FE E3 B7 6F FC FA 9A 22 90 00 [15:12:31]wFMCommunicate OK [15:12:31]SAM_PROTO_SignData done [15:12:31]FM_MakeSignedData done [15:12:31]CreateOFDProtocolMessage [15:12:31]wFMCommunicate request_size=4 [15:12:31]MH_SAM_APDU [15:12:31]CAPDU: 80 11 00 00 [15:12:31]Write to MH i2c: E2 08 00 E7 38 80 11 00 00 00 00 00 00 99 [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:31]Read from MH i2c: E2 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 17 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 17 00 E7 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E9 [15:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:12:31]wFMCommunicate OK [15:12:31]CreateOFDProtocolMessage done [15:12:31]OFDSenderStorePacket 95190 [15:12:31]StoreOFDPacket docnum=95190 [15:12:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 5C 2C 08 01 2D E9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 E3 70 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D6 73 01 00 35 04 06 00 D0 52 EE 02 73 34 FE E3 B7 6F FC FA 9A 22 [15:12:31]CheckFolder [15:12:31]dirname=/storage/ofd_packets [15:12:31]CheckFolder done [15:12:31]ProducePacketName [15:12:31]name=ofd_packets/00095190 [15:12:31]NVStorageSaveData ofd_packets/00095190 [15:12:31]File name is /storage/ofd_packets/00095190 [15:12:31]Write 302 bytes [15:12:31]NVStorageSaveData done [15:12:31]OFDSenderStorePacket done [15:12:31]KKMCreateOFDPacket done [15:12:31]NVStorageSaveData kkm_last_timestamp [15:12:31]File name is /storage/kkm_last_timestamp [15:12:31]Write 4 bytes [15:12:31]NVStorageSaveData done [15:12:31]ExternCall_PrintAddStr [15:12:31]wPrintStart [15:12:31]Write to MH i2c: 01 00 00 E8 38 20 [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: 01 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: 01 07 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: 01 07 00 E8 38 00 80 00 00 00 FF 0F B5 [15:12:31]RasterBufferAndPrint [15:12:31]line Счет N : (1)196160 [15:12:31]line ИНН: 02508201610067 [15:12:31]line Контрольно-Кассовый Чек [15:12:31]line ПРОДАЖА [15:12:31]line ТРК (МРК, ГНК) : 23 [15:12:31]line Товар: 2710124130 [15:12:31]line SUPER 92-К-5 [15:12:31]line 31.300 * 63.90 [15:12:31]line = 2000.07 [15:12:31]line НДС 12% НСП 1% [15:12:31]line > о реализуемом товаре [15:12:31]line ОКРУГЛЕНИЕ: -0.07 [15:12:31]line ИТОГО: 2000.00 [15:12:31]line Внесено: 2000.00 [15:12:31]line СДАЧА: 0.00 [15:12:31]line НСП 1% : 17.70 [15:12:31]line НДС 12% : 212.40 [15:12:31]line Наличными: 2000.00 [15:12:31]line Безнал.: 0.00 [15:12:31]line Место: АЗС № 6 "Партнер Нефть" [15:12:31]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:12:31]line СНО: Общий режим [15:12:31]line Чек 120 12.03.2024 15:12 [15:12:31]line Смена: 327 ФФД: 1.0 [15:12:31]line ЗНМ: 0300000009 [15:12:31]line РНМ: 0000000000090555 [15:12:31]line Версия ККМ: 001 [15:12:31]line ФМ: 0000000000874811 [15:12:31]line ФД: 95190 [15:12:31]line ФПД: 229054599033652 [15:12:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T151235&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95190&fm=229054599033652&tin=02508201610067®Number=0000000000090555&sum=200000 [15:12:31]OFD Sender: Processing packet 95190 [packets to send 30, broken 29] [15:12:31]ProducePacketName [15:12:31]name=ofd_packets/00095190 [15:12:31]OFD Sender: To server: pG, [15:12:31]CommunicateWithHost lk.salyk.kg:30040 [15:12:31]ConnectInit lk.salyk.kg [15:12:31]written 0, free lines is 4095 [15:12:32]Connected sock=11 [15:12:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 5C 2C 08 01 2D E9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 E3 70 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D6 73 01 00 35 04 06 00 D0 52 EE 02 73 34 FE E3 B7 6F FC FA 9A 22 [15:12:32]Write to MH i2c: 01 00 00 13 39 4C [15:12:32]Write i2c OK [15:12:32]MH_I2C_Read... [15:12:32]Read from MH i2c: 01 [15:12:32]MH_I2C_Read... [15:12:32]Read from MH i2c: 01 07 00 [15:12:32]MH_I2C_Read... [15:12:32]Read from MH i2c: 01 07 00 13 39 00 80 00 00 00 4E 0D 2E [15:12:32]RasterBufferAndPrint [15:12:32]line [15:12:32]line [15:12:32]line [15:12:32]line [15:12:32]line [15:12:32]written 0, free lines is 3410 [15:12:32]process_action close_receipt done [15:12:32]requested_data is exist [15:12:32]produce_requested_data [15:12:32]requested_item fm.sn is exist - process it [15:12:32]wFMCommunicate request_size=4 [15:12:32]MH_SAM_APDU [15:12:32]CAPDU: 80 11 00 00 [15:12:32]Write to MH i2c: E2 08 00 1A 39 80 11 00 00 00 00 00 00 CD [15:12:32]Write i2c OK [15:12:32]MH_I2C_Read... [15:12:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 AB 3D 47 00 0B 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D6 73 01 00 F4 03 04 00 39 1C F0 65 B6 04 01 00 00 1F D4 89 1B AC F9 75 C4 [15:12:32]CommunicateWithHost err = 0 [15:12:32]CheckOFDResponse [15:12:32]1017 (14) - 77093643461234 [15:12:32]1041 (16) - 0000000000874811 [15:12:32]1040 (4) - 95190 [15:12:32]1012 (4) - 12.03.2024 09:11 [15:12:32]1206 (1) - 0 [15:12:32]OFD Sender: Remove packet 95190 [15:12:32]ProducePacketName [15:12:32]name=ofd_packets/00095190 [15:12:32]NVStorageDeleteData [15:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:32]Read from MH i2c: E2 [15:12:32]MH_I2C_Read... [15:12:32]Read from MH i2c: E2 17 00 [15:12:32]MH_I2C_Read... [15:12:32]Read from MH i2c: E2 17 00 1A 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1D [15:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:12:32]wFMCommunicate OK [15:12:32]requested_item fd.num is exist - process it [15:12:32]SAM_PROTO_GetFieldsCounters [15:12:32]wFMCommunicate request_size=4 [15:12:32]MH_SAM_APDU [15:12:32]CAPDU: 80 13 00 00 [15:12:32]Write to MH i2c: E2 08 00 1B 39 80 13 00 00 00 00 00 00 D0 [15:12:32]Write i2c OK [15:12:32]MH_I2C_Read... [15:12:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:32]Read from MH i2c: E2 [15:12:32]MH_I2C_Read... [15:12:32]Read from MH i2c: E2 62 00 [15:12:32]MH_I2C_Read... [15:12:32]Read from MH i2c: E2 62 00 1B 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D6 73 01 00 0E 04 04 00 47 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 E7 [15:12:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D6 73 01 00 0E 04 04 00 47 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:12:32]wFMCommunicate OK [15:12:32]SAM_PROTO_GetFieldsCounters done [15:12:32]requested_item shift.num is exist - process it [15:12:32]requested_item shift.opened is exist - process it [15:12:32]req_shift_opened [15:12:32]FM_GetShiftState [15:12:32]SAM_PROTO_GetShiftState [15:12:32]wFMCommunicate request_size=4 [15:12:32]MH_SAM_APDU [15:12:32]CAPDU: 80 13 01 00 [15:12:32]Write to MH i2c: E2 08 00 1C 39 80 13 01 00 00 00 00 00 D2 [15:12:32]Write i2c OK [15:12:32]MH_I2C_Read... [15:12:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:32]Read from MH i2c: E2 [15:12:32]MH_I2C_Read... [15:12:32]Read from MH i2c: E2 0E 00 [15:12:32]MH_I2C_Read... [15:12:32]Read from MH i2c: E2 0E 00 1C 39 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 46 [15:12:32]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:12:32]wFMCommunicate OK [15:12:32]SAM_PROTO_GetShiftState done [15:12:32]FM_GetShiftState done [15:12:32]req_shift_opened done [15:12:32]requested_item shift.open_date is exist - process it [15:12:32]req_shift_open_date [15:12:32]req_shift_open_date done [15:12:32]produce_requested_data done [15:12:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95190,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:12:32]process_action_free close_receipt [15:12:32]json_value_free [15:12:32]json_value_free done [15:12:32]process_json_proto returns [15:12:32]Send response to host [15:12:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95190,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:12:32]free response buf [15:12:32]execute_script done [15:12:32]execute_script returns [15:12:32]free content buf [15:12:32]Sock 8.Close socket [15:12:32]Sock 8.Thread stoped [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:26]accept exits with 9 [15:13:26]New connection [15:13:26]New thread 3066957156 created [15:13:26]Thread 3066813796 joined [15:13:26]Waiting for new connection... [15:13:26] Sock 9.Parse request [15:13:26]Sock 9.Check first char [15:13:26]Sock 9.First char is OK [15:13:26]request: POST /json_proto HTTP/1.0 [15:13:26]Method: POST [15:13:26]URL: /json_proto [15:13:26]Method is POST - this is cgi request [15:13:26]url: /json_proto [15:13:26]query_string will be loaded in cgi processing [15:13:26]execute_cgi json_proto POST (null) [15:13:26]execute_cgi path=json_proto method=POST [15:13:26]POST find Content-Length [15:13:26]Host: 172.17.62.67:8080 [15:13:26]Content-Length: 678 [15:13:26]Content-Type: application/json [15:13:26] [15:13:26]POST finish read [15:13:26]Found Content-Length = 678 [15:13:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 12.720, "sum" : 800.09, "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:13:26]execute_script... [15:13: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)196161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 12.720, "sum" : 800.09, "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:13:26]POST & json_proto [15:13:26]process_json_proto [15:13:26]json parsed OK: [15:13:26]protocol is kg_v1.0 [15:13:26]action value=close_receipt [15:13:26]process_action close_receipt [15:13:26]cmd_close_receipt [15:13:26]MH_GetDate [15:13:26]Write to MH i2c: F0 00 00 1D 39 45 [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: F0 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: F0 05 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: F0 05 00 1D 39 00 1B 71 F0 65 2B [15:13:26]GetLastDocTimeStamp 1710256355 [15:13:26]current date 1710256411 [15:13:26]FM_GetShiftState [15:13:26]SAM_PROTO_GetShiftState [15:13:26]wFMCommunicate request_size=4 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 13 01 00 [15:13:26]Write to MH i2c: E2 08 00 1E 39 80 13 01 00 00 00 00 00 D4 [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 0E 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 0E 00 1E 39 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 48 [15:13:26]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:13:26]wFMCommunicate OK [15:13:26]SAM_PROTO_GetShiftState done [15:13:26]FM_GetShiftState done [15:13:26]opened in 1710201976 [15:13:26]opened+sec_in_day 1710288376 [15:13:26]quantity*price = 80008 [15:13:26]sum+1 = 80010 [15:13:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 121 12.03.2024 15:13 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95191 ФПД: 30498934692527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T151331&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95191&fm=30498934692527&tin=02508201610067®Number=0000000000090555&sum=80000 [15:13:27]StoreToDocumentArchive [15:13:27]shift 327 fd 95191 [15:13:27]save to /storage/0327/doc_00095191 [15:13:27]save last doc name /storage/0327/doc_00095191 to /storage/kkm_last_doc_name [15:13:27]save OK [15:13:27]Clear old archive folders... [15:13:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:27]tlvbuf is 01A8DC70 [15:13:27]SAM_PROTO_ClearQueue [15:13:27]wFMCommunicate request_size=4 [15:13:27]MH_SAM_APDU [15:13:27]CAPDU: 80 09 00 00 [15:13:27]Write to MH i2c: E2 08 00 2B 39 80 09 00 00 00 00 00 00 D6 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:27]Read from MH i2c: E2 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 03 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 03 00 2B 39 00 90 00 D8 [15:13:27]RAPDU: 90 00 [15:13:27]wFMCommunicate OK [15:13:27]SAM_PROTO_ClearQueue done [15:13:27]KKMCreateOFDPacket [15:13:27]OFDProtocolAddRootSTLVToBuf [15:13:27]FM_MakeSignedData [15:13:27]FM_MakeSignedData [15:13:27]SAM_PROTO_SignData [15:13:27]wFMCommunicate request_size=4 [15:13:27]MH_SAM_APDU [15:13:27]CAPDU: 80 0D 01 02 [15:13:27]Write to MH i2c: E2 08 00 2C 39 80 0D 01 02 00 00 00 00 DE [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:27]Read from MH i2c: E2 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 03 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 03 00 2C 39 00 90 00 D9 [15:13:27]RAPDU: 90 00 [15:13:27]wFMCommunicate OK [15:13:27]wFMCommunicate request_size=255 [15:13:27]MH_SAM_APDU [15:13:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 31 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 89 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 1B 71 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D7 73 01 00 35 04 06 00 1B [15:13:27]Write to MH i2c: E2 02 01 2D 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 31 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 89 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 1B 71 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D7 73 01 00 35 04 06 00 1B 00 00 C2 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:27]Read from MH i2c: E2 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 03 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 03 00 2D 39 00 90 00 DA [15:13:27]RAPDU: 90 00 [15:13:27]wFMCommunicate OK [15:13:27]wFMCommunicate request_size=10 [15:13:27]MH_SAM_APDU [15:13:27]CAPDU: 80 0D 02 02 05 BD 16 2B 1A AF [15:13:27]Write to MH i2c: E2 0D 00 2E 39 80 0D 02 02 05 00 BD 16 2B 1A AF 00 00 B2 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:27]Read from MH i2c: E2 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 03 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 03 00 2E 39 00 90 00 DB [15:13:27]RAPDU: 90 00 [15:13:27]wFMCommunicate OK [15:13:27]wFMCommunicate request_size=4 [15:13:27]MH_SAM_APDU [15:13:27]CAPDU: 80 0D 03 02 [15:13:27]Write to MH i2c: E2 08 00 2F 39 80 0D 03 02 00 00 00 00 E3 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:27]Read from MH i2c: E2 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 0B 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 0B 00 2F 39 00 5A EC 78 87 3A 90 91 68 90 00 EC [15:13:27]RAPDU: 5A EC 78 87 3A 90 91 68 90 00 [15:13:27]wFMCommunicate OK [15:13:27]SAM_PROTO_SignData done [15:13:27]FM_MakeSignedData done [15:13:27]CreateOFDProtocolMessage [15:13:27]wFMCommunicate request_size=4 [15:13:27]MH_SAM_APDU [15:13:27]CAPDU: 80 11 00 00 [15:13:27]Write to MH i2c: E2 08 00 30 39 80 11 00 00 00 00 00 00 E3 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:27]Read from MH i2c: E2 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 17 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 17 00 30 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 33 [15:13:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:13:27]wFMCommunicate OK [15:13:27]CreateOFDProtocolMessage done [15:13:27]OFDSenderStorePacket 95191 [15:13:27]StoreOFDPacket docnum=95191 [15:13:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 31 EF 07 01 60 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 31 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 89 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 1B 71 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D7 73 01 00 35 04 06 00 1B BD 16 2B 1A AF 5A EC 78 87 3A 90 91 68 [15:13:27]CheckFolder [15:13:27]dirname=/storage/ofd_packets [15:13:27]CheckFolder done [15:13:27]ProducePacketName [15:13:27]name=ofd_packets/00095191 [15:13:27]NVStorageSaveData ofd_packets/00095191 [15:13:27]File name is /storage/ofd_packets/00095191 [15:13:27]Write 301 bytes [15:13:27]NVStorageSaveData done [15:13:27]OFDSenderStorePacket done [15:13:27]KKMCreateOFDPacket done [15:13:27]NVStorageSaveData kkm_last_timestamp [15:13:27]File name is /storage/kkm_last_timestamp [15:13:27]Write 4 bytes [15:13:27]NVStorageSaveData done [15:13:27]ExternCall_PrintAddStr [15:13:27]wPrintStart [15:13:27]Write to MH i2c: 01 00 00 31 39 6A [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: 01 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: 01 07 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: 01 07 00 31 39 00 80 00 00 00 FF 0F FF [15:13:27]RasterBufferAndPrint [15:13:27]line Счет N : (1)196161 [15:13:27]line ИНН: 02508201610067 [15:13:27]line Контрольно-Кассовый Чек [15:13:27]line ПРОДАЖА [15:13:27]line ТРК (МРК, ГНК) : 12 [15:13:27]line Товар: 2710124130 [15:13:27]line Аи-92-К-5 [15:13:27]line 12.720 * 62.90 [15:13:27]line = 800.09 [15:13:27]line НДС 12% НСП 1% [15:13:27]line > о реализуемом товаре [15:13:27]line ОКРУГЛЕНИЕ: -0.09 [15:13:27]line ИТОГО: 800.00 [15:13:27]line Внесено: 800.00 [15:13:27]line СДАЧА: 0.00 [15:13:27]line НСП 1% : 7.08 [15:13:27]line НДС 12% : 84.96 [15:13:27]line Наличными: 800.00 [15:13:27]line Безнал.: 0.00 [15:13:27]line Место: АЗС № 6 "Партнер Нефть" [15:13:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:13:27]line СНО: Общий режим [15:13:27]line Чек 121 12.03.2024 15:13 [15:13:27]line Смена: 327 ФФД: 1.0 [15:13:27]line ЗНМ: 0300000009 [15:13:27]line РНМ: 0000000000090555 [15:13:27]line Версия ККМ: 001 [15:13:27]line ФМ: 0000000000874811 [15:13:27]line ФД: 95191 [15:13:27]line ФПД: 30498934692527 [15:13:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T151331&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95191&fm=30498934692527&tin=02508201610067®Number=0000000000090555&sum=80000 [15:13:28]OFD Sender: Processing packet 95191 [packets to send 30, broken 29] [15:13:28]ProducePacketName [15:13:28]name=ofd_packets/00095191 [15:13:28]OFD Sender: To server: pG, [15:13:28]CommunicateWithHost lk.salyk.kg:30040 [15:13:28]ConnectInit lk.salyk.kg [15:13:28]written 0, free lines is 4095 [15:13:28]Connected sock=10 [15:13:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 31 EF 07 01 60 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 31 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 89 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 1B 71 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D7 73 01 00 35 04 06 00 1B BD 16 2B 1A AF 5A EC 78 87 3A 90 91 68 [15:13:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 FF 7E 47 00 66 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D7 73 01 00 F4 03 04 00 71 1C F0 65 B6 04 01 00 00 B1 31 82 FD F5 19 18 B2 [15:13:28]CommunicateWithHost err = 0 [15:13:28]CheckOFDResponse [15:13:28]1017 (14) - 77093643461234 [15:13:28]1041 (16) - 0000000000874811 [15:13:28]1040 (4) - 95191 [15:13:28]1012 (4) - 12.03.2024 09:12 [15:13:28]1206 (1) - 0 [15:13:28]OFD Sender: Remove packet 95191 [15:13:28]ProducePacketName [15:13:28]name=ofd_packets/00095191 [15:13:28]NVStorageDeleteData [15:13:28]Write to MH i2c: 01 00 00 5C 39 95 [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: 01 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: 01 07 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: 01 07 00 5C 39 00 80 00 00 00 4A 0D 73 [15:13:28]RasterBufferAndPrint [15:13:28]line [15:13:28]line [15:13:28]line [15:13:28]line [15:13:28]line [15:13:28]written 0, free lines is 3408 [15:13:28]process_action close_receipt done [15:13:28]requested_data is exist [15:13:28]produce_requested_data [15:13:28]requested_item fm.sn is exist - process it [15:13:28]wFMCommunicate request_size=4 [15:13:28]MH_SAM_APDU [15:13:28]CAPDU: 80 11 00 00 [15:13:28]Write to MH i2c: E2 08 00 63 39 80 11 00 00 00 00 00 00 16 [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:28]Read from MH i2c: E2 17 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 17 00 63 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 66 [15:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:13:28]wFMCommunicate OK [15:13:28]requested_item fd.num is exist - process it [15:13:28]SAM_PROTO_GetFieldsCounters [15:13:28]wFMCommunicate request_size=4 [15:13:28]MH_SAM_APDU [15:13:28]CAPDU: 80 13 00 00 [15:13:28]Write to MH i2c: E2 08 00 64 39 80 13 00 00 00 00 00 00 19 [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 62 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 62 00 64 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D7 73 01 00 0E 04 04 00 47 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 34 [15:13:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D7 73 01 00 0E 04 04 00 47 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:13:28]wFMCommunicate OK [15:13:28]SAM_PROTO_GetFieldsCounters done [15:13:28]requested_item shift.num is exist - process it [15:13:28]requested_item shift.opened is exist - process it [15:13:28]req_shift_opened [15:13:28]FM_GetShiftState [15:13:28]SAM_PROTO_GetShiftState [15:13:28]wFMCommunicate request_size=4 [15:13:28]MH_SAM_APDU [15:13:28]CAPDU: 80 13 01 00 [15:13:28]Write to MH i2c: E2 08 00 65 39 80 13 01 00 00 00 00 00 1B [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]OFD Sender: No OFD packet to send [15:13:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 0E 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 0E 00 65 39 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 8F [15:13:28]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:13:28]wFMCommunicate OK [15:13:28]SAM_PROTO_GetShiftState done [15:13:28]FM_GetShiftState done [15:13:28]req_shift_opened done [15:13:28]requested_item shift.open_date is exist - process it [15:13:28]req_shift_open_date [15:13:28]req_shift_open_date done [15:13:28]produce_requested_data done [15:13:28]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95191,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:13:28]process_action_free close_receipt [15:13:28]json_value_free [15:13:28]json_value_free done [15:13:28]process_json_proto returns [15:13:28]Send response to host [15:13:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95191,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:13:28]free response buf [15:13:28]execute_script done [15:13:28]execute_script returns [15:13:28]free content buf [15:13:28]Sock 9.Close socket [15:13:28]Sock 9.Thread stoped [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:04]accept exits with 8 [15:16:04]New connection [15:16:04]New thread 3066813796 created [15:16:04]Thread 3066957156 joined [15:16:04]Waiting for new connection... [15:16:04] Sock 8.Parse request [15:16:04]Sock 8.Check first char [15:16:04]Sock 8.First char is OK [15:16:04]request: POST /json_proto HTTP/1.0 [15:16:04]Method: POST [15:16:04]URL: /json_proto [15:16:04]Method is POST - this is cgi request [15:16:04]url: /json_proto [15:16:04]query_string will be loaded in cgi processing [15:16:04]execute_cgi json_proto POST (null) [15:16:04]execute_cgi path=json_proto method=POST [15:16:04]POST find Content-Length [15:16:04]Host: 172.17.62.67:8080 [15:16:04]Content-Length: 631 [15:16:04]Content-Type: application/json [15:16:04] [15:16:04]POST finish read [15:16:04]Found Content-Length = 631 [15:16:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11534", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:04]execute_script... [15: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 : (3)11534", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:04]POST & json_proto [15:16:04]process_json_proto [15:16:04]json parsed OK: [15:16:04]protocol is kg_v1.0 [15:16:04]action value=close_receipt [15:16:04]process_action close_receipt [15:16:04]cmd_close_receipt [15:16:04]MH_GetDate [15:16:04]Write to MH i2c: F0 00 00 66 39 8E [15:16:04]Write i2c OK [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: F0 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: F0 05 00 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: F0 05 00 66 39 00 BA 71 F0 65 13 [15:16:04]GetLastDocTimeStamp 1710256411 [15:16:04]current date 1710256570 [15:16:04]FM_GetShiftState [15:16:04]SAM_PROTO_GetShiftState [15:16:04]wFMCommunicate request_size=4 [15:16:04]MH_SAM_APDU [15:16:04]CAPDU: 80 13 01 00 [15:16:04]Write to MH i2c: E2 08 00 67 39 80 13 01 00 00 00 00 00 1D [15:16:04]Write i2c OK [15:16:04]MH_I2C_Read... [15:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:04]Read from MH i2c: E2 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 0E 00 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 0E 00 67 39 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 91 [15:16:04]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:16:04]wFMCommunicate OK [15:16:04]SAM_PROTO_GetShiftState done [15:16:04]FM_GetShiftState done [15:16:04]opened in 1710201976 [15:16:04]opened+sec_in_day 1710288376 [15:16:04]quantity*price = 3500 [15:16:04]sum+1 = 3501 [15:16:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 122 12.03.2024 15:16 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95192 ФПД: 34665711272069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T151610&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95192&fm=34665711272069&tin=02508201610067®Number=0000000000090555&sum=3500 0 [15:16:05]StoreToDocumentArchive [15:16:05]shift 327 fd 95192 [15:16:05]save to /storage/0327/doc_00095192 [15:16:05]save last doc name /storage/0327/doc_00095192 to /storage/kkm_last_doc_name [15:16:05]save OK [15:16:05]Clear old archive folders... [15:16:05]ProcessDocumentItem done err = 0, tmpTLVsize=271 [15:16:05]tlvbuf is 01B61ED0 [15:16:05]SAM_PROTO_ClearQueue [15:16:05]wFMCommunicate request_size=4 [15:16:05]MH_SAM_APDU [15:16:05]CAPDU: 80 09 00 00 [15:16:05]Write to MH i2c: E2 08 00 74 39 80 09 00 00 00 00 00 00 1F [15:16:05]Write i2c OK [15:16:05]MH_I2C_Read... [15:16:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:06]Read from MH i2c: E2 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 03 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 03 00 74 39 00 90 00 21 [15:16:06]RAPDU: 90 00 [15:16:06]wFMCommunicate OK [15:16:06]SAM_PROTO_ClearQueue done [15:16:06]KKMCreateOFDPacket [15:16:06]OFDProtocolAddRootSTLVToBuf [15:16:06]FM_MakeSignedData [15:16:06]FM_MakeSignedData [15:16:06]SAM_PROTO_SignData [15:16:06]wFMCommunicate request_size=4 [15:16:06]MH_SAM_APDU [15:16:06]CAPDU: 80 0D 01 02 [15:16:06]Write to MH i2c: E2 08 00 75 39 80 0D 01 02 00 00 00 00 27 [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:06]Read from MH i2c: E2 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 03 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 03 00 75 39 00 90 00 22 [15:16:06]RAPDU: 90 00 [15:16:06]wFMCommunicate OK [15:16:06]wFMCommunicate request_size=255 [15:16:06]MH_SAM_APDU [15:16:06]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 BA 71 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [15:16:06]Write to MH i2c: E2 02 01 76 39 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 BA 71 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 3C [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:06]Read from MH i2c: E2 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 03 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 03 00 76 39 00 90 00 23 [15:16:06]RAPDU: 90 00 [15:16:06]wFMCommunicate OK [15:16:06]wFMCommunicate request_size=30 [15:16:06]MH_SAM_APDU [15:16:06]CAPDU: 80 0D 02 02 19 30 38 37 34 38 31 31 10 04 04 00 D8 73 01 00 35 04 06 00 1F 87 3D 68 00 85 [15:16:06]Write to MH i2c: E2 21 00 77 39 80 0D 02 02 19 00 30 38 37 34 38 31 31 10 04 04 00 D8 73 01 00 35 04 06 00 1F 87 3D 68 00 85 00 00 3C [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:06]Read from MH i2c: E2 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 03 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 03 00 77 39 00 90 00 24 [15:16:06]RAPDU: 90 00 [15:16:06]wFMCommunicate OK [15:16:06]wFMCommunicate request_size=4 [15:16:06]MH_SAM_APDU [15:16:06]CAPDU: 80 0D 03 02 [15:16:06]Write to MH i2c: E2 08 00 78 39 80 0D 03 02 00 00 00 00 2C [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:06]Read from MH i2c: E2 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 0B 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 0B 00 78 39 00 22 C7 2B 1F 33 7C 9B D8 90 00 82 [15:16:06]RAPDU: 22 C7 2B 1F 33 7C 9B D8 90 00 [15:16:06]wFMCommunicate OK [15:16:06]SAM_PROTO_SignData done [15:16:06]FM_MakeSignedData done [15:16:06]CreateOFDProtocolMessage [15:16:06]wFMCommunicate request_size=4 [15:16:06]MH_SAM_APDU [15:16:06]CAPDU: 80 11 00 00 [15:16:06]Write to MH i2c: E2 08 00 79 39 80 11 00 00 00 00 00 00 2C [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:06]Read from MH i2c: E2 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 17 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 17 00 79 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7C [15:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:16:06]wFMCommunicate OK [15:16:06]CreateOFDProtocolMessage done [15:16:06]OFDSenderStorePacket 95192 [15:16:06]StoreOFDPacket docnum=95192 [15:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 23 01 00 00 33 FE 1B 01 44 CD 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 BA 71 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D8 73 01 00 35 04 06 00 1F 87 3D 68 00 85 22 C7 2B 1F 33 7C 9B D8 [15:16:06]CheckFolder [15:16:06]dirname=/storage/ofd_packets [15:16:06]CheckFolder done [15:16:06]ProducePacketName [15:16:06]name=ofd_packets/00095192 [15:16:06]NVStorageSaveData ofd_packets/00095192 [15:16:06]File name is /storage/ofd_packets/00095192 [15:16:06]Write 321 bytes [15:16:06]NVStorageSaveData done [15:16:06]OFDSenderStorePacket done [15:16:06]KKMCreateOFDPacket done [15:16:06]NVStorageSaveData kkm_last_timestamp [15:16:06]File name is /storage/kkm_last_timestamp [15:16:06]Write 4 bytes [15:16:06]NVStorageSaveData done [15:16:06]ExternCall_PrintAddStr [15:16:06]wPrintStart [15:16:06]Write to MH i2c: 01 00 00 7A 39 B3 [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: 01 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: 01 07 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: 01 07 00 7A 39 00 80 00 00 00 FF 0F 48 [15:16:06]RasterBufferAndPrint [15:16:06]line Счет N : (3)11534 [15:16:06]line ИНН: 02508201610067 [15:16:06]line Контрольно-Кассовый Чек [15:16:06]line ПРОДАЖА [15:16:06]line Товар: 4700000160211 [15:16:06]line Вода Легенда 0,5л [15:16:06]line 1.000 * 35.00 [15:16:06]line = 35.00 [15:16:06]line НДС 12% НСП 1% [15:16:06]line > о реализуемом товаре [15:16:06]line ИТОГО: 35.00 [15:16:06]line НСП 1% : 0.31 [15:16:06]line НДС 12% : 3.72 [15:16:06]line Наличными: 35.00 [15:16:06]line Безнал.: 0.00 [15:16:06]line Место: АЗС № 6 "Партнер Нефть" [15:16:06]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:16:06]line СНО: Общий режим [15:16:06]line Чек 122 12.03.2024 15:16 [15:16:06]line Смена: 327 ФФД: 1.0 [15:16:06]line ЗНМ: 0300000009 [15:16:06]line РНМ: 0000000000090555 [15:16:06]line Версия ККМ: 001 [15:16:06]line ФМ: 0000000000874811 [15:16:06]line ФД: 95192 [15:16:06]line ФПД: 34665711272069 [15:16:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T151610&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95192&fm=34665711272069&tin=02508201610067®Number=0000000000090555&sum=3500 [15:16:06]OFD Sender: Processing packet 95192 [packets to send 30, broken 29] [15:16:06]ProducePacketName [15:16:06]name=ofd_packets/00095192 [15:16:06]OFD Sender: To server: pG, [15:16:06]CommunicateWithHost lk.salyk.kg:30040 [15:16:06]ConnectInit lk.salyk.kg [15:16:06]line 0 [15:16:06]written 0, free lines is 4095 [15:16:07]Connected sock=11 [15:16:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 23 01 00 00 33 FE 1B 01 44 CD 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 BA 71 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D8 73 01 00 35 04 06 00 1F 87 3D 68 00 85 22 C7 2B 1F 33 7C 9B D8 [15:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 9D AB 47 00 F1 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D8 73 01 00 F4 03 04 00 10 1D F0 65 B6 04 01 00 00 53 5E DE 8E 15 F0 39 B8 [15:16:07]CommunicateWithHost err = 0 [15:16:07]CheckOFDResponse [15:16:07]1017 (14) - 77093643461234 [15:16:07]1041 (16) - 0000000000874811 [15:16:07]1040 (4) - 95192 [15:16:07]1012 (4) - 12.03.2024 09:14 [15:16:07]1206 (1) - 0 [15:16:07]OFD Sender: Remove packet 95192 [15:16:07]ProducePacketName [15:16:07]name=ofd_packets/00095192 [15:16:07]NVStorageDeleteData [15:16:07]Write to MH i2c: 01 00 00 A2 39 DB [15:16:07]Write i2c OK [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: 01 [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: 01 07 00 [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: 01 07 00 A2 39 00 80 00 00 00 70 0D DF [15:16:07]RasterBufferAndPrint [15:16:07]line [15:16:07]line [15:16:07]line [15:16:07]line [15:16:07]line [15:16:07]written 0, free lines is 3447 [15:16:07]process_action close_receipt done [15:16:07]requested_data is exist [15:16:07]produce_requested_data [15:16:07]requested_item fm.sn is exist - process it [15:16:07]wFMCommunicate request_size=4 [15:16:07]MH_SAM_APDU [15:16:07]CAPDU: 80 11 00 00 [15:16:07]Write to MH i2c: E2 08 00 A9 39 80 11 00 00 00 00 00 00 5C [15:16:07]Write i2c OK [15:16:07]MH_I2C_Read... [15:16:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:07]Read from MH i2c: E2 [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: E2 17 00 [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: E2 17 00 A9 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AC [15:16:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:16:07]wFMCommunicate OK [15:16:07]requested_item fd.num is exist - process it [15:16:07]SAM_PROTO_GetFieldsCounters [15:16:07]wFMCommunicate request_size=4 [15:16:07]MH_SAM_APDU [15:16:07]CAPDU: 80 13 00 00 [15:16:07]Write to MH i2c: E2 08 00 AA 39 80 13 00 00 00 00 00 00 5F [15:16:07]Write i2c OK [15:16:07]MH_I2C_Read... [15:16:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:07]Read from MH i2c: E2 [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: E2 62 00 [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: E2 62 00 AA 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D8 73 01 00 0E 04 04 00 47 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:16:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D8 73 01 00 0E 04 04 00 47 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:16:07]wFMCommunicate OK [15:16:07]SAM_PROTO_GetFieldsCounters done [15:16:07]requested_item shift.num is exist - process it [15:16:07]requested_item shift.opened is exist - process it [15:16:07]req_shift_opened [15:16:07]FM_GetShiftState [15:16:07]SAM_PROTO_GetShiftState [15:16:07]wFMCommunicate request_size=4 [15:16:07]MH_SAM_APDU [15:16:07]CAPDU: 80 13 01 00 [15:16:07]Write to MH i2c: E2 08 00 AB 39 80 13 01 00 00 00 00 00 61 [15:16:07]Write i2c OK [15:16:07]MH_I2C_Read... [15:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:07]Read from MH i2c: E2 [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: E2 0E 00 [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: E2 0E 00 AB 39 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D5 [15:16:07]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:16:07]wFMCommunicate OK [15:16:07]SAM_PROTO_GetShiftState done [15:16:07]FM_GetShiftState done [15:16:07]req_shift_opened done [15:16:07]requested_item shift.open_date is exist - process it [15:16:07]req_shift_open_date [15:16:07]req_shift_open_date done [15:16:07]produce_requested_data done [15:16:07]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95192,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:16:07]process_action_free close_receipt [15:16:07]json_value_free [15:16:07]json_value_free done [15:16:07]process_json_proto returns [15:16:07]Send response to host [15:16:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95192,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:16:07]free response buf [15:16:07]execute_script done [15:16:07]execute_script returns [15:16:07]free content buf [15:16:07]Sock 8.Close socket [15:16:07]Sock 8.Thread stoped [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:53]accept exits with 9 [15:18:53]New connection [15:18:53]New thread 3066957156 created [15:18:53]Thread 3066813796 joined [15:18:53]Waiting for new connection... [15:18:53] Sock 9.Parse request [15:18:53]Sock 9.Check first char [15:18:53]Sock 9.First char is OK [15:18:53]request: POST /json_proto HTTP/1.0 [15:18:53]Method: POST [15:18:53]URL: /json_proto [15:18:53]Method is POST - this is cgi request [15:18:53]url: /json_proto [15:18:53]query_string will be loaded in cgi processing [15:18:53]execute_cgi json_proto POST (null) [15:18:53]execute_cgi path=json_proto method=POST [15:18:53]POST find Content-Length [15:18:53]Host: 172.17.62.67:8080 [15:18:53]Content-Length: 678 [15:18:53]Content-Type: application/json [15:18:53] [15:18:53]POST finish read [15:18:53]Found Content-Length = 678 [15:18:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:53]execute_script... [15:18:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:53]POST & json_proto [15:18:53]process_json_proto [15:18:53]json parsed OK: [15:18:53]protocol is kg_v1.0 [15:18:53]action value=close_receipt [15:18:53]process_action close_receipt [15:18:53]cmd_close_receipt [15:18:53]MH_GetDate [15:18:53]Write to MH i2c: F0 00 00 AC 39 D4 [15:18:53]Write i2c OK [15:18:53]MH_I2C_Read... [15:18:53]Read from MH i2c: F0 [15:18:53]MH_I2C_Read... [15:18:53]Read from MH i2c: F0 05 00 [15:18:53]MH_I2C_Read... [15:18:53]Read from MH i2c: F0 05 00 AC 39 00 63 72 F0 65 03 [15:18:53]GetLastDocTimeStamp 1710256570 [15:18:53]current date 1710256739 [15:18:53]FM_GetShiftState [15:18:53]SAM_PROTO_GetShiftState [15:18:53]wFMCommunicate request_size=4 [15:18:53]MH_SAM_APDU [15:18:53]CAPDU: 80 13 01 00 [15:18:53]Write to MH i2c: E2 08 00 AD 39 80 13 01 00 00 00 00 00 63 [15:18:53]Write i2c OK [15:18:53]MH_I2C_Read... [15:18:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:53]Read from MH i2c: E2 [15:18:53]MH_I2C_Read... [15:18:53]Read from MH i2c: E2 0E 00 [15:18:53]MH_I2C_Read... [15:18:53]Read from MH i2c: E2 0E 00 AD 39 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D7 [15:18:53]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:18:53]wFMCommunicate OK [15:18:53]SAM_PROTO_GetShiftState done [15:18:53]FM_GetShiftState done [15:18:53]opened in 1710201976 [15:18:53]opened+sec_in_day 1710288376 [15:18:53]quantity*price = 70007 [15:18:53]sum+1 = 70009 [15:18:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 123 12.03.2024 15:18 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95193 ФПД: 13206923323188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T151859&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95193&fm=13206923323188&tin=02508201610067®Number=0000000000090555&sum=70000 [15:18:54]StoreToDocumentArchive [15:18:54]shift 327 fd 95193 [15:18:54]save to /storage/0327/doc_00095193 [15:18:54]save last doc name /storage/0327/doc_00095193 to /storage/kkm_last_doc_name [15:18:54]save OK [15:18:54]Clear old archive folders... [15:18:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:18:54]tlvbuf is 01A11770 [15:18:54]SAM_PROTO_ClearQueue [15:18:54]wFMCommunicate request_size=4 [15:18:54]MH_SAM_APDU [15:18:54]CAPDU: 80 09 00 00 [15:18:54]Write to MH i2c: E2 08 00 BA 39 80 09 00 00 00 00 00 00 65 [15:18:54]Write i2c OK [15:18:54]MH_I2C_Read... [15:18:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:54]Read from MH i2c: E2 [15:18:54]MH_I2C_Read... [15:18:54]Read from MH i2c: E2 03 00 [15:18:54]MH_I2C_Read... [15:18:54]Read from MH i2c: E2 03 00 BA 39 00 90 00 67 [15:18:54]RAPDU: 90 00 [15:18:54]wFMCommunicate OK [15:18:54]SAM_PROTO_ClearQueue done [15:18:54]KKMCreateOFDPacket [15:18:54]OFDProtocolAddRootSTLVToBuf [15:18:54]FM_MakeSignedData [15:18:54]FM_MakeSignedData [15:18:54]SAM_PROTO_SignData [15:18:54]wFMCommunicate request_size=4 [15:18:54]MH_SAM_APDU [15:18:54]CAPDU: 80 0D 01 02 [15:18:54]Write to MH i2c: E2 08 00 BB 39 80 0D 01 02 00 00 00 00 6D [15:18:54]Write i2c OK [15:18:54]MH_I2C_Read... [15:18:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:54]Read from MH i2c: E2 [15:18:54]MH_I2C_Read... [15:18:54]Read from MH i2c: E2 03 00 [15:18:54]MH_I2C_Read... [15:18:54]Read from MH i2c: E2 03 00 BB 39 00 90 00 68 [15:18:54]RAPDU: 90 00 [15:18:54]wFMCommunicate OK [15:18:54]wFMCommunicate request_size=255 [15:18:54]MH_SAM_APDU [15:18:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 7B 00 00 00 F4 03 04 00 63 72 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D9 73 01 00 35 04 06 00 0C [15:18:54]Write to MH i2c: E2 02 01 BC 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 7B 00 00 00 F4 03 04 00 63 72 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D9 73 01 00 35 04 06 00 0C 00 00 2A [15:18:54]Write i2c OK [15:18:54]MH_I2C_Read... [15:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:54]Read from MH i2c: E2 [15:18:54]MH_I2C_Read... [15:18:54]Read from MH i2c: E2 03 00 [15:18:54]MH_I2C_Read... [15:18:54]Read from MH i2c: E2 03 00 BC 39 00 90 00 69 [15:18:54]RAPDU: 90 00 [15:18:54]wFMCommunicate OK [15:18:54]wFMCommunicate request_size=10 [15:18:54]MH_SAM_APDU [15:18:54]CAPDU: 80 0D 02 02 05 02 F9 F9 27 34 [15:18:54]Write to MH i2c: E2 0D 00 BD 39 80 0D 02 02 05 00 02 F9 F9 27 34 00 00 C9 [15:18:54]Write i2c OK [15:18:54]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 BD 39 00 90 00 6A [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 BE 39 80 0D 03 02 00 00 00 00 72 [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 BE 39 00 9B 65 A5 74 9E 40 01 B3 90 00 1E [15:18:55]RAPDU: 9B 65 A5 74 9E 40 01 B3 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 BF 39 80 11 00 00 00 00 00 00 72 [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 BF 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C2 [15:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:18:55]wFMCommunicate OK [15:18:55]CreateOFDProtocolMessage done [15:18:55]OFDSenderStorePacket 95193 [15:18:55]StoreOFDPacket docnum=95193 [15:18:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1E 8E 07 01 D9 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 7B 00 00 00 F4 03 04 00 63 72 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D9 73 01 00 35 04 06 00 0C 02 F9 F9 27 34 9B 65 A5 74 9E 40 01 B3 [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/00095193 [15:18:55]NVStorageSaveData ofd_packets/00095193 [15:18:55]File name is /storage/ofd_packets/00095193 [15:18:55]Write 301 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 C0 39 F9 [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 C0 39 00 80 00 00 00 FF 0F 8E [15:18:55]RasterBufferAndPrint [15:18:55]line Счет N : (1)196162 [15:18:55]line ИНН: 02508201610067 [15:18:55]line Контрольно-Кассовый Чек [15:18:55]line ПРОДАЖА [15:18:55]line ТРК (МРК, ГНК) : 32 [15:18:55]line Товар: 2710124130 [15:18:55]line Аи-92-К-5 [15:18:55]line 11.130 * 62.90 [15:18:55]line = 700.08 [15:18:55]line НДС 12% НСП 1% [15:18:55]line > о реализуемом товаре [15:18:55]line ОКРУГЛЕНИЕ: -0.08 [15:18:55]line ИТОГО: 700.00 [15:18:55]line Внесено: 700.00 [15:18:55]line СДАЧА: 0.00 [15:18:55]line НСП 1% : 6.19 [15:18:55]line НДС 12% : 74.34 [15:18:55]line Наличными: 700.00 [15:18:55]line Безнал.: 0.00 [15:18:55]line Место: АЗС № 6 "Партнер Нефть" [15:18:55]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:18:55]line СНО: Общий режим [15:18:55]line Чек 123 12.03.2024 15:18 [15:18:55]line Смена: 327 ФФД: 1.0 [15:18:55]line ЗНМ: 0300000009 [15:18:55]line РНМ: 0000000000090555 [15:18:55]line Версия ККМ: 001 [15:18:55]line ФМ: 0000000000874811 [15:18:55]line ФД: 95193 [15:18:55]line ФПД: 13206923323188 [15:18:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T151859&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95193&fm=13206923323188&tin=02508201610067®Number=0000000000090555&sum=70000 [15:18:55]OFD Sender: Processing packet 95193 [packets to send 30, broken 29] [15:18:55]ProducePacketName [15:18:55]name=ofd_packets/00095193 [15:18:55]OFD Sender: To server: pG, [15:18:55]CommunicateWithHost lk.salyk.kg:30040 [15:18:55]ConnectInit lk.salyk.kg [15:18:55]written 0, free lines is 4095 [15:18:55]Connected sock=10 [15:18:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1E 8E 07 01 D9 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 7B 00 00 00 F4 03 04 00 63 72 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D9 73 01 00 35 04 06 00 0C 02 F9 F9 27 34 9B 65 A5 74 9E 40 01 B3 [15:18:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 45 6D 47 00 5E 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D9 73 01 00 F4 03 04 00 B8 1D F0 65 B6 04 01 00 00 21 61 F2 4A A0 90 8B F6 [15:18:55]CommunicateWithHost err = 0 [15:18:55]CheckOFDResponse [15:18:55]1017 (14) - 77093643461234 [15:18:55]1041 (16) - 0000000000874811 [15:18:55]1040 (4) - 95193 [15:18:55]1012 (4) - 12.03.2024 09:17 [15:18:55]1206 (1) - 0 [15:18:55]OFD Sender: Remove packet 95193 [15:18:55]ProducePacketName [15:18:55]name=ofd_packets/00095193 [15:18:55]NVStorageDeleteData [15:18:55]Write to MH i2c: 01 00 00 EB 39 24 [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 EB 39 00 80 00 00 00 4A 0D 02 [15:18:55]RasterBufferAndPrint [15:18:55]line [15:18:55]line [15:18:55]line [15:18:55]line [15:18:55]line [15:18:55]written 0, free lines is 3408 [15:18:55]process_action close_receipt done [15:18:55]requested_data is exist [15:18:55]produce_requested_data [15:18:55]requested_item fm.sn is exist - process it [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 F2 39 80 11 00 00 00 00 00 00 A5 [15:18:55]Write i2c OK [15:18:55]MH_I2C_Read... [15:18:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:56]Read from MH i2c: E2 [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: E2 17 00 [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: E2 17 00 F2 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F5 [15:18:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:18:56]wFMCommunicate OK [15:18:56]requested_item fd.num is exist - process it [15:18:56]SAM_PROTO_GetFieldsCounters [15:18:56]wFMCommunicate request_size=4 [15:18:56]MH_SAM_APDU [15:18:56]CAPDU: 80 13 00 00 [15:18:56]Write to MH i2c: E2 08 00 F3 39 80 13 00 00 00 00 00 00 A8 [15:18:56]Write i2c OK [15:18:56]MH_I2C_Read... [15:18:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:56]Read from MH i2c: E2 [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: E2 62 00 [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: E2 62 00 F3 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D9 73 01 00 0E 04 04 00 47 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 CB [15:18:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D9 73 01 00 0E 04 04 00 47 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:18:56]wFMCommunicate OK [15:18:56]SAM_PROTO_GetFieldsCounters done [15:18:56]requested_item shift.num is exist - process it [15:18:56]requested_item shift.opened is exist - process it [15:18:56]req_shift_opened [15:18:56]FM_GetShiftState [15:18:56]SAM_PROTO_GetShiftState [15:18:56]wFMCommunicate request_size=4 [15:18:56]MH_SAM_APDU [15:18:56]CAPDU: 80 13 01 00 [15:18:56]Write to MH i2c: E2 08 00 F4 39 80 13 01 00 00 00 00 00 AA [15:18:56]Write i2c OK [15:18:56]MH_I2C_Read... [15:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:56]Read from MH i2c: E2 [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: E2 0E 00 [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: E2 0E 00 F4 39 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 1E [15:18:56]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:18:56]wFMCommunicate OK [15:18:56]SAM_PROTO_GetShiftState done [15:18:56]FM_GetShiftState done [15:18:56]req_shift_opened done [15:18:56]requested_item shift.open_date is exist - process it [15:18:56]req_shift_open_date [15:18:56]req_shift_open_date done [15:18:56]produce_requested_data done [15:18:56]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95193,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:18:56]process_action_free close_receipt [15:18:56]json_value_free [15:18:56]json_value_free done [15:18:56]process_json_proto returns [15:18:56]Send response to host [15:18:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95193,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:18:56]free response buf [15:18:56]execute_script done [15:18:56]execute_script returns [15:18:56]free content buf [15:18:56]Sock 9.Close socket [15:18:56]Sock 9.Thread stoped [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:21]accept exits with 8 [15:24:21]New connection [15:24:21]New thread 3066813796 created [15:24:21]Thread 3066957156 joined [15:24:21]Waiting for new connection... [15:24:21] Sock 8.Parse request [15:24:21]Sock 8.Check first char [15:24:21]Sock 8.First char is OK [15:24:21]request: POST /json_proto HTTP/1.0 [15:24:21]Method: POST [15:24:21]URL: /json_proto [15:24:21]Method is POST - this is cgi request [15:24:21]url: /json_proto [15:24:21]query_string will be loaded in cgi processing [15:24:21]execute_cgi json_proto POST (null) [15:24:21]execute_cgi path=json_proto method=POST [15:24:21]POST find Content-Length [15:24:21]Host: 172.17.62.67:8080 [15:24:21]Content-Length: 682 [15:24:21]Content-Type: application/json [15:24:21] [15:24:21]POST finish read [15:24:21]Found Content-Length = 682 [15:24:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:24:21]execute_script... [15:24: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)196163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:24:21]POST & json_proto [15:24:21]process_json_proto [15:24:21]json parsed OK: [15:24:21]protocol is kg_v1.0 [15:24:21]action value=close_receipt [15:24:21]process_action close_receipt [15:24:21]cmd_close_receipt [15:24:21]MH_GetDate [15:24:21]Write to MH i2c: F0 00 00 F5 39 1D [15:24:21]Write i2c OK [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: F0 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: F0 05 00 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: F0 05 00 F5 39 00 AB 73 F0 65 95 [15:24:21]GetLastDocTimeStamp 1710256739 [15:24:21]current date 1710257067 [15:24:21]FM_GetShiftState [15:24:21]SAM_PROTO_GetShiftState [15:24:21]wFMCommunicate request_size=4 [15:24:21]MH_SAM_APDU [15:24:21]CAPDU: 80 13 01 00 [15:24:21]Write to MH i2c: E2 08 00 F6 39 80 13 01 00 00 00 00 00 AC [15:24:21]Write i2c OK [15:24:21]MH_I2C_Read... [15:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:21]Read from MH i2c: E2 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: E2 0E 00 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: E2 0E 00 F6 39 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 20 [15:24:21]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:24:21]wFMCommunicate OK [15:24:21]SAM_PROTO_GetShiftState done [15:24:21]FM_GetShiftState done [15:24:21]opened in 1710201976 [15:24:21]opened+sec_in_day 1710288376 [15:24:21]quantity*price = 100011 [15:24:21]sum+1 = 100012 [15:24:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 124 12.03.2024 15:24 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95194 ФПД: 206271219815034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T152427&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95194&fm=206271219815034&tin=02508201610067®Number=0000000000090555&sum=100000 [15:24:22]StoreToDocumentArchive [15:24:22]shift 327 fd 95194 [15:24:22]save to /storage/0327/doc_00095194 [15:24:22]save last doc name /storage/0327/doc_00095194 to /storage/kkm_last_doc_name [15:24:22]save OK [15:24:22]Clear old archive folders... [15:24:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:22]tlvbuf is 01A5FCA0 [15:24:22]SAM_PROTO_ClearQueue [15:24:22]wFMCommunicate request_size=4 [15:24:22]MH_SAM_APDU [15:24:22]CAPDU: 80 09 00 00 [15:24:22]Write to MH i2c: E2 08 00 03 3A 80 09 00 00 00 00 00 00 AF [15:24:22]Write i2c OK [15:24:22]MH_I2C_Read... [15:24:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:22]Read from MH i2c: E2 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 03 00 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 03 00 03 3A 00 90 00 B1 [15:24:22]RAPDU: 90 00 [15:24:22]wFMCommunicate OK [15:24:22]SAM_PROTO_ClearQueue done [15:24:22]KKMCreateOFDPacket [15:24:22]OFDProtocolAddRootSTLVToBuf [15:24:22]FM_MakeSignedData [15:24:22]FM_MakeSignedData [15:24:22]SAM_PROTO_SignData [15:24:22]wFMCommunicate request_size=4 [15:24:22]MH_SAM_APDU [15:24:22]CAPDU: 80 0D 01 02 [15:24:22]Write to MH i2c: E2 08 00 04 3A 80 0D 01 02 00 00 00 00 B7 [15:24:22]Write i2c OK [15:24:22]MH_I2C_Read... [15:24:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:22]Read from MH i2c: E2 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 03 00 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 03 00 04 3A 00 90 00 B2 [15:24:22]RAPDU: 90 00 [15:24:22]wFMCommunicate OK [15:24:22]wFMCommunicate request_size=255 [15:24:22]MH_SAM_APDU [15:24:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AB 73 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DA 73 01 00 35 04 06 00 BB [15:24:22]Write to MH i2c: E2 02 01 05 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AB 73 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DA 73 01 00 35 04 06 00 BB 00 00 9F [15:24:22]Write i2c OK [15:24:22]MH_I2C_Read... [15:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:23]Read from MH i2c: E2 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 03 00 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 03 00 05 3A 00 90 00 B3 [15:24:23]RAPDU: 90 00 [15:24:23]wFMCommunicate OK [15:24:23]wFMCommunicate request_size=10 [15:24:23]MH_SAM_APDU [15:24:23]CAPDU: 80 0D 02 02 05 9A 42 C8 D2 7A [15:24:23]Write to MH i2c: E2 0D 00 06 3A 80 0D 02 02 05 00 9A 42 C8 D2 7A 00 00 B4 [15:24:23]Write i2c OK [15:24:23]MH_I2C_Read... [15:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:23]Read from MH i2c: E2 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 03 00 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 03 00 06 3A 00 90 00 B4 [15:24:23]RAPDU: 90 00 [15:24:23]wFMCommunicate OK [15:24:23]wFMCommunicate request_size=4 [15:24:23]MH_SAM_APDU [15:24:23]CAPDU: 80 0D 03 02 [15:24:23]Write to MH i2c: E2 08 00 07 3A 80 0D 03 02 00 00 00 00 BC [15:24:23]Write i2c OK [15:24:23]MH_I2C_Read... [15:24:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:23]Read from MH i2c: E2 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 0B 00 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 0B 00 07 3A 00 DA 2C 9D B5 72 0B EB 71 90 00 EE [15:24:23]RAPDU: DA 2C 9D B5 72 0B EB 71 90 00 [15:24:23]wFMCommunicate OK [15:24:23]SAM_PROTO_SignData done [15:24:23]FM_MakeSignedData done [15:24:23]CreateOFDProtocolMessage [15:24:23]wFMCommunicate request_size=4 [15:24:23]MH_SAM_APDU [15:24:23]CAPDU: 80 11 00 00 [15:24:23]Write to MH i2c: E2 08 00 08 3A 80 11 00 00 00 00 00 00 BC [15:24:23]Write i2c OK [15:24:23]MH_I2C_Read... [15:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:23]Read from MH i2c: E2 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 17 00 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 17 00 08 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0C [15:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:24:23]wFMCommunicate OK [15:24:23]CreateOFDProtocolMessage done [15:24:23]OFDSenderStorePacket 95194 [15:24:23]StoreOFDPacket docnum=95194 [15:24:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 FC D1 07 01 49 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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AB 73 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DA 73 01 00 35 04 06 00 BB 9A 42 C8 D2 7A DA 2C 9D B5 72 0B EB 71 [15:24:23]CheckFolder [15:24:23]dirname=/storage/ofd_packets [15:24:23]CheckFolder done [15:24:23]ProducePacketName [15:24:23]name=ofd_packets/00095194 [15:24:23]NVStorageSaveData ofd_packets/00095194 [15:24:23]File name is /storage/ofd_packets/00095194 [15:24:23]Write 301 bytes [15:24:23]NVStorageSaveData done [15:24:23]OFDSenderStorePacket done [15:24:23]KKMCreateOFDPacket done [15:24:23]NVStorageSaveData kkm_last_timestamp [15:24:23]File name is /storage/kkm_last_timestamp [15:24:23]Write 4 bytes [15:24:23]NVStorageSaveData done [15:24:23]ExternCall_PrintAddStr [15:24:23]wPrintStart [15:24:23]Write to MH i2c: 01 00 00 09 3A 43 [15:24:23]Write i2c OK [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: 01 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: 01 07 00 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: 01 07 00 09 3A 00 80 00 00 00 FF 0F D8 [15:24:23]RasterBufferAndPrint [15:24:23]line Счет N : (1)196163 [15:24:23]line ИНН: 02508201610067 [15:24:23]line Контрольно-Кассовый Чек [15:24:23]line ПРОДАЖА [15:24:23]line ТРК (МРК, ГНК) : 42 [15:24:23]line Товар: 2710124130 [15:24:23]line Аи-92-К-5 [15:24:23]line 15.900 * 62.90 [15:24:23]line = 1000.11 [15:24:23]line НДС 12% НСП 1% [15:24:23]line > о реализуемом товаре [15:24:23]line ОКРУГЛЕНИЕ: -0.11 [15:24:23]line ИТОГО: 1000.00 [15:24:23]line Внесено: 1000.00 [15:24:23]line СДАЧА: 0.00 [15:24:23]line НСП 1% : 8.85 [15:24:23]line НДС 12% : 106.21 [15:24:23]line Наличными: 1000.00 [15:24:23]line Безнал.: 0.00 [15:24:23]line Место: АЗС № 6 "Партнер Нефть" [15:24:23]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:24:23]line СНО: Общий режим [15:24:23]line Чек 124 12.03.2024 15:24 [15:24:23]line Смена: 327 ФФД: 1.0 [15:24:23]line ЗНМ: 0300000009 [15:24:23]line РНМ: 0000000000090555 [15:24:23]line Версия ККМ: 001 [15:24:23]line ФМ: 0000000000874811 [15:24:23]line ФД: 95194 [15:24:23]line ФПД: 206271219815034 [15:24:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T152427&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95194&fm=206271219815034&tin=02508201610067®Number=0000000000090555&sum=100000 [15:24:23]OFD Sender: Processing packet 95194 [packets to send 30, broken 29] [15:24:23]ProducePacketName [15:24:23]name=ofd_packets/00095194 [15:24:23]OFD Sender: To server: pG, [15:24:23]CommunicateWithHost lk.salyk.kg:30040 [15:24:23]ConnectInit lk.salyk.kg [15:24:23]written 0, free lines is 4095 [15:24:23]Connected sock=10 [15:24:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 FC D1 07 01 49 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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AB 73 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DA 73 01 00 35 04 06 00 BB 9A 42 C8 D2 7A DA 2C 9D B5 72 0B EB 71 [15:24:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 2F 67 47 00 EA 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DA 73 01 00 F4 03 04 00 01 1F F0 65 B6 04 01 00 00 47 C9 C0 56 59 6A D1 99 [15:24:23]CommunicateWithHost err = 0 [15:24:23]CheckOFDResponse [15:24:23]1017 (14) - 77093643461234 [15:24:23]1041 (16) - 0000000000874811 [15:24:23]1040 (4) - 95194 [15:24:23]1012 (4) - 12.03.2024 09:23 [15:24:23]1206 (1) - 0 [15:24:23]OFD Sender: Remove packet 95194 [15:24:23]ProducePacketName [15:24:23]name=ofd_packets/00095194 [15:24:23]NVStorageDeleteData [15:24:24]Write to MH i2c: 01 00 00 34 3A 6E [15:24:24]Write i2c OK [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: 01 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: 01 07 00 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: 01 07 00 34 3A 00 80 00 00 00 4D 0D 4F [15:24:24]RasterBufferAndPrint [15:24:24]line [15:24:24]line [15:24:24]line [15:24:24]line [15:24:24]line [15:24:24]written 0, free lines is 3413 [15:24:24]process_action close_receipt done [15:24:24]requested_data is exist [15:24:24]produce_requested_data [15:24:24]requested_item fm.sn is exist - process it [15:24:24]wFMCommunicate request_size=4 [15:24:24]MH_SAM_APDU [15:24:24]CAPDU: 80 11 00 00 [15:24:24]Write to MH i2c: E2 08 00 3B 3A 80 11 00 00 00 00 00 00 EF [15:24:24]Write i2c OK [15:24:24]MH_I2C_Read... [15:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:24]Read from MH i2c: E2 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 17 00 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 17 00 3B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3F [15:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:24:24]wFMCommunicate OK [15:24:24]requested_item fd.num is exist - process it [15:24:24]SAM_PROTO_GetFieldsCounters [15:24:24]wFMCommunicate request_size=4 [15:24:24]MH_SAM_APDU [15:24:24]CAPDU: 80 13 00 00 [15:24:24]Write to MH i2c: E2 08 00 3C 3A 80 13 00 00 00 00 00 00 F2 [15:24:24]Write i2c OK [15:24:24]MH_I2C_Read... [15:24:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:24]Read from MH i2c: E2 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 62 00 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 62 00 3C 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DA 73 01 00 0E 04 04 00 47 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 19 [15:24:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DA 73 01 00 0E 04 04 00 47 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:24:24]wFMCommunicate OK [15:24:24]SAM_PROTO_GetFieldsCounters done [15:24:24]requested_item shift.num is exist - process it [15:24:24]requested_item shift.opened is exist - process it [15:24:24]req_shift_opened [15:24:24]FM_GetShiftState [15:24:24]SAM_PROTO_GetShiftState [15:24:24]wFMCommunicate request_size=4 [15:24:24]MH_SAM_APDU [15:24:24]CAPDU: 80 13 01 00 [15:24:24]Write to MH i2c: E2 08 00 3D 3A 80 13 01 00 00 00 00 00 F4 [15:24:24]Write i2c OK [15:24:24]MH_I2C_Read... [15:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:24]OFD Sender: No OFD packet to send [15:24:24]Read from MH i2c: E2 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 0E 00 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 0E 00 3D 3A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 68 [15:24:24]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:24:24]wFMCommunicate OK [15:24:24]SAM_PROTO_GetShiftState done [15:24:24]FM_GetShiftState done [15:24:24]req_shift_opened done [15:24:24]requested_item shift.open_date is exist - process it [15:24:24]req_shift_open_date [15:24:24]req_shift_open_date done [15:24:24]produce_requested_data done [15:24:24]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95194,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:24:24]process_action_free close_receipt [15:24:24]json_value_free [15:24:24]json_value_free done [15:24:24]process_json_proto returns [15:24:24]Send response to host [15:24:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95194,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:24:24]free response buf [15:24:24]execute_script done [15:24:24]execute_script returns [15:24:24]free content buf [15:24:24]Sock 8.Close socket [15:24:24]Sock 8.Thread stoped [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:09]accept exits with 9 [15:27:09]New connection [15:27:09]New thread 3066957156 created [15:27:09]Thread 3066813796 joined [15:27:09]Waiting for new connection... [15:27:09] Sock 9.Parse request [15:27:09]Sock 9.Check first char [15:27:09]Sock 9.First char is OK [15:27:09]request: POST /json_proto HTTP/1.0 [15:27:09]Method: POST [15:27:09]URL: /json_proto [15:27:09]Method is POST - this is cgi request [15:27:09]url: /json_proto [15:27:09]query_string will be loaded in cgi processing [15:27:09]execute_cgi json_proto POST (null) [15:27:09]execute_cgi path=json_proto method=POST [15:27:09]POST find Content-Length [15:27:09]Host: 172.17.62.67:8080 [15:27:09]Content-Length: 816 [15:27:09]Content-Type: application/json [15:27:09] [15:27:09]POST finish read [15:27:09]Found Content-Length = 816 [15:27:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:09]execute_script... [15:27: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)196164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:09]POST & json_proto [15:27:09]process_json_proto [15:27:09]json parsed OK: [15:27:09]protocol is kg_v1.0 [15:27:09]action value=close_receipt [15:27:09]process_action close_receipt [15:27:09]cmd_close_receipt [15:27:09]MH_GetDate [15:27:09]Write to MH i2c: F0 00 00 3E 3A 67 [15:27:09]Write i2c OK [15:27:09]MH_I2C_Read... [15:27:09]Read from MH i2c: F0 [15:27:09]MH_I2C_Read... [15:27:09]Read from MH i2c: F0 05 00 [15:27:09]MH_I2C_Read... [15:27:09]Read from MH i2c: F0 05 00 3E 3A 00 53 74 F0 65 88 [15:27:09]GetLastDocTimeStamp 1710257067 [15:27:09]current date 1710257235 [15:27:09]FM_GetShiftState [15:27:09]SAM_PROTO_GetShiftState [15:27:09]wFMCommunicate request_size=4 [15:27:09]MH_SAM_APDU [15:27:09]CAPDU: 80 13 01 00 [15:27:09]Write to MH i2c: E2 08 00 3F 3A 80 13 01 00 00 00 00 00 F6 [15:27:09]Write i2c OK [15:27:09]MH_I2C_Read... [15:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:09]Read from MH i2c: E2 [15:27:09]MH_I2C_Read... [15:27:09]Read from MH i2c: E2 0E 00 [15:27:09]MH_I2C_Read... [15:27:09]Read from MH i2c: E2 0E 00 3F 3A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 6A [15:27:09]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:27:09]wFMCommunicate OK [15:27:09]SAM_PROTO_GetShiftState done [15:27:09]FM_GetShiftState done [15:27:09]opened in 1710201976 [15:27:09]opened+sec_in_day 1710288376 [15:27:09]quantity*price = 20002 [15:27:09]sum+1 = 20003 [15:27:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.02 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.02 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 125 12.03.2024 15:27 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95195 ФПД: 68278046096019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T152715&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95195&fm=68278046096019&tin=02508201610067®Number=0000000000090555&sum=20002 [15:27:10]StoreToDocumentArchive [15:27:10]shift 327 fd 95195 [15:27:10]save to /storage/0327/doc_00095195 [15:27:10]save last doc name /storage/0327/doc_00095195 to /storage/kkm_last_doc_name [15:27:10]save OK [15:27:10]Clear old archive folders... [15:27:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:10]tlvbuf is 01AD27F0 [15:27:10]SAM_PROTO_ClearQueue [15:27:10]wFMCommunicate request_size=4 [15:27:10]MH_SAM_APDU [15:27:10]CAPDU: 80 09 00 00 [15:27:10]Write to MH i2c: E2 08 00 4C 3A 80 09 00 00 00 00 00 00 F8 [15:27:10]Write i2c OK [15:27:10]MH_I2C_Read... [15:27:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:10]Read from MH i2c: E2 [15:27:10]MH_I2C_Read... [15:27:10]Read from MH i2c: E2 03 00 [15:27:10]MH_I2C_Read... [15:27:10]Read from MH i2c: E2 03 00 4C 3A 00 90 00 FA [15:27:10]RAPDU: 90 00 [15:27:10]wFMCommunicate OK [15:27:10]SAM_PROTO_ClearQueue done [15:27:10]KKMCreateOFDPacket [15:27:10]OFDProtocolAddRootSTLVToBuf [15:27:10]FM_MakeSignedData [15:27:10]FM_MakeSignedData [15:27:10]SAM_PROTO_SignData [15:27:10]wFMCommunicate request_size=4 [15:27:10]MH_SAM_APDU [15:27:10]CAPDU: 80 0D 01 02 [15:27:10]Write to MH i2c: E2 08 00 4D 3A 80 0D 01 02 00 00 00 00 00 [15:27:10]Write i2c OK [15:27:10]MH_I2C_Read... [15:27:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:10]Read from MH i2c: E2 [15:27:10]MH_I2C_Read... [15:27:10]Read from MH i2c: E2 03 00 [15:27:10]MH_I2C_Read... [15:27:10]Read from MH i2c: E2 03 00 4D 3A 00 90 00 FB [15:27:10]RAPDU: 90 00 [15:27:10]wFMCommunicate OK [15:27:10]wFMCommunicate request_size=255 [15:27:10]MH_SAM_APDU [15:27:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 53 74 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DB 73 01 00 35 04 06 00 3E [15:27:10]Write to MH i2c: E2 02 01 4E 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 53 74 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DB 73 01 00 35 04 06 00 3E 00 00 EB [15:27:10]Write i2c OK [15:27:10]MH_I2C_Read... [15:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:11]Read from MH i2c: E2 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 03 00 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 03 00 4E 3A 00 90 00 FC [15:27:11]RAPDU: 90 00 [15:27:11]wFMCommunicate OK [15:27:11]wFMCommunicate request_size=10 [15:27:11]MH_SAM_APDU [15:27:11]CAPDU: 80 0D 02 02 05 19 38 AE FA 93 [15:27:11]Write to MH i2c: E2 0D 00 4F 3A 80 0D 02 02 05 00 19 38 AE FA 93 00 00 99 [15:27:11]Write i2c OK [15:27:11]MH_I2C_Read... [15:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:11]Read from MH i2c: E2 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 03 00 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 03 00 4F 3A 00 90 00 FD [15:27:11]RAPDU: 90 00 [15:27:11]wFMCommunicate OK [15:27:11]wFMCommunicate request_size=4 [15:27:11]MH_SAM_APDU [15:27:11]CAPDU: 80 0D 03 02 [15:27:11]Write to MH i2c: E2 08 00 50 3A 80 0D 03 02 00 00 00 00 05 [15:27:11]Write i2c OK [15:27:11]MH_I2C_Read... [15:27:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:11]Read from MH i2c: E2 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 0B 00 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 0B 00 50 3A 00 54 84 EE 75 59 46 C0 55 90 00 F5 [15:27:11]RAPDU: 54 84 EE 75 59 46 C0 55 90 00 [15:27:11]wFMCommunicate OK [15:27:11]SAM_PROTO_SignData done [15:27:11]FM_MakeSignedData done [15:27:11]CreateOFDProtocolMessage [15:27:11]wFMCommunicate request_size=4 [15:27:11]MH_SAM_APDU [15:27:11]CAPDU: 80 11 00 00 [15:27:11]Write to MH i2c: E2 08 00 51 3A 80 11 00 00 00 00 00 00 05 [15:27:11]Write i2c OK [15:27:11]MH_I2C_Read... [15:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:11]Read from MH i2c: E2 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 17 00 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 17 00 51 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 55 [15:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:27:11]wFMCommunicate OK [15:27:11]CreateOFDProtocolMessage done [15:27:11]OFDSenderStorePacket 95195 [15:27:11]StoreOFDPacket docnum=95195 [15:27:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 58 52 07 01 C3 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 53 74 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DB 73 01 00 35 04 06 00 3E 19 38 AE FA 93 54 84 EE 75 59 46 C0 55 [15:27:11]CheckFolder [15:27:11]dirname=/storage/ofd_packets [15:27:11]CheckFolder done [15:27:11]ProducePacketName [15:27:11]name=ofd_packets/00095195 [15:27:11]NVStorageSaveData ofd_packets/00095195 [15:27:11]File name is /storage/ofd_packets/00095195 [15:27:11]Write 301 bytes [15:27:11]NVStorageSaveData done [15:27:11]OFDSenderStorePacket done [15:27:11]KKMCreateOFDPacket done [15:27:11]NVStorageSaveData kkm_last_timestamp [15:27:11]File name is /storage/kkm_last_timestamp [15:27:11]Write 4 bytes [15:27:11]NVStorageSaveData done [15:27:11]ExternCall_PrintAddStr [15:27:11]wPrintStart [15:27:11]Write to MH i2c: 01 00 00 52 3A 8C [15:27:11]Write i2c OK [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: 01 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: 01 07 00 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: 01 07 00 52 3A 00 80 00 00 00 FF 0F 21 [15:27:11]RasterBufferAndPrint [15:27:11]line Счет N : (1)196164 [15:27:11]line ИНН: 02508201610067 [15:27:11]line Контрольно-Кассовый Чек [15:27:11]line ПРОДАЖА [15:27:11]line ТРК (МРК, ГНК) : 12 [15:27:11]line Товар: 2710124130 [15:27:11]line Аи-92-К-5 [15:27:11]line 3.180 * 62.90 [15:27:11]line = 200.02 [15:27:11]line НДС 12% НСП 1% [15:27:11]line > о реализуемом товаре [15:27:11]line ИТОГО: 200.02 [15:27:11]line НСП 1% : 1.77 [15:27:11]line НДС 12% : 21.24 [15:27:11]line Наличными: 0.00 [15:27:11]line Безнал.: 200.02 [15:27:11]line Место: АЗС № 6 "Партнер Нефть" [15:27:11]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:27:11]line СНО: Общий режим [15:27:11]line Чек 125 12.03.2024 15:27 [15:27:11]line Смена: 327 ФФД: 1.0 [15:27:11]line ЗНМ: 0300000009 [15:27:11]line РНМ: 0000000000090555 [15:27:11]line Версия ККМ: 001 [15:27:11]line Платежная система: Бакай Банк [15:27:11]line ФМ: 0000000000874811 [15:27:11]line ФД: 95195 [15:27:11]line ФПД: 68278046096019 [15:27:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T152715&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95195&fm=68278046096019&tin=02508201610067®Number=0000000000090555&sum=20002 [15:27:11]OFD Sender: Processing packet 95195 [packets to send 30, broken 29] [15:27:11]ProducePacketName [15:27:11]name=ofd_packets/00095195 [15:27:11]OFD Sender: To server: pG, [15:27:11]CommunicateWithHost lk.salyk.kg:30040 [15:27:11]ConnectInit lk.salyk.kg [15:27:11]written 0, free lines is 4095 [15:27:11]Connected sock=10 [15:27:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 58 52 07 01 C3 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 53 74 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DB 73 01 00 35 04 06 00 3E 19 38 AE FA 93 54 84 EE 75 59 46 C0 55 [15:27:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 20 EF 47 00 88 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DB 73 01 00 F4 03 04 00 A9 1F F0 65 B6 04 01 00 00 0B F6 C2 5C A8 B0 F4 C2 [15:27:11]CommunicateWithHost err = 0 [15:27:11]CheckOFDResponse [15:27:11]1017 (14) - 77093643461234 [15:27:11]1041 (16) - 0000000000874811 [15:27:11]1040 (4) - 95195 [15:27:11]1012 (4) - 12.03.2024 09:26 [15:27:11]1206 (1) - 0 [15:27:11]OFD Sender: Remove packet 95195 [15:27:11]ProducePacketName [15:27:11]name=ofd_packets/00095195 [15:27:11]NVStorageDeleteData [15:27:12]Write to MH i2c: 01 00 00 7C 3A B6 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: 01 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: 01 07 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: 01 07 00 7C 3A 00 80 00 00 00 67 0D B1 [15:27:12]RasterBufferAndPrint [15:27:12]line [15:27:12]line [15:27:12]line [15:27:12]line [15:27:12]line [15:27:12]written 0, free lines is 3437 [15:27:12]process_action close_receipt done [15:27:12]requested_data is exist [15:27:12]produce_requested_data [15:27:12]requested_item fm.sn is exist - process it [15:27:12]wFMCommunicate request_size=4 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 11 00 00 [15:27:12]Write to MH i2c: E2 08 00 83 3A 80 11 00 00 00 00 00 00 37 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:12]Read from MH i2c: E2 17 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 17 00 83 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 87 [15:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:27:12]wFMCommunicate OK [15:27:12]requested_item fd.num is exist - process it [15:27:12]SAM_PROTO_GetFieldsCounters [15:27:12]wFMCommunicate request_size=4 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 13 00 00 [15:27:12]Write to MH i2c: E2 08 00 84 3A 80 13 00 00 00 00 00 00 3A [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 62 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 62 00 84 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 73 01 00 0E 04 04 00 47 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 65 [15:27:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 73 01 00 0E 04 04 00 47 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:27:12]wFMCommunicate OK [15:27:12]SAM_PROTO_GetFieldsCounters done [15:27:12]requested_item shift.num is exist - process it [15:27:12]requested_item shift.opened is exist - process it [15:27:12]req_shift_opened [15:27:12]FM_GetShiftState [15:27:12]SAM_PROTO_GetShiftState [15:27:12]wFMCommunicate request_size=4 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 13 01 00 [15:27:12]Write to MH i2c: E2 08 00 85 3A 80 13 01 00 00 00 00 00 3C [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]OFD Sender: No OFD packet to send [15:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 0E 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 0E 00 85 3A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B0 [15:27:12]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:27:12]wFMCommunicate OK [15:27:12]SAM_PROTO_GetShiftState done [15:27:12]FM_GetShiftState done [15:27:12]req_shift_opened done [15:27:12]requested_item shift.open_date is exist - process it [15:27:12]req_shift_open_date [15:27:12]req_shift_open_date done [15:27:12]produce_requested_data done [15:27:12]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95195,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:27:12]process_action_free close_receipt [15:27:12]json_value_free [15:27:12]json_value_free done [15:27:12]process_json_proto returns [15:27:12]Send response to host [15:27:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95195,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:27:12]free response buf [15:27:12]execute_script done [15:27:12]execute_script returns [15:27:12]free content buf [15:27:12]Sock 9.Close socket [15:27:12]Sock 9.Thread stoped [15:27:17]OFD Sender: No OFD packet to send [15:27:20]accept exits with 8 [15:27:20]New connection [15:27:20]New thread 3066813796 created [15:27:20]Thread 3066957156 joined [15:27:20]Waiting for new connection... [15:27:20] Sock 8.Parse request [15:27:20]Sock 8.Check first char [15:27:20]Sock 8.First char is OK [15:27:20]request: POST /json_proto HTTP/1.0 [15:27:20]Method: POST [15:27:20]URL: /json_proto [15:27:20]Method is POST - this is cgi request [15:27:20]url: /json_proto [15:27:20]query_string will be loaded in cgi processing [15:27:20]execute_cgi json_proto POST (null) [15:27:20]execute_cgi path=json_proto method=POST [15:27:20]POST find Content-Length [15:27:20]Host: 172.17.62.67:8080 [15:27:20]Content-Length: 677 [15:27:20]Content-Type: application/json [15:27:20] [15:27:20]POST finish read [15:27:20]Found Content-Length = 677 [15:27:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.500, "sum" : 220.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:20]execute_script... [15:27:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.500, "sum" : 220.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:20]POST & json_proto [15:27:20]process_json_proto [15:27:20]json parsed OK: [15:27:20]protocol is kg_v1.0 [15:27:20]action value=close_receipt [15:27:20]process_action close_receipt [15:27:20]cmd_close_receipt [15:27:20]MH_GetDate [15:27:20]Write to MH i2c: F0 00 00 86 3A AF [15:27:20]Write i2c OK [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: F0 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: F0 05 00 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: F0 05 00 86 3A 00 5D 74 F0 65 DA [15:27:20]GetLastDocTimeStamp 1710257235 [15:27:20]current date 1710257245 [15:27:20]FM_GetShiftState [15:27:20]SAM_PROTO_GetShiftState [15:27:20]wFMCommunicate request_size=4 [15:27:20]MH_SAM_APDU [15:27:20]CAPDU: 80 13 01 00 [15:27:20]Write to MH i2c: E2 08 00 87 3A 80 13 01 00 00 00 00 00 3E [15:27:20]Write i2c OK [15:27:20]MH_I2C_Read... [15:27:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:20]Read from MH i2c: E2 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 0E 00 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 0E 00 87 3A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B2 [15:27:20]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:27:20]wFMCommunicate OK [15:27:20]SAM_PROTO_GetShiftState done [15:27:20]FM_GetShiftState done [15:27:20]opened in 1710201976 [15:27:20]opened+sec_in_day 1710288376 [15:27:20]quantity*price = 22015 [15:27:20]sum+1 = 22016 [15:27:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.38 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 126 12.03.2024 15:27 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95196 ФПД: 12196579752964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T152726&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95196&fm=12196579752964&tin=02508201610067®Number=0000000000090555&sum=22000 [15:27:21]StoreToDocumentArchive [15:27:21]shift 327 fd 95196 [15:27:21]save to /storage/0327/doc_00095196 [15:27:21]save last doc name /storage/0327/doc_00095196 to /storage/kkm_last_doc_name [15:27:21]save OK [15:27:21]Clear old archive folders... [15:27:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:21]tlvbuf is 01A4C430 [15:27:21]SAM_PROTO_ClearQueue [15:27:21]wFMCommunicate request_size=4 [15:27:21]MH_SAM_APDU [15:27:21]CAPDU: 80 09 00 00 [15:27:21]Write to MH i2c: E2 08 00 94 3A 80 09 00 00 00 00 00 00 40 [15:27:21]Write i2c OK [15:27:21]MH_I2C_Read... [15:27:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:21]Read from MH i2c: E2 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: E2 03 00 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: E2 03 00 94 3A 00 90 00 42 [15:27:21]RAPDU: 90 00 [15:27:21]wFMCommunicate OK [15:27:21]SAM_PROTO_ClearQueue done [15:27:21]KKMCreateOFDPacket [15:27:21]OFDProtocolAddRootSTLVToBuf [15:27:21]FM_MakeSignedData [15:27:21]FM_MakeSignedData [15:27:21]SAM_PROTO_SignData [15:27:21]wFMCommunicate request_size=4 [15:27:21]MH_SAM_APDU [15:27:21]CAPDU: 80 0D 01 02 [15:27:21]Write to MH i2c: E2 08 00 95 3A 80 0D 01 02 00 00 00 00 48 [15:27:21]Write i2c OK [15:27:21]MH_I2C_Read... [15:27:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:21]Read from MH i2c: E2 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: E2 03 00 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: E2 03 00 95 3A 00 90 00 43 [15:27:21]RAPDU: 90 00 [15:27:21]wFMCommunicate OK [15:27:21]wFMCommunicate request_size=255 [15:27:21]MH_SAM_APDU [15:27:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 0D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 FF 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5E 74 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DC 73 01 00 35 04 06 00 0B [15:27:21]Write to MH i2c: E2 02 01 96 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 0D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 FF 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5E 74 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DC 73 01 00 35 04 06 00 0B 00 00 C5 [15:27:21]Write i2c OK [15:27:21]MH_I2C_Read... [15:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:21]Read from MH i2c: E2 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: E2 03 00 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: E2 03 00 96 3A 00 90 00 44 [15:27:21]RAPDU: 90 00 [15:27:21]wFMCommunicate OK [15:27:21]wFMCommunicate request_size=10 [15:27:21]MH_SAM_APDU [15:27:21]CAPDU: 80 0D 02 02 05 17 BC CD BC 04 [15:27:21]Write to MH i2c: E2 0D 00 97 3A 80 0D 02 02 05 00 17 BC CD BC 04 00 00 B5 [15:27:21]Write i2c OK [15:27:21]MH_I2C_Read... [15:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:21]Read from MH i2c: E2 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: E2 03 00 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: E2 03 00 97 3A 00 90 00 45 [15:27:21]RAPDU: 90 00 [15:27:21]wFMCommunicate OK [15:27:21]wFMCommunicate request_size=4 [15:27:21]MH_SAM_APDU [15:27:21]CAPDU: 80 0D 03 02 [15:27:21]Write to MH i2c: E2 08 00 98 3A 80 0D 03 02 00 00 00 00 4D [15:27:21]Write i2c OK [15:27:21]MH_I2C_Read... [15:27:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:21]Read from MH i2c: E2 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: E2 0B 00 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: E2 0B 00 98 3A 00 19 8B F8 03 29 7E 7D D5 90 00 E6 [15:27:21]RAPDU: 19 8B F8 03 29 7E 7D D5 90 00 [15:27:21]wFMCommunicate OK [15:27:21]SAM_PROTO_SignData done [15:27:21]FM_MakeSignedData done [15:27:21]CreateOFDProtocolMessage [15:27:21]wFMCommunicate request_size=4 [15:27:21]MH_SAM_APDU [15:27:21]CAPDU: 80 11 00 00 [15:27:21]Write to MH i2c: E2 08 00 99 3A 80 11 00 00 00 00 00 00 4D [15:27:21]Write i2c OK [15:27:21]MH_I2C_Read... [15:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:21]Read from MH i2c: E2 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: E2 17 00 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: E2 17 00 99 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9D [15:27:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:27:21]wFMCommunicate OK [15:27:21]CreateOFDProtocolMessage done [15:27:21]OFDSenderStorePacket 95196 [15:27:21]StoreOFDPacket docnum=95196 [15:27:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F3 22 07 01 92 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 0D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 FF 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5E 74 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DC 73 01 00 35 04 06 00 0B 17 BC CD BC 04 19 8B F8 03 29 7E 7D D5 [15:27:21]CheckFolder [15:27:21]dirname=/storage/ofd_packets [15:27:21]CheckFolder done [15:27:21]ProducePacketName [15:27:21]name=ofd_packets/00095196 [15:27:21]NVStorageSaveData ofd_packets/00095196 [15:27:21]File name is /storage/ofd_packets/00095196 [15:27:21]Write 301 bytes [15:27:21]NVStorageSaveData done [15:27:21]OFDSenderStorePacket done [15:27:21]KKMCreateOFDPacket done [15:27:21]NVStorageSaveData kkm_last_timestamp [15:27:21]File name is /storage/kkm_last_timestamp [15:27:21]Write 4 bytes [15:27:21]NVStorageSaveData done [15:27:21]ExternCall_PrintAddStr [15:27:21]wPrintStart [15:27:21]Write to MH i2c: 01 00 00 9A 3A D4 [15:27:21]Write i2c OK [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: 01 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: 01 07 00 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: 01 07 00 9A 3A 00 80 00 00 00 FF 0F 69 [15:27:21]RasterBufferAndPrint [15:27:21]line Счет N : (1)196165 [15:27:21]line ИНН: 02508201610067 [15:27:21]line Контрольно-Кассовый Чек [15:27:21]line ПРОДАЖА [15:27:21]line ТРК (МРК, ГНК) : 12 [15:27:21]line Товар: 2710124130 [15:27:21]line Аи-92-К-5 [15:27:21]line 3.500 * 62.90 [15:27:21]line = 220.15 [15:27:21]line НДС 12% НСП 1% [15:27:21]line > о реализуемом товаре [15:27:21]line ОКРУГЛЕНИЕ: -0.15 [15:27:21]line ИТОГО: 220.00 [15:27:21]line Внесено: 220.00 [15:27:21]line СДАЧА: 0.00 [15:27:21]line НСП 1% : 1.95 [15:27:21]line НДС 12% : 23.38 [15:27:21]line Наличными: 220.00 [15:27:21]line Безнал.: 0.00 [15:27:21]line Место: АЗС № 6 "Партнер Нефть" [15:27:21]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:27:21]line СНО: Общий режим [15:27:21]line Чек 126 12.03.2024 15:27 [15:27:21]line Смена: 327 ФФД: 1.0 [15:27:21]line ЗНМ: 0300000009 [15:27:21]line РНМ: 0000000000090555 [15:27:21]line Версия ККМ: 001 [15:27:21]line ФМ: 0000000000874811 [15:27:21]line ФД: 95196 [15:27:21]line ФПД: 12196579752964 [15:27:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T152726&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95196&fm=12196579752964&tin=02508201610067®Number=0000000000090555&sum=22000 [15:27:21]written 0, free lines is 4095 [15:27:21]OFD Sender: Processing packet 95196 [packets to send 30, broken 29] [15:27:21]ProducePacketName [15:27:21]name=ofd_packets/00095196 [15:27:21]OFD Sender: To server: pG, [15:27:21]CommunicateWithHost lk.salyk.kg:30040 [15:27:21]ConnectInit lk.salyk.kg [15:27:22]Connected sock=10 [15:27:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F3 22 07 01 92 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 0D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 FF 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5E 74 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DC 73 01 00 35 04 06 00 0B 17 BC CD BC 04 19 8B F8 03 29 7E 7D D5 [15:27:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 12 36 47 00 C4 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DC 73 01 00 F4 03 04 00 B3 1F F0 65 B6 04 01 00 00 BB CF 4A 79 A6 63 F5 80 [15:27:22]CommunicateWithHost err = 0 [15:27:22]CheckOFDResponse [15:27:22]1017 (14) - 77093643461234 [15:27:22]1041 (16) - 0000000000874811 [15:27:22]1040 (4) - 95196 [15:27:22]1012 (4) - 12.03.2024 09:26 [15:27:22]1206 (1) - 0 [15:27:22]OFD Sender: Remove packet 95196 [15:27:22]ProducePacketName [15:27:22]name=ofd_packets/00095196 [15:27:22]NVStorageDeleteData [15:27:22]Write to MH i2c: 01 00 00 C5 3A FF [15:27:22]Write i2c OK [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: 01 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: 01 07 00 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: 01 07 00 C5 3A 00 80 00 00 00 54 0D E7 [15:27:22]RasterBufferAndPrint [15:27:22]line [15:27:22]line [15:27:22]line [15:27:22]line [15:27:22]line [15:27:22]written 0, free lines is 3422 [15:27:22]process_action close_receipt done [15:27:22]requested_data is exist [15:27:22]produce_requested_data [15:27:22]requested_item fm.sn is exist - process it [15:27:22]wFMCommunicate request_size=4 [15:27:22]MH_SAM_APDU [15:27:22]CAPDU: 80 11 00 00 [15:27:22]Write to MH i2c: E2 08 00 CC 3A 80 11 00 00 00 00 00 00 80 [15:27:22]Write i2c OK [15:27:22]MH_I2C_Read... [15:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:22]Read from MH i2c: E2 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 17 00 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 17 00 CC 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D0 [15:27:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:27:22]wFMCommunicate OK [15:27:22]requested_item fd.num is exist - process it [15:27:22]SAM_PROTO_GetFieldsCounters [15:27:22]wFMCommunicate request_size=4 [15:27:22]MH_SAM_APDU [15:27:22]CAPDU: 80 13 00 00 [15:27:22]Write to MH i2c: E2 08 00 CD 3A 80 13 00 00 00 00 00 00 83 [15:27:22]Write i2c OK [15:27:22]MH_I2C_Read... [15:27:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:22]Read from MH i2c: E2 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 62 00 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 62 00 CD 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DC 73 01 00 0E 04 04 00 47 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 B2 [15:27:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DC 73 01 00 0E 04 04 00 47 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 [15:27:22]wFMCommunicate OK [15:27:22]SAM_PROTO_GetFieldsCounters done [15:27:22]requested_item shift.num is exist - process it [15:27:22]requested_item shift.opened is exist - process it [15:27:22]req_shift_opened [15:27:22]FM_GetShiftState [15:27:22]SAM_PROTO_GetShiftState [15:27:22]wFMCommunicate request_size=4 [15:27:22]MH_SAM_APDU [15:27:22]CAPDU: 80 13 01 00 [15:27:22]Write to MH i2c: E2 08 00 CE 3A 80 13 01 00 00 00 00 00 85 [15:27:22]Write i2c OK [15:27:22]MH_I2C_Read... [15:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:22]Read from MH i2c: E2 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 0E 00 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 0E 00 CE 3A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F9 [15:27:22]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:27:22]wFMCommunicate OK [15:27:22]SAM_PROTO_GetShiftState done [15:27:22]FM_GetShiftState done [15:27:22]req_shift_opened done [15:27:22]requested_item shift.open_date is exist - process it [15:27:22]req_shift_open_date [15:27:22]req_shift_open_date done [15:27:22]produce_requested_data done [15:27:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95196,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:27:22]process_action_free close_receipt [15:27:22]json_value_free [15:27:22]json_value_free done [15:27:22]process_json_proto returns [15:27:22]Send response to host [15:27:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95196,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:27:22]free response buf [15:27:22]execute_script done [15:27:22]execute_script returns [15:27:22]free content buf [15:27:22]Sock 8.Close socket [15:27:22]Sock 8.Thread stoped [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:20]accept exits with 9 [15:32:20]New connection [15:32:20]New thread 3066957156 created [15:32:20]Thread 3066813796 joined [15:32:20]Waiting for new connection... [15:32:20] Sock 9.Parse request [15:32:20]Sock 9.Check first char [15:32:20]Sock 9.First char is OK [15:32:20]request: POST /json_proto HTTP/1.0 [15:32:20]Method: POST [15:32:20]URL: /json_proto [15:32:20]Method is POST - this is cgi request [15:32:20]url: /json_proto [15:32:20]query_string will be loaded in cgi processing [15:32:20]execute_cgi json_proto POST (null) [15:32:20]execute_cgi path=json_proto method=POST [15:32:20]POST find Content-Length [15:32:20]Host: 172.17.62.67:8080 [15:32:20]Content-Length: 816 [15:32:20]Content-Type: application/json [15:32:20] [15:32:20]POST finish read [15:32:20]Found Content-Length = 816 [15:32:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:20]execute_script... [15:32: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)196166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:20]POST & json_proto [15:32:20]process_json_proto [15:32:20]json parsed OK: [15:32:20]protocol is kg_v1.0 [15:32:20]action value=close_receipt [15:32:20]process_action close_receipt [15:32:20]cmd_close_receipt [15:32:20]MH_GetDate [15:32:20]Write to MH i2c: F0 00 00 CF 3A F8 [15:32:20]Write i2c OK [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: F0 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: F0 05 00 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: F0 05 00 CF 3A 00 8A 75 F0 65 51 [15:32:20]GetLastDocTimeStamp 1710257246 [15:32:20]current date 1710257546 [15:32:20]FM_GetShiftState [15:32:20]SAM_PROTO_GetShiftState [15:32:20]wFMCommunicate request_size=4 [15:32:20]MH_SAM_APDU [15:32:20]CAPDU: 80 13 01 00 [15:32:20]Write to MH i2c: E2 08 00 D0 3A 80 13 01 00 00 00 00 00 87 [15:32:20]Write i2c OK [15:32:20]MH_I2C_Read... [15:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:20]Read from MH i2c: E2 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: E2 0E 00 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: E2 0E 00 D0 3A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 FB [15:32:20]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:32:20]wFMCommunicate OK [15:32:20]SAM_PROTO_GetShiftState done [15:32:20]FM_GetShiftState done [15:32:20]opened in 1710201976 [15:32:20]opened+sec_in_day 1710288376 [15:32:20]quantity*price = 50005 [15:32:20]sum+1 = 50007 [15:32:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.06 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.06 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 127 12.03.2024 15:32 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95197 ФПД: 30185076411070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T153226&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95197&fm=30185076411070&tin=02508201610067®Number=0000000000090555&sum=50006 [15:32:21]StoreToDocumentArchive [15:32:21]shift 327 fd 95197 [15:32:21]save to /storage/0327/doc_00095197 [15:32:21]save last doc name /storage/0327/doc_00095197 to /storage/kkm_last_doc_name [15:32:21]save OK [15:32:21]Clear old archive folders... [15:32:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:21]tlvbuf is 01B3CA80 [15:32:21]SAM_PROTO_ClearQueue [15:32:21]wFMCommunicate request_size=4 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 09 00 00 [15:32:21]Write to MH i2c: E2 08 00 DD 3A 80 09 00 00 00 00 00 00 89 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 DD 3A 00 90 00 8B [15:32:21]RAPDU: 90 00 [15:32:21]wFMCommunicate OK [15:32:21]SAM_PROTO_ClearQueue done [15:32:21]KKMCreateOFDPacket [15:32:21]OFDProtocolAddRootSTLVToBuf [15:32:21]FM_MakeSignedData [15:32:21]FM_MakeSignedData [15:32:21]SAM_PROTO_SignData [15:32:21]wFMCommunicate request_size=4 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 0D 01 02 [15:32:21]Write to MH i2c: E2 08 00 DE 3A 80 0D 01 02 00 00 00 00 91 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 DE 3A 00 90 00 8C [15:32:21]RAPDU: 90 00 [15:32:21]wFMCommunicate OK [15:32:21]wFMCommunicate request_size=255 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 8A 75 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DD 73 01 00 35 04 06 00 1B [15:32:21]Write to MH i2c: E2 02 01 DF 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 8A 75 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DD 73 01 00 35 04 06 00 1B 00 00 CD [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 DF 3A 00 90 00 8D [15:32:21]RAPDU: 90 00 [15:32:21]wFMCommunicate OK [15:32:21]wFMCommunicate request_size=10 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 0D 02 02 05 74 02 C1 CA BE [15:32:21]Write to MH i2c: E2 0D 00 E0 3A 80 0D 02 02 05 00 74 02 C1 CA BE 00 00 5D [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 E0 3A 00 90 00 8E [15:32:21]RAPDU: 90 00 [15:32:21]wFMCommunicate OK [15:32:21]wFMCommunicate request_size=4 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 0D 03 02 [15:32:21]Write to MH i2c: E2 08 00 E1 3A 80 0D 03 02 00 00 00 00 96 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 0B 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 0B 00 E1 3A 00 CF D6 6B A5 B5 64 9C F5 90 00 F6 [15:32:21]RAPDU: CF D6 6B A5 B5 64 9C F5 90 00 [15:32:21]wFMCommunicate OK [15:32:21]SAM_PROTO_SignData done [15:32:21]FM_MakeSignedData done [15:32:21]CreateOFDProtocolMessage [15:32:21]wFMCommunicate request_size=4 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 11 00 00 [15:32:21]Write to MH i2c: E2 08 00 E2 3A 80 11 00 00 00 00 00 00 96 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 17 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 17 00 E2 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E6 [15:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:32:21]wFMCommunicate OK [15:32:21]CreateOFDProtocolMessage done [15:32:21]OFDSenderStorePacket 95197 [15:32:21]StoreOFDPacket docnum=95197 [15:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 43 98 07 01 10 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 8A 75 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DD 73 01 00 35 04 06 00 1B 74 02 C1 CA BE CF D6 6B A5 B5 64 9C F5 [15:32:21]CheckFolder [15:32:21]dirname=/storage/ofd_packets [15:32:21]CheckFolder done [15:32:21]ProducePacketName [15:32:21]name=ofd_packets/00095197 [15:32:21]NVStorageSaveData ofd_packets/00095197 [15:32:21]File name is /storage/ofd_packets/00095197 [15:32:21]Write 301 bytes [15:32:21]NVStorageSaveData done [15:32:21]OFDSenderStorePacket done [15:32:21]KKMCreateOFDPacket done [15:32:21]NVStorageSaveData kkm_last_timestamp [15:32:21]File name is /storage/kkm_last_timestamp [15:32:21]Write 4 bytes [15:32:21]NVStorageSaveData done [15:32:21]ExternCall_PrintAddStr [15:32:21]wPrintStart [15:32:21]Write to MH i2c: 01 00 00 E3 3A 1D [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: 01 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: 01 07 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: 01 07 00 E3 3A 00 80 00 00 00 FF 0F B2 [15:32:21]RasterBufferAndPrint [15:32:21]line Счет N : (1)196166 [15:32:21]line ИНН: 02508201610067 [15:32:21]line Контрольно-Кассовый Чек [15:32:21]line ПРОДАЖА [15:32:21]line ТРК (МРК, ГНК) : 32 [15:32:21]line Товар: 2710124130 [15:32:21]line Аи-92-К-5 [15:32:21]line 7.950 * 62.90 [15:32:21]line = 500.06 [15:32:21]line НДС 12% НСП 1% [15:32:21]line > о реализуемом товаре [15:32:21]line ИТОГО: 500.06 [15:32:21]line НСП 1% : 4.42 [15:32:21]line НДС 12% : 53.10 [15:32:21]line Наличными: 0.00 [15:32:21]line Безнал.: 500.06 [15:32:21]line Место: АЗС № 6 "Партнер Нефть" [15:32:21]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:32:21]line СНО: Общий режим [15:32:21]line Чек 127 12.03.2024 15:32 [15:32:21]line Смена: 327 ФФД: 1.0 [15:32:21]line ЗНМ: 0300000009 [15:32:21]line РНМ: 0000000000090555 [15:32:21]line Версия ККМ: 001 [15:32:21]line Платежная система: Бакай Банк [15:32:21]line ФМ: 0000000000874811 [15:32:21]line ФД: 95197 [15:32:21]line ФПД: 30185076411070 [15:32:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T153226&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95197&fm=30185076411070&tin=02508201610067®Number=0000000000090555&sum=50006 [15:32:22]OFD Sender: Processing packet 95197 [packets to send 30, broken 29] [15:32:22]ProducePacketName [15:32:22]name=ofd_packets/00095197 [15:32:22]OFD Sender: To server: pG, [15:32:22]CommunicateWithHost lk.salyk.kg:30040 [15:32:22]ConnectInit lk.salyk.kg [15:32:22]written 0, free lines is 4095 [15:32:22]Connected sock=10 [15:32:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 43 98 07 01 10 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 8A 75 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DD 73 01 00 35 04 06 00 1B 74 02 C1 CA BE CF D6 6B A5 B5 64 9C F5 [15:32:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E9 D3 47 00 BF 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DD 73 01 00 F4 03 04 00 DF 20 F0 65 B6 04 01 00 00 FC BB 81 9D 2F E0 0D E9 [15:32:22]CommunicateWithHost err = 0 [15:32:22]CheckOFDResponse [15:32:22]1017 (14) - 77093643461234 [15:32:22]1041 (16) - 0000000000874811 [15:32:22]1040 (4) - 95197 [15:32:22]1012 (4) - 12.03.2024 09:31 [15:32:22]1206 (1) - 0 [15:32:22]OFD Sender: Remove packet 95197 [15:32:22]ProducePacketName [15:32:22]name=ofd_packets/00095197 [15:32:22]NVStorageDeleteData [15:32:22]Write to MH i2c: 01 00 00 0D 3B 48 [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 07 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 07 00 0D 3B 00 80 00 00 00 64 0D 40 [15:32:22]RasterBufferAndPrint [15:32:22]line [15:32:22]line [15:32:22]line [15:32:22]line [15:32:22]line [15:32:22]written 0, free lines is 3434 [15:32:22]process_action close_receipt done [15:32:22]requested_data is exist [15:32:22]produce_requested_data [15:32:22]requested_item fm.sn is exist - process it [15:32:22]wFMCommunicate request_size=4 [15:32:22]MH_SAM_APDU [15:32:22]CAPDU: 80 11 00 00 [15:32:22]Write to MH i2c: E2 08 00 14 3B 80 11 00 00 00 00 00 00 C9 [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 17 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 17 00 14 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 19 [15:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:32:22]wFMCommunicate OK [15:32:22]requested_item fd.num is exist - process it [15:32:22]SAM_PROTO_GetFieldsCounters [15:32:22]wFMCommunicate request_size=4 [15:32:22]MH_SAM_APDU [15:32:22]CAPDU: 80 13 00 00 [15:32:22]Write to MH i2c: E2 08 00 15 3B 80 13 00 00 00 00 00 00 CC [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 62 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 62 00 15 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DD 73 01 00 0E 04 04 00 47 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 FF [15:32:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DD 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:22]wFMCommunicate OK [15:32:22]SAM_PROTO_GetFieldsCounters done [15:32:22]requested_item shift.num is exist - process it [15:32:22]requested_item shift.opened is exist - process it [15:32:22]req_shift_opened [15:32:22]FM_GetShiftState [15:32:22]SAM_PROTO_GetShiftState [15:32:22]wFMCommunicate request_size=4 [15:32:22]MH_SAM_APDU [15:32:22]CAPDU: 80 13 01 00 [15:32:22]Write to MH i2c: E2 08 00 16 3B 80 13 01 00 00 00 00 00 CE [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 0E 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 0E 00 16 3B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 42 [15:32:22]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:32:22]wFMCommunicate OK [15:32:22]SAM_PROTO_GetShiftState done [15:32:22]FM_GetShiftState done [15:32:22]req_shift_opened done [15:32:22]requested_item shift.open_date is exist - process it [15:32:22]req_shift_open_date [15:32:22]req_shift_open_date done [15:32:22]produce_requested_data done [15:32:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95197,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:32:22]process_action_free close_receipt [15:32:22]json_value_free [15:32:22]json_value_free done [15:32:22]process_json_proto returns [15:32:22]Send response to host [15:32:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95197,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:32:22]free response buf [15:32:22]execute_script done [15:32:22]execute_script returns [15:32:22]free content buf [15:32:22]Sock 9.Close socket [15:32:22]Sock 9.Thread stoped [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:33]OFD Sender: No OFD packet to send [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:48]OFD Sender: No OFD packet to send [15:33:53]OFD Sender: No OFD packet to send [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:08]OFD Sender: No OFD packet to send [15:34:13]OFD Sender: No OFD packet to send [15:34:18]OFD Sender: No OFD packet to send [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:33]OFD Sender: No OFD packet to send [15:35:38]OFD Sender: No OFD packet to send [15:35:43]OFD Sender: No OFD packet to send [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:13]OFD Sender: No OFD packet to send [15:36:18]OFD Sender: No OFD packet to send [15:36:23]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:43]OFD Sender: No OFD packet to send [15:37:48]OFD Sender: No OFD packet to send [15:37:53]OFD Sender: No OFD packet to send [15:37:58]OFD Sender: No OFD packet to send [15:38:03]OFD Sender: No OFD packet to send [15:38:08]OFD Sender: No OFD packet to send [15:38:13]OFD Sender: No OFD packet to send [15:38:18]OFD Sender: No OFD packet to send [15:38:23]OFD Sender: No OFD packet to send [15:38:28]OFD Sender: No OFD packet to send [15:38:33]OFD Sender: No OFD packet to send [15:38:38]OFD Sender: No OFD packet to send [15:38:43]OFD Sender: No OFD packet to send [15:38:48]OFD Sender: No OFD packet to send [15:38:53]OFD Sender: No OFD packet to send [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:43]OFD Sender: No OFD packet to send [15:43:48]OFD Sender: No OFD packet to send [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]accept exits with 8 [15:44:23]New connection [15:44:23]New thread 3066813796 created [15:44:23]Thread 3066957156 joined [15:44:23]Waiting for new connection... [15:44:23] Sock 8.Parse request [15:44:23]Sock 8.Check first char [15:44:23]Sock 8.First char is OK [15:44:23]request: POST /json_proto HTTP/1.0 [15:44:23]Method: POST [15:44:23]URL: /json_proto [15:44:23]Method is POST - this is cgi request [15:44:23]url: /json_proto [15:44:23]query_string will be loaded in cgi processing [15:44:23]execute_cgi json_proto POST (null) [15:44:23]execute_cgi path=json_proto method=POST [15:44:23]POST find Content-Length [15:44:23]Host: 172.17.62.67:8080 [15:44:23]Content-Length: 682 [15:44:23]Content-Type: application/json [15:44:23] [15:44:23]POST finish read [15:44:23]Found Content-Length = 682 [15:44:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "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:44:23]execute_script... [15:44: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)196167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "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:44:23]POST & json_proto [15:44:23]process_json_proto [15:44:23]json parsed OK: [15:44:23]protocol is kg_v1.0 [15:44:23]action value=close_receipt [15:44:23]process_action close_receipt [15:44:23]cmd_close_receipt [15:44:23]MH_GetDate [15:44:23]Write to MH i2c: F0 00 00 17 3B 41 [15:44:23]Write i2c OK [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: F0 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: F0 05 00 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: F0 05 00 17 3B 00 5C 78 F0 65 6F [15:44:23]GetLastDocTimeStamp 1710257546 [15:44:23]current date 1710258268 [15:44:23]FM_GetShiftState [15:44:23]SAM_PROTO_GetShiftState [15:44:23]wFMCommunicate request_size=4 [15:44:23]MH_SAM_APDU [15:44:23]CAPDU: 80 13 01 00 [15:44:23]Write to MH i2c: E2 08 00 18 3B 80 13 01 00 00 00 00 00 D0 [15:44:23]Write i2c OK [15:44:23]MH_I2C_Read... [15:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:23]Read from MH i2c: E2 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 0E 00 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 0E 00 18 3B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 44 [15:44:23]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:44:23]wFMCommunicate OK [15:44:23]SAM_PROTO_GetShiftState done [15:44:23]FM_GetShiftState done [15:44:23]opened in 1710201976 [15:44:23]opened+sec_in_day 1710288376 [15:44:23]quantity*price = 200021 [15:44:23]sum+1 = 200022 [15:44:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 128 12.03.2024 15:44 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95198 ФПД: 241022020903648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T154429&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95198&fm=241022020903648&tin=02508201610067®Number=0000000000090555&sum=200000 [15:44:24]StoreToDocumentArchive [15:44:24]shift 327 fd 95198 [15:44:24]save to /storage/0327/doc_00095198 [15:44:24]save last doc name /storage/0327/doc_00095198 to /storage/kkm_last_doc_name [15:44:24]save OK [15:44:24]Clear old archive folders... [15:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:24]tlvbuf is B6F56440 [15:44:24]SAM_PROTO_ClearQueue [15:44:24]wFMCommunicate request_size=4 [15:44:24]MH_SAM_APDU [15:44:24]CAPDU: 80 09 00 00 [15:44:24]Write to MH i2c: E2 08 00 25 3B 80 09 00 00 00 00 00 00 D2 [15:44:24]Write i2c OK [15:44:24]MH_I2C_Read... [15:44:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:24]Read from MH i2c: E2 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: E2 03 00 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: E2 03 00 25 3B 00 90 00 D4 [15:44:24]RAPDU: 90 00 [15:44:24]wFMCommunicate OK [15:44:24]SAM_PROTO_ClearQueue done [15:44:24]KKMCreateOFDPacket [15:44:24]OFDProtocolAddRootSTLVToBuf [15:44:24]FM_MakeSignedData [15:44:24]FM_MakeSignedData [15:44:24]SAM_PROTO_SignData [15:44:24]wFMCommunicate request_size=4 [15:44:24]MH_SAM_APDU [15:44:24]CAPDU: 80 0D 01 02 [15:44:24]Write to MH i2c: E2 08 00 26 3B 80 0D 01 02 00 00 00 00 DA [15:44:24]Write i2c OK [15:44:24]MH_I2C_Read... [15:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:24]Read from MH i2c: E2 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: E2 03 00 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: E2 03 00 26 3B 00 90 00 D5 [15:44:24]RAPDU: 90 00 [15:44:24]wFMCommunicate OK [15:44:24]wFMCommunicate request_size=255 [15:44:24]MH_SAM_APDU [15:44: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 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 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 F9 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 80 00 00 00 F4 03 04 00 5D 78 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DE 73 01 00 35 04 06 00 DB [15:44:24]Write to MH i2c: E2 02 01 27 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 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 F9 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 80 00 00 00 F4 03 04 00 5D 78 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DE 73 01 00 35 04 06 00 DB 00 00 60 [15:44:24]Write i2c OK [15:44:24]MH_I2C_Read... [15:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:24]Read from MH i2c: E2 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: E2 03 00 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: E2 03 00 27 3B 00 90 00 D6 [15:44:24]RAPDU: 90 00 [15:44:24]wFMCommunicate OK [15:44:24]wFMCommunicate request_size=10 [15:44:24]MH_SAM_APDU [15:44:24]CAPDU: 80 0D 02 02 05 35 4F F0 62 E0 [15:44:24]Write to MH i2c: E2 0D 00 28 3B 80 0D 02 02 05 00 35 4F F0 62 E0 00 00 9D [15:44:24]Write i2c OK [15:44:24]MH_I2C_Read... [15:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:24]Read from MH i2c: E2 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: E2 03 00 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: E2 03 00 28 3B 00 90 00 D7 [15:44:24]RAPDU: 90 00 [15:44:24]wFMCommunicate OK [15:44:24]wFMCommunicate request_size=4 [15:44:24]MH_SAM_APDU [15:44:24]CAPDU: 80 0D 03 02 [15:44:24]Write to MH i2c: E2 08 00 29 3B 80 0D 03 02 00 00 00 00 DF [15:44:24]Write i2c OK [15:44:24]MH_I2C_Read... [15:44:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:24]Read from MH i2c: E2 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: E2 0B 00 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: E2 0B 00 29 3B 00 D3 8C F1 D5 BF 9F 0E EF 90 00 60 [15:44:24]RAPDU: D3 8C F1 D5 BF 9F 0E EF 90 00 [15:44:24]wFMCommunicate OK [15:44:24]SAM_PROTO_SignData done [15:44:24]FM_MakeSignedData done [15:44:24]CreateOFDProtocolMessage [15:44:24]wFMCommunicate request_size=4 [15:44:24]MH_SAM_APDU [15:44:24]CAPDU: 80 11 00 00 [15:44:24]Write to MH i2c: E2 08 00 2A 3B 80 11 00 00 00 00 00 00 DF [15:44:24]Write i2c OK [15:44:24]MH_I2C_Read... [15:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:24]Read from MH i2c: E2 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: E2 17 00 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: E2 17 00 2A 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2F [15:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:44:24]wFMCommunicate OK [15:44:24]CreateOFDProtocolMessage done [15:44:24]OFDSenderStorePacket 95198 [15:44:24]StoreOFDPacket docnum=95198 [15:44:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CA B8 07 01 C9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 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 F9 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 80 00 00 00 F4 03 04 00 5D 78 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DE 73 01 00 35 04 06 00 DB 35 4F F0 62 E0 D3 8C F1 D5 BF 9F 0E EF [15:44:24]CheckFolder [15:44:24]dirname=/storage/ofd_packets [15:44:24]CheckFolder done [15:44:24]ProducePacketName [15:44:24]name=ofd_packets/00095198 [15:44:24]NVStorageSaveData ofd_packets/00095198 [15:44:24]File name is /storage/ofd_packets/00095198 [15:44:24]Write 301 bytes [15:44:24]NVStorageSaveData done [15:44:24]OFDSenderStorePacket done [15:44:24]KKMCreateOFDPacket done [15:44:24]NVStorageSaveData kkm_last_timestamp [15:44:24]File name is /storage/kkm_last_timestamp [15:44:24]Write 4 bytes [15:44:24]NVStorageSaveData done [15:44:24]ExternCall_PrintAddStr [15:44:24]wPrintStart [15:44:24]Write to MH i2c: 01 00 00 2B 3B 66 [15:44:24]Write i2c OK [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: 01 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: 01 07 00 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: 01 07 00 2B 3B 00 80 00 00 00 FF 0F FB [15:44:24]RasterBufferAndPrint [15:44:24]line Счет N : (1)196167 [15:44:24]line ИНН: 02508201610067 [15:44:24]line Контрольно-Кассовый Чек [15:44:24]line ПРОДАЖА [15:44:24]line ТРК (МРК, ГНК) : 31 [15:44:24]line Товар: 2710124500 [15:44:24]line Аи-95-К-5 [15:44:24]line 28.780 * 69.50 [15:44:24]line = 2000.21 [15:44:24]line НДС 12% НСП 1% [15:44:24]line > о реализуемом товаре [15:44:24]line ОКРУГЛЕНИЕ: -0.21 [15:44:24]line ИТОГО: 2000.00 [15:44:24]line Внесено: 2000.00 [15:44:24]line СДАЧА: 0.00 [15:44:24]line НСП 1% : 17.70 [15:44:24]line НДС 12% : 212.41 [15:44:24]line Наличными: 2000.00 [15:44:24]line Безнал.: 0.00 [15:44:24]line Место: АЗС № 6 "Партнер Нефть" [15:44:24]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:44:24]line СНО: Общий режим [15:44:24]line Чек 128 12.03.2024 15:44 [15:44:24]line Смена: 327 ФФД: 1.0 [15:44:24]line ЗНМ: 0300000009 [15:44:24]line РНМ: 0000000000090555 [15:44:24]line Версия ККМ: 001 [15:44:24]line ФМ: 0000000000874811 [15:44:24]line ФД: 95198 [15:44:24]line ФПД: 241022020903648 [15:44:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T154429&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95198&fm=241022020903648&tin=02508201610067®Number=0000000000090555&sum=200000 [15:44:25]written 0, free lines is 4095 [15:44:25]OFD Sender: Processing packet 95198 [packets to send 30, broken 29] [15:44:25]ProducePacketName [15:44:25]name=ofd_packets/00095198 [15:44:25]OFD Sender: To server: pG, [15:44:25]CommunicateWithHost lk.salyk.kg:30040 [15:44:25]ConnectInit lk.salyk.kg [15:44:25]Connected sock=10 [15:44:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CA B8 07 01 C9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 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 F9 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 80 00 00 00 F4 03 04 00 5D 78 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DE 73 01 00 35 04 06 00 DB 35 4F F0 62 E0 D3 8C F1 D5 BF 9F 0E EF [15:44:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 18 2E 47 00 2B 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DE 73 01 00 F4 03 04 00 B2 23 F0 65 B6 04 01 00 00 44 22 A1 1B 5D 0B AD 6F [15:44:25]CommunicateWithHost err = 0 [15:44:25]CheckOFDResponse [15:44:25]1017 (14) - 77093643461234 [15:44:25]1041 (16) - 0000000000874811 [15:44:25]1040 (4) - 95198 [15:44:25]1012 (4) - 12.03.2024 09:43 [15:44:25]1206 (1) - 0 [15:44:25]OFD Sender: Remove packet 95198 [15:44:25]ProducePacketName [15:44:25]name=ofd_packets/00095198 [15:44:25]NVStorageDeleteData [15:44:25]Write to MH i2c: 01 00 00 56 3B 91 [15:44:25]Write i2c OK [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: 01 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: 01 07 00 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: 01 07 00 56 3B 00 80 00 00 00 53 0D 78 [15:44:25]RasterBufferAndPrint [15:44:25]line [15:44:25]line [15:44:25]line [15:44:25]line [15:44:25]line [15:44:25]written 0, free lines is 3418 [15:44:25]process_action close_receipt done [15:44:25]requested_data is exist [15:44:25]produce_requested_data [15:44:25]requested_item fm.sn is exist - process it [15:44:25]wFMCommunicate request_size=4 [15:44:25]MH_SAM_APDU [15:44:25]CAPDU: 80 11 00 00 [15:44:25]Write to MH i2c: E2 08 00 5D 3B 80 11 00 00 00 00 00 00 12 [15:44:25]Write i2c OK [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 [15:44:25]MH_I2C_Read... [15:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:25]Read from MH i2c: E2 17 00 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 17 00 5D 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 62 [15:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:44:25]wFMCommunicate OK [15:44:25]requested_item fd.num is exist - process it [15:44:25]SAM_PROTO_GetFieldsCounters [15:44:25]wFMCommunicate request_size=4 [15:44:25]MH_SAM_APDU [15:44:25]CAPDU: 80 13 00 00 [15:44:25]Write to MH i2c: E2 08 00 5E 3B 80 13 00 00 00 00 00 00 15 [15:44:25]Write i2c OK [15:44:25]MH_I2C_Read... [15:44:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:25]Read from MH i2c: E2 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 62 00 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 62 00 5E 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DE 73 01 00 0E 04 04 00 47 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 4C [15:44:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DE 73 01 00 0E 04 04 00 47 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 [15:44:25]wFMCommunicate OK [15:44:25]SAM_PROTO_GetFieldsCounters done [15:44:25]requested_item shift.num is exist - process it [15:44:25]requested_item shift.opened is exist - process it [15:44:25]req_shift_opened [15:44:25]FM_GetShiftState [15:44:25]SAM_PROTO_GetShiftState [15:44:25]wFMCommunicate request_size=4 [15:44:25]MH_SAM_APDU [15:44:25]CAPDU: 80 13 01 00 [15:44:25]Write to MH i2c: E2 08 00 5F 3B 80 13 01 00 00 00 00 00 17 [15:44:25]Write i2c OK [15:44:25]MH_I2C_Read... [15:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:25]Read from MH i2c: E2 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 0E 00 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 0E 00 5F 3B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 8B [15:44:25]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:44:25]wFMCommunicate OK [15:44:25]SAM_PROTO_GetShiftState done [15:44:25]FM_GetShiftState done [15:44:25]req_shift_opened done [15:44:25]requested_item shift.open_date is exist - process it [15:44:25]req_shift_open_date [15:44:25]req_shift_open_date done [15:44:25]produce_requested_data done [15:44:25]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95198,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:44:25]process_action_free close_receipt [15:44:25]json_value_free [15:44:25]json_value_free done [15:44:25]process_json_proto returns [15:44:25]Send response to host [15:44:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95198,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:44:25]free response buf [15:44:25]execute_script done [15:44:25]execute_script returns [15:44:25]free content buf [15:44:25]Sock 8.Close socket [15:44:25]Sock 8.Thread stoped [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:44:57]accept exits with 9 [15:44:57]New connection [15:44:57]New thread 3066957156 created [15:44:57]Thread 3066813796 joined [15:44:57]Waiting for new connection... [15:44:57] Sock 9.Parse request [15:44:57]Sock 9.Check first char [15:44:57]Sock 9.First char is OK [15:44:57]request: POST /json_proto HTTP/1.0 [15:44:57]Method: POST [15:44:57]URL: /json_proto [15:44:57]Method is POST - this is cgi request [15:44:57]url: /json_proto [15:44:57]query_string will be loaded in cgi processing [15:44:57]execute_cgi json_proto POST (null) [15:44:57]execute_cgi path=json_proto method=POST [15:44:57]POST find Content-Length [15:44:57]Host: 172.17.62.67:8080 [15:44:57]Content-Length: 682 [15:44:57]Content-Type: application/json [15:44:57] [15:44:57]POST finish read [15:44:57]Found Content-Length = 682 [15:44:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:44:57]execute_script... [15:44: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)196168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:44:57]POST & json_proto [15:44:57]process_json_proto [15:44:57]json parsed OK: [15:44:57]protocol is kg_v1.0 [15:44:57]action value=close_receipt [15:44:57]process_action close_receipt [15:44:57]cmd_close_receipt [15:44:57]MH_GetDate [15:44:57]Write to MH i2c: F0 00 00 60 3B 8A [15:44:57]Write i2c OK [15:44:57]MH_I2C_Read... [15:44:57]Read from MH i2c: F0 [15:44:57]MH_I2C_Read... [15:44:57]Read from MH i2c: F0 05 00 [15:44:57]MH_I2C_Read... [15:44:57]Read from MH i2c: F0 05 00 60 3B 00 7F 78 F0 65 DB [15:44:57]GetLastDocTimeStamp 1710258269 [15:44:57]current date 1710258303 [15:44:57]FM_GetShiftState [15:44:57]SAM_PROTO_GetShiftState [15:44:57]wFMCommunicate request_size=4 [15:44:57]MH_SAM_APDU [15:44:57]CAPDU: 80 13 01 00 [15:44:57]Write to MH i2c: E2 08 00 61 3B 80 13 01 00 00 00 00 00 19 [15:44:57]Write i2c OK [15:44:57]MH_I2C_Read... [15:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:57]Read from MH i2c: E2 [15:44:57]MH_I2C_Read... [15:44:57]Read from MH i2c: E2 0E 00 [15:44:57]MH_I2C_Read... [15:44:57]Read from MH i2c: E2 0E 00 61 3B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 8D [15:44:58]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:44:58]wFMCommunicate OK [15:44:58]SAM_PROTO_GetShiftState done [15:44:58]FM_GetShiftState done [15:44:58]opened in 1710201976 [15:44:58]opened+sec_in_day 1710288376 [15:44:58]quantity*price = 100011 [15:44:58]sum+1 = 100012 [15:44:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 129 12.03.2024 15:45 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95199 ФПД: 29440154430813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T154503&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95199&fm=29440154430813&tin=02508201610067®Number=0000000000090555&sum=100000 [15:44:59]StoreToDocumentArchive [15:44:59]shift 327 fd 95199 [15:44:59]save to /storage/0327/doc_00095199 [15:44:59]save last doc name /storage/0327/doc_00095199 to /storage/kkm_last_doc_name [15:44:59]save OK [15:44:59]Clear old archive folders... [15:44:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:59]tlvbuf is 01A2AE00 [15:44:59]SAM_PROTO_ClearQueue [15:44:59]wFMCommunicate request_size=4 [15:44:59]MH_SAM_APDU [15:44:59]CAPDU: 80 09 00 00 [15:44:59]Write to MH i2c: E2 08 00 6E 3B 80 09 00 00 00 00 00 00 1B [15:44:59]Write i2c OK [15:44:59]MH_I2C_Read... [15:44:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:59]Read from MH i2c: E2 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: E2 03 00 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: E2 03 00 6E 3B 00 90 00 1D [15:44:59]RAPDU: 90 00 [15:44:59]wFMCommunicate OK [15:44:59]SAM_PROTO_ClearQueue done [15:44:59]KKMCreateOFDPacket [15:44:59]OFDProtocolAddRootSTLVToBuf [15:44:59]FM_MakeSignedData [15:44:59]FM_MakeSignedData [15:44:59]SAM_PROTO_SignData [15:44:59]wFMCommunicate request_size=4 [15:44:59]MH_SAM_APDU [15:44:59]CAPDU: 80 0D 01 02 [15:44:59]Write to MH i2c: E2 08 00 6F 3B 80 0D 01 02 00 00 00 00 23 [15:44:59]Write i2c OK [15:44:59]MH_I2C_Read... [15:44:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:59]Read from MH i2c: E2 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: E2 03 00 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: E2 03 00 6F 3B 00 90 00 1E [15:44:59]RAPDU: 90 00 [15:44:59]wFMCommunicate OK [15:44:59]wFMCommunicate request_size=255 [15:44:59]MH_SAM_APDU [15:44:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 7F 78 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DF 73 01 00 35 04 06 00 1A [15:44:59]Write to MH i2c: E2 02 01 70 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 7F 78 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DF 73 01 00 35 04 06 00 1A 00 00 4D [15:44:59]Write i2c OK [15:44:59]MH_I2C_Read... [15:44:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:59]Read from MH i2c: E2 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: E2 03 00 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: E2 03 00 70 3B 00 90 00 1F [15:44:59]RAPDU: 90 00 [15:44:59]wFMCommunicate OK [15:44:59]wFMCommunicate request_size=10 [15:44:59]MH_SAM_APDU [15:44:59]CAPDU: 80 0D 02 02 05 C6 91 F2 6D 5D [15:44:59]Write to MH i2c: E2 0D 00 71 3B 80 0D 02 02 05 00 C6 91 F2 6D 5D 00 00 43 [15:44:59]Write i2c OK [15:44:59]MH_I2C_Read... [15:44:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:59]Read from MH i2c: E2 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: E2 03 00 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: E2 03 00 71 3B 00 90 00 20 [15:44:59]RAPDU: 90 00 [15:44:59]wFMCommunicate OK [15:44:59]wFMCommunicate request_size=4 [15:44:59]MH_SAM_APDU [15:44:59]CAPDU: 80 0D 03 02 [15:44:59]Write to MH i2c: E2 08 00 72 3B 80 0D 03 02 00 00 00 00 28 [15:44:59]Write i2c OK [15:44:59]MH_I2C_Read... [15:44:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:59]Read from MH i2c: E2 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: E2 0B 00 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: E2 0B 00 72 3B 00 76 E9 B1 93 42 03 D2 F6 90 00 D9 [15:44:59]RAPDU: 76 E9 B1 93 42 03 D2 F6 90 00 [15:44:59]wFMCommunicate OK [15:44:59]SAM_PROTO_SignData done [15:44:59]FM_MakeSignedData done [15:44:59]CreateOFDProtocolMessage [15:44:59]wFMCommunicate request_size=4 [15:44:59]MH_SAM_APDU [15:44:59]CAPDU: 80 11 00 00 [15:44:59]Write to MH i2c: E2 08 00 73 3B 80 11 00 00 00 00 00 00 28 [15:44:59]Write i2c OK [15:44:59]MH_I2C_Read... [15:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:59]Read from MH i2c: E2 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: E2 17 00 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: E2 17 00 73 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 78 [15:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:44:59]wFMCommunicate OK [15:44:59]CreateOFDProtocolMessage done [15:44:59]OFDSenderStorePacket 95199 [15:44:59]StoreOFDPacket docnum=95199 [15:44:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2B 7E 07 01 DC 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 7F 78 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DF 73 01 00 35 04 06 00 1A C6 91 F2 6D 5D 76 E9 B1 93 42 03 D2 F6 [15:44:59]CheckFolder [15:44:59]dirname=/storage/ofd_packets [15:44:59]CheckFolder done [15:44:59]ProducePacketName [15:44:59]name=ofd_packets/00095199 [15:44:59]NVStorageSaveData ofd_packets/00095199 [15:44:59]File name is /storage/ofd_packets/00095199 [15:44:59]Write 301 bytes [15:44:59]NVStorageSaveData done [15:44:59]OFDSenderStorePacket done [15:44:59]KKMCreateOFDPacket done [15:44:59]NVStorageSaveData kkm_last_timestamp [15:44:59]File name is /storage/kkm_last_timestamp [15:44:59]Write 4 bytes [15:44:59]NVStorageSaveData done [15:44:59]ExternCall_PrintAddStr [15:44:59]wPrintStart [15:44:59]Write to MH i2c: 01 00 00 74 3B AF [15:44:59]Write i2c OK [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: 01 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: 01 07 00 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: 01 07 00 74 3B 00 80 00 00 00 FF 0F 44 [15:44:59]RasterBufferAndPrint [15:44:59]line Счет N : (1)196168 [15:44:59]line ИНН: 02508201610067 [15:44:59]line Контрольно-Кассовый Чек [15:44:59]line ПРОДАЖА [15:44:59]line ТРК (МРК, ГНК) : 42 [15:44:59]line Товар: 2710124130 [15:44:59]line Аи-92-К-5 [15:44:59]line 15.900 * 62.90 [15:44:59]line = 1000.11 [15:44:59]line НДС 12% НСП 1% [15:44:59]line > о реализуемом товаре [15:44:59]line ОКРУГЛЕНИЕ: -0.11 [15:44:59]line ИТОГО: 1000.00 [15:44:59]line Внесено: 1000.00 [15:44:59]line СДАЧА: 0.00 [15:44:59]line НСП 1% : 8.85 [15:44:59]line НДС 12% : 106.21 [15:44:59]line Наличными: 1000.00 [15:44:59]line Безнал.: 0.00 [15:44:59]line Место: АЗС № 6 "Партнер Нефть" [15:44:59]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:44:59]line СНО: Общий режим [15:44:59]line Чек 129 12.03.2024 15:45 [15:44:59]line Смена: 327 ФФД: 1.0 [15:44:59]line ЗНМ: 0300000009 [15:44:59]line РНМ: 0000000000090555 [15:44:59]line Версия ККМ: 001 [15:44:59]line ФМ: 0000000000874811 [15:44:59]line ФД: 95199 [15:44:59]line ФПД: 29440154430813 [15:44:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T154503&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95199&fm=29440154430813&tin=02508201610067®Number=0000000000090555&sum=100000 [15:44:59]OFD Sender: Processing packet 95199 [packets to send 30, broken 29] [15:44:59]ProducePacketName [15:44:59]name=ofd_packets/00095199 [15:44:59]OFD Sender: To server: pG, [15:44:59]CommunicateWithHost lk.salyk.kg:30040 [15:44:59]ConnectInit lk.salyk.kg [15:44:59]written 0, free lines is 4095 [15:45:00]Connected sock=10 [15:45:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2B 7E 07 01 DC 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 7F 78 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DF 73 01 00 35 04 06 00 1A C6 91 F2 6D 5D 76 E9 B1 93 42 03 D2 F6 [15:45:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E0 A7 47 00 37 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DF 73 01 00 F4 03 04 00 D5 23 F0 65 B6 04 01 00 00 20 6F 93 ED 1B 17 12 76 [15:45:00]CommunicateWithHost err = 0 [15:45:00]CheckOFDResponse [15:45:00]1017 (14) - 77093643461234 [15:45:00]1041 (16) - 0000000000874811 [15:45:00]1040 (4) - 95199 [15:45:00]1012 (4) - 12.03.2024 09:43 [15:45:00]1206 (1) - 0 [15:45:00]OFD Sender: Remove packet 95199 [15:45:00]ProducePacketName [15:45:00]name=ofd_packets/00095199 [15:45:00]NVStorageDeleteData [15:45:00]Write to MH i2c: 01 00 00 9F 3B DA [15:45:00]Write i2c OK [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: 01 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: 01 07 00 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: 01 07 00 9F 3B 00 80 00 00 00 4D 0D BB [15:45:00]RasterBufferAndPrint [15:45:00]line [15:45:00]line [15:45:00]line [15:45:00]line [15:45:00]line [15:45:00]written 0, free lines is 3411 [15:45:00]process_action close_receipt done [15:45:00]requested_data is exist [15:45:00]produce_requested_data [15:45:00]requested_item fm.sn is exist - process it [15:45:00]wFMCommunicate request_size=4 [15:45:00]MH_SAM_APDU [15:45:00]CAPDU: 80 11 00 00 [15:45:00]Write to MH i2c: E2 08 00 A6 3B 80 11 00 00 00 00 00 00 5B [15:45:00]Write i2c OK [15:45:00]MH_I2C_Read... [15:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:00]Read from MH i2c: E2 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: E2 17 00 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: E2 17 00 A6 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AB [15:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:45:00]wFMCommunicate OK [15:45:00]requested_item fd.num is exist - process it [15:45:00]SAM_PROTO_GetFieldsCounters [15:45:00]wFMCommunicate request_size=4 [15:45:00]MH_SAM_APDU [15:45:00]CAPDU: 80 13 00 00 [15:45:00]Write to MH i2c: E2 08 00 A7 3B 80 13 00 00 00 00 00 00 5E [15:45:00]Write i2c OK [15:45:00]MH_I2C_Read... [15:45:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:00]Read from MH i2c: E2 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: E2 62 00 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: E2 62 00 A7 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DF 73 01 00 0E 04 04 00 47 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 99 [15:45:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DF 73 01 00 0E 04 04 00 47 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 [15:45:00]wFMCommunicate OK [15:45:00]SAM_PROTO_GetFieldsCounters done [15:45:00]requested_item shift.num is exist - process it [15:45:00]requested_item shift.opened is exist - process it [15:45:00]req_shift_opened [15:45:00]FM_GetShiftState [15:45:00]SAM_PROTO_GetShiftState [15:45:00]wFMCommunicate request_size=4 [15:45:00]MH_SAM_APDU [15:45:00]CAPDU: 80 13 01 00 [15:45:00]Write to MH i2c: E2 08 00 A8 3B 80 13 01 00 00 00 00 00 60 [15:45:00]Write i2c OK [15:45:00]MH_I2C_Read... [15:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:00]Read from MH i2c: E2 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: E2 0E 00 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: E2 0E 00 A8 3B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D4 [15:45:00]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:45:00]wFMCommunicate OK [15:45:00]SAM_PROTO_GetShiftState done [15:45:00]FM_GetShiftState done [15:45:00]req_shift_opened done [15:45:00]requested_item shift.open_date is exist - process it [15:45:00]req_shift_open_date [15:45:00]req_shift_open_date done [15:45:00]produce_requested_data done [15:45:00]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95199,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:45:00]process_action_free close_receipt [15:45:00]json_value_free [15:45:00]json_value_free done [15:45:00]process_json_proto returns [15:45:00]Send response to host [15:45:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95199,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:45:00]free response buf [15:45:00]execute_script done [15:45:00]execute_script returns [15:45:00]free content buf [15:45:00]Sock 9.Close socket [15:45:00]Sock 9.Thread stoped [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [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:02]accept exits with 8 [15:50:02]New connection [15:50:02]New thread 3066813796 created [15:50:02]Thread 3066957156 joined [15:50:02]Waiting for new connection... [15:50:02] Sock 8.Parse request [15:50:02]Sock 8.Check first char [15:50:02]Sock 8.First char is OK [15:50:02]request: POST /json_proto HTTP/1.0 [15:50:02]Method: POST [15:50:02]URL: /json_proto [15:50:02]Method is POST - this is cgi request [15:50:02]url: /json_proto [15:50:02]query_string will be loaded in cgi processing [15:50:02]execute_cgi json_proto POST (null) [15:50:02]execute_cgi path=json_proto method=POST [15:50:02]POST find Content-Length [15:50:02]Host: 172.17.62.67:8080 [15:50:02]Content-Length: 1211 [15:50:02]Content-Type: application/json [15:50:02] [15:50:02]POST finish read [15:50:02]Found Content-Length = 1211 [15:50:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196169\u000A12.03.2024 15:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A00153\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:02]execute_script... [15:50:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196169\u000A12.03.2024 15:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A00153\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:02]POST & json_proto [15:50:02]process_json_proto [15:50:02]json parsed OK: [15:50:02]protocol is kg_v1.0 [15:50:02]action value=print_text [15:50:02]process_action print_text [15:50:02]cmd_print_text [15:50:02]ExternCall_PrintAddStr [15:50:02]wPrintStart [15:50:02]Write to MH i2c: 01 00 00 A9 3B E4 [15:50:02]Write i2c OK [15:50:02]MH_I2C_Read... [15:50:02]Read from MH i2c: 01 [15:50:02]MH_I2C_Read... [15:50:02]Read from MH i2c: 01 07 00 [15:50:02]MH_I2C_Read... [15:50:02]Read from MH i2c: 01 07 00 A9 3B 00 80 00 00 00 FF 0F 79 [15:50:02]RasterBufferAndPrint [15:50:02]line *****ТОВАРНЫЙ ЧЕК***** [15:50:02]line АЗС 6 [15:50:02]line Партнер нефть [15:50:02]line 02508201610067 [15:50:02]line Кассир : Мыктыбекова И. [15:50:02]line Счет N : (1)196169 [15:50:02]line 12.03.2024 15:44 [15:50:02]line ПРОДАЖА [15:50:02]line ТРК (МРК, ГНК): 12 [15:50:02]line Вид ГСМ : 2710124130 [15:50:02]line Аи-92-К-5 [15:50:02]line 20.000 x 62.90 [15:50:02]line ИТОГ: 1258.00 [15:50:02]line Тип оплаты: Талоны: Топливная Карта [15:50:02]line 00153 [15:50:02]line ______________________ [15:50:02]line (подпись) [15:50:02]written 0, free lines is 4095 [15:50:03]Write to MH i2c: 01 00 00 BD 3B F8 [15:50:03]Write i2c OK [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: 01 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: 01 07 00 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: 01 07 00 BD 3B 00 80 00 00 00 65 0E F2 [15:50:03]RasterBufferAndPrint [15:50:03]line [15:50:03]line [15:50:03]line [15:50:03]line [15:50:03]line [15:50:03]written 0, free lines is 3688 [15:50:03]process_action print_text done [15:50:03]requested_data is exist [15:50:03]produce_requested_data [15:50:03]requested_item fm.sn is exist - process it [15:50:03]wFMCommunicate request_size=4 [15:50:03]MH_SAM_APDU [15:50:03]CAPDU: 80 11 00 00 [15:50:03]Write to MH i2c: E2 08 00 C4 3B 80 11 00 00 00 00 00 00 79 [15:50:03]Write i2c OK [15:50:03]MH_I2C_Read... [15:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:03]Read from MH i2c: E2 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 17 00 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 17 00 C4 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C9 [15:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:50:03]wFMCommunicate OK [15:50:03]requested_item fd.num is exist - process it [15:50:03]SAM_PROTO_GetFieldsCounters [15:50:03]wFMCommunicate request_size=4 [15:50:03]MH_SAM_APDU [15:50:03]CAPDU: 80 13 00 00 [15:50:03]Write to MH i2c: E2 08 00 C5 3B 80 13 00 00 00 00 00 00 7C [15:50:03]Write i2c OK [15:50:03]MH_I2C_Read... [15:50:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:03]Read from MH i2c: E2 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 62 00 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 62 00 C5 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DF 73 01 00 0E 04 04 00 47 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 B7 [15:50:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DF 73 01 00 0E 04 04 00 47 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 [15:50:03]wFMCommunicate OK [15:50:03]SAM_PROTO_GetFieldsCounters done [15:50:03]requested_item shift.num is exist - process it [15:50:03]requested_item shift.opened is exist - process it [15:50:03]req_shift_opened [15:50:03]FM_GetShiftState [15:50:03]SAM_PROTO_GetShiftState [15:50:03]wFMCommunicate request_size=4 [15:50:03]MH_SAM_APDU [15:50:03]CAPDU: 80 13 01 00 [15:50:03]Write to MH i2c: E2 08 00 C6 3B 80 13 01 00 00 00 00 00 7E [15:50:03]Write i2c OK [15:50:03]MH_I2C_Read... [15:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:03]Read from MH i2c: E2 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 0E 00 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 0E 00 C6 3B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F2 [15:50:03]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:50:03]wFMCommunicate OK [15:50:03]SAM_PROTO_GetShiftState done [15:50:03]FM_GetShiftState done [15:50:03]req_shift_opened done [15:50:03]requested_item shift.open_date is exist - process it [15:50:03]req_shift_open_date [15:50:03]req_shift_open_date done [15:50:03]produce_requested_data done [15:50:03]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95199,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:50:03]process_action_free print_text [15:50:03]json_value_free [15:50:03]json_value_free done [15:50:03]process_json_proto returns [15:50:03]Send response to host [15:50:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95199,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:50:03]free response buf [15:50:03]execute_script done [15:50:03]execute_script returns [15:50:03]free content buf [15:50:03]Sock 8.Close socket [15:50:03]Sock 8.Thread stoped [15:50:06]OFD Sender: No OFD packet to send [15:50:07]accept exits with 9 [15:50:07]New connection [15:50:07]New thread 3066957156 created [15:50:07]Thread 3066813796 joined [15:50:07]Waiting for new connection... [15:50:07] Sock 9.Parse request [15:50:07]Sock 9.Check first char [15:50:07]Sock 9.First char is OK [15:50:07]request: POST /json_proto HTTP/1.0 [15:50:07]Method: POST [15:50:07]URL: /json_proto [15:50:07]Method is POST - this is cgi request [15:50:07]url: /json_proto [15:50:07]query_string will be loaded in cgi processing [15:50:07]execute_cgi json_proto POST (null) [15:50:07]execute_cgi path=json_proto method=POST [15:50:07]POST find Content-Length [15:50:07]Host: 172.17.62.67:8080 [15:50:07]Content-Length: 808 [15:50:07]Content-Type: application/json [15:50:07] [15:50:07]POST finish read [15:50:07]Found Content-Length = 808 [15:50:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:07]execute_script... [15:50: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)196170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:07]POST & json_proto [15:50:07]process_json_proto [15:50:07]json parsed OK: [15:50:07]protocol is kg_v1.0 [15:50:07]action value=close_receipt [15:50:07]process_action close_receipt [15:50:07]cmd_close_receipt [15:50:07]MH_GetDate [15:50:07]Write to MH i2c: F0 00 00 C7 3B F1 [15:50:07]Write i2c OK [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: F0 [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: F0 05 00 [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: F0 05 00 C7 3B 00 B5 79 F0 65 79 [15:50:07]GetLastDocTimeStamp 1710258303 [15:50:07]current date 1710258613 [15:50:07]FM_GetShiftState [15:50:07]SAM_PROTO_GetShiftState [15:50:07]wFMCommunicate request_size=4 [15:50:07]MH_SAM_APDU [15:50:07]CAPDU: 80 13 01 00 [15:50:07]Write to MH i2c: E2 08 00 C8 3B 80 13 01 00 00 00 00 00 80 [15:50:07]Write i2c OK [15:50:07]MH_I2C_Read... [15:50:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:07]Read from MH i2c: E2 [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: E2 0E 00 [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: E2 0E 00 C8 3B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F4 [15:50:07]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:50:07]wFMCommunicate OK [15:50:07]SAM_PROTO_GetShiftState done [15:50:07]FM_GetShiftState done [15:50:07]opened in 1710201976 [15:50:07]opened+sec_in_day 1710288376 [15:50:07]quantity*price = 100010 [15:50:07]sum+1 = 100012 [15:50:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 130 12.03.2024 15:50 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95200 ФПД: 192885104210199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T155013&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95200&fm=192885104210199&tin=02508201610067®Number=0000000000090555&sum=100011 [15:50:08]StoreToDocumentArchive [15:50:08]shift 327 fd 95200 [15:50:08]save to /storage/0327/doc_00095200 [15:50:08]save last doc name /storage/0327/doc_00095200 to /storage/kkm_last_doc_name [15:50:08]save OK [15:50:08]Clear old archive folders... [15:50:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:08]tlvbuf is 01AE6060 [15:50:08]SAM_PROTO_ClearQueue [15:50:08]wFMCommunicate request_size=4 [15:50:08]MH_SAM_APDU [15:50:08]CAPDU: 80 09 00 00 [15:50:08]Write to MH i2c: E2 08 00 D5 3B 80 09 00 00 00 00 00 00 82 [15:50:08]Write i2c OK [15:50:08]MH_I2C_Read... [15:50:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:08]Read from MH i2c: E2 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: E2 03 00 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: E2 03 00 D5 3B 00 90 00 84 [15:50:08]RAPDU: 90 00 [15:50:08]wFMCommunicate OK [15:50:08]SAM_PROTO_ClearQueue done [15:50:08]KKMCreateOFDPacket [15:50:08]OFDProtocolAddRootSTLVToBuf [15:50:08]FM_MakeSignedData [15:50:08]FM_MakeSignedData [15:50:08]SAM_PROTO_SignData [15:50:08]wFMCommunicate request_size=4 [15:50:08]MH_SAM_APDU [15:50:08]CAPDU: 80 0D 01 02 [15:50:08]Write to MH i2c: E2 08 00 D6 3B 80 0D 01 02 00 00 00 00 8A [15:50:08]Write i2c OK [15:50:08]MH_I2C_Read... [15:50:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:08]Read from MH i2c: E2 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: E2 03 00 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: E2 03 00 D6 3B 00 90 00 85 [15:50:08]RAPDU: 90 00 [15:50:08]wFMCommunicate OK [15:50:08]wFMCommunicate request_size=255 [15:50:08]MH_SAM_APDU [15:50: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B5 79 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E0 73 01 00 35 04 06 00 AF [15:50:08]Write to MH i2c: E2 02 01 D7 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B5 79 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E0 73 01 00 35 04 06 00 AF 00 00 47 [15:50:08]Write i2c OK [15:50:08]MH_I2C_Read... [15:50:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:09]Read from MH i2c: E2 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 03 00 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 03 00 D7 3B 00 90 00 86 [15:50:09]RAPDU: 90 00 [15:50:09]wFMCommunicate OK [15:50:09]wFMCommunicate request_size=10 [15:50:09]MH_SAM_APDU [15:50:09]CAPDU: 80 0D 02 02 05 6D 90 1E 71 17 [15:50:09]Write to MH i2c: E2 0D 00 D8 3B 80 0D 02 02 05 00 6D 90 1E 71 17 00 00 3A [15:50:09]Write i2c OK [15:50:09]MH_I2C_Read... [15:50:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:09]Read from MH i2c: E2 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 03 00 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 03 00 D8 3B 00 90 00 87 [15:50:09]RAPDU: 90 00 [15:50:09]wFMCommunicate OK [15:50:09]wFMCommunicate request_size=4 [15:50:09]MH_SAM_APDU [15:50:09]CAPDU: 80 0D 03 02 [15:50:09]Write to MH i2c: E2 08 00 D9 3B 80 0D 03 02 00 00 00 00 8F [15:50:09]Write i2c OK [15:50:09]MH_I2C_Read... [15:50:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:09]Read from MH i2c: E2 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 0B 00 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 0B 00 D9 3B 00 08 37 8F 80 C5 9D 60 18 90 00 B8 [15:50:09]RAPDU: 08 37 8F 80 C5 9D 60 18 90 00 [15:50:09]wFMCommunicate OK [15:50:09]SAM_PROTO_SignData done [15:50:09]FM_MakeSignedData done [15:50:09]CreateOFDProtocolMessage [15:50:09]wFMCommunicate request_size=4 [15:50:09]MH_SAM_APDU [15:50:09]CAPDU: 80 11 00 00 [15:50:09]Write to MH i2c: E2 08 00 DA 3B 80 11 00 00 00 00 00 00 8F [15:50:09]Write i2c OK [15:50:09]MH_I2C_Read... [15:50:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:09]Read from MH i2c: E2 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 17 00 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 17 00 DA 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DF [15:50:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:50:09]wFMCommunicate OK [15:50:09]CreateOFDProtocolMessage done [15:50:09]OFDSenderStorePacket 95200 [15:50:09]StoreOFDPacket docnum=95200 [15:50:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BF EF 07 01 D7 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B5 79 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E0 73 01 00 35 04 06 00 AF 6D 90 1E 71 17 08 37 8F 80 C5 9D 60 18 [15:50:09]CheckFolder [15:50:09]dirname=/storage/ofd_packets [15:50:09]CheckFolder done [15:50:09]ProducePacketName [15:50:09]name=ofd_packets/00095200 [15:50:09]NVStorageSaveData ofd_packets/00095200 [15:50:09]File name is /storage/ofd_packets/00095200 [15:50:09]Write 301 bytes [15:50:09]NVStorageSaveData done [15:50:09]OFDSenderStorePacket done [15:50:09]KKMCreateOFDPacket done [15:50:09]NVStorageSaveData kkm_last_timestamp [15:50:09]File name is /storage/kkm_last_timestamp [15:50:09]Write 4 bytes [15:50:09]NVStorageSaveData done [15:50:09]ExternCall_PrintAddStr [15:50:09]wPrintStart [15:50:09]Write to MH i2c: 01 00 00 DB 3B 16 [15:50:09]Write i2c OK [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: 01 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: 01 07 00 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: 01 07 00 DB 3B 00 80 00 00 00 FF 0F AB [15:50:09]RasterBufferAndPrint [15:50:09]line Счет N : (1)196170 [15:50:09]line ИНН: 02508201610067 [15:50:09]line Контрольно-Кассовый Чек [15:50:09]line ПРОДАЖА [15:50:09]line ТРК (МРК, ГНК) : 21 [15:50:09]line Товар: 2710124500 [15:50:09]line Аи-95-К-5 [15:50:09]line 14.390 * 69.50 [15:50:09]line = 1000.11 [15:50:09]line НДС 12% НСП 1% [15:50:09]line > о реализуемом товаре [15:50:09]line ИТОГО: 1000.11 [15:50:09]line НСП 1% : 8.85 [15:50:09]line НДС 12% : 106.21 [15:50:09]line Наличными: 0.00 [15:50:09]line Безнал.: 1000.11 [15:50:09]line Место: АЗС № 6 "Партнер Нефть" [15:50:09]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:50:09]line СНО: Общий режим [15:50:09]line Чек 130 12.03.2024 15:50 [15:50:09]line Смена: 327 ФФД: 1.0 [15:50:09]line ЗНМ: 0300000009 [15:50:09]line РНМ: 0000000000090555 [15:50:09]line Версия ККМ: 001 [15:50:09]line Платежная система: О! деньги [15:50:09]line ФМ: 0000000000874811 [15:50:09]line ФД: 95200 [15:50:09]line ФПД: 192885104210199 [15:50:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T155013&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95200&fm=192885104210199&tin=02508201610067®Number=0000000000090555&sum=100011 [15:50:09]OFD Sender: Processing packet 95200 [packets to send 30, broken 29] [15:50:09]ProducePacketName [15:50:09]name=ofd_packets/00095200 [15:50:09]OFD Sender: To server: pG, [15:50:09]CommunicateWithHost lk.salyk.kg:30040 [15:50:09]ConnectInit lk.salyk.kg [15:50:09]written 0, free lines is 4095 [15:50:09]Connected sock=10 [15:50:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BF EF 07 01 D7 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B5 79 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E0 73 01 00 35 04 06 00 AF 6D 90 1E 71 17 08 37 8F 80 C5 9D 60 18 [15:50:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 36 90 47 00 62 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E0 73 01 00 F4 03 04 00 0B 25 F0 65 B6 04 01 00 00 8F 39 39 6E 79 82 82 C8 [15:50:09]CommunicateWithHost err = 0 [15:50:09]CheckOFDResponse [15:50:09]1017 (14) - 77093643461234 [15:50:09]1041 (16) - 0000000000874811 [15:50:09]1040 (4) - 95200 [15:50:09]1012 (4) - 12.03.2024 09:48 [15:50:09]1206 (1) - 0 [15:50:09]OFD Sender: Remove packet 95200 [15:50:09]ProducePacketName [15:50:09]name=ofd_packets/00095200 [15:50:09]NVStorageDeleteData [15:50:10]Write to MH i2c: 01 00 00 05 3C 41 [15:50:10]Write i2c OK [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: 01 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: 01 07 00 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: 01 07 00 05 3C 00 80 00 00 00 5F 0D 34 [15:50:10]RasterBufferAndPrint [15:50:10]line [15:50:10]line [15:50:10]line [15:50:10]line [15:50:10]line [15:50:10]written 0, free lines is 3429 [15:50:10]process_action close_receipt done [15:50:10]requested_data is exist [15:50:10]produce_requested_data [15:50:10]requested_item fm.sn is exist - process it [15:50:10]wFMCommunicate request_size=4 [15:50:10]MH_SAM_APDU [15:50:10]CAPDU: 80 11 00 00 [15:50:10]Write to MH i2c: E2 08 00 0C 3C 80 11 00 00 00 00 00 00 C2 [15:50:10]Write i2c OK [15:50:10]MH_I2C_Read... [15:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:10]Read from MH i2c: E2 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: E2 17 00 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: E2 17 00 0C 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 12 [15:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:50:10]wFMCommunicate OK [15:50:10]requested_item fd.num is exist - process it [15:50:10]SAM_PROTO_GetFieldsCounters [15:50:10]wFMCommunicate request_size=4 [15:50:10]MH_SAM_APDU [15:50:10]CAPDU: 80 13 00 00 [15:50:10]Write to MH i2c: E2 08 00 0D 3C 80 13 00 00 00 00 00 00 C5 [15:50:10]Write i2c OK [15:50:10]MH_I2C_Read... [15:50:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:10]Read from MH i2c: E2 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: E2 62 00 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: E2 62 00 0D 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E0 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [15:50:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E0 73 01 00 0E 04 04 00 47 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 [15:50:10]wFMCommunicate OK [15:50:10]SAM_PROTO_GetFieldsCounters done [15:50:10]requested_item shift.num is exist - process it [15:50:10]requested_item shift.opened is exist - process it [15:50:10]req_shift_opened [15:50:10]FM_GetShiftState [15:50:10]SAM_PROTO_GetShiftState [15:50:10]wFMCommunicate request_size=4 [15:50:10]MH_SAM_APDU [15:50:10]CAPDU: 80 13 01 00 [15:50:10]Write to MH i2c: E2 08 00 0E 3C 80 13 01 00 00 00 00 00 C7 [15:50:10]Write i2c OK [15:50:10]MH_I2C_Read... [15:50:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:10]Read from MH i2c: E2 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: E2 0E 00 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: E2 0E 00 0E 3C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 3B [15:50:10]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:50:10]wFMCommunicate OK [15:50:10]SAM_PROTO_GetShiftState done [15:50:10]FM_GetShiftState done [15:50:10]req_shift_opened done [15:50:10]requested_item shift.open_date is exist - process it [15:50:10]req_shift_open_date [15:50:10]req_shift_open_date done [15:50:10]produce_requested_data done [15:50:10]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95200,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:50:10]process_action_free close_receipt [15:50:10]json_value_free [15:50:10]json_value_free done [15:50:10]process_json_proto returns [15:50:10]Send response to host [15:50:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95200,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:50:10]free response buf [15:50:10]execute_script done [15:50:10]execute_script returns [15:50:10]free content buf [15:50:10]Sock 9.Close socket [15:50:10]Sock 9.Thread stoped [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:22]accept exits with 8 [15:50:22]New connection [15:50:22]New thread 3066813796 created [15:50:22]Thread 3066957156 joined [15:50:22]Waiting for new connection... [15:50:22] Sock 8.Parse request [15:50:22]Sock 8.Check first char [15:50:22]Sock 8.First char is OK [15:50:22]request: POST /json_proto HTTP/1.0 [15:50:22]Method: POST [15:50:22]URL: /json_proto [15:50:22]Method is POST - this is cgi request [15:50:22]url: /json_proto [15:50:22]query_string will be loaded in cgi processing [15:50:22]execute_cgi json_proto POST (null) [15:50:22]execute_cgi path=json_proto method=POST [15:50:22]POST find Content-Length [15:50:22]Host: 172.17.62.67:8080 [15:50:22]Content-Length: 675 [15:50:22]Content-Type: application/json [15:50:22] [15:50:22]POST finish read [15:50:22]Found Content-Length = 675 [15:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 11.500, "sum" : 815.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 815.00, "total" : 815.00, "payments": [ { "type": 0, "sum" : 815.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:22]execute_script... [15:50:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 11.500, "sum" : 815.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 815.00, "total" : 815.00, "payments": [ { "type": 0, "sum" : 815.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:22]POST & json_proto [15:50:22]process_json_proto [15:50:22]json parsed OK: [15:50:22]protocol is kg_v1.0 [15:50:22]action value=close_receipt [15:50:22]process_action close_receipt [15:50:22]cmd_close_receipt [15:50:22]MH_GetDate [15:50:22]Write to MH i2c: F0 00 00 0F 3C 3A [15:50:22]Write i2c OK [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: F0 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: F0 05 00 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: F0 05 00 0F 3C 00 C4 79 F0 65 D1 [15:50:22]GetLastDocTimeStamp 1710258613 [15:50:22]current date 1710258628 [15:50:22]FM_GetShiftState [15:50:22]SAM_PROTO_GetShiftState [15:50:22]wFMCommunicate request_size=4 [15:50:22]MH_SAM_APDU [15:50:22]CAPDU: 80 13 01 00 [15:50:22]Write to MH i2c: E2 08 00 10 3C 80 13 01 00 00 00 00 00 C9 [15:50:22]Write i2c OK [15:50:22]MH_I2C_Read... [15:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:22]Read from MH i2c: E2 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: E2 0E 00 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: E2 0E 00 10 3C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 3D [15:50:22]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:50:22]wFMCommunicate OK [15:50:22]SAM_PROTO_GetShiftState done [15:50:22]FM_GetShiftState done [15:50:22]opened in 1710201976 [15:50:22]opened+sec_in_day 1710288376 [15:50:22]quantity*price = 81535 [15:50:22]sum+1 = 81536 [15:50:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 815.00 Внесено: 815.00 СДАЧА: 0.00 НСП 1% : 7.21 НДС 12% : 86.59 Наличными: 815.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 131 12.03.2024 15:50 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95201 ФПД: 191928077437467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T155028&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95201&fm=191928077437467&tin=02508201610067®Number=0000000000090555&sum=81500 [15:50:23]StoreToDocumentArchive [15:50:23]shift 327 fd 95201 [15:50:23]save to /storage/0327/doc_00095201 [15:50:23]save last doc name /storage/0327/doc_00095201 to /storage/kkm_last_doc_name [15:50:23]save OK [15:50:23]Clear old archive folders... [15:50:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:50:23]tlvbuf is 01AD1FB0 [15:50:23]SAM_PROTO_ClearQueue [15:50:23]wFMCommunicate request_size=4 [15:50:23]MH_SAM_APDU [15:50:23]CAPDU: 80 09 00 00 [15:50:23]Write to MH i2c: E2 08 00 1D 3C 80 09 00 00 00 00 00 00 CB [15:50:23]Write i2c OK [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: E2 [15:50:23]MH_I2C_Read... [15:50:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:23]Read from MH i2c: E2 03 00 [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: E2 03 00 1D 3C 00 90 00 CD [15:50:23]RAPDU: 90 00 [15:50:23]wFMCommunicate OK [15:50:23]SAM_PROTO_ClearQueue done [15:50:23]KKMCreateOFDPacket [15:50:23]OFDProtocolAddRootSTLVToBuf [15:50:23]FM_MakeSignedData [15:50:23]FM_MakeSignedData [15:50:23]SAM_PROTO_SignData [15:50:23]wFMCommunicate request_size=4 [15:50:23]MH_SAM_APDU [15:50:23]CAPDU: 80 0D 01 02 [15:50:23]Write to MH i2c: E2 08 00 1E 3C 80 0D 01 02 00 00 00 00 D3 [15:50:23]Write i2c OK [15:50:23]MH_I2C_Read... [15:50:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:23]Read from MH i2c: E2 [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: E2 03 00 [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: E2 03 00 1E 3C 00 90 00 CE [15:50:23]RAPDU: 90 00 [15:50:23]wFMCommunicate OK [15:50:23]wFMCommunicate request_size=255 [15:50:23]MH_SAM_APDU [15:50:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EC 2C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7F 3E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 3E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 21 00 00 00 00 07 04 06 00 5C 3E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C4 79 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E1 73 01 00 35 04 06 00 AE 8E BC E0 [15:50:23]Write to MH i2c: E2 02 01 1F 3C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EC 2C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7F 3E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 3E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 21 00 00 00 00 07 04 06 00 5C 3E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C4 79 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E1 73 01 00 35 04 06 00 AE 8E BC E0 00 00 56 [15:50:23]Write i2c OK [15:50:23]MH_I2C_Read... [15:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:23]Read from MH i2c: E2 [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: E2 03 00 [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: E2 03 00 1F 3C 00 90 00 CF [15:50:23]RAPDU: 90 00 [15:50:23]wFMCommunicate OK [15:50:23]wFMCommunicate request_size=7 [15:50:23]MH_SAM_APDU [15:50:23]CAPDU: 80 0D 02 02 02 CA 1B [15:50:23]Write to MH i2c: E2 0A 00 20 3C 80 0D 02 02 02 00 CA 1B 00 00 BF [15:50:23]Write i2c OK [15:50:23]MH_I2C_Read... [15:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:23]Read from MH i2c: E2 [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: E2 03 00 [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: E2 03 00 20 3C 00 90 00 D0 [15:50:23]RAPDU: 90 00 [15:50:23]wFMCommunicate OK [15:50:23]wFMCommunicate request_size=4 [15:50:23]MH_SAM_APDU [15:50:23]CAPDU: 80 0D 03 02 [15:50:23]Write to MH i2c: E2 08 00 21 3C 80 0D 03 02 00 00 00 00 D8 [15:50:23]Write i2c OK [15:50:23]MH_I2C_Read... [15:50:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:23]Read from MH i2c: E2 [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: E2 0B 00 [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: E2 0B 00 21 3C 00 43 4C 45 04 F0 24 99 99 90 00 F7 [15:50:23]RAPDU: 43 4C 45 04 F0 24 99 99 90 00 [15:50:23]wFMCommunicate OK [15:50:23]SAM_PROTO_SignData done [15:50:23]FM_MakeSignedData done [15:50:23]CreateOFDProtocolMessage [15:50:23]wFMCommunicate request_size=4 [15:50:23]MH_SAM_APDU [15:50:23]CAPDU: 80 11 00 00 [15:50:23]Write to MH i2c: E2 08 00 22 3C 80 11 00 00 00 00 00 00 D8 [15:50:23]Write i2c OK [15:50:23]MH_I2C_Read... [15:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:24]Read from MH i2c: E2 [15:50:24]MH_I2C_Read... [15:50:24]Read from MH i2c: E2 17 00 [15:50:24]MH_I2C_Read... [15:50:24]Read from MH i2c: E2 17 00 22 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 28 [15:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:50:24]wFMCommunicate OK [15:50:24]CreateOFDProtocolMessage done [15:50:24]OFDSenderStorePacket 95201 [15:50:24]StoreOFDPacket docnum=95201 [15:50:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 BB DB 04 01 E9 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EC 2C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7F 3E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 3E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 21 00 00 00 00 07 04 06 00 5C 3E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C4 79 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E1 73 01 00 35 04 06 00 AE 8E BC E0 CA 1B 43 4C 45 04 F0 24 99 99 [15:50:24]CheckFolder [15:50:24]dirname=/storage/ofd_packets [15:50:24]CheckFolder done [15:50:24]ProducePacketName [15:50:24]name=ofd_packets/00095201 [15:50:24]NVStorageSaveData ofd_packets/00095201 [15:50:24]File name is /storage/ofd_packets/00095201 [15:50:24]Write 298 bytes [15:50:24]NVStorageSaveData done [15:50:24]OFDSenderStorePacket done [15:50:24]KKMCreateOFDPacket done [15:50:24]NVStorageSaveData kkm_last_timestamp [15:50:24]File name is /storage/kkm_last_timestamp [15:50:24]Write 4 bytes [15:50:24]NVStorageSaveData done [15:50:24]ExternCall_PrintAddStr [15:50:24]wPrintStart [15:50:24]Write to MH i2c: 01 00 00 23 3C 5F [15:50:24]Write i2c OK [15:50:24]MH_I2C_Read... [15:50:24]Read from MH i2c: 01 [15:50:24]MH_I2C_Read... [15:50:24]Read from MH i2c: 01 07 00 [15:50:24]MH_I2C_Read... [15:50:24]Read from MH i2c: 01 07 00 23 3C 00 80 00 00 00 FF 0F F4 [15:50:24]RasterBufferAndPrint [15:50:24]line Счет N : (1)196171 [15:50:24]line ИНН: 02508201610067 [15:50:24]line Контрольно-Кассовый Чек [15:50:24]line ПРОДАЖА [15:50:24]line ТРК (МРК, ГНК) : 51 [15:50:24]line Товар: 2710194210 [15:50:24]line ДТ-К-5 [15:50:24]line 11.500 * 70.90 [15:50:24]line = 815.35 [15:50:24]line НДС 12% НСП 1% [15:50:24]line > о реализуемом товаре [15:50:24]line ОКРУГЛЕНИЕ: -0.35 [15:50:24]line ИТОГО: 815.00 [15:50:24]line Внесено: 815.00 [15:50:24]line СДАЧА: 0.00 [15:50:24]line НСП 1% : 7.21 [15:50:24]line НДС 12% : 86.59 [15:50:24]line Наличными: 815.00 [15:50:24]line Безнал.: 0.00 [15:50:24]line Место: АЗС № 6 "Партнер Нефть" [15:50:24]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:50:24]line СНО: Общий режим [15:50:24]line Чек 131 12.03.2024 15:50 [15:50:24]line Смена: 327 ФФД: 1.0 [15:50:24]line ЗНМ: 0300000009 [15:50:24]line РНМ: 0000000000090555 [15:50:24]line Версия ККМ: 001 [15:50:24]line ФМ: 0000000000874811 [15:50:24]line ФД: 95201 [15:50:24]line ФПД: 191928077437467 [15:50:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T155028&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95201&fm=191928077437467&tin=02508201610067®Number=0000000000090555&sum=81500 [15:50:24]OFD Sender: Processing packet 95201 [packets to send 30, broken 29] [15:50:24]ProducePacketName [15:50:24]name=ofd_packets/00095201 [15:50:24]OFD Sender: To server: pG, [15:50:24]CommunicateWithHost lk.salyk.kg:30040 [15:50:24]ConnectInit lk.salyk.kg [15:50:24]written 0, free lines is 4095 [15:50:24]Connected sock=11 [15:50:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 BB DB 04 01 E9 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EC 2C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7F 3E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 3E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 21 00 00 00 00 07 04 06 00 5C 3E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C4 79 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E1 73 01 00 35 04 06 00 AE 8E BC E0 CA 1B 43 4C 45 04 F0 24 99 99 [15:50:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 87 82 47 00 D6 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E1 73 01 00 F4 03 04 00 19 25 F0 65 B6 04 01 00 00 0E 93 D9 F2 1B A4 CA FD [15:50:24]CommunicateWithHost err = 0 [15:50:24]CheckOFDResponse [15:50:24]1017 (14) - 77093643461234 [15:50:24]1041 (16) - 0000000000874811 [15:50:24]1040 (4) - 95201 [15:50:24]1012 (4) - 12.03.2024 09:49 [15:50:24]1206 (1) - 0 [15:50:24]OFD Sender: Remove packet 95201 [15:50:24]ProducePacketName [15:50:24]name=ofd_packets/00095201 [15:50:24]NVStorageDeleteData [15:50:24]Write to MH i2c: 01 00 00 4E 3C 8A [15:50:24]Write i2c OK [15:50:24]MH_I2C_Read... [15:50:24]Read from MH i2c: 01 [15:50:24]MH_I2C_Read... [15:50:24]Read from MH i2c: 01 07 00 [15:50:24]MH_I2C_Read... [15:50:24]Read from MH i2c: 01 07 00 4E 3C 00 80 00 00 00 4A 0D 68 [15:50:24]RasterBufferAndPrint [15:50:24]line [15:50:24]line [15:50:24]line [15:50:24]line [15:50:24]line [15:50:24]written 0, free lines is 3408 [15:50:24]process_action close_receipt done [15:50:24]requested_data is exist [15:50:24]produce_requested_data [15:50:24]requested_item fm.sn is exist - process it [15:50:24]wFMCommunicate request_size=4 [15:50:24]MH_SAM_APDU [15:50:24]CAPDU: 80 11 00 00 [15:50:24]Write to MH i2c: E2 08 00 55 3C 80 11 00 00 00 00 00 00 0B [15:50:24]Write i2c OK [15:50:24]MH_I2C_Read... [15:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:24]Read from MH i2c: E2 [15:50:24]MH_I2C_Read... [15:50:24]Read from MH i2c: E2 17 00 [15:50:24]MH_I2C_Read... [15:50:24]Read from MH i2c: E2 17 00 55 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5B [15:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:50:24]wFMCommunicate OK [15:50:24]requested_item fd.num is exist - process it [15:50:24]SAM_PROTO_GetFieldsCounters [15:50:24]wFMCommunicate request_size=4 [15:50:24]MH_SAM_APDU [15:50:24]CAPDU: 80 13 00 00 [15:50:24]Write to MH i2c: E2 08 00 56 3C 80 13 00 00 00 00 00 00 0E [15:50:24]Write i2c OK [15:50:24]MH_I2C_Read... [15:50:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:25]Read from MH i2c: E2 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 62 00 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 62 00 56 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E1 73 01 00 0E 04 04 00 47 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 51 [15:50:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E1 73 01 00 0E 04 04 00 47 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 [15:50:25]wFMCommunicate OK [15:50:25]SAM_PROTO_GetFieldsCounters done [15:50:25]requested_item shift.num is exist - process it [15:50:25]requested_item shift.opened is exist - process it [15:50:25]req_shift_opened [15:50:25]FM_GetShiftState [15:50:25]SAM_PROTO_GetShiftState [15:50:25]wFMCommunicate request_size=4 [15:50:25]MH_SAM_APDU [15:50:25]CAPDU: 80 13 01 00 [15:50:25]Write to MH i2c: E2 08 00 57 3C 80 13 01 00 00 00 00 00 10 [15:50:25]Write i2c OK [15:50:25]MH_I2C_Read... [15:50:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:25]Read from MH i2c: E2 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 0E 00 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 0E 00 57 3C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 84 [15:50:25]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:50:25]wFMCommunicate OK [15:50:25]SAM_PROTO_GetShiftState done [15:50:25]FM_GetShiftState done [15:50:25]req_shift_opened done [15:50:25]requested_item shift.open_date is exist - process it [15:50:25]req_shift_open_date [15:50:25]req_shift_open_date done [15:50:25]produce_requested_data done [15:50:25]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95201,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:50:25]process_action_free close_receipt [15:50:25]json_value_free [15:50:25]json_value_free done [15:50:25]process_json_proto returns [15:50:25]Send response to host [15:50:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95201,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:50:25]free response buf [15:50:25]execute_script done [15:50:25]execute_script returns [15:50:25]free content buf [15:50:25]Sock 8.Close socket [15:50:25]Sock 8.Thread stoped [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:17]accept exits with 9 [15:58:17]New connection [15:58:17]New thread 3066957156 created [15:58:17]Thread 3066813796 joined [15:58:17]Waiting for new connection... [15:58:17] Sock 9.Parse request [15:58:17]Sock 9.Check first char [15:58:17]Sock 9.First char is OK [15:58:17]request: POST /json_proto HTTP/1.0 [15:58:17]Method: POST [15:58:17]URL: /json_proto [15:58:17]Method is POST - this is cgi request [15:58:17]url: /json_proto [15:58:17]query_string will be loaded in cgi processing [15:58:17]execute_cgi json_proto POST (null) [15:58:17]execute_cgi path=json_proto method=POST [15:58:17]POST find Content-Length [15:58:17]Host: 172.17.62.67:8080 [15:58:17]Content-Length: 816 [15:58:17]Content-Type: application/json [15:58:17] [15:58:17]POST finish read [15:58:17]Found Content-Length = 816 [15:58:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.160, "sum" : 450.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 450.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:17]execute_script... [15:58:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.160, "sum" : 450.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 450.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:17]POST & json_proto [15:58:17]process_json_proto [15:58:17]json parsed OK: [15:58:17]protocol is kg_v1.0 [15:58:17]action value=close_receipt [15:58:17]process_action close_receipt [15:58:17]cmd_close_receipt [15:58:17]MH_GetDate [15:58:17]Write to MH i2c: F0 00 00 58 3C 83 [15:58:17]Write i2c OK [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: F0 [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: F0 05 00 [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: F0 05 00 58 3C 00 9F 7B F0 65 F7 [15:58:17]GetLastDocTimeStamp 1710258628 [15:58:17]current date 1710259103 [15:58:17]FM_GetShiftState [15:58:17]SAM_PROTO_GetShiftState [15:58:17]wFMCommunicate request_size=4 [15:58:17]MH_SAM_APDU [15:58:17]CAPDU: 80 13 01 00 [15:58:17]Write to MH i2c: E2 08 00 59 3C 80 13 01 00 00 00 00 00 12 [15:58:17]Write i2c OK [15:58:17]MH_I2C_Read... [15:58:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:17]Read from MH i2c: E2 [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: E2 0E 00 [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: E2 0E 00 59 3C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 86 [15:58:17]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:58:17]wFMCommunicate OK [15:58:17]SAM_PROTO_GetShiftState done [15:58:17]FM_GetShiftState done [15:58:17]opened in 1710201976 [15:58:17]opened+sec_in_day 1710288376 [15:58:17]quantity*price = 45036 [15:58:17]sum+1 = 45037 [15:58:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.36 НСП 1% : 3.98 НДС 12% : 47.83 Наличными: 0.00 Безнал.: 450.36 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 132 12.03.2024 15:58 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95202 ФПД: 85492111712503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T155823&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95202&fm=85492111712503&tin=02508201610067®Number=0000000000090555&sum=45036 [15:58:18]StoreToDocumentArchive [15:58:18]shift 327 fd 95202 [15:58:18]save to /storage/0327/doc_00095202 [15:58:18]save last doc name /storage/0327/doc_00095202 to /storage/kkm_last_doc_name [15:58:18]save OK [15:58:18]Clear old archive folders... [15:58:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:58:18]tlvbuf is 01B3CA80 [15:58:18]SAM_PROTO_ClearQueue [15:58:18]wFMCommunicate request_size=4 [15:58:18]MH_SAM_APDU [15:58:18]CAPDU: 80 09 00 00 [15:58:18]Write to MH i2c: E2 08 00 66 3C 80 09 00 00 00 00 00 00 14 [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 [15:58:18]MH_I2C_Read... [15:58:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:18]Read from MH i2c: E2 03 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 03 00 66 3C 00 90 00 16 [15:58:18]RAPDU: 90 00 [15:58:18]wFMCommunicate OK [15:58:18]SAM_PROTO_ClearQueue done [15:58:18]KKMCreateOFDPacket [15:58:18]OFDProtocolAddRootSTLVToBuf [15:58:18]FM_MakeSignedData [15:58:18]FM_MakeSignedData [15:58:18]SAM_PROTO_SignData [15:58:18]wFMCommunicate request_size=4 [15:58:18]MH_SAM_APDU [15:58:18]CAPDU: 80 0D 01 02 [15:58:18]Write to MH i2c: E2 08 00 67 3C 80 0D 01 02 00 00 00 00 1C [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:18]Read from MH i2c: E2 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 03 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 03 00 67 3C 00 90 00 17 [15:58:18]RAPDU: 90 00 [15:58:18]wFMCommunicate OK [15:58:18]wFMCommunicate request_size=255 [15:58:18]MH_SAM_APDU [15:58:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 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 AF 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 9F 7B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E2 73 01 00 35 04 06 00 4D [15:58:18]Write to MH i2c: E2 02 01 68 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 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 AF 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 9F 7B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E2 73 01 00 35 04 06 00 4D 00 00 DE [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:18]Read from MH i2c: E2 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 03 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 03 00 68 3C 00 90 00 18 [15:58:18]RAPDU: 90 00 [15:58:18]wFMCommunicate OK [15:58:18]wFMCommunicate request_size=10 [15:58:18]MH_SAM_APDU [15:58:18]CAPDU: 80 0D 02 02 05 C1 2E F3 20 F7 [15:58:18]Write to MH i2c: E2 0D 00 69 3C 80 0D 02 02 05 00 C1 2E F3 20 F7 00 00 22 [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:18]Read from MH i2c: E2 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 03 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 03 00 69 3C 00 90 00 19 [15:58:18]RAPDU: 90 00 [15:58:18]wFMCommunicate OK [15:58:18]wFMCommunicate request_size=4 [15:58:18]MH_SAM_APDU [15:58:18]CAPDU: 80 0D 03 02 [15:58:18]Write to MH i2c: E2 08 00 6A 3C 80 0D 03 02 00 00 00 00 21 [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:18]Read from MH i2c: E2 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 0B 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 0B 00 6A 3C 00 CE 73 64 37 BA 40 AB A5 90 00 48 [15:58:18]RAPDU: CE 73 64 37 BA 40 AB A5 90 00 [15:58:18]wFMCommunicate OK [15:58:18]SAM_PROTO_SignData done [15:58:18]FM_MakeSignedData done [15:58:18]CreateOFDProtocolMessage [15:58:18]wFMCommunicate request_size=4 [15:58:18]MH_SAM_APDU [15:58:18]CAPDU: 80 11 00 00 [15:58:18]Write to MH i2c: E2 08 00 6B 3C 80 11 00 00 00 00 00 00 21 [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:18]Read from MH i2c: E2 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 17 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 17 00 6B 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 71 [15:58:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:58:18]wFMCommunicate OK [15:58:18]CreateOFDProtocolMessage done [15:58:18]OFDSenderStorePacket 95202 [15:58:18]StoreOFDPacket docnum=95202 [15:58:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 27 17 07 01 9C 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 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 AF 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 9F 7B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E2 73 01 00 35 04 06 00 4D C1 2E F3 20 F7 CE 73 64 37 BA 40 AB A5 [15:58:18]CheckFolder [15:58:18]dirname=/storage/ofd_packets [15:58:18]CheckFolder done [15:58:18]ProducePacketName [15:58:18]name=ofd_packets/00095202 [15:58:18]NVStorageSaveData ofd_packets/00095202 [15:58:18]File name is /storage/ofd_packets/00095202 [15:58:18]Write 301 bytes [15:58:18]NVStorageSaveData done [15:58:18]OFDSenderStorePacket done [15:58:18]KKMCreateOFDPacket done [15:58:18]NVStorageSaveData kkm_last_timestamp [15:58:18]File name is /storage/kkm_last_timestamp [15:58:18]Write 4 bytes [15:58:18]NVStorageSaveData done [15:58:18]ExternCall_PrintAddStr [15:58:18]wPrintStart [15:58:18]Write to MH i2c: 01 00 00 6C 3C A8 [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: 01 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: 01 07 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: 01 07 00 6C 3C 00 80 00 00 00 FF 0F 3D [15:58:18]RasterBufferAndPrint [15:58:18]line Счет N : (1)196172 [15:58:18]line ИНН: 02508201610067 [15:58:18]line Контрольно-Кассовый Чек [15:58:18]line ПРОДАЖА [15:58:18]line ТРК (МРК, ГНК) : 12 [15:58:18]line Товар: 2710124130 [15:58:18]line Аи-92-К-5 [15:58:18]line 7.160 * 62.90 [15:58:18]line = 450.36 [15:58:18]line НДС 12% НСП 1% [15:58:18]line > о реализуемом товаре [15:58:18]line ИТОГО: 450.36 [15:58:18]line НСП 1% : 3.98 [15:58:18]line НДС 12% : 47.83 [15:58:18]line Наличными: 0.00 [15:58:18]line Безнал.: 450.36 [15:58:18]line Место: АЗС № 6 "Партнер Нефть" [15:58:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:58:18]line СНО: Общий режим [15:58:18]line Чек 132 12.03.2024 15:58 [15:58:18]line Смена: 327 ФФД: 1.0 [15:58:18]line ЗНМ: 0300000009 [15:58:18]line РНМ: 0000000000090555 [15:58:18]line Версия ККМ: 001 [15:58:18]line Платежная система: Бакай Банк [15:58:18]line ФМ: 0000000000874811 [15:58:18]line ФД: 95202 [15:58:18]line ФПД: 85492111712503 [15:58:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T155823&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95202&fm=85492111712503&tin=02508201610067®Number=0000000000090555&sum=45036 [15:58:18]written 0, free lines is 4095 [15:58:18]OFD Sender: Processing packet 95202 [packets to send 30, broken 29] [15:58:18]ProducePacketName [15:58:18]name=ofd_packets/00095202 [15:58:18]OFD Sender: To server: pG, [15:58:18]CommunicateWithHost lk.salyk.kg:30040 [15:58:18]ConnectInit lk.salyk.kg [15:58:18]Connected sock=10 [15:58:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 27 17 07 01 9C 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 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 AF 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 9F 7B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E2 73 01 00 35 04 06 00 4D C1 2E F3 20 F7 CE 73 64 37 BA 40 AB A5 [15:58:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 90 EB 47 00 93 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E2 73 01 00 F4 03 04 00 F4 26 F0 65 B6 04 01 00 00 65 7E DF B8 51 26 2B EB [15:58:19]CommunicateWithHost err = 0 [15:58:19]CheckOFDResponse [15:58:19]1017 (14) - 77093643461234 [15:58:19]1041 (16) - 0000000000874811 [15:58:19]1040 (4) - 95202 [15:58:19]1012 (4) - 12.03.2024 09:57 [15:58:19]1206 (1) - 0 [15:58:19]OFD Sender: Remove packet 95202 [15:58:19]ProducePacketName [15:58:19]name=ofd_packets/00095202 [15:58:19]NVStorageDeleteData [15:58:19]Write to MH i2c: 01 00 00 96 3C D2 [15:58:19]Write i2c OK [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: 01 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: 01 07 00 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: 01 07 00 96 3C 00 80 00 00 00 6A 0D D0 [15:58:19]RasterBufferAndPrint [15:58:19]line [15:58:19]line [15:58:19]line [15:58:19]line [15:58:19]line [15:58:19]written 0, free lines is 3440 [15:58:19]process_action close_receipt done [15:58:19]requested_data is exist [15:58:19]produce_requested_data [15:58:19]requested_item fm.sn is exist - process it [15:58:19]wFMCommunicate request_size=4 [15:58:19]MH_SAM_APDU [15:58:19]CAPDU: 80 11 00 00 [15:58:19]Write to MH i2c: E2 08 00 9D 3C 80 11 00 00 00 00 00 00 53 [15:58:19]Write i2c OK [15:58:19]MH_I2C_Read... [15:58:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:19]Read from MH i2c: E2 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: E2 17 00 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: E2 17 00 9D 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A3 [15:58:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:58:19]wFMCommunicate OK [15:58:19]requested_item fd.num is exist - process it [15:58:19]SAM_PROTO_GetFieldsCounters [15:58:19]wFMCommunicate request_size=4 [15:58:19]MH_SAM_APDU [15:58:19]CAPDU: 80 13 00 00 [15:58:19]Write to MH i2c: E2 08 00 9E 3C 80 13 00 00 00 00 00 00 56 [15:58:19]Write i2c OK [15:58:19]MH_I2C_Read... [15:58:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:19]Read from MH i2c: E2 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: E2 62 00 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: E2 62 00 9E 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E2 73 01 00 0E 04 04 00 47 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 9D [15:58:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E2 73 01 00 0E 04 04 00 47 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 [15:58:19]wFMCommunicate OK [15:58:19]SAM_PROTO_GetFieldsCounters done [15:58:19]requested_item shift.num is exist - process it [15:58:19]requested_item shift.opened is exist - process it [15:58:19]req_shift_opened [15:58:19]FM_GetShiftState [15:58:19]SAM_PROTO_GetShiftState [15:58:19]wFMCommunicate request_size=4 [15:58:19]MH_SAM_APDU [15:58:19]CAPDU: 80 13 01 00 [15:58:19]Write to MH i2c: E2 08 00 9F 3C 80 13 01 00 00 00 00 00 58 [15:58:19]Write i2c OK [15:58:19]MH_I2C_Read... [15:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:19]Read from MH i2c: E2 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: E2 0E 00 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: E2 0E 00 9F 3C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CC [15:58:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [15:58:19]wFMCommunicate OK [15:58:19]SAM_PROTO_GetShiftState done [15:58:19]FM_GetShiftState done [15:58:19]req_shift_opened done [15:58:19]requested_item shift.open_date is exist - process it [15:58:19]req_shift_open_date [15:58:19]req_shift_open_date done [15:58:19]produce_requested_data done [15:58:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95202,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [15:58:19]process_action_free close_receipt [15:58:19]json_value_free [15:58:19]json_value_free done [15:58:19]process_json_proto returns [15:58:19]Send response to host [15:58:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95202,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [15:58:19]free response buf [15:58:19]execute_script done [15:58:19]execute_script returns [15:58:19]free content buf [15:58:19]Sock 9.Close socket [15:58:19]Sock 9.Thread stoped [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:07]accept exits with 8 [16:01:07]New connection [16:01:07]New thread 3066813796 created [16:01:07]Thread 3066957156 joined [16:01:07]Waiting for new connection... [16:01:07] Sock 8.Parse request [16:01:07]Sock 8.Check first char [16:01:07]Sock 8.First char is OK [16:01:07]request: POST /json_proto HTTP/1.0 [16:01:07]Method: POST [16:01:07]URL: /json_proto [16:01:07]Method is POST - this is cgi request [16:01:07]url: /json_proto [16:01:07]query_string will be loaded in cgi processing [16:01:07]execute_cgi json_proto POST (null) [16:01:07]execute_cgi path=json_proto method=POST [16:01:07]POST find Content-Length [16:01:07]Host: 172.17.62.67:8080 [16:01:07]Content-Length: 1201 [16:01:07]Content-Type: application/json [16:01:07] [16:01:07]POST finish read [16:01:07]Found Content-Length = 1201 [16:01:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196173\u000A12.03.2024 15:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A3582271\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:07]execute_script... [16:01:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196173\u000A12.03.2024 15:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A3582271\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:07]POST & json_proto [16:01:07]process_json_proto [16:01:07]json parsed OK: [16:01:07]protocol is kg_v1.0 [16:01:07]action value=print_text [16:01:07]process_action print_text [16:01:07]cmd_print_text [16:01:07]ExternCall_PrintAddStr [16:01:07]wPrintStart [16:01:07]Write to MH i2c: 01 00 00 A0 3C DC [16:01:07]Write i2c OK [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: 01 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: 01 07 00 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: 01 07 00 A0 3C 00 80 00 00 00 FF 0F 71 [16:01:07]RasterBufferAndPrint [16:01:07]line *****ТОВАРНЫЙ ЧЕК***** [16:01:07]line АЗС 6 [16:01:07]line Партнер нефть [16:01:07]line 02508201610067 [16:01:07]line Кассир : Мыктыбекова И. [16:01:07]line Счет N : (1)196173 [16:01:07]line 12.03.2024 15:55 [16:01:07]line ПРОДАЖА [16:01:07]line ТРК (МРК, ГНК): 32 [16:01:07]line Вид ГСМ : 2710124130 [16:01:07]line Аи-92-К-5 [16:01:07]line 20.000 x 62.90 [16:01:07]line ИТОГ: 1258.00 [16:01:07]line Тип оплаты: Талоны: Партнер нефть [16:01:07]line 3582271 [16:01:07]line ______________________ [16:01:07]line (подпись) [16:01:07]written 0, free lines is 4095 [16:01:07]Write to MH i2c: 01 00 00 B4 3C F0 [16:01:07]Write i2c OK [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: 01 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: 01 07 00 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: 01 07 00 B4 3C 00 80 00 00 00 68 0E ED [16:01:07]RasterBufferAndPrint [16:01:07]line [16:01:07]line [16:01:07]line [16:01:07]line [16:01:07]line [16:01:07]written 0, free lines is 3691 [16:01:07]process_action print_text done [16:01:07]requested_data is exist [16:01:07]produce_requested_data [16:01:07]requested_item fm.sn is exist - process it [16:01:07]wFMCommunicate request_size=4 [16:01:07]MH_SAM_APDU [16:01:07]CAPDU: 80 11 00 00 [16:01:07]Write to MH i2c: E2 08 00 BB 3C 80 11 00 00 00 00 00 00 71 [16:01:07]Write i2c OK [16:01:07]MH_I2C_Read... [16:01:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:07]Read from MH i2c: E2 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: E2 17 00 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: E2 17 00 BB 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C1 [16:01:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:01:07]wFMCommunicate OK [16:01:07]requested_item fd.num is exist - process it [16:01:07]SAM_PROTO_GetFieldsCounters [16:01:07]wFMCommunicate request_size=4 [16:01:07]MH_SAM_APDU [16:01:07]CAPDU: 80 13 00 00 [16:01:07]Write to MH i2c: E2 08 00 BC 3C 80 13 00 00 00 00 00 00 74 [16:01:07]Write i2c OK [16:01:07]MH_I2C_Read... [16:01:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:07]Read from MH i2c: E2 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: E2 62 00 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: E2 62 00 BC 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E2 73 01 00 0E 04 04 00 47 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 BB [16:01:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E2 73 01 00 0E 04 04 00 47 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:01:07]wFMCommunicate OK [16:01:07]SAM_PROTO_GetFieldsCounters done [16:01:07]requested_item shift.num is exist - process it [16:01:07]requested_item shift.opened is exist - process it [16:01:07]req_shift_opened [16:01:07]FM_GetShiftState [16:01:07]SAM_PROTO_GetShiftState [16:01:07]wFMCommunicate request_size=4 [16:01:07]MH_SAM_APDU [16:01:07]CAPDU: 80 13 01 00 [16:01:07]Write to MH i2c: E2 08 00 BD 3C 80 13 01 00 00 00 00 00 76 [16:01:07]Write i2c OK [16:01:07]MH_I2C_Read... [16:01:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:07]Read from MH i2c: E2 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: E2 0E 00 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: E2 0E 00 BD 3C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 EA [16:01:07]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:01:07]wFMCommunicate OK [16:01:07]SAM_PROTO_GetShiftState done [16:01:07]FM_GetShiftState done [16:01:07]req_shift_opened done [16:01:07]requested_item shift.open_date is exist - process it [16:01:07]req_shift_open_date [16:01:07]req_shift_open_date done [16:01:07]produce_requested_data done [16:01:07]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95202,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [16:01:07]process_action_free print_text [16:01:07]json_value_free [16:01:07]json_value_free done [16:01:07]process_json_proto returns [16:01:07]Send response to host [16:01:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95202,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [16:01:07]free response buf [16:01:07]execute_script done [16:01:07]execute_script returns [16:01:07]free content buf [16:01:07]Sock 8.Close socket [16:01:07]Sock 8.Thread stoped [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:16]accept exits with 9 [16:08:16]New connection [16:08:16]New thread 3066957156 created [16:08:16]Thread 3066813796 joined [16:08:16]Waiting for new connection... [16:08:16] Sock 9.Parse request [16:08:16]Sock 9.Check first char [16:08:16]Sock 9.First char is OK [16:08:16]request: POST /json_proto HTTP/1.0 [16:08:16]Method: POST [16:08:16]URL: /json_proto [16:08:16]Method is POST - this is cgi request [16:08:16]url: /json_proto [16:08:16]query_string will be loaded in cgi processing [16:08:16]execute_cgi json_proto POST (null) [16:08:16]execute_cgi path=json_proto method=POST [16:08:16]POST find Content-Length [16:08:16]Host: 172.17.62.67:8080 [16:08:16]Content-Length: 819 [16:08:16]Content-Type: application/json [16:08:16] [16:08:16]POST finish read [16:08:16]Found Content-Length = 819 [16:08:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:16]execute_script... [16:08:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:16]POST & json_proto [16:08:16]process_json_proto [16:08:16]json parsed OK: [16:08:16]protocol is kg_v1.0 [16:08:16]action value=close_receipt [16:08:16]process_action close_receipt [16:08:16]cmd_close_receipt [16:08:16]MH_GetDate [16:08:16]Write to MH i2c: F0 00 00 BE 3C E9 [16:08:16]Write i2c OK [16:08:16]MH_I2C_Read... [16:08:16]Read from MH i2c: F0 [16:08:16]MH_I2C_Read... [16:08:16]Read from MH i2c: F0 05 00 [16:08:16]MH_I2C_Read... [16:08:16]Read from MH i2c: F0 05 00 BE 3C 00 F6 7D F0 65 B6 [16:08:16]GetLastDocTimeStamp 1710259103 [16:08:16]current date 1710259702 [16:08:16]FM_GetShiftState [16:08:16]SAM_PROTO_GetShiftState [16:08:16]wFMCommunicate request_size=4 [16:08:16]MH_SAM_APDU [16:08:16]CAPDU: 80 13 01 00 [16:08:16]Write to MH i2c: E2 08 00 BF 3C 80 13 01 00 00 00 00 00 78 [16:08:16]Write i2c OK [16:08:16]MH_I2C_Read... [16:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:16]Read from MH i2c: E2 [16:08:16]MH_I2C_Read... [16:08:16]Read from MH i2c: E2 0E 00 [16:08:16]MH_I2C_Read... [16:08:16]Read from MH i2c: E2 0E 00 BF 3C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 EC [16:08:16]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:08:16]wFMCommunicate OK [16:08:16]SAM_PROTO_GetShiftState done [16:08:16]FM_GetShiftState done [16:08:16]opened in 1710201976 [16:08:16]opened+sec_in_day 1710288376 [16:08:16]quantity*price = 100011 [16:08:16]sum+1 = 100012 [16:08:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 133 12.03.2024 16:08 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95203 ФПД: 115618695776184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T160822&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95203&fm=115618695776184&tin=02508201610067®Number=0000000000090555&sum=100011 [16:08:17]StoreToDocumentArchive [16:08:17]shift 327 fd 95203 [16:08:17]save to /storage/0327/doc_00095203 [16:08:17]save last doc name /storage/0327/doc_00095203 to /storage/kkm_last_doc_name [16:08:17]save OK [16:08:17]Clear old archive folders... [16:08:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:17]tlvbuf is 01A5F4D0 [16:08:17]SAM_PROTO_ClearQueue [16:08:17]wFMCommunicate request_size=4 [16:08:17]MH_SAM_APDU [16:08:17]CAPDU: 80 09 00 00 [16:08:17]Write to MH i2c: E2 08 00 CC 3C 80 09 00 00 00 00 00 00 7A [16:08:17]Write i2c OK [16:08:17]MH_I2C_Read... [16:08:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:17]Read from MH i2c: E2 [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: E2 03 00 [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: E2 03 00 CC 3C 00 90 00 7C [16:08:17]RAPDU: 90 00 [16:08:17]wFMCommunicate OK [16:08:17]SAM_PROTO_ClearQueue done [16:08:17]KKMCreateOFDPacket [16:08:17]OFDProtocolAddRootSTLVToBuf [16:08:17]FM_MakeSignedData [16:08:17]FM_MakeSignedData [16:08:17]SAM_PROTO_SignData [16:08:17]wFMCommunicate request_size=4 [16:08:17]MH_SAM_APDU [16:08:17]CAPDU: 80 0D 01 02 [16:08:17]Write to MH i2c: E2 08 00 CD 3C 80 0D 01 02 00 00 00 00 82 [16:08:17]Write i2c OK [16:08:17]MH_I2C_Read... [16:08:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:18]Read from MH i2c: E2 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: E2 03 00 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: E2 03 00 CD 3C 00 90 00 7D [16:08:18]RAPDU: 90 00 [16:08:18]wFMCommunicate OK [16:08:18]wFMCommunicate request_size=255 [16:08:18]MH_SAM_APDU [16:08:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 F6 7D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E3 73 01 00 35 04 06 00 69 [16:08:18]Write to MH i2c: E2 02 01 CE 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 F6 7D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E3 73 01 00 35 04 06 00 69 00 00 95 [16:08:18]Write i2c OK [16:08:18]MH_I2C_Read... [16:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:18]Read from MH i2c: E2 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: E2 03 00 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: E2 03 00 CE 3C 00 90 00 7E [16:08:18]RAPDU: 90 00 [16:08:18]wFMCommunicate OK [16:08:18]wFMCommunicate request_size=10 [16:08:18]MH_SAM_APDU [16:08:18]CAPDU: 80 0D 02 02 05 27 93 4A 87 B8 [16:08:18]Write to MH i2c: E2 0D 00 CF 3C 80 0D 02 02 05 00 27 93 4A 87 B8 00 00 D2 [16:08:18]Write i2c OK [16:08:18]MH_I2C_Read... [16:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:18]Read from MH i2c: E2 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: E2 03 00 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: E2 03 00 CF 3C 00 90 00 7F [16:08:18]RAPDU: 90 00 [16:08:18]wFMCommunicate OK [16:08:18]wFMCommunicate request_size=4 [16:08:18]MH_SAM_APDU [16:08:18]CAPDU: 80 0D 03 02 [16:08:18]Write to MH i2c: E2 08 00 D0 3C 80 0D 03 02 00 00 00 00 87 [16:08:18]Write i2c OK [16:08:18]MH_I2C_Read... [16:08:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:18]Read from MH i2c: E2 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: E2 0B 00 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: E2 0B 00 D0 3C 00 EA 9D 82 93 3F CA 43 5D 90 00 CD [16:08:18]RAPDU: EA 9D 82 93 3F CA 43 5D 90 00 [16:08:18]wFMCommunicate OK [16:08:18]SAM_PROTO_SignData done [16:08:18]FM_MakeSignedData done [16:08:18]CreateOFDProtocolMessage [16:08:18]wFMCommunicate request_size=4 [16:08:18]MH_SAM_APDU [16:08:18]CAPDU: 80 11 00 00 [16:08:18]Write to MH i2c: E2 08 00 D1 3C 80 11 00 00 00 00 00 00 87 [16:08:18]Write i2c OK [16:08:18]MH_I2C_Read... [16:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:18]Read from MH i2c: E2 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: E2 17 00 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: E2 17 00 D1 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D7 [16:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:08:18]wFMCommunicate OK [16:08:18]CreateOFDProtocolMessage done [16:08:18]OFDSenderStorePacket 95203 [16:08:18]StoreOFDPacket docnum=95203 [16:08:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8D 03 07 01 1D 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 F6 7D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E3 73 01 00 35 04 06 00 69 27 93 4A 87 B8 EA 9D 82 93 3F CA 43 5D [16:08:18]CheckFolder [16:08:18]dirname=/storage/ofd_packets [16:08:18]CheckFolder done [16:08:18]ProducePacketName [16:08:18]name=ofd_packets/00095203 [16:08:18]NVStorageSaveData ofd_packets/00095203 [16:08:18]File name is /storage/ofd_packets/00095203 [16:08:18]Write 301 bytes [16:08:18]NVStorageSaveData done [16:08:18]OFDSenderStorePacket done [16:08:18]KKMCreateOFDPacket done [16:08:18]NVStorageSaveData kkm_last_timestamp [16:08:18]File name is /storage/kkm_last_timestamp [16:08:18]Write 4 bytes [16:08:18]NVStorageSaveData done [16:08:18]ExternCall_PrintAddStr [16:08:18]wPrintStart [16:08:18]Write to MH i2c: 01 00 00 D2 3C 0E [16:08:18]Write i2c OK [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: 01 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: 01 07 00 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: 01 07 00 D2 3C 00 80 00 00 00 FF 0F A3 [16:08:18]RasterBufferAndPrint [16:08:18]line Счет N : (1)196174 [16:08:18]line ИНН: 02508201610067 [16:08:18]line Контрольно-Кассовый Чек [16:08:18]line ПРОДАЖА [16:08:18]line ТРК (МРК, ГНК) : 32 [16:08:18]line Товар: 2710124130 [16:08:18]line Аи-92-К-5 [16:08:18]line 15.900 * 62.90 [16:08:18]line = 1000.11 [16:08:18]line НДС 12% НСП 1% [16:08:18]line > о реализуемом товаре [16:08:18]line ИТОГО: 1000.11 [16:08:18]line НСП 1% : 8.85 [16:08:18]line НДС 12% : 106.21 [16:08:18]line Наличными: 0.00 [16:08:18]line Безнал.: 1000.11 [16:08:18]line Место: АЗС № 6 "Партнер Нефть" [16:08:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:08:18]line СНО: Общий режим [16:08:18]line Чек 133 12.03.2024 16:08 [16:08:18]line Смена: 327 ФФД: 1.0 [16:08:18]line ЗНМ: 0300000009 [16:08:18]line РНМ: 0000000000090555 [16:08:18]line Версия ККМ: 001 [16:08:18]line Платежная система: Бакай Банк [16:08:18]line ФМ: 0000000000874811 [16:08:18]line ФД: 95203 [16:08:18]line ФПД: 115618695776184 [16:08:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T160822&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95203&fm=115618695776184&tin=02508201610067®Number=0000000000090555&sum=100011 [16:08:18]OFD Sender: Processing packet 95203 [packets to send 30, broken 29] [16:08:18]ProducePacketName [16:08:18]name=ofd_packets/00095203 [16:08:18]OFD Sender: To server: pG, [16:08:18]CommunicateWithHost lk.salyk.kg:30040 [16:08:18]ConnectInit lk.salyk.kg [16:08:18]written 0, free lines is 4095 [16:08:19]Write to MH i2c: 01 00 00 FC 3C 38 [16:08:19]Write i2c OK [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: 01 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: 01 07 00 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: 01 07 00 FC 3C 00 80 00 00 00 5E 0D 2A [16:08:19]RasterBufferAndPrint [16:08:19]line [16:08:19]line [16:08:19]line [16:08:19]line [16:08:19]line [16:08:19]written 0, free lines is 3426 [16:08:19]process_action close_receipt done [16:08:19]requested_data is exist [16:08:19]produce_requested_data [16:08:19]requested_item fm.sn is exist - process it [16:08:19]wFMCommunicate request_size=4 [16:08:19]MH_SAM_APDU [16:08:19]CAPDU: 80 11 00 00 [16:08:19]Write to MH i2c: E2 08 00 03 3D 80 11 00 00 00 00 00 00 BA [16:08:19]Write i2c OK [16:08:19]MH_I2C_Read... [16:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:19]Read from MH i2c: E2 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 17 00 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 17 00 03 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0A [16:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:08:19]wFMCommunicate OK [16:08:19]requested_item fd.num is exist - process it [16:08:19]SAM_PROTO_GetFieldsCounters [16:08:19]wFMCommunicate request_size=4 [16:08:19]MH_SAM_APDU [16:08:19]CAPDU: 80 13 00 00 [16:08:19]Write to MH i2c: E2 08 00 04 3D 80 13 00 00 00 00 00 00 BD [16:08:19]Write i2c OK [16:08:19]MH_I2C_Read... [16:08:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:19]Read from MH i2c: E2 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 62 00 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 62 00 04 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E3 73 01 00 0E 04 04 00 47 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 08 [16:08:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E3 73 01 00 0E 04 04 00 47 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:08:19]wFMCommunicate OK [16:08:19]SAM_PROTO_GetFieldsCounters done [16:08:19]requested_item shift.num is exist - process it [16:08:19]requested_item shift.opened is exist - process it [16:08:19]req_shift_opened [16:08:19]FM_GetShiftState [16:08:19]SAM_PROTO_GetShiftState [16:08:19]wFMCommunicate request_size=4 [16:08:19]MH_SAM_APDU [16:08:19]CAPDU: 80 13 01 00 [16:08:19]Write to MH i2c: E2 08 00 05 3D 80 13 01 00 00 00 00 00 BF [16:08:19]Write i2c OK [16:08:19]MH_I2C_Read... [16:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:19]Read from MH i2c: E2 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 0E 00 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 0E 00 05 3D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 33 [16:08:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:08:19]wFMCommunicate OK [16:08:19]SAM_PROTO_GetShiftState done [16:08:19]FM_GetShiftState done [16:08:19]req_shift_opened done [16:08:19]requested_item shift.open_date is exist - process it [16:08:19]req_shift_open_date [16:08:19]req_shift_open_date done [16:08:19]produce_requested_data done [16:08:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95203,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [16:08:19]process_action_free close_receipt [16:08:19]json_value_free [16:08:19]json_value_free done [16:08:19]process_json_proto returns [16:08:19]Send response to host [16:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95203,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [16:08:19]free response buf [16:08:19]execute_script done [16:08:19]execute_script returns [16:08:19]free content buf [16:08:19]Sock 9.Close socket [16:08:19]Sock 9.Thread stoped [16:10:32]ConnectInit Can't connect to host [16:10:32]CommunicateWithHost connect error [16:10:32]CommunicateWithHost err = -1 [16:10:32]OFD Sender: Server communicate error [16:10:37]OFD Sender: Processing packet 95203 [packets to send 30, broken 29] [16:10:37]ProducePacketName [16:10:37]name=ofd_packets/00095203 [16:10:37]OFD Sender: To server: pG, [16:10:37]CommunicateWithHost lk.salyk.kg:30040 [16:10:37]ConnectInit lk.salyk.kg [16:10:37]Connected sock=9 [16:10:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8D 03 07 01 1D 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 F6 7D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E3 73 01 00 35 04 06 00 69 27 93 4A 87 B8 EA 9D 82 93 3F CA 43 5D [16:10:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 6C 41 47 00 BC 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E3 73 01 00 F4 03 04 00 D6 29 F0 65 B6 04 01 00 00 C7 51 EA BA 1B 42 15 1B [16:10:37]CommunicateWithHost err = 0 [16:10:37]CheckOFDResponse [16:10:37]1017 (14) - 77093643461234 [16:10:37]1041 (16) - 0000000000874811 [16:10:37]1040 (4) - 95203 [16:10:37]1012 (4) - 12.03.2024 10:09 [16:10:37]1206 (1) - 0 [16:10:37]OFD Sender: Remove packet 95203 [16:10:37]ProducePacketName [16:10:37]name=ofd_packets/00095203 [16:10:37]NVStorageDeleteData [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:30]accept exits with 8 [16:22:30]New connection [16:22:30]New thread 3066813796 created [16:22:30]Thread 3066957156 joined [16:22:30]Waiting for new connection... [16:22:30] Sock 8.Parse request [16:22:30]Sock 8.Check first char [16:22:30]Sock 8.First char is OK [16:22:30]request: POST /json_proto HTTP/1.0 [16:22:30]Method: POST [16:22:30]URL: /json_proto [16:22:30]Method is POST - this is cgi request [16:22:30]url: /json_proto [16:22:30]query_string will be loaded in cgi processing [16:22:30]execute_cgi json_proto POST (null) [16:22:30]execute_cgi path=json_proto method=POST [16:22:30]POST find Content-Length [16:22:30]Host: 172.17.62.67:8080 [16:22:30]Content-Length: 674 [16:22:30]Content-Type: application/json [16:22:30] [16:22:30]POST finish read [16:22:30]Found Content-Length = 674 [16:22:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:30]execute_script... [16:22: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)196175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:30]POST & json_proto [16:22:30]process_json_proto [16:22:30]json parsed OK: [16:22:30]protocol is kg_v1.0 [16:22:30]action value=close_receipt [16:22:30]process_action close_receipt [16:22:30]cmd_close_receipt [16:22:30]MH_GetDate [16:22:30]Write to MH i2c: F0 00 00 06 3D 32 [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: F0 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: F0 05 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: F0 05 00 06 3D 00 4C 81 F0 65 59 [16:22:30]GetLastDocTimeStamp 1710259702 [16:22:30]current date 1710260556 [16:22:30]FM_GetShiftState [16:22:30]SAM_PROTO_GetShiftState [16:22:30]wFMCommunicate request_size=4 [16:22:30]MH_SAM_APDU [16:22:30]CAPDU: 80 13 01 00 [16:22:30]Write to MH i2c: E2 08 00 07 3D 80 13 01 00 00 00 00 00 C1 [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:30]Read from MH i2c: E2 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 0E 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 0E 00 07 3D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 35 [16:22:30]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:22:30]wFMCommunicate OK [16:22:30]SAM_PROTO_GetShiftState done [16:22:30]FM_GetShiftState done [16:22:30]opened in 1710201976 [16:22:30]opened+sec_in_day 1710288376 [16:22:30]quantity*price = 50055 [16:22:30]sum+1 = 50056 [16:22:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 134 12.03.2024 16:22 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95204 ФПД: 159064036740423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T162236&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95204&fm=159064036740423&tin=02508201610067®Number=0000000000090555&sum=50000 [16:22:31]StoreToDocumentArchive [16:22:31]shift 327 fd 95204 [16:22:31]save to /storage/0327/doc_00095204 [16:22:31]save last doc name /storage/0327/doc_00095204 to /storage/kkm_last_doc_name [16:22:31]save OK [16:22:31]Clear old archive folders... [16:22:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:22:31]tlvbuf is 01AECEE0 [16:22:31]SAM_PROTO_ClearQueue [16:22:31]wFMCommunicate request_size=4 [16:22:31]MH_SAM_APDU [16:22:31]CAPDU: 80 09 00 00 [16:22:31]Write to MH i2c: E2 08 00 14 3D 80 09 00 00 00 00 00 00 C3 [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:31]Read from MH i2c: E2 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 03 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 03 00 14 3D 00 90 00 C5 [16:22:31]RAPDU: 90 00 [16:22:31]wFMCommunicate OK [16:22:31]SAM_PROTO_ClearQueue done [16:22:31]KKMCreateOFDPacket [16:22:31]OFDProtocolAddRootSTLVToBuf [16:22:31]FM_MakeSignedData [16:22:31]FM_MakeSignedData [16:22:31]SAM_PROTO_SignData [16:22:31]wFMCommunicate request_size=4 [16:22:31]MH_SAM_APDU [16:22:31]CAPDU: 80 0D 01 02 [16:22:31]Write to MH i2c: E2 08 00 15 3D 80 0D 01 02 00 00 00 00 CB [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:31]Read from MH i2c: E2 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 03 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 03 00 15 3D 00 90 00 C6 [16:22:31]RAPDU: 90 00 [16:22:31]wFMCommunicate OK [16:22:31]wFMCommunicate request_size=255 [16:22:31]MH_SAM_APDU [16:22:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 4C 81 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E4 73 01 00 35 04 06 00 90 AA FB 68 [16:22:32]Write to MH i2c: E2 02 01 16 3D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 4C 81 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E4 73 01 00 35 04 06 00 90 AA FB 68 00 00 89 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 16 3D 00 90 00 C7 [16:22:32]RAPDU: 90 00 [16:22:32]wFMCommunicate OK [16:22:32]wFMCommunicate request_size=7 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 0D 02 02 02 0D 47 [16:22:32]Write to MH i2c: E2 0A 00 17 3D 80 0D 02 02 02 00 0D 47 00 00 26 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 17 3D 00 90 00 C8 [16:22:32]RAPDU: 90 00 [16:22:32]wFMCommunicate OK [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 0D 03 02 [16:22:32]Write to MH i2c: E2 08 00 18 3D 80 0D 03 02 00 00 00 00 D0 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 0B 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 0B 00 18 3D 00 07 EF BF EC A8 9C 85 E5 90 00 20 [16:22:32]RAPDU: 07 EF BF EC A8 9C 85 E5 90 00 [16:22:32]wFMCommunicate OK [16:22:32]SAM_PROTO_SignData done [16:22:32]FM_MakeSignedData done [16:22:32]CreateOFDProtocolMessage [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 11 00 00 [16:22:32]Write to MH i2c: E2 08 00 19 3D 80 11 00 00 00 00 00 00 D0 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 17 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 17 00 19 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 20 [16:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:22:32]wFMCommunicate OK [16:22:32]CreateOFDProtocolMessage done [16:22:32]OFDSenderStorePacket 95204 [16:22:32]StoreOFDPacket docnum=95204 [16:22:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 0F CA 04 01 10 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 4C 81 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E4 73 01 00 35 04 06 00 90 AA FB 68 0D 47 07 EF BF EC A8 9C 85 E5 [16:22:32]CheckFolder [16:22:32]dirname=/storage/ofd_packets [16:22:32]CheckFolder done [16:22:32]ProducePacketName [16:22:32]name=ofd_packets/00095204 [16:22:32]NVStorageSaveData ofd_packets/00095204 [16:22:32]File name is /storage/ofd_packets/00095204 [16:22:32]Write 298 bytes [16:22:32]NVStorageSaveData done [16:22:32]OFDSenderStorePacket done [16:22:32]KKMCreateOFDPacket done [16:22:32]NVStorageSaveData kkm_last_timestamp [16:22:32]File name is /storage/kkm_last_timestamp [16:22:32]Write 4 bytes [16:22:32]NVStorageSaveData done [16:22:32]ExternCall_PrintAddStr [16:22:32]wPrintStart [16:22:32]Write to MH i2c: 01 00 00 1A 3D 57 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: 01 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: 01 07 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: 01 07 00 1A 3D 00 80 00 00 00 FF 0F EC [16:22:32]RasterBufferAndPrint [16:22:32]line Счет N : (1)196175 [16:22:32]line ИНН: 02508201610067 [16:22:32]line Контрольно-Кассовый Чек [16:22:32]line ПРОДАЖА [16:22:32]line ТРК (МРК, ГНК) : 61 [16:22:32]line Товар: 2710194210 [16:22:32]line ДТ-К-5 [16:22:32]line 7.060 * 70.90 [16:22:32]line = 500.55 [16:22:32]line НДС 12% НСП 1% [16:22:32]line > о реализуемом товаре [16:22:32]line ОКРУГЛЕНИЕ: -0.55 [16:22:32]line ИТОГО: 500.00 [16:22:32]line Внесено: 500.00 [16:22:32]line СДАЧА: 0.00 [16:22:32]line НСП 1% : 4.43 [16:22:32]line НДС 12% : 53.16 [16:22:32]line Наличными: 500.00 [16:22:32]line Безнал.: 0.00 [16:22:32]line Место: АЗС № 6 "Партнер Нефть" [16:22:32]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:22:32]line СНО: Общий режим [16:22:32]line Чек 134 12.03.2024 16:22 [16:22:32]line Смена: 327 ФФД: 1.0 [16:22:32]line ЗНМ: 0300000009 [16:22:32]line РНМ: 0000000000090555 [16:22:32]line Версия ККМ: 001 [16:22:32]line ФМ: 0000000000874811 [16:22:32]line ФД: 95204 [16:22:32]line ФПД: 159064036740423 [16:22:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T162236&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95204&fm=159064036740423&tin=02508201610067®Number=0000000000090555&sum=50000 [16:22:32]OFD Sender: Processing packet 95204 [packets to send 30, broken 29] [16:22:32]ProducePacketName [16:22:32]name=ofd_packets/00095204 [16:22:32]OFD Sender: To server: pG, [16:22:32]CommunicateWithHost lk.salyk.kg:30040 [16:22:32]ConnectInit lk.salyk.kg [16:22:32]written 0, free lines is 4095 [16:22:32]Connected sock=10 [16:22:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 0F CA 04 01 10 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 4C 81 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E4 73 01 00 35 04 06 00 90 AA FB 68 0D 47 07 EF BF EC A8 9C 85 E5 [16:22:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 98 FE 47 00 F3 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E4 73 01 00 F4 03 04 00 A2 2C F0 65 B6 04 01 00 00 4A 5A A1 A1 E1 D2 F1 9C [16:22:33]CommunicateWithHost err = 0 [16:22:33]CheckOFDResponse [16:22:33]1017 (14) - 77093643461234 [16:22:33]1041 (16) - 0000000000874811 [16:22:33]1040 (4) - 95204 [16:22:33]1012 (4) - 12.03.2024 10:21 [16:22:33]1206 (1) - 0 [16:22:33]OFD Sender: Remove packet 95204 [16:22:33]ProducePacketName [16:22:33]name=ofd_packets/00095204 [16:22:33]NVStorageDeleteData [16:22:33]Write to MH i2c: 01 00 00 45 3D 82 [16:22:33]Write i2c OK [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: 01 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: 01 07 00 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: 01 07 00 45 3D 00 80 00 00 00 4E 0D 64 [16:22:33]RasterBufferAndPrint [16:22:33]line [16:22:33]line [16:22:33]line [16:22:33]line [16:22:33]line [16:22:33]written 0, free lines is 3410 [16:22:33]process_action close_receipt done [16:22:33]requested_data is exist [16:22:33]produce_requested_data [16:22:33]requested_item fm.sn is exist - process it [16:22:33]wFMCommunicate request_size=4 [16:22:33]MH_SAM_APDU [16:22:33]CAPDU: 80 11 00 00 [16:22:33]Write to MH i2c: E2 08 00 4C 3D 80 11 00 00 00 00 00 00 03 [16:22:33]Write i2c OK [16:22:33]MH_I2C_Read... [16:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:33]Read from MH i2c: E2 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: E2 17 00 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: E2 17 00 4C 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 53 [16:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:22:33]wFMCommunicate OK [16:22:33]requested_item fd.num is exist - process it [16:22:33]SAM_PROTO_GetFieldsCounters [16:22:33]wFMCommunicate request_size=4 [16:22:33]MH_SAM_APDU [16:22:33]CAPDU: 80 13 00 00 [16:22:33]Write to MH i2c: E2 08 00 4D 3D 80 13 00 00 00 00 00 00 06 [16:22:33]Write i2c OK [16:22:33]MH_I2C_Read... [16:22:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:33]Read from MH i2c: E2 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: E2 62 00 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: E2 62 00 4D 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E4 73 01 00 0E 04 04 00 47 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 55 [16:22:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E4 73 01 00 0E 04 04 00 47 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:22:33]wFMCommunicate OK [16:22:33]SAM_PROTO_GetFieldsCounters done [16:22:33]requested_item shift.num is exist - process it [16:22:33]requested_item shift.opened is exist - process it [16:22:33]req_shift_opened [16:22:33]FM_GetShiftState [16:22:33]SAM_PROTO_GetShiftState [16:22:33]wFMCommunicate request_size=4 [16:22:33]MH_SAM_APDU [16:22:33]CAPDU: 80 13 01 00 [16:22:33]Write to MH i2c: E2 08 00 4E 3D 80 13 01 00 00 00 00 00 08 [16:22:33]Write i2c OK [16:22:33]MH_I2C_Read... [16:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:33]Read from MH i2c: E2 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: E2 0E 00 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: E2 0E 00 4E 3D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 7C [16:22:33]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:22:33]wFMCommunicate OK [16:22:33]SAM_PROTO_GetShiftState done [16:22:33]FM_GetShiftState done [16:22:33]req_shift_opened done [16:22:33]requested_item shift.open_date is exist - process it [16:22:33]req_shift_open_date [16:22:33]req_shift_open_date done [16:22:33]produce_requested_data done [16:22:33]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95204,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [16:22:33]process_action_free close_receipt [16:22:33]json_value_free [16:22:33]json_value_free done [16:22:33]process_json_proto returns [16:22:33]Send response to host [16:22:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95204,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [16:22:33]free response buf [16:22:33]execute_script done [16:22:33]execute_script returns [16:22:33]free content buf [16:22:33]Sock 8.Close socket [16:22:33]Sock 8.Thread stoped [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:07]accept exits with 9 [16:25:07]New connection [16:25:07]New thread 3066957156 created [16:25:07]Thread 3066813796 joined [16:25:07]Waiting for new connection... [16:25:07] Sock 9.Parse request [16:25:07]Sock 9.Check first char [16:25:07]Sock 9.First char is OK [16:25:07]request: POST /json_proto HTTP/1.0 [16:25:07]Method: POST [16:25:07]URL: /json_proto [16:25:07]Method is POST - this is cgi request [16:25:07]url: /json_proto [16:25:07]query_string will be loaded in cgi processing [16:25:07]execute_cgi json_proto POST (null) [16:25:07]execute_cgi path=json_proto method=POST [16:25:07]POST find Content-Length [16:25:07]Host: 172.17.62.67:8080 [16:25:07]Content-Length: 677 [16:25:07]Content-Type: application/json [16:25:07] [16:25:07]POST finish read [16:25:07]Found Content-Length = 677 [16:25:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.170, "sum" : 199.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 199.00, "total" : 199.00, "payments": [ { "type": 0, "sum" : 199.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:07]execute_script... [16:25: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)196176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.170, "sum" : 199.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 199.00, "total" : 199.00, "payments": [ { "type": 0, "sum" : 199.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:07]POST & json_proto [16:25:07]process_json_proto [16:25:07]json parsed OK: [16:25:07]protocol is kg_v1.0 [16:25:07]action value=close_receipt [16:25:07]process_action close_receipt [16:25:07]cmd_close_receipt [16:25:07]MH_GetDate [16:25:07]Write to MH i2c: F0 00 00 4F 3D 7B [16:25:07]Write i2c OK [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: F0 [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: F0 05 00 [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: F0 05 00 4F 3D 00 E9 81 F0 65 3F [16:25:07]GetLastDocTimeStamp 1710260556 [16:25:07]current date 1710260713 [16:25:07]FM_GetShiftState [16:25:07]SAM_PROTO_GetShiftState [16:25:07]wFMCommunicate request_size=4 [16:25:07]MH_SAM_APDU [16:25:07]CAPDU: 80 13 01 00 [16:25:07]Write to MH i2c: E2 08 00 50 3D 80 13 01 00 00 00 00 00 0A [16:25:07]Write i2c OK [16:25:07]MH_I2C_Read... [16:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:07]Read from MH i2c: E2 [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: E2 0E 00 [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: E2 0E 00 50 3D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 7E [16:25:07]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:25:07]wFMCommunicate OK [16:25:07]SAM_PROTO_GetShiftState done [16:25:07]FM_GetShiftState done [16:25:07]opened in 1710201976 [16:25:07]opened+sec_in_day 1710288376 [16:25:07]quantity*price = 19939 [16:25:07]sum+1 = 19940 [16:25:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 199.00 Внесено: 199.00 СДАЧА: 0.00 НСП 1% : 1.76 НДС 12% : 21.17 Наличными: 199.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 135 12.03.2024 16:25 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95205 ФПД: 241521395223956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T162513&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95205&fm=241521395223956&tin=02508201610067®Number=0000000000090555&sum=19900 [16:25:08]StoreToDocumentArchive [16:25:08]shift 327 fd 95205 [16:25:08]save to /storage/0327/doc_00095205 [16:25:08]save last doc name /storage/0327/doc_00095205 to /storage/kkm_last_doc_name [16:25:08]save OK [16:25:08]Clear old archive folders... [16:25:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:08]tlvbuf is 01A8DCD0 [16:25:08]SAM_PROTO_ClearQueue [16:25:08]wFMCommunicate request_size=4 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 09 00 00 [16:25:08]Write to MH i2c: E2 08 00 5D 3D 80 09 00 00 00 00 00 00 0C [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:08]Read from MH i2c: E2 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 5D 3D 00 90 00 0E [16:25:08]RAPDU: 90 00 [16:25:08]wFMCommunicate OK [16:25:08]SAM_PROTO_ClearQueue done [16:25:08]KKMCreateOFDPacket [16:25:08]OFDProtocolAddRootSTLVToBuf [16:25:08]FM_MakeSignedData [16:25:08]FM_MakeSignedData [16:25:08]SAM_PROTO_SignData [16:25:08]wFMCommunicate request_size=4 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 0D 01 02 [16:25:08]Write to MH i2c: E2 08 00 5E 3D 80 0D 01 02 00 00 00 00 14 [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:09]Read from MH i2c: E2 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 5E 3D 00 90 00 0F [16:25:09]RAPDU: 90 00 [16:25:09]wFMCommunicate OK [16:25:09]wFMCommunicate request_size=255 [16:25:09]MH_SAM_APDU [16:25:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 E3 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E9 81 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E5 73 01 00 35 04 06 00 DB [16:25:09]Write to MH i2c: E2 02 01 5F 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 E3 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E9 81 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E5 73 01 00 35 04 06 00 DB 00 00 33 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:09]Read from MH i2c: E2 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 5F 3D 00 90 00 10 [16:25:09]RAPDU: 90 00 [16:25:09]wFMCommunicate OK [16:25:09]wFMCommunicate request_size=10 [16:25:09]MH_SAM_APDU [16:25:09]CAPDU: 80 0D 02 02 05 A9 94 F7 CD 94 [16:25:09]Write to MH i2c: E2 0D 00 60 3D 80 0D 02 02 05 00 A9 94 F7 CD 94 00 00 B6 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:09]Read from MH i2c: E2 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 60 3D 00 90 00 11 [16:25:09]RAPDU: 90 00 [16:25:09]wFMCommunicate OK [16:25:09]wFMCommunicate request_size=4 [16:25:09]MH_SAM_APDU [16:25:09]CAPDU: 80 0D 03 02 [16:25:09]Write to MH i2c: E2 08 00 61 3D 80 0D 03 02 00 00 00 00 19 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:09]Read from MH i2c: E2 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 0B 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 0B 00 61 3D 00 29 55 F6 20 F8 0C 48 02 90 00 FC [16:25:09]RAPDU: 29 55 F6 20 F8 0C 48 02 90 00 [16:25:09]wFMCommunicate OK [16:25:09]SAM_PROTO_SignData done [16:25:09]FM_MakeSignedData done [16:25:09]CreateOFDProtocolMessage [16:25:09]wFMCommunicate request_size=4 [16:25:09]MH_SAM_APDU [16:25:09]CAPDU: 80 11 00 00 [16:25:09]Write to MH i2c: E2 08 00 62 3D 80 11 00 00 00 00 00 00 19 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:09]Read from MH i2c: E2 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 17 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 17 00 62 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 69 [16:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:25:09]wFMCommunicate OK [16:25:09]CreateOFDProtocolMessage done [16:25:09]OFDSenderStorePacket 95205 [16:25:09]StoreOFDPacket docnum=95205 [16:25:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 0E 94 07 01 DD 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 35 FF 03 08 00 03 62 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 E3 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E9 81 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E5 73 01 00 35 04 06 00 DB A9 94 F7 CD 94 29 55 F6 20 F8 0C 48 02 [16:25:09]CheckFolder [16:25:09]dirname=/storage/ofd_packets [16:25:09]CheckFolder done [16:25:09]ProducePacketName [16:25:09]name=ofd_packets/00095205 [16:25:09]NVStorageSaveData ofd_packets/00095205 [16:25:09]File name is /storage/ofd_packets/00095205 [16:25:09]Write 301 bytes [16:25:09]NVStorageSaveData done [16:25:09]OFDSenderStorePacket done [16:25:09]KKMCreateOFDPacket done [16:25:09]NVStorageSaveData kkm_last_timestamp [16:25:09]File name is /storage/kkm_last_timestamp [16:25:09]Write 4 bytes [16:25:09]NVStorageSaveData done [16:25:09]ExternCall_PrintAddStr [16:25:09]wPrintStart [16:25:09]Write to MH i2c: 01 00 00 63 3D A0 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: 01 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: 01 07 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: 01 07 00 63 3D 00 80 00 00 00 FF 0F 35 [16:25:09]RasterBufferAndPrint [16:25:09]line Счет N : (1)196176 [16:25:09]line ИНН: 02508201610067 [16:25:09]line Контрольно-Кассовый Чек [16:25:09]line ПРОДАЖА [16:25:09]line ТРК (МРК, ГНК) : 32 [16:25:09]line Товар: 2710124130 [16:25:09]line Аи-92-К-5 [16:25:09]line 3.170 * 62.90 [16:25:09]line = 199.39 [16:25:09]line НДС 12% НСП 1% [16:25:09]line > о реализуемом товаре [16:25:09]line ОКРУГЛЕНИЕ: -0.39 [16:25:09]line ИТОГО: 199.00 [16:25:09]line Внесено: 199.00 [16:25:09]line СДАЧА: 0.00 [16:25:09]line НСП 1% : 1.76 [16:25:09]line НДС 12% : 21.17 [16:25:09]line Наличными: 199.00 [16:25:09]line Безнал.: 0.00 [16:25:09]line Место: АЗС № 6 "Партнер Нефть" [16:25:09]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:25:09]line СНО: Общий режим [16:25:09]line Чек 135 12.03.2024 16:25 [16:25:09]line Смена: 327 ФФД: 1.0 [16:25:09]line ЗНМ: 0300000009 [16:25:09]line РНМ: 0000000000090555 [16:25:09]line Версия ККМ: 001 [16:25:09]line ФМ: 0000000000874811 [16:25:09]line ФД: 95205 [16:25:09]line ФПД: 241521395223956 [16:25:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T162513&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95205&fm=241521395223956&tin=02508201610067®Number=0000000000090555&sum=19900 [16:25:09]OFD Sender: Processing packet 95205 [packets to send 30, broken 29] [16:25:09]ProducePacketName [16:25:09]name=ofd_packets/00095205 [16:25:09]OFD Sender: To server: pG, [16:25:09]CommunicateWithHost lk.salyk.kg:30040 [16:25:09]ConnectInit lk.salyk.kg [16:25:09]written 0, free lines is 4095 [16:25:09]Connected sock=10 [16:25:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 0E 94 07 01 DD 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 35 FF 03 08 00 03 62 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 E3 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E9 81 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E5 73 01 00 35 04 06 00 DB A9 94 F7 CD 94 29 55 F6 20 F8 0C 48 02 [16:25:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 66 EB 47 00 B8 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E5 73 01 00 F4 03 04 00 3F 2D F0 65 B6 04 01 00 00 DB 6C F6 67 BD 05 B9 30 [16:25:10]CommunicateWithHost err = 0 [16:25:10]CheckOFDResponse [16:25:10]1017 (14) - 77093643461234 [16:25:10]1041 (16) - 0000000000874811 [16:25:10]1040 (4) - 95205 [16:25:10]1012 (4) - 12.03.2024 10:23 [16:25:10]1206 (1) - 0 [16:25:10]OFD Sender: Remove packet 95205 [16:25:10]ProducePacketName [16:25:10]name=ofd_packets/00095205 [16:25:10]NVStorageDeleteData [16:25:10]Write to MH i2c: 01 00 00 8E 3D CB [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: 01 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: 01 07 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: 01 07 00 8E 3D 00 80 00 00 00 4C 0D AB [16:25:10]RasterBufferAndPrint [16:25:10]line [16:25:10]line [16:25:10]line [16:25:10]line [16:25:10]line [16:25:10]written 0, free lines is 3410 [16:25:10]process_action close_receipt done [16:25:10]requested_data is exist [16:25:10]produce_requested_data [16:25:10]requested_item fm.sn is exist - process it [16:25:10]wFMCommunicate request_size=4 [16:25:10]MH_SAM_APDU [16:25:10]CAPDU: 80 11 00 00 [16:25:10]Write to MH i2c: E2 08 00 95 3D 80 11 00 00 00 00 00 00 4C [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:10]Read from MH i2c: E2 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 17 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 17 00 95 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9C [16:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:25:10]wFMCommunicate OK [16:25:10]requested_item fd.num is exist - process it [16:25:10]SAM_PROTO_GetFieldsCounters [16:25:10]wFMCommunicate request_size=4 [16:25:10]MH_SAM_APDU [16:25:10]CAPDU: 80 13 00 00 [16:25:10]Write to MH i2c: E2 08 00 96 3D 80 13 00 00 00 00 00 00 4F [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:10]Read from MH i2c: E2 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 62 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 62 00 96 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E5 73 01 00 0E 04 04 00 47 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:25:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E5 73 01 00 0E 04 04 00 47 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:25:10]wFMCommunicate OK [16:25:10]SAM_PROTO_GetFieldsCounters done [16:25:10]requested_item shift.num is exist - process it [16:25:10]requested_item shift.opened is exist - process it [16:25:10]req_shift_opened [16:25:10]FM_GetShiftState [16:25:10]SAM_PROTO_GetShiftState [16:25:10]wFMCommunicate request_size=4 [16:25:10]MH_SAM_APDU [16:25:10]CAPDU: 80 13 01 00 [16:25:10]Write to MH i2c: E2 08 00 97 3D 80 13 01 00 00 00 00 00 51 [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:10]Read from MH i2c: E2 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 0E 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 0E 00 97 3D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C5 [16:25:10]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:25:10]wFMCommunicate OK [16:25:10]SAM_PROTO_GetShiftState done [16:25:10]FM_GetShiftState done [16:25:10]req_shift_opened done [16:25:10]requested_item shift.open_date is exist - process it [16:25:10]req_shift_open_date [16:25:10]req_shift_open_date done [16:25:10]produce_requested_data done [16:25:10]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95205,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [16:25:10]process_action_free close_receipt [16:25:10]json_value_free [16:25:10]json_value_free done [16:25:10]process_json_proto returns [16:25:10]Send response to host [16:25:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95205,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [16:25:10]free response buf [16:25:10]execute_script done [16:25:10]execute_script returns [16:25:10]free content buf [16:25:10]Sock 9.Close socket [16:25:10]Sock 9.Thread stoped [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:53]accept exits with 8 [16:27:53]New connection [16:27:53]New thread 3066813796 created [16:27:53]Thread 3066957156 joined [16:27:53]Waiting for new connection... [16:27:53] Sock 8.Parse request [16:27:53]Sock 8.Check first char [16:27:53]Sock 8.First char is OK [16:27:53]request: POST /json_proto HTTP/1.0 [16:27:53]Method: POST [16:27:53]URL: /json_proto [16:27:53]Method is POST - this is cgi request [16:27:53]url: /json_proto [16:27:53]query_string will be loaded in cgi processing [16:27:53]execute_cgi json_proto POST (null) [16:27:53]execute_cgi path=json_proto method=POST [16:27:53]POST find Content-Length [16:27:53]Host: 172.17.62.67:8080 [16:27:53]Content-Length: 677 [16:27:53]Content-Type: application/json [16:27:53] [16:27:53]POST finish read [16:27:53]Found Content-Length = 677 [16:27:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [16:27:53]execute_script... [16:27:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [16:27:53]POST & json_proto [16:27:53]process_json_proto [16:27:53]json parsed OK: [16:27:53]protocol is kg_v1.0 [16:27:53]action value=close_receipt [16:27:53]process_action close_receipt [16:27:53]cmd_close_receipt [16:27:53]MH_GetDate [16:27:53]Write to MH i2c: F0 00 00 98 3D C4 [16:27:53]Write i2c OK [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: F0 [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: F0 05 00 [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: F0 05 00 98 3D 00 8F 82 F0 65 2F [16:27:53]GetLastDocTimeStamp 1710260713 [16:27:53]current date 1710260879 [16:27:53]FM_GetShiftState [16:27:53]SAM_PROTO_GetShiftState [16:27:53]wFMCommunicate request_size=4 [16:27:53]MH_SAM_APDU [16:27:53]CAPDU: 80 13 01 00 [16:27:53]Write to MH i2c: E2 08 00 99 3D 80 13 01 00 00 00 00 00 53 [16:27:53]Write i2c OK [16:27:53]MH_I2C_Read... [16:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:53]Read from MH i2c: E2 [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: E2 0E 00 [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: E2 0E 00 99 3D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C7 [16:27:53]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:27:53]wFMCommunicate OK [16:27:53]SAM_PROTO_GetShiftState done [16:27:53]FM_GetShiftState done [16:27:53]opened in 1710201976 [16:27:53]opened+sec_in_day 1710288376 [16:27:53]quantity*price = 30003 [16:27:53]sum+1 = 30004 [16:27:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 136 12.03.2024 16:27 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95206 ФПД: 78320818054811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T162759&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95206&fm=78320818054811&tin=02508201610067®Number=0000000000090555&sum=30000 [16:27:54]StoreToDocumentArchive [16:27:54]shift 327 fd 95206 [16:27:54]save to /storage/0327/doc_00095206 [16:27:54]save last doc name /storage/0327/doc_00095206 to /storage/kkm_last_doc_name [16:27:54]save OK [16:27:54]Clear old archive folders... [16:27:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:54]tlvbuf is 01A5F540 [16:27:54]SAM_PROTO_ClearQueue [16:27:54]wFMCommunicate request_size=4 [16:27:54]MH_SAM_APDU [16:27:54]CAPDU: 80 09 00 00 [16:27:54]Write to MH i2c: E2 08 00 A6 3D 80 09 00 00 00 00 00 00 55 [16:27:54]Write i2c OK [16:27:54]MH_I2C_Read... [16:27:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:54]Read from MH i2c: E2 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: E2 03 00 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: E2 03 00 A6 3D 00 90 00 57 [16:27:54]RAPDU: 90 00 [16:27:54]wFMCommunicate OK [16:27:54]SAM_PROTO_ClearQueue done [16:27:54]KKMCreateOFDPacket [16:27:54]OFDProtocolAddRootSTLVToBuf [16:27:54]FM_MakeSignedData [16:27:54]FM_MakeSignedData [16:27:54]SAM_PROTO_SignData [16:27:54]wFMCommunicate request_size=4 [16:27:54]MH_SAM_APDU [16:27:54]CAPDU: 80 0D 01 02 [16:27:54]Write to MH i2c: E2 08 00 A7 3D 80 0D 01 02 00 00 00 00 5D [16:27:54]Write i2c OK [16:27:54]MH_I2C_Read... [16:27:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:54]Read from MH i2c: E2 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: E2 03 00 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: E2 03 00 A7 3D 00 90 00 58 [16:27:54]RAPDU: 90 00 [16:27:54]wFMCommunicate OK [16:27:54]wFMCommunicate request_size=255 [16:27:54]MH_SAM_APDU [16:27:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 88 00 00 00 F4 03 04 00 8F 82 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E6 73 01 00 35 04 06 00 47 [16:27:54]Write to MH i2c: E2 02 01 A8 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 88 00 00 00 F4 03 04 00 8F 82 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E6 73 01 00 35 04 06 00 47 00 00 12 [16:27:54]Write i2c OK [16:27:54]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 A8 3D 00 90 00 59 [16:27:55]RAPDU: 90 00 [16:27:55]wFMCommunicate OK [16:27:55]wFMCommunicate request_size=10 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 0D 02 02 05 3B 7C 89 E6 9B [16:27:55]Write to MH i2c: E2 0D 00 A9 3D 80 0D 02 02 05 00 3B 7C 89 E6 9B 00 00 2B [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 A9 3D 00 90 00 5A [16:27:55]RAPDU: 90 00 [16:27:55]wFMCommunicate OK [16:27:55]wFMCommunicate request_size=4 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 0D 03 02 [16:27:55]Write to MH i2c: E2 08 00 AA 3D 80 0D 03 02 00 00 00 00 62 [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 0B 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 0B 00 AA 3D 00 A7 3F 5C AC 31 F9 50 F5 90 00 C0 [16:27:55]RAPDU: A7 3F 5C AC 31 F9 50 F5 90 00 [16:27:55]wFMCommunicate OK [16:27:55]SAM_PROTO_SignData done [16:27:55]FM_MakeSignedData done [16:27:55]CreateOFDProtocolMessage [16:27:55]wFMCommunicate request_size=4 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 11 00 00 [16:27:55]Write to MH i2c: E2 08 00 AB 3D 80 11 00 00 00 00 00 00 62 [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 17 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 17 00 AB 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B2 [16:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:27:55]wFMCommunicate OK [16:27:55]CreateOFDProtocolMessage done [16:27:55]OFDSenderStorePacket 95206 [16:27:55]StoreOFDPacket docnum=95206 [16:27:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 79 45 07 01 E8 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 88 00 00 00 F4 03 04 00 8F 82 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E6 73 01 00 35 04 06 00 47 3B 7C 89 E6 9B A7 3F 5C AC 31 F9 50 F5 [16:27:55]CheckFolder [16:27:55]dirname=/storage/ofd_packets [16:27:55]CheckFolder done [16:27:55]ProducePacketName [16:27:55]name=ofd_packets/00095206 [16:27:55]NVStorageSaveData ofd_packets/00095206 [16:27:55]File name is /storage/ofd_packets/00095206 [16:27:55]Write 301 bytes [16:27:55]NVStorageSaveData done [16:27:55]OFDSenderStorePacket done [16:27:55]KKMCreateOFDPacket done [16:27:55]NVStorageSaveData kkm_last_timestamp [16:27:55]File name is /storage/kkm_last_timestamp [16:27:55]Write 4 bytes [16:27:55]NVStorageSaveData done [16:27:55]ExternCall_PrintAddStr [16:27:55]wPrintStart [16:27:55]Write to MH i2c: 01 00 00 AC 3D E9 [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: 01 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: 01 07 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: 01 07 00 AC 3D 00 80 00 00 00 FF 0F 7E [16:27:55]RasterBufferAndPrint [16:27:55]line Счет N : (1)196177 [16:27:55]line ИНН: 02508201610067 [16:27:55]line Контрольно-Кассовый Чек [16:27:55]line ПРОДАЖА [16:27:55]line ТРК (МРК, ГНК) : 22 [16:27:55]line Товар: 2710124130 [16:27:55]line Аи-92-К-5 [16:27:55]line 4.770 * 62.90 [16:27:55]line = 300.03 [16:27:55]line НДС 12% НСП 1% [16:27:55]line > о реализуемом товаре [16:27:55]line ОКРУГЛЕНИЕ: -0.03 [16:27:55]line ИТОГО: 300.00 [16:27:55]line Внесено: 300.00 [16:27:55]line СДАЧА: 0.00 [16:27:55]line НСП 1% : 2.65 [16:27:55]line НДС 12% : 31.86 [16:27:55]line Наличными: 300.00 [16:27:55]line Безнал.: 0.00 [16:27:55]line Место: АЗС № 6 "Партнер Нефть" [16:27:55]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:27:55]line СНО: Общий режим [16:27:55]line Чек 136 12.03.2024 16:27 [16:27:55]line Смена: 327 ФФД: 1.0 [16:27:55]line ЗНМ: 0300000009 [16:27:55]line РНМ: 0000000000090555 [16:27:55]line Версия ККМ: 001 [16:27:55]line ФМ: 0000000000874811 [16:27:55]line ФД: 95206 [16:27:55]line ФПД: 78320818054811 [16:27:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T162759&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95206&fm=78320818054811&tin=02508201610067®Number=0000000000090555&sum=30000 [16:27:55]OFD Sender: Processing packet 95206 [packets to send 30, broken 29] [16:27:55]ProducePacketName [16:27:55]name=ofd_packets/00095206 [16:27:55]OFD Sender: To server: pG, [16:27:55]CommunicateWithHost lk.salyk.kg:30040 [16:27:55]ConnectInit lk.salyk.kg [16:27:55]written 0, free lines is 4095 [16:27:55]Connected sock=10 [16:27:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 79 45 07 01 E8 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 88 00 00 00 F4 03 04 00 8F 82 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E6 73 01 00 35 04 06 00 47 3B 7C 89 E6 9B A7 3F 5C AC 31 F9 50 F5 [16:27:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 4E 53 47 00 17 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 38 37 34 38 31 31 10 04 04 00 E6 73 01 00 F4 03 04 00 E5 2D F0 65 B6 04 01 00 00 E8 B6 D4 4A E8 E9 AE B7 [16:27:55]CommunicateWithHost err = 0 [16:27:55]CheckOFDResponse [16:27:55]1017 (14) - 77093643461234 [16:27:55]1041 (16) - 0000000000874811 [16:27:55]1040 (4) - 95206 [16:27:55]1012 (4) - 12.03.2024 10:26 [16:27:55]1206 (1) - 0 [16:27:55]OFD Sender: Remove packet 95206 [16:27:55]ProducePacketName [16:27:55]name=ofd_packets/00095206 [16:27:55]NVStorageDeleteData [16:27:56]Write to MH i2c: 01 00 00 D7 3D 14 [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: 01 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: 01 07 00 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: 01 07 00 D7 3D 00 80 00 00 00 54 0D FC [16:27:56]RasterBufferAndPrint [16:27:56]line [16:27:56]line [16:27:56]line [16:27:56]line [16:27:56]line [16:27:56]written 0, free lines is 3418 [16:27:56]process_action close_receipt done [16:27:56]requested_data is exist [16:27:56]produce_requested_data [16:27:56]requested_item fm.sn is exist - process it [16:27:56]wFMCommunicate request_size=4 [16:27:56]MH_SAM_APDU [16:27:56]CAPDU: 80 11 00 00 [16:27:56]Write to MH i2c: E2 08 00 DE 3D 80 11 00 00 00 00 00 00 95 [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: E2 [16:27:56]MH_I2C_Read... [16:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:56]Read from MH i2c: E2 17 00 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: E2 17 00 DE 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E5 [16:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:27:56]wFMCommunicate OK [16:27:56]requested_item fd.num is exist - process it [16:27:56]SAM_PROTO_GetFieldsCounters [16:27:56]wFMCommunicate request_size=4 [16:27:56]MH_SAM_APDU [16:27:56]CAPDU: 80 13 00 00 [16:27:56]Write to MH i2c: E2 08 00 DF 3D 80 13 00 00 00 00 00 00 98 [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:56]Read from MH i2c: E2 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: E2 62 00 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: E2 62 00 DF 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E6 73 01 00 0E 04 04 00 47 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 EF [16:27:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E6 73 01 00 0E 04 04 00 47 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:27:56]wFMCommunicate OK [16:27:56]SAM_PROTO_GetFieldsCounters done [16:27:56]requested_item shift.num is exist - process it [16:27:56]requested_item shift.opened is exist - process it [16:27:56]req_shift_opened [16:27:56]FM_GetShiftState [16:27:56]SAM_PROTO_GetShiftState [16:27:56]wFMCommunicate request_size=4 [16:27:56]MH_SAM_APDU [16:27:56]CAPDU: 80 13 01 00 [16:27:56]Write to MH i2c: E2 08 00 E0 3D 80 13 01 00 00 00 00 00 9A [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:56]OFD Sender: No OFD packet to send [16:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:56]Read from MH i2c: E2 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: E2 0E 00 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: E2 0E 00 E0 3D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 0E [16:27:56]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:27:56]wFMCommunicate OK [16:27:56]SAM_PROTO_GetShiftState done [16:27:56]FM_GetShiftState done [16:27:56]req_shift_opened done [16:27:56]requested_item shift.open_date is exist - process it [16:27:56]req_shift_open_date [16:27:56]req_shift_open_date done [16:27:56]produce_requested_data done [16:27:56]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95206,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [16:27:56]process_action_free close_receipt [16:27:56]json_value_free [16:27:56]json_value_free done [16:27:56]process_json_proto returns [16:27:56]Send response to host [16:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95206,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [16:27:56]free response buf [16:27:56]execute_script done [16:27:56]execute_script returns [16:27:56]free content buf [16:27:56]Sock 8.Close socket [16:27:56]Sock 8.Thread stoped [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:28]accept exits with 9 [16:28:28]New connection [16:28:28]New thread 3066957156 created [16:28:28]Thread 3066813796 joined [16:28:28]Waiting for new connection... [16:28:28] Sock 9.Parse request [16:28:28]Sock 9.Check first char [16:28:28]Sock 9.First char is OK [16:28:28]request: POST /json_proto HTTP/1.0 [16:28:28]Method: POST [16:28:28]URL: /json_proto [16:28:28]Method is POST - this is cgi request [16:28:28]url: /json_proto [16:28:28]query_string will be loaded in cgi processing [16:28:28]execute_cgi json_proto POST (null) [16:28:28]execute_cgi path=json_proto method=POST [16:28:28]POST find Content-Length [16:28:28]Host: 172.17.62.67:8080 [16:28:28]Content-Length: 682 [16:28:28]Content-Type: application/json [16:28:28] [16:28:28]POST finish read [16:28:28]Found Content-Length = 682 [16:28:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 17.270, "sum" : 1200.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:28]execute_script... [16:28: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)196178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 17.270, "sum" : 1200.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:28]POST & json_proto [16:28:28]process_json_proto [16:28:28]json parsed OK: [16:28:28]protocol is kg_v1.0 [16:28:28]action value=close_receipt [16:28:28]process_action close_receipt [16:28:28]cmd_close_receipt [16:28:28]MH_GetDate [16:28:28]Write to MH i2c: F0 00 00 E1 3D 0D [16:28:28]Write i2c OK [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: F0 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: F0 05 00 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: F0 05 00 E1 3D 00 B2 82 F0 65 9B [16:28:28]GetLastDocTimeStamp 1710260879 [16:28:28]current date 1710260914 [16:28:28]FM_GetShiftState [16:28:28]SAM_PROTO_GetShiftState [16:28:28]wFMCommunicate request_size=4 [16:28:28]MH_SAM_APDU [16:28:28]CAPDU: 80 13 01 00 [16:28:28]Write to MH i2c: E2 08 00 E2 3D 80 13 01 00 00 00 00 00 9C [16:28:28]Write i2c OK [16:28:28]MH_I2C_Read... [16:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:28]Read from MH i2c: E2 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: E2 0E 00 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: E2 0E 00 E2 3D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 10 [16:28:28]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:28:28]wFMCommunicate OK [16:28:28]SAM_PROTO_GetShiftState done [16:28:28]FM_GetShiftState done [16:28:28]opened in 1710201976 [16:28:28]opened+sec_in_day 1710288376 [16:28:28]quantity*price = 120026 [16:28:28]sum+1 = 120028 [16:28:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.46 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 137 12.03.2024 16:28 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95207 ФПД: 104737191124067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T162834&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95207&fm=104737191124067&tin=02508201610067®Number=0000000000090555&sum=120000 [16:28:29]StoreToDocumentArchive [16:28:29]shift 327 fd 95207 [16:28:29]save to /storage/0327/doc_00095207 [16:28:29]save last doc name /storage/0327/doc_00095207 to /storage/kkm_last_doc_name [16:28:29]save OK [16:28:29]Clear old archive folders... [16:28:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:28:29]tlvbuf is 019FCB20 [16:28:29]SAM_PROTO_ClearQueue [16:28:29]wFMCommunicate request_size=4 [16:28:29]MH_SAM_APDU [16:28:29]CAPDU: 80 09 00 00 [16:28:29]Write to MH i2c: E2 08 00 EF 3D 80 09 00 00 00 00 00 00 9E [16:28:29]Write i2c OK [16:28:29]MH_I2C_Read... [16:28:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:29]Read from MH i2c: E2 [16:28:29]MH_I2C_Read... [16:28:29]Read from MH i2c: E2 03 00 [16:28:29]MH_I2C_Read... [16:28:29]Read from MH i2c: E2 03 00 EF 3D 00 90 00 A0 [16:28:29]RAPDU: 90 00 [16:28:29]wFMCommunicate OK [16:28:29]SAM_PROTO_ClearQueue done [16:28:29]KKMCreateOFDPacket [16:28:29]OFDProtocolAddRootSTLVToBuf [16:28:29]FM_MakeSignedData [16:28:29]FM_MakeSignedData [16:28:29]SAM_PROTO_SignData [16:28:29]wFMCommunicate request_size=4 [16:28:29]MH_SAM_APDU [16:28:29]CAPDU: 80 0D 01 02 [16:28:29]Write to MH i2c: E2 08 00 F0 3D 80 0D 01 02 00 00 00 00 A6 [16:28:29]Write i2c OK [16:28:29]MH_I2C_Read... [16:28:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:29]Read from MH i2c: E2 [16:28:29]MH_I2C_Read... [16:28:29]Read from MH i2c: E2 03 00 [16:28:29]MH_I2C_Read... [16:28:29]Read from MH i2c: E2 03 00 F0 3D 00 90 00 A1 [16:28:29]RAPDU: 90 00 [16:28:29]wFMCommunicate OK [16:28:29]wFMCommunicate request_size=255 [16:28:29]MH_SAM_APDU [16:28:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 76 43 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 DB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 B2 82 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E7 73 01 00 35 04 06 00 5F [16:28:29]Write to MH i2c: E2 02 01 F1 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 76 43 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 DB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 B2 82 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E7 73 01 00 35 04 06 00 5F 00 00 BD [16:28:30]Write i2c OK [16:28:30]MH_I2C_Read... [16:28:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:30]Read from MH i2c: E2 [16:28:30]MH_I2C_Read... [16:28:30]Read from MH i2c: E2 03 00 [16:28:30]MH_I2C_Read... [16:28:30]Read from MH i2c: E2 03 00 F1 3D 00 90 00 A2 [16:28:30]RAPDU: 90 00 [16:28:30]wFMCommunicate OK [16:28:30]wFMCommunicate request_size=10 [16:28:30]MH_SAM_APDU [16:28:30]CAPDU: 80 0D 02 02 05 42 07 12 5C 63 [16:28:30]Write to MH i2c: E2 0D 00 F2 3D 80 0D 02 02 05 00 42 07 12 5C 63 00 00 CD [16:28:30]Write i2c OK [16:28:30]MH_I2C_Read... [16:28:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:30]Read from MH i2c: E2 [16:28:30]MH_I2C_Read... [16:28:30]Read from MH i2c: E2 03 00 [16:28:30]MH_I2C_Read... [16:28:30]Read from MH i2c: E2 03 00 F2 3D 00 90 00 A3 [16:28:30]RAPDU: 90 00 [16:28:30]wFMCommunicate OK [16:28:30]wFMCommunicate request_size=4 [16:28:30]MH_SAM_APDU [16:28:30]CAPDU: 80 0D 03 02 [16:28:30]Write to MH i2c: E2 08 00 F3 3D 80 0D 03 02 00 00 00 00 AB [16:28:30]Write i2c OK [16:28:30]MH_I2C_Read... [16:28:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:30]Read from MH i2c: E2 [16:28:30]MH_I2C_Read... [16:28:30]Read from MH i2c: E2 0B 00 [16:28:30]MH_I2C_Read... [16:28:30]Read from MH i2c: E2 0B 00 F3 3D 00 50 C1 9F C0 12 2F E0 3D 90 00 7A [16:28:30]RAPDU: 50 C1 9F C0 12 2F E0 3D 90 00 [16:28:30]wFMCommunicate OK [16:28:30]SAM_PROTO_SignData done [16:28:30]FM_MakeSignedData done [16:28:30]CreateOFDProtocolMessage [16:28:30]wFMCommunicate request_size=4 [16:28:30]MH_SAM_APDU [16:28:30]CAPDU: 80 11 00 00 [16:28:30]Write to MH i2c: E2 08 00 F4 3D 80 11 00 00 00 00 00 00 AB [16:28:30]Write i2c OK [16:28:30]MH_I2C_Read... [16:28:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:30]Read from MH i2c: E2 [16:28:30]MH_I2C_Read... [16:28:30]Read from MH i2c: E2 17 00 [16:28:30]MH_I2C_Read... [16:28:30]Read from MH i2c: E2 17 00 F4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FB [16:28:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:28:30]wFMCommunicate OK [16:28:30]CreateOFDProtocolMessage done [16:28:30]OFDSenderStorePacket 95207 [16:28:30]StoreOFDPacket docnum=95207 [16:28:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A8 BF 07 01 9A 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 76 43 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 DB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 B2 82 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E7 73 01 00 35 04 06 00 5F 42 07 12 5C 63 50 C1 9F C0 12 2F E0 3D [16:28:30]CheckFolder [16:28:30]dirname=/storage/ofd_packets [16:28:30]CheckFolder done [16:28:30]ProducePacketName [16:28:30]name=ofd_packets/00095207 [16:28:30]NVStorageSaveData ofd_packets/00095207 [16:28:30]File name is /storage/ofd_packets/00095207 [16:28:30]Write 301 bytes [16:28:30]NVStorageSaveData done [16:28:30]OFDSenderStorePacket done [16:28:30]KKMCreateOFDPacket done [16:28:30]NVStorageSaveData kkm_last_timestamp [16:28:30]File name is /storage/kkm_last_timestamp [16:28:30]Write 4 bytes [16:28:30]NVStorageSaveData done [16:28:30]ExternCall_PrintAddStr [16:28:30]wPrintStart [16:28:30]Write to MH i2c: 01 00 00 F5 3D 32 [16:28:30]Write i2c OK [16:28:30]MH_I2C_Read... [16:28:30]Read from MH i2c: 01 [16:28:30]MH_I2C_Read... [16:28:30]Read from MH i2c: 01 07 00 [16:28:30]MH_I2C_Read... [16:28:30]Read from MH i2c: 01 07 00 F5 3D 00 80 00 00 00 FF 0F C7 [16:28:30]RasterBufferAndPrint [16:28:30]line Счет N : (1)196178 [16:28:30]line ИНН: 02508201610067 [16:28:30]line Контрольно-Кассовый Чек [16:28:30]line ПРОДАЖА [16:28:30]line ТРК (МРК, ГНК) : 11 [16:28:30]line Товар: 2710124500 [16:28:30]line Аи-95-К-5 [16:28:30]line 17.270 * 69.50 [16:28:30]line = 1200.27 [16:28:30]line НДС 12% НСП 1% [16:28:30]line > о реализуемом товаре [16:28:30]line ОКРУГЛЕНИЕ: -0.27 [16:28:30]line ИТОГО: 1200.00 [16:28:30]line Внесено: 1200.00 [16:28:30]line СДАЧА: 0.00 [16:28:30]line НСП 1% : 10.62 [16:28:30]line НДС 12% : 127.46 [16:28:30]line Наличными: 1200.00 [16:28:30]line Безнал.: 0.00 [16:28:30]line Место: АЗС № 6 "Партнер Нефть" [16:28:30]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:28:30]line СНО: Общий режим [16:28:30]line Чек 137 12.03.2024 16:28 [16:28:30]line Смена: 327 ФФД: 1.0 [16:28:30]line ЗНМ: 0300000009 [16:28:30]line РНМ: 0000000000090555 [16:28:30]line Версия ККМ: 001 [16:28:30]line ФМ: 0000000000874811 [16:28:30]line ФД: 95207 [16:28:30]line ФПД: 104737191124067 [16:28:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T162834&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95207&fm=104737191124067&tin=02508201610067®Number=0000000000090555&sum=120000 [16:28:30]OFD Sender: Processing packet 95207 [packets to send 30, broken 29] [16:28:30]ProducePacketName [16:28:30]name=ofd_packets/00095207 [16:28:30]OFD Sender: To server: pG, [16:28:30]CommunicateWithHost lk.salyk.kg:30040 [16:28:30]ConnectInit lk.salyk.kg [16:28:30]written 0, free lines is 4095 [16:28:30]Connected sock=10 [16:28:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A8 BF 07 01 9A 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 76 43 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 DB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 B2 82 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E7 73 01 00 35 04 06 00 5F 42 07 12 5C 63 50 C1 9F C0 12 2F E0 3D [16:28:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 C3 A3 47 00 10 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E7 73 01 00 F4 03 04 00 08 2E F0 65 B6 04 01 00 00 C7 DD 95 49 B7 EE 74 A8 [16:28:31]CommunicateWithHost err = 0 [16:28:31]CheckOFDResponse [16:28:31]1017 (14) - 77093643461234 [16:28:31]1041 (16) - 0000000000874811 [16:28:31]1040 (4) - 95207 [16:28:31]1012 (4) - 12.03.2024 10:27 [16:28:31]1206 (1) - 0 [16:28:31]OFD Sender: Remove packet 95207 [16:28:31]ProducePacketName [16:28:31]name=ofd_packets/00095207 [16:28:31]NVStorageDeleteData [16:28:31]Write to MH i2c: 01 00 00 20 3E 5E [16:28:31]Write i2c OK [16:28:31]MH_I2C_Read... [16:28:31]Read from MH i2c: 01 [16:28:31]MH_I2C_Read... [16:28:31]Read from MH i2c: 01 07 00 [16:28:31]MH_I2C_Read... [16:28:31]Read from MH i2c: 01 07 00 20 3E 00 80 00 00 00 5B 0D 4D [16:28:31]RasterBufferAndPrint [16:28:31]line [16:28:31]line [16:28:31]line [16:28:31]line [16:28:31]line [16:28:31]written 0, free lines is 3423 [16:28:31]process_action close_receipt done [16:28:31]requested_data is exist [16:28:31]produce_requested_data [16:28:31]requested_item fm.sn is exist - process it [16:28:31]wFMCommunicate request_size=4 [16:28:31]MH_SAM_APDU [16:28:31]CAPDU: 80 11 00 00 [16:28:31]Write to MH i2c: E2 08 00 27 3E 80 11 00 00 00 00 00 00 DF [16:28:31]Write i2c OK [16:28:31]MH_I2C_Read... [16:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:31]Read from MH i2c: E2 [16:28:31]MH_I2C_Read... [16:28:31]Read from MH i2c: E2 17 00 [16:28:31]MH_I2C_Read... [16:28:31]Read from MH i2c: E2 17 00 27 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2F [16:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:28:31]wFMCommunicate OK [16:28:31]requested_item fd.num is exist - process it [16:28:31]SAM_PROTO_GetFieldsCounters [16:28:31]wFMCommunicate request_size=4 [16:28:31]MH_SAM_APDU [16:28:31]CAPDU: 80 13 00 00 [16:28:31]Write to MH i2c: E2 08 00 28 3E 80 13 00 00 00 00 00 00 E2 [16:28:31]Write i2c OK [16:28:31]MH_I2C_Read... [16:28:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:31]Read from MH i2c: E2 [16:28:31]MH_I2C_Read... [16:28:31]Read from MH i2c: E2 62 00 [16:28:31]MH_I2C_Read... [16:28:31]Read from MH i2c: E2 62 00 28 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E7 73 01 00 0E 04 04 00 47 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 3D [16:28:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E7 73 01 00 0E 04 04 00 47 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:28:31]wFMCommunicate OK [16:28:31]SAM_PROTO_GetFieldsCounters done [16:28:31]requested_item shift.num is exist - process it [16:28:31]requested_item shift.opened is exist - process it [16:28:31]req_shift_opened [16:28:31]FM_GetShiftState [16:28:31]SAM_PROTO_GetShiftState [16:28:31]wFMCommunicate request_size=4 [16:28:31]MH_SAM_APDU [16:28:31]CAPDU: 80 13 01 00 [16:28:31]Write to MH i2c: E2 08 00 29 3E 80 13 01 00 00 00 00 00 E4 [16:28:31]Write i2c OK [16:28:31]MH_I2C_Read... [16:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:31]Read from MH i2c: E2 [16:28:31]MH_I2C_Read... [16:28:31]Read from MH i2c: E2 0E 00 [16:28:31]MH_I2C_Read... [16:28:31]Read from MH i2c: E2 0E 00 29 3E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 58 [16:28:31]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:28:31]wFMCommunicate OK [16:28:31]SAM_PROTO_GetShiftState done [16:28:31]FM_GetShiftState done [16:28:31]req_shift_opened done [16:28:31]requested_item shift.open_date is exist - process it [16:28:31]req_shift_open_date [16:28:31]req_shift_open_date done [16:28:31]produce_requested_data done [16:28:31]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95207,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [16:28:31]process_action_free close_receipt [16:28:31]json_value_free [16:28:31]json_value_free done [16:28:31]process_json_proto returns [16:28:31]Send response to host [16:28:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95207,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [16:28:31]free response buf [16:28:31]execute_script done [16:28:31]execute_script returns [16:28:31]free content buf [16:28:31]Sock 9.Close socket [16:28:31]Sock 9.Thread stoped [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:36]OFD Sender: No OFD packet to send [16:30:41]OFD Sender: No OFD packet to send [16:30:46]OFD Sender: No OFD packet to send [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:26]OFD Sender: No OFD packet to send [16:31:31]OFD Sender: No OFD packet to send [16:31:36]OFD Sender: No OFD packet to send [16:31:41]OFD Sender: No OFD packet to send [16:31:46]OFD Sender: No OFD packet to send [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:36]OFD Sender: No OFD packet to send [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:20]accept exits with 8 [16:40:20]New connection [16:40:20]New thread 3066813796 created [16:40:20]Thread 3066957156 joined [16:40:20]Waiting for new connection... [16:40:20] Sock 8.Parse request [16:40:20]Sock 8.Check first char [16:40:20]Sock 8.First char is OK [16:40:20]request: POST /json_proto HTTP/1.0 [16:40:20]Method: POST [16:40:20]URL: /json_proto [16:40:20]Method is POST - this is cgi request [16:40:20]url: /json_proto [16:40:20]query_string will be loaded in cgi processing [16:40:20]execute_cgi json_proto POST (null) [16:40:20]execute_cgi path=json_proto method=POST [16:40:20]POST find Content-Length [16:40:20]Host: 172.17.62.67:8080 [16:40:20]Content-Length: 1208 [16:40:20]Content-Type: application/json [16:40:20] [16:40:20]POST finish read [16:40:20]Found Content-Length = 1208 [16:40:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196179\u000A12.03.2024 16:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 4254.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\u000A81733\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:20]execute_script... [16:40:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196179\u000A12.03.2024 16:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 4254.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\u000A81733\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:20]POST & json_proto [16:40:20]process_json_proto [16:40:20]json parsed OK: [16:40:20]protocol is kg_v1.0 [16:40:20]action value=print_text [16:40:20]process_action print_text [16:40:20]cmd_print_text [16:40:20]ExternCall_PrintAddStr [16:40:20]wPrintStart [16:40:20]Write to MH i2c: 01 00 00 2A 3E 68 [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: 01 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: 01 07 00 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: 01 07 00 2A 3E 00 80 00 00 00 FF 0F FD [16:40:20]RasterBufferAndPrint [16:40:20]line *****ТОВАРНЫЙ ЧЕК***** [16:40:20]line АЗС 6 [16:40:20]line Партнер нефть [16:40:20]line 02508201610067 [16:40:20]line Кассир : Мыктыбекова И. [16:40:20]line Счет N : (1)196179 [16:40:20]line 12.03.2024 16:34 [16:40:20]line ПРОДАЖА [16:40:20]line ТРК (МРК, ГНК): 51 [16:40:20]line Вид ГСМ : 2710194210 [16:40:20]line ДТ-К-5 [16:40:20]line 60.000 x 70.90 [16:40:20]line ИТОГ: 4254.00 [16:40:20]line Тип оплаты: Талоны: Топливная Карта [16:40:20]line 81733 [16:40:20]line ______________________ [16:40:20]line (подпись) [16:40:20]written 0, free lines is 4095 [16:40:20]Write to MH i2c: 01 00 00 3E 3E 7C [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: 01 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: 01 07 00 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: 01 07 00 3E 3E 00 80 00 00 00 62 0E 73 [16:40:20]RasterBufferAndPrint [16:40:20]line [16:40:20]line [16:40:20]line [16:40:20]line [16:40:20]line [16:40:20]written 0, free lines is 3685 [16:40:20]process_action print_text done [16:40:20]requested_data is exist [16:40:20]produce_requested_data [16:40:20]requested_item fm.sn is exist - process it [16:40:20]wFMCommunicate request_size=4 [16:40:20]MH_SAM_APDU [16:40:20]CAPDU: 80 11 00 00 [16:40:20]Write to MH i2c: E2 08 00 45 3E 80 11 00 00 00 00 00 00 FD [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:20]Read from MH i2c: E2 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: E2 17 00 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: E2 17 00 45 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4D [16:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:40:20]wFMCommunicate OK [16:40:20]requested_item fd.num is exist - process it [16:40:20]SAM_PROTO_GetFieldsCounters [16:40:20]wFMCommunicate request_size=4 [16:40:20]MH_SAM_APDU [16:40:20]CAPDU: 80 13 00 00 [16:40:20]Write to MH i2c: E2 08 00 46 3E 80 13 00 00 00 00 00 00 00 [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:20]Read from MH i2c: E2 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: E2 62 00 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: E2 62 00 46 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E7 73 01 00 0E 04 04 00 47 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 5B [16:40:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E7 73 01 00 0E 04 04 00 47 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:40:20]wFMCommunicate OK [16:40:20]SAM_PROTO_GetFieldsCounters done [16:40:20]requested_item shift.num is exist - process it [16:40:20]requested_item shift.opened is exist - process it [16:40:20]req_shift_opened [16:40:20]FM_GetShiftState [16:40:20]SAM_PROTO_GetShiftState [16:40:20]wFMCommunicate request_size=4 [16:40:20]MH_SAM_APDU [16:40:20]CAPDU: 80 13 01 00 [16:40:20]Write to MH i2c: E2 08 00 47 3E 80 13 01 00 00 00 00 00 02 [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:20]Read from MH i2c: E2 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: E2 0E 00 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: E2 0E 00 47 3E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 76 [16:40:20]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:40:20]wFMCommunicate OK [16:40:20]SAM_PROTO_GetShiftState done [16:40:20]FM_GetShiftState done [16:40:20]req_shift_opened done [16:40:20]requested_item shift.open_date is exist - process it [16:40:20]req_shift_open_date [16:40:20]req_shift_open_date done [16:40:20]produce_requested_data done [16:40:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95207,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [16:40:20]process_action_free print_text [16:40:20]json_value_free [16:40:20]json_value_free done [16:40:20]process_json_proto returns [16:40:20]Send response to host [16:40:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95207,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [16:40:20]free response buf [16:40:20]execute_script done [16:40:20]execute_script returns [16:40:20]free content buf [16:40:20]Sock 8.Close socket [16:40:20]Sock 8.Thread stoped [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:57]OFD Sender: No OFD packet to send [16:41:02]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [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:17]accept exits with 9 [16:42:17]New connection [16:42:17]New thread 3066957156 created [16:42:17]Thread 3066813796 joined [16:42:17]Waiting for new connection... [16:42:17] Sock 9.Parse request [16:42:17]Sock 9.Check first char [16:42:17]Sock 9.First char is OK [16:42:17]request: POST /json_proto HTTP/1.0 [16:42:17]Method: POST [16:42:17]URL: /json_proto [16:42:17]Method is POST - this is cgi request [16:42:17]url: /json_proto [16:42:17]query_string will be loaded in cgi processing [16:42:17]execute_cgi json_proto POST (null) [16:42:17]execute_cgi path=json_proto method=POST [16:42:17]POST find Content-Length [16:42:17]Host: 172.17.62.67:8080 [16:42:17]Content-Length: 817 [16:42:17]Content-Type: application/json [16:42:17] [16:42:17]POST finish read [16:42:17]Found Content-Length = 817 [16:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 14.310, "sum" : 900.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 900.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:17]execute_script... [16:42:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 14.310, "sum" : 900.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 900.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:17]POST & json_proto [16:42:17]process_json_proto [16:42:17]json parsed OK: [16:42:17]protocol is kg_v1.0 [16:42:17]action value=close_receipt [16:42:17]process_action close_receipt [16:42:17]cmd_close_receipt [16:42:17]MH_GetDate [16:42:17]Write to MH i2c: F0 00 00 48 3E 75 [16:42:17]Write i2c OK [16:42:17]MH_I2C_Read... [16:42:17]Read from MH i2c: F0 [16:42:17]MH_I2C_Read... [16:42:17]Read from MH i2c: F0 05 00 [16:42:17]MH_I2C_Read... [16:42:17]Read from MH i2c: F0 05 00 48 3E 00 F0 85 F0 65 44 [16:42:17]GetLastDocTimeStamp 1710260914 [16:42:17]current date 1710261744 [16:42:17]FM_GetShiftState [16:42:17]SAM_PROTO_GetShiftState [16:42:17]wFMCommunicate request_size=4 [16:42:17]MH_SAM_APDU [16:42:17]CAPDU: 80 13 01 00 [16:42:17]Write to MH i2c: E2 08 00 49 3E 80 13 01 00 00 00 00 00 04 [16:42:17]Write i2c OK [16:42:17]MH_I2C_Read... [16:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:17]Read from MH i2c: E2 [16:42:17]MH_I2C_Read... [16:42:17]Read from MH i2c: E2 0E 00 [16:42:17]MH_I2C_Read... [16:42:17]Read from MH i2c: E2 0E 00 49 3E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 78 [16:42:17]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:42:17]wFMCommunicate OK [16:42:17]SAM_PROTO_GetShiftState done [16:42:17]FM_GetShiftState done [16:42:17]opened in 1710201976 [16:42:17]opened+sec_in_day 1710288376 [16:42:17]quantity*price = 90009 [16:42:17]sum+1 = 90011 [16:42:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.10 НСП 1% : 7.96 НДС 12% : 95.59 Наличными: 0.00 Безнал.: 900.10 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 138 12.03.2024 16:42 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95208 ФПД: 163447302800093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T164224&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95208&fm=163447302800093&tin=02508201610067®Number=0000000000090555&sum=90010 [16:42:19]StoreToDocumentArchive [16:42:19]shift 327 fd 95208 [16:42:19]save to /storage/0327/doc_00095208 [16:42:19]save last doc name /storage/0327/doc_00095208 to /storage/kkm_last_doc_name [16:42:19]save OK [16:42:19]Clear old archive folders... [16:42:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:19]tlvbuf is 019FC790 [16:42:19]SAM_PROTO_ClearQueue [16:42:19]wFMCommunicate request_size=4 [16:42:19]MH_SAM_APDU [16:42:19]CAPDU: 80 09 00 00 [16:42:19]Write to MH i2c: E2 08 00 56 3E 80 09 00 00 00 00 00 00 06 [16:42:19]Write i2c OK [16:42:19]MH_I2C_Read... [16:42:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:19]Read from MH i2c: E2 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 03 00 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 03 00 56 3E 00 90 00 08 [16:42:19]RAPDU: 90 00 [16:42:19]wFMCommunicate OK [16:42:19]SAM_PROTO_ClearQueue done [16:42:19]KKMCreateOFDPacket [16:42:19]OFDProtocolAddRootSTLVToBuf [16:42:19]FM_MakeSignedData [16:42:19]FM_MakeSignedData [16:42:19]SAM_PROTO_SignData [16:42:19]wFMCommunicate request_size=4 [16:42:19]MH_SAM_APDU [16:42:19]CAPDU: 80 0D 01 02 [16:42:19]Write to MH i2c: E2 08 00 57 3E 80 0D 01 02 00 00 00 00 0E [16:42:19]Write i2c OK [16:42:19]MH_I2C_Read... [16:42:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:19]Read from MH i2c: E2 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 03 00 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 03 00 57 3E 00 90 00 09 [16:42:19]RAPDU: 90 00 [16:42:19]wFMCommunicate OK [16:42:19]wFMCommunicate request_size=255 [16:42:19]MH_SAM_APDU [16:42:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 9A 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 F0 85 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E8 73 01 00 35 04 06 00 94 [16:42:19]Write to MH i2c: E2 02 01 58 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 9A 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 F0 85 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E8 73 01 00 35 04 06 00 94 00 00 F0 [16:42:19]Write i2c OK [16:42:19]MH_I2C_Read... [16:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:19]Read from MH i2c: E2 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 03 00 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 03 00 58 3E 00 90 00 0A [16:42:19]RAPDU: 90 00 [16:42:19]wFMCommunicate OK [16:42:19]wFMCommunicate request_size=10 [16:42:19]MH_SAM_APDU [16:42:19]CAPDU: 80 0D 02 02 05 A7 8A 6C 42 DD [16:42:19]Write to MH i2c: E2 0D 00 59 3E 80 0D 02 02 05 00 A7 8A 6C 42 DD 00 00 D7 [16:42:19]Write i2c OK [16:42:19]MH_I2C_Read... [16:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:19]Read from MH i2c: E2 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 03 00 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 03 00 59 3E 00 90 00 0B [16:42:19]RAPDU: 90 00 [16:42:19]wFMCommunicate OK [16:42:19]wFMCommunicate request_size=4 [16:42:19]MH_SAM_APDU [16:42:19]CAPDU: 80 0D 03 02 [16:42:19]Write to MH i2c: E2 08 00 5A 3E 80 0D 03 02 00 00 00 00 13 [16:42:19]Write i2c OK [16:42:19]MH_I2C_Read... [16:42:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:19]Read from MH i2c: E2 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 0B 00 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 0B 00 5A 3E 00 A2 91 76 A2 75 7B D6 A8 90 00 CD [16:42:19]RAPDU: A2 91 76 A2 75 7B D6 A8 90 00 [16:42:19]wFMCommunicate OK [16:42:19]SAM_PROTO_SignData done [16:42:19]FM_MakeSignedData done [16:42:19]CreateOFDProtocolMessage [16:42:19]wFMCommunicate request_size=4 [16:42:19]MH_SAM_APDU [16:42:19]CAPDU: 80 11 00 00 [16:42:19]Write to MH i2c: E2 08 00 5B 3E 80 11 00 00 00 00 00 00 13 [16:42:19]Write i2c OK [16:42:19]MH_I2C_Read... [16:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:19]Read from MH i2c: E2 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 17 00 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 17 00 5B 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 63 [16:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:42:19]wFMCommunicate OK [16:42:19]CreateOFDProtocolMessage done [16:42:19]OFDSenderStorePacket 95208 [16:42:19]StoreOFDPacket docnum=95208 [16:42:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 49 E9 07 01 00 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 9A 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 F0 85 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E8 73 01 00 35 04 06 00 94 A7 8A 6C 42 DD A2 91 76 A2 75 7B D6 A8 [16:42:19]CheckFolder [16:42:19]dirname=/storage/ofd_packets [16:42:19]CheckFolder done [16:42:19]ProducePacketName [16:42:19]name=ofd_packets/00095208 [16:42:19]NVStorageSaveData ofd_packets/00095208 [16:42:19]File name is /storage/ofd_packets/00095208 [16:42:19]Write 301 bytes [16:42:19]NVStorageSaveData done [16:42:19]OFDSenderStorePacket done [16:42:19]KKMCreateOFDPacket done [16:42:19]NVStorageSaveData kkm_last_timestamp [16:42:19]File name is /storage/kkm_last_timestamp [16:42:19]Write 4 bytes [16:42:19]NVStorageSaveData done [16:42:19]ExternCall_PrintAddStr [16:42:19]wPrintStart [16:42:19]Write to MH i2c: 01 00 00 5C 3E 9A [16:42:19]Write i2c OK [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: 01 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: 01 07 00 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: 01 07 00 5C 3E 00 80 00 00 00 FF 0F 2F [16:42:19]RasterBufferAndPrint [16:42:19]line Счет N : (1)196180 [16:42:19]line ИНН: 02508201610067 [16:42:19]line Контрольно-Кассовый Чек [16:42:19]line ПРОДАЖА [16:42:19]line ТРК (МРК, ГНК) : 22 [16:42:19]line Товар: 2710124130 [16:42:19]line Аи-92-К-5 [16:42:19]line 14.310 * 62.90 [16:42:19]line = 900.10 [16:42:19]line НДС 12% НСП 1% [16:42:19]line > о реализуемом товаре [16:42:19]line ИТОГО: 900.10 [16:42:19]line НСП 1% : 7.96 [16:42:19]line НДС 12% : 95.59 [16:42:19]line Наличными: 0.00 [16:42:19]line Безнал.: 900.10 [16:42:19]line Место: АЗС № 6 "Партнер Нефть" [16:42:19]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:42:19]line СНО: Общий режим [16:42:19]line Чек 138 12.03.2024 16:42 [16:42:19]line Смена: 327 ФФД: 1.0 [16:42:19]line ЗНМ: 0300000009 [16:42:19]line РНМ: 0000000000090555 [16:42:19]line Версия ККМ: 001 [16:42:19]line Платежная система: Бакай Банк [16:42:19]line ФМ: 0000000000874811 [16:42:19]line ФД: 95208 [16:42:19]line ФПД: 163447302800093 [16:42:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T164224&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95208&fm=163447302800093&tin=02508201610067®Number=0000000000090555&sum=90010 [16:42:19]OFD Sender: Processing packet 95208 [packets to send 30, broken 29] [16:42:19]ProducePacketName [16:42:19]name=ofd_packets/00095208 [16:42:19]OFD Sender: To server: pG, [16:42:19]CommunicateWithHost lk.salyk.kg:30040 [16:42:19]ConnectInit lk.salyk.kg [16:42:19]written 0, free lines is 4095 [16:42:20]Connected sock=10 [16:42:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 49 E9 07 01 00 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 9A 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 F0 85 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E8 73 01 00 35 04 06 00 94 A7 8A 6C 42 DD A2 91 76 A2 75 7B D6 A8 [16:42:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 BE 3A 47 00 88 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E8 73 01 00 F4 03 04 00 45 31 F0 65 B6 04 01 00 00 18 C7 71 21 2B 6A 1E 9E [16:42:20]CommunicateWithHost err = 0 [16:42:20]CheckOFDResponse [16:42:20]1017 (14) - 77093643461234 [16:42:20]1041 (16) - 0000000000874811 [16:42:20]1040 (4) - 95208 [16:42:20]1012 (4) - 12.03.2024 10:41 [16:42:20]1206 (1) - 0 [16:42:20]OFD Sender: Remove packet 95208 [16:42:20]ProducePacketName [16:42:20]name=ofd_packets/00095208 [16:42:20]NVStorageDeleteData [16:42:20]Write to MH i2c: 01 00 00 86 3E C4 [16:42:20]Write i2c OK [16:42:20]MH_I2C_Read... [16:42:20]Read from MH i2c: 01 [16:42:20]MH_I2C_Read... [16:42:20]Read from MH i2c: 01 07 00 [16:42:20]MH_I2C_Read... [16:42:20]Read from MH i2c: 01 07 00 86 3E 00 80 00 00 00 61 0D B9 [16:42:20]RasterBufferAndPrint [16:42:20]line [16:42:20]line [16:42:20]line [16:42:20]line [16:42:20]line [16:42:20]written 0, free lines is 3431 [16:42:20]process_action close_receipt done [16:42:20]requested_data is exist [16:42:20]produce_requested_data [16:42:20]requested_item fm.sn is exist - process it [16:42:20]wFMCommunicate request_size=4 [16:42:20]MH_SAM_APDU [16:42:20]CAPDU: 80 11 00 00 [16:42:20]Write to MH i2c: E2 08 00 8D 3E 80 11 00 00 00 00 00 00 45 [16:42:20]Write i2c OK [16:42:20]MH_I2C_Read... [16:42:20]Read from MH i2c: E2 [16:42:20]MH_I2C_Read... [16:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:20]Read from MH i2c: E2 17 00 [16:42:20]MH_I2C_Read... [16:42:20]Read from MH i2c: E2 17 00 8D 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 95 [16:42:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:42:20]wFMCommunicate OK [16:42:20]requested_item fd.num is exist - process it [16:42:20]SAM_PROTO_GetFieldsCounters [16:42:20]wFMCommunicate request_size=4 [16:42:20]MH_SAM_APDU [16:42:20]CAPDU: 80 13 00 00 [16:42:20]Write to MH i2c: E2 08 00 8E 3E 80 13 00 00 00 00 00 00 48 [16:42:20]Write i2c OK [16:42:20]MH_I2C_Read... [16:42:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:20]Read from MH i2c: E2 [16:42:20]MH_I2C_Read... [16:42:20]Read from MH i2c: E2 62 00 [16:42:20]MH_I2C_Read... [16:42:20]Read from MH i2c: E2 62 00 8E 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E8 73 01 00 0E 04 04 00 47 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 A7 [16:42:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E8 73 01 00 0E 04 04 00 47 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:42:20]wFMCommunicate OK [16:42:20]SAM_PROTO_GetFieldsCounters done [16:42:20]requested_item shift.num is exist - process it [16:42:20]requested_item shift.opened is exist - process it [16:42:20]req_shift_opened [16:42:20]FM_GetShiftState [16:42:20]SAM_PROTO_GetShiftState [16:42:20]wFMCommunicate request_size=4 [16:42:20]MH_SAM_APDU [16:42:20]CAPDU: 80 13 01 00 [16:42:20]Write to MH i2c: E2 08 00 8F 3E 80 13 01 00 00 00 00 00 4A [16:42:20]Write i2c OK [16:42:20]MH_I2C_Read... [16:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:20]OFD Sender: No OFD packet to send [16:42:20]Read from MH i2c: E2 [16:42:20]MH_I2C_Read... [16:42:20]Read from MH i2c: E2 0E 00 [16:42:20]MH_I2C_Read... [16:42:20]Read from MH i2c: E2 0E 00 8F 3E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 BE [16:42:20]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:42:20]wFMCommunicate OK [16:42:20]SAM_PROTO_GetShiftState done [16:42:20]FM_GetShiftState done [16:42:20]req_shift_opened done [16:42:20]requested_item shift.open_date is exist - process it [16:42:20]req_shift_open_date [16:42:20]req_shift_open_date done [16:42:20]produce_requested_data done [16:42:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95208,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [16:42:20]process_action_free close_receipt [16:42:20]json_value_free [16:42:20]json_value_free done [16:42:20]process_json_proto returns [16:42:20]Send response to host [16:42:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95208,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [16:42:20]free response buf [16:42:20]execute_script done [16:42:20]execute_script returns [16:42:20]free content buf [16:42:20]Sock 9.Close socket [16:42:20]Sock 9.Thread stoped [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]OFD Sender: No OFD packet to send [16:48:11]OFD Sender: No OFD packet to send [16:48:16]OFD Sender: No OFD packet to send [16:48:21]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:31]OFD Sender: No OFD packet to send [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:46]OFD Sender: No OFD packet to send [16:48:51]OFD Sender: No OFD packet to send [16:48:56]OFD Sender: No OFD packet to send [16:49:01]OFD Sender: No OFD packet to send [16:49:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:25]accept exits with 8 [16:50:25]New connection [16:50:25]New thread 3066813796 created [16:50:25]Thread 3066957156 joined [16:50:25]Waiting for new connection... [16:50:25] Sock 8.Parse request [16:50:25]Sock 8.Check first char [16:50:25]Sock 8.First char is OK [16:50:25]request: POST /json_proto HTTP/1.0 [16:50:25]Method: POST [16:50:25]URL: /json_proto [16:50:25]Method is POST - this is cgi request [16:50:25]url: /json_proto [16:50:25]query_string will be loaded in cgi processing [16:50:25]execute_cgi json_proto POST (null) [16:50:25]execute_cgi path=json_proto method=POST [16:50:25]POST find Content-Length [16:50:25]Host: 172.17.62.67:8080 [16:50:25]Content-Length: 682 [16:50:25]Content-Type: application/json [16:50:25] [16:50:25]POST finish read [16:50:25]Found Content-Length = 682 [16:50:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:50:25]execute_script... [16:50: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)196181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:50:25]POST & json_proto [16:50:25]process_json_proto [16:50:25]json parsed OK: [16:50:25]protocol is kg_v1.0 [16:50:25]action value=close_receipt [16:50:25]process_action close_receipt [16:50:25]cmd_close_receipt [16:50:25]MH_GetDate [16:50:25]Write to MH i2c: F0 00 00 90 3E BD [16:50:25]Write i2c OK [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: F0 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: F0 05 00 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: F0 05 00 90 3E 00 D7 87 F0 65 75 [16:50:25]GetLastDocTimeStamp 1710261744 [16:50:25]current date 1710262231 [16:50:25]FM_GetShiftState [16:50:25]SAM_PROTO_GetShiftState [16:50:25]wFMCommunicate request_size=4 [16:50:25]MH_SAM_APDU [16:50:25]CAPDU: 80 13 01 00 [16:50:25]Write to MH i2c: E2 08 00 91 3E 80 13 01 00 00 00 00 00 4C [16:50:25]Write i2c OK [16:50:25]MH_I2C_Read... [16:50:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:25]Read from MH i2c: E2 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: E2 0E 00 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: E2 0E 00 91 3E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C0 [16:50:25]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:50:25]wFMCommunicate OK [16:50:25]SAM_PROTO_GetShiftState done [16:50:25]FM_GetShiftState done [16:50:25]opened in 1710201976 [16:50:25]opened+sec_in_day 1710288376 [16:50:25]quantity*price = 100011 [16:50:25]sum+1 = 100012 [16:50:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 139 12.03.2024 16:50 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95209 ФПД: 13143447777074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T165031&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95209&fm=13143447777074&tin=02508201610067®Number=0000000000090555&sum=100000 [16:50:26]StoreToDocumentArchive [16:50:26]shift 327 fd 95209 [16:50:26]save to /storage/0327/doc_00095209 [16:50:26]save last doc name /storage/0327/doc_00095209 to /storage/kkm_last_doc_name [16:50:26]save OK [16:50:26]Clear old archive folders... [16:50:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:26]tlvbuf is 01A341F0 [16:50:26]SAM_PROTO_ClearQueue [16:50:26]wFMCommunicate request_size=4 [16:50:26]MH_SAM_APDU [16:50:26]CAPDU: 80 09 00 00 [16:50:26]Write to MH i2c: E2 08 00 9E 3E 80 09 00 00 00 00 00 00 4E [16:50:26]Write i2c OK [16:50:26]MH_I2C_Read... [16:50:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:26]Read from MH i2c: E2 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: E2 03 00 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: E2 03 00 9E 3E 00 90 00 50 [16:50:26]RAPDU: 90 00 [16:50:26]wFMCommunicate OK [16:50:26]SAM_PROTO_ClearQueue done [16:50:26]KKMCreateOFDPacket [16:50:26]OFDProtocolAddRootSTLVToBuf [16:50:26]FM_MakeSignedData [16:50:26]FM_MakeSignedData [16:50:26]SAM_PROTO_SignData [16:50:26]wFMCommunicate request_size=4 [16:50:26]MH_SAM_APDU [16:50:26]CAPDU: 80 0D 01 02 [16:50:26]Write to MH i2c: E2 08 00 9F 3E 80 0D 01 02 00 00 00 00 56 [16:50:26]Write i2c OK [16:50:26]MH_I2C_Read... [16:50:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:26]Read from MH i2c: E2 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: E2 03 00 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: E2 03 00 9F 3E 00 90 00 51 [16:50:26]RAPDU: 90 00 [16:50:26]wFMCommunicate OK [16:50:26]wFMCommunicate request_size=255 [16:50:26]MH_SAM_APDU [16:50:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D7 87 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E9 73 01 00 35 04 06 00 0B [16:50:26]Write to MH i2c: E2 02 01 A0 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D7 87 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E9 73 01 00 35 04 06 00 0B 00 00 EC [16:50:26]Write i2c OK [16:50:26]MH_I2C_Read... [16:50:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:27]Read from MH i2c: E2 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 03 00 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 03 00 A0 3E 00 90 00 52 [16:50:27]RAPDU: 90 00 [16:50:27]wFMCommunicate OK [16:50:27]wFMCommunicate request_size=10 [16:50:27]MH_SAM_APDU [16:50:27]CAPDU: 80 0D 02 02 05 F4 32 89 2F 32 [16:50:27]Write to MH i2c: E2 0D 00 A1 3E 80 0D 02 02 05 00 F4 32 89 2F 32 00 00 73 [16:50:27]Write i2c OK [16:50:27]MH_I2C_Read... [16:50:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:27]Read from MH i2c: E2 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 03 00 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 03 00 A1 3E 00 90 00 53 [16:50:27]RAPDU: 90 00 [16:50:27]wFMCommunicate OK [16:50:27]wFMCommunicate request_size=4 [16:50:27]MH_SAM_APDU [16:50:27]CAPDU: 80 0D 03 02 [16:50:27]Write to MH i2c: E2 08 00 A2 3E 80 0D 03 02 00 00 00 00 5B [16:50:27]Write i2c OK [16:50:27]MH_I2C_Read... [16:50:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:27]Read from MH i2c: E2 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 0B 00 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 0B 00 A2 3E 00 4E B1 61 39 B5 8A 0B 96 90 00 D5 [16:50:27]RAPDU: 4E B1 61 39 B5 8A 0B 96 90 00 [16:50:27]wFMCommunicate OK [16:50:27]SAM_PROTO_SignData done [16:50:27]FM_MakeSignedData done [16:50:27]CreateOFDProtocolMessage [16:50:27]wFMCommunicate request_size=4 [16:50:27]MH_SAM_APDU [16:50:27]CAPDU: 80 11 00 00 [16:50:27]Write to MH i2c: E2 08 00 A3 3E 80 11 00 00 00 00 00 00 5B [16:50:27]Write i2c OK [16:50:27]MH_I2C_Read... [16:50:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:27]Read from MH i2c: E2 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 17 00 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 17 00 A3 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AB [16:50:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:50:27]wFMCommunicate OK [16:50:27]CreateOFDProtocolMessage done [16:50:27]OFDSenderStorePacket 95209 [16:50:27]StoreOFDPacket docnum=95209 [16:50:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AA BD 07 01 C2 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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D7 87 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E9 73 01 00 35 04 06 00 0B F4 32 89 2F 32 4E B1 61 39 B5 8A 0B 96 [16:50:27]CheckFolder [16:50:27]dirname=/storage/ofd_packets [16:50:27]CheckFolder done [16:50:27]ProducePacketName [16:50:27]name=ofd_packets/00095209 [16:50:27]NVStorageSaveData ofd_packets/00095209 [16:50:27]File name is /storage/ofd_packets/00095209 [16:50:27]Write 301 bytes [16:50:27]NVStorageSaveData done [16:50:27]OFDSenderStorePacket done [16:50:27]KKMCreateOFDPacket done [16:50:27]NVStorageSaveData kkm_last_timestamp [16:50:27]File name is /storage/kkm_last_timestamp [16:50:27]Write 4 bytes [16:50:27]NVStorageSaveData done [16:50:27]ExternCall_PrintAddStr [16:50:27]wPrintStart [16:50:27]Write to MH i2c: 01 00 00 A4 3E E2 [16:50:27]Write i2c OK [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: 01 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: 01 07 00 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: 01 07 00 A4 3E 00 80 00 00 00 FF 0F 77 [16:50:27]RasterBufferAndPrint [16:50:27]line Счет N : (1)196181 [16:50:27]line ИНН: 02508201610067 [16:50:27]line Контрольно-Кассовый Чек [16:50:27]line ПРОДАЖА [16:50:27]line ТРК (МРК, ГНК) : 42 [16:50:27]line Товар: 2710124130 [16:50:27]line Аи-92-К-5 [16:50:27]line 15.900 * 62.90 [16:50:27]line = 1000.11 [16:50:27]line НДС 12% НСП 1% [16:50:27]line > о реализуемом товаре [16:50:27]line ОКРУГЛЕНИЕ: -0.11 [16:50:27]line ИТОГО: 1000.00 [16:50:27]line Внесено: 1000.00 [16:50:27]line СДАЧА: 0.00 [16:50:27]line НСП 1% : 8.85 [16:50:27]line НДС 12% : 106.21 [16:50:27]line Наличными: 1000.00 [16:50:27]line Безнал.: 0.00 [16:50:27]line Место: АЗС № 6 "Партнер Нефть" [16:50:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:50:27]line СНО: Общий режим [16:50:27]line Чек 139 12.03.2024 16:50 [16:50:27]line Смена: 327 ФФД: 1.0 [16:50:27]line ЗНМ: 0300000009 [16:50:27]line РНМ: 0000000000090555 [16:50:27]line Версия ККМ: 001 [16:50:27]line ФМ: 0000000000874811 [16:50:27]line ФД: 95209 [16:50:27]line ФПД: 13143447777074 [16:50:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T165031&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95209&fm=13143447777074&tin=02508201610067®Number=0000000000090555&sum=100000 [16:50:27]OFD Sender: Processing packet 95209 [packets to send 30, broken 29] [16:50:27]ProducePacketName [16:50:27]name=ofd_packets/00095209 [16:50:27]OFD Sender: To server: pG, [16:50:27]CommunicateWithHost lk.salyk.kg:30040 [16:50:27]ConnectInit lk.salyk.kg [16:50:27]written 0, free lines is 4095 [16:50:27]Connected sock=10 [16:50:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AA BD 07 01 C2 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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D7 87 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E9 73 01 00 35 04 06 00 0B F4 32 89 2F 32 4E B1 61 39 B5 8A 0B 96 [16:50:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 65 3A 47 00 BE 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E9 73 01 00 F4 03 04 00 2D 33 F0 65 B6 04 01 00 00 9C 41 CE 43 75 79 FC C4 [16:50:27]CommunicateWithHost err = 0 [16:50:27]CheckOFDResponse [16:50:27]1017 (14) - 77093643461234 [16:50:27]1041 (16) - 0000000000874811 [16:50:27]1040 (4) - 95209 [16:50:27]1012 (4) - 12.03.2024 10:49 [16:50:27]1206 (1) - 0 [16:50:27]OFD Sender: Remove packet 95209 [16:50:27]ProducePacketName [16:50:27]name=ofd_packets/00095209 [16:50:27]NVStorageDeleteData [16:50:28]Write to MH i2c: 01 00 00 CF 3E 0D [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: 01 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: 01 07 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: 01 07 00 CF 3E 00 80 00 00 00 46 0D E7 [16:50:28]RasterBufferAndPrint [16:50:28]line [16:50:28]line [16:50:28]line [16:50:28]line [16:50:28]line [16:50:28]written 0, free lines is 3404 [16:50:28]process_action close_receipt done [16:50:28]requested_data is exist [16:50:28]produce_requested_data [16:50:28]requested_item fm.sn is exist - process it [16:50:28]wFMCommunicate request_size=4 [16:50:28]MH_SAM_APDU [16:50:28]CAPDU: 80 11 00 00 [16:50:28]Write to MH i2c: E2 08 00 D6 3E 80 11 00 00 00 00 00 00 8E [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:28]Read from MH i2c: E2 17 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 17 00 D6 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DE [16:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:50:28]wFMCommunicate OK [16:50:28]requested_item fd.num is exist - process it [16:50:28]SAM_PROTO_GetFieldsCounters [16:50:28]wFMCommunicate request_size=4 [16:50:28]MH_SAM_APDU [16:50:28]CAPDU: 80 13 00 00 [16:50:28]Write to MH i2c: E2 08 00 D7 3E 80 13 00 00 00 00 00 00 91 [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 62 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 62 00 D7 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E9 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [16:50:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E9 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:28]wFMCommunicate OK [16:50:28]SAM_PROTO_GetFieldsCounters done [16:50:28]requested_item shift.num is exist - process it [16:50:28]requested_item shift.opened is exist - process it [16:50:28]req_shift_opened [16:50:28]FM_GetShiftState [16:50:28]SAM_PROTO_GetShiftState [16:50:28]wFMCommunicate request_size=4 [16:50:28]MH_SAM_APDU [16:50:28]CAPDU: 80 13 01 00 [16:50:28]Write to MH i2c: E2 08 00 D8 3E 80 13 01 00 00 00 00 00 93 [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:28]OFD Sender: No OFD packet to send [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 0E 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 0E 00 D8 3E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 07 [16:50:28]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:50:28]wFMCommunicate OK [16:50:28]SAM_PROTO_GetShiftState done [16:50:28]FM_GetShiftState done [16:50:28]req_shift_opened done [16:50:28]requested_item shift.open_date is exist - process it [16:50:28]req_shift_open_date [16:50:28]req_shift_open_date done [16:50:28]produce_requested_data done [16:50:28]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95209,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [16:50:28]process_action_free close_receipt [16:50:28]json_value_free [16:50:28]json_value_free done [16:50:28]process_json_proto returns [16:50:28]Send response to host [16:50:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95209,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [16:50:28]free response buf [16:50:28]execute_script done [16:50:28]execute_script returns [16:50:28]free content buf [16:50:28]Sock 8.Close socket [16:50:28]Sock 8.Thread stoped [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:00]accept exits with 9 [16:53:00]New connection [16:53:00]New thread 3066957156 created [16:53:00]Thread 3066813796 joined [16:53:00]Waiting for new connection... [16:53:00] Sock 9.Parse request [16:53:00]Sock 9.Check first char [16:53:00]Sock 9.First char is OK [16:53:00]request: POST /json_proto HTTP/1.0 [16:53:00]Method: POST [16:53:00]URL: /json_proto [16:53:00]Method is POST - this is cgi request [16:53:00]url: /json_proto [16:53:00]query_string will be loaded in cgi processing [16:53:00]execute_cgi json_proto POST (null) [16:53:00]execute_cgi path=json_proto method=POST [16:53:00]POST find Content-Length [16:53:00]Host: 172.17.62.67:8080 [16:53:00]Content-Length: 656 [16:53:00]Content-Type: application/json [16:53:00] [16:53:00]POST finish read [16:53:00]Found Content-Length = 656 [16:53:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 20.000, "sum" : 1278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 1278.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:00]execute_script... [16:53: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)196182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 20.000, "sum" : 1278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 1278.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:00]POST & json_proto [16:53:00]process_json_proto [16:53:00]json parsed OK: [16:53:00]protocol is kg_v1.0 [16:53:00]action value=close_receipt [16:53:00]process_action close_receipt [16:53:00]cmd_close_receipt [16:53:00]MH_GetDate [16:53:00]Write to MH i2c: F0 00 00 D9 3E 06 [16:53:00]Write i2c OK [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: F0 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: F0 05 00 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: F0 05 00 D9 3E 00 72 88 F0 65 5A [16:53:00]GetLastDocTimeStamp 1710262231 [16:53:00]current date 1710262386 [16:53:00]FM_GetShiftState [16:53:00]SAM_PROTO_GetShiftState [16:53:00]wFMCommunicate request_size=4 [16:53:00]MH_SAM_APDU [16:53:00]CAPDU: 80 13 01 00 [16:53:00]Write to MH i2c: E2 08 00 DA 3E 80 13 01 00 00 00 00 00 95 [16:53:00]Write i2c OK [16:53:00]MH_I2C_Read... [16:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:00]Read from MH i2c: E2 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: E2 0E 00 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: E2 0E 00 DA 3E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 09 [16:53:00]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:53:00]wFMCommunicate OK [16:53:00]SAM_PROTO_GetShiftState done [16:53:00]FM_GetShiftState done [16:53:00]opened in 1710201976 [16:53:00]opened+sec_in_day 1710288376 [16:53:00]quantity*price = 127800 [16:53:00]sum+1 = 127801 [16:53:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1278.00 Внесено: 5000.00 СДАЧА: 3722.00 НСП 1% : 11.31 НДС 12% : 135.72 Наличными: 1278.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 140 12.03.2024 16:53 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95210 ФПД: 68105145339903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T165306&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95210&fm=68105145339903&tin=02508201610067®Number=0000000000090555&sum=127800 [16:53:01]StoreToDocumentArchive [16:53:01]shift 327 fd 95210 [16:53:01]save to /storage/0327/doc_00095210 [16:53:01]save last doc name /storage/0327/doc_00095210 to /storage/kkm_last_doc_name [16:53:01]save OK [16:53:01]Clear old archive folders... [16:53:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:53:01]tlvbuf is B6F56270 [16:53:01]SAM_PROTO_ClearQueue [16:53:01]wFMCommunicate request_size=4 [16:53:01]MH_SAM_APDU [16:53:01]CAPDU: 80 09 00 00 [16:53:01]Write to MH i2c: E2 08 00 E7 3E 80 09 00 00 00 00 00 00 97 [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:01]Read from MH i2c: E2 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 03 00 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 03 00 E7 3E 00 90 00 99 [16:53:01]RAPDU: 90 00 [16:53:01]wFMCommunicate OK [16:53:01]SAM_PROTO_ClearQueue done [16:53:01]KKMCreateOFDPacket [16:53:01]OFDProtocolAddRootSTLVToBuf [16:53:01]FM_MakeSignedData [16:53:01]FM_MakeSignedData [16:53:01]SAM_PROTO_SignData [16:53:01]wFMCommunicate request_size=4 [16:53:01]MH_SAM_APDU [16:53:01]CAPDU: 80 0D 01 02 [16:53:01]Write to MH i2c: E2 08 00 E8 3E 80 0D 01 02 00 00 00 00 9F [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:01]Read from MH i2c: E2 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 03 00 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 03 00 E8 3E 00 90 00 9A [16:53:01]RAPDU: 90 00 [16:53:01]wFMCommunicate OK [16:53:01]wFMCommunicate request_size=255 [16:53:01]MH_SAM_APDU [16:53:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 38 F3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 F3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 35 00 00 00 00 07 04 06 00 38 F3 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 72 88 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EA 73 01 00 35 04 06 00 [16:53:01]Write to MH i2c: E2 02 01 E9 3E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 38 F3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 F3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 35 00 00 00 00 07 04 06 00 38 F3 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 72 88 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EA 73 01 00 35 04 06 00 00 00 6B [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:01]Read from MH i2c: E2 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 03 00 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 03 00 E9 3E 00 90 00 9B [16:53:01]RAPDU: 90 00 [16:53:01]wFMCommunicate OK [16:53:01]wFMCommunicate request_size=11 [16:53:01]MH_SAM_APDU [16:53:01]CAPDU: 80 0D 02 02 06 3D F0 F6 FE CF FF [16:53:01]Write to MH i2c: E2 0E 00 EA 3E 80 0D 02 02 06 00 3D F0 F6 FE CF FF 00 00 9D [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:01]Read from MH i2c: E2 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 03 00 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 03 00 EA 3E 00 90 00 9C [16:53:01]RAPDU: 90 00 [16:53:01]wFMCommunicate OK [16:53:01]wFMCommunicate request_size=4 [16:53:01]MH_SAM_APDU [16:53:01]CAPDU: 80 0D 03 02 [16:53:01]Write to MH i2c: E2 08 00 EB 3E 80 0D 03 02 00 00 00 00 A4 [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:02]Read from MH i2c: E2 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 0B 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 0B 00 EB 3E 00 5B 4B EB D5 D4 8D E0 96 90 00 E2 [16:53:02]RAPDU: 5B 4B EB D5 D4 8D E0 96 90 00 [16:53:02]wFMCommunicate OK [16:53:02]SAM_PROTO_SignData done [16:53:02]FM_MakeSignedData done [16:53:02]CreateOFDProtocolMessage [16:53:02]wFMCommunicate request_size=4 [16:53:02]MH_SAM_APDU [16:53:02]CAPDU: 80 11 00 00 [16:53:02]Write to MH i2c: E2 08 00 EC 3E 80 11 00 00 00 00 00 00 A4 [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:02]Read from MH i2c: E2 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 17 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 17 00 EC 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F4 [16:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:53:02]wFMCommunicate OK [16:53:02]CreateOFDProtocolMessage done [16:53:02]OFDSenderStorePacket 95210 [16:53:02]StoreOFDPacket docnum=95210 [16:53:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 13 DD 08 01 5A 58 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 38 F3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 F3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 35 00 00 00 00 07 04 06 00 38 F3 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 72 88 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EA 73 01 00 35 04 06 00 3D F0 F6 FE CF FF 5B 4B EB D5 D4 8D E0 96 [16:53:02]CheckFolder [16:53:02]dirname=/storage/ofd_packets [16:53:02]CheckFolder done [16:53:02]ProducePacketName [16:53:02]name=ofd_packets/00095210 [16:53:02]NVStorageSaveData ofd_packets/00095210 [16:53:02]File name is /storage/ofd_packets/00095210 [16:53:02]Write 302 bytes [16:53:02]NVStorageSaveData done [16:53:02]OFDSenderStorePacket done [16:53:02]KKMCreateOFDPacket done [16:53:02]NVStorageSaveData kkm_last_timestamp [16:53:02]File name is /storage/kkm_last_timestamp [16:53:02]Write 4 bytes [16:53:02]NVStorageSaveData done [16:53:02]ExternCall_PrintAddStr [16:53:02]wPrintStart [16:53:02]Write to MH i2c: 01 00 00 ED 3E 2B [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: 01 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: 01 07 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: 01 07 00 ED 3E 00 80 00 00 00 FF 0F C0 [16:53:02]RasterBufferAndPrint [16:53:02]line Счет N : (1)196182 [16:53:02]line ИНН: 02508201610067 [16:53:02]line Контрольно-Кассовый Чек [16:53:02]line ПРОДАЖА [16:53:02]line ТРК (МРК, ГНК) : 23 [16:53:02]line Товар: 2710124130 [16:53:02]line SUPER 92-К-5 [16:53:02]line 20.000 * 63.90 [16:53:02]line = 1278.00 [16:53:02]line НДС 12% НСП 1% [16:53:02]line > о реализуемом товаре [16:53:02]line ИТОГО: 1278.00 [16:53:02]line Внесено: 5000.00 [16:53:02]line СДАЧА: 3722.00 [16:53:02]line НСП 1% : 11.31 [16:53:02]line НДС 12% : 135.72 [16:53:02]line Наличными: 1278.00 [16:53:02]line Безнал.: 0.00 [16:53:02]line Место: АЗС № 6 "Партнер Нефть" [16:53:02]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:53:02]line СНО: Общий режим [16:53:02]line Чек 140 12.03.2024 16:53 [16:53:02]line Смена: 327 ФФД: 1.0 [16:53:02]line ЗНМ: 0300000009 [16:53:02]line РНМ: 0000000000090555 [16:53:02]line Версия ККМ: 001 [16:53:02]line ФМ: 0000000000874811 [16:53:02]line ФД: 95210 [16:53:02]line ФПД: 68105145339903 [16:53:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T165306&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95210&fm=68105145339903&tin=02508201610067®Number=0000000000090555&sum=127800 [16:53:02]OFD Sender: Processing packet 95210 [packets to send 30, broken 29] [16:53:02]ProducePacketName [16:53:02]name=ofd_packets/00095210 [16:53:02]OFD Sender: To server: pG, [16:53:02]CommunicateWithHost lk.salyk.kg:30040 [16:53:02]ConnectInit lk.salyk.kg [16:53:02]written 0, free lines is 4095 [16:53:02]Connected sock=10 [16:53:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 13 DD 08 01 5A 58 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 38 F3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 F3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 35 00 00 00 00 07 04 06 00 38 F3 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 72 88 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EA 73 01 00 35 04 06 00 3D F0 F6 FE CF FF 5B 4B EB D5 D4 8D E0 96 [16:53:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 4A 9D 47 00 B7 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EA 73 01 00 F4 03 04 00 C8 33 F0 65 B6 04 01 00 00 46 46 E6 F7 F6 2C A7 6F [16:53:02]CommunicateWithHost err = 0 [16:53:02]CheckOFDResponse [16:53:02]1017 (14) - 77093643461234 [16:53:02]1041 (16) - 0000000000874811 [16:53:02]1040 (4) - 95210 [16:53:02]1012 (4) - 12.03.2024 10:51 [16:53:02]1206 (1) - 0 [16:53:02]OFD Sender: Remove packet 95210 [16:53:02]ProducePacketName [16:53:02]name=ofd_packets/00095210 [16:53:02]NVStorageDeleteData [16:53:02]Write to MH i2c: 01 00 00 17 3F 56 [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: 01 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: 01 07 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: 01 07 00 17 3F 00 80 00 00 00 5F 0D 49 [16:53:02]RasterBufferAndPrint [16:53:02]line [16:53:02]line [16:53:02]line [16:53:02]line [16:53:02]line [16:53:02]written 0, free lines is 3429 [16:53:02]process_action close_receipt done [16:53:02]requested_data is exist [16:53:02]produce_requested_data [16:53:02]requested_item fm.sn is exist - process it [16:53:02]wFMCommunicate request_size=4 [16:53:02]MH_SAM_APDU [16:53:02]CAPDU: 80 11 00 00 [16:53:02]Write to MH i2c: E2 08 00 1E 3F 80 11 00 00 00 00 00 00 D7 [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:02]Read from MH i2c: E2 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 17 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 17 00 1E 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 27 [16:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:53:02]wFMCommunicate OK [16:53:02]requested_item fd.num is exist - process it [16:53:02]SAM_PROTO_GetFieldsCounters [16:53:02]wFMCommunicate request_size=4 [16:53:02]MH_SAM_APDU [16:53:02]CAPDU: 80 13 00 00 [16:53:02]Write to MH i2c: E2 08 00 1F 3F 80 13 00 00 00 00 00 00 DA [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:03]Read from MH i2c: E2 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 62 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 62 00 1F 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EA 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [16:53:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EA 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:03]wFMCommunicate OK [16:53:03]SAM_PROTO_GetFieldsCounters done [16:53:03]requested_item shift.num is exist - process it [16:53:03]requested_item shift.opened is exist - process it [16:53:03]req_shift_opened [16:53:03]FM_GetShiftState [16:53:03]SAM_PROTO_GetShiftState [16:53:03]wFMCommunicate request_size=4 [16:53:03]MH_SAM_APDU [16:53:03]CAPDU: 80 13 01 00 [16:53:03]Write to MH i2c: E2 08 00 20 3F 80 13 01 00 00 00 00 00 DC [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:03]Read from MH i2c: E2 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 0E 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 0E 00 20 3F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 50 [16:53:03]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:53:03]wFMCommunicate OK [16:53:03]SAM_PROTO_GetShiftState done [16:53:03]FM_GetShiftState done [16:53:03]req_shift_opened done [16:53:03]requested_item shift.open_date is exist - process it [16:53:03]req_shift_open_date [16:53:03]req_shift_open_date done [16:53:03]produce_requested_data done [16:53:03]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95210,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [16:53:03]process_action_free close_receipt [16:53:03]json_value_free [16:53:03]json_value_free done [16:53:03]process_json_proto returns [16:53:03]Send response to host [16:53:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95210,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [16:53:03]free response buf [16:53:03]execute_script done [16:53:03]execute_script returns [16:53:03]free content buf [16:53:03]Sock 9.Close socket [16:53:03]Sock 9.Thread stoped [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:50]accept exits with 8 [16:55:50]New connection [16:55:50]New thread 3066813796 created [16:55:50]Thread 3066957156 joined [16:55:50]Waiting for new connection... [16:55:50] Sock 8.Parse request [16:55:50]Sock 8.Check first char [16:55:50]Sock 8.First char is OK [16:55:50]request: POST /json_proto HTTP/1.0 [16:55:50]Method: POST [16:55:50]URL: /json_proto [16:55:50]Method is POST - this is cgi request [16:55:50]url: /json_proto [16:55:50]query_string will be loaded in cgi processing [16:55:50]execute_cgi json_proto POST (null) [16:55:50]execute_cgi path=json_proto method=POST [16:55:50]POST find Content-Length [16:55:50]Host: 172.17.62.67:8080 [16:55:50]Content-Length: 808 [16:55:50]Content-Type: application/json [16:55:50] [16:55:50]POST finish read [16:55:50]Found Content-Length = 808 [16:55:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:50]execute_script... [16: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)196183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:50]POST & json_proto [16:55:50]process_json_proto [16:55:50]json parsed OK: [16:55:50]protocol is kg_v1.0 [16:55:50]action value=close_receipt [16:55:50]process_action close_receipt [16:55:50]cmd_close_receipt [16:55:50]MH_GetDate [16:55:50]Write to MH i2c: F0 00 00 21 3F 4F [16:55:50]Write i2c OK [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: F0 [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: F0 05 00 [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: F0 05 00 21 3F 00 1C 89 F0 65 4E [16:55:50]GetLastDocTimeStamp 1710262386 [16:55:50]current date 1710262556 [16:55:50]FM_GetShiftState [16:55:50]SAM_PROTO_GetShiftState [16:55:50]wFMCommunicate request_size=4 [16:55:50]MH_SAM_APDU [16:55:50]CAPDU: 80 13 01 00 [16:55:50]Write to MH i2c: E2 08 00 22 3F 80 13 01 00 00 00 00 00 DE [16:55:50]Write i2c OK [16:55:50]MH_I2C_Read... [16:55:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:50]Read from MH i2c: E2 [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: E2 0E 00 [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: E2 0E 00 22 3F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 52 [16:55:50]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:55:50]wFMCommunicate OK [16:55:50]SAM_PROTO_GetShiftState done [16:55:50]FM_GetShiftState done [16:55:50]opened in 1710201976 [16:55:50]opened+sec_in_day 1710288376 [16:55:50]quantity*price = 200021 [16:55:50]sum+1 = 200022 [16:55:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.21 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 0.00 Безнал.: 2000.21 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 141 12.03.2024 16:55 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95211 ФПД: 178529138611138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T165556&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95211&fm=178529138611138&tin=02508201610067®Number=0000000000090555&sum=200021 [16:55:51]StoreToDocumentArchive [16:55:51]shift 327 fd 95211 [16:55:51]save to /storage/0327/doc_00095211 [16:55:51]save last doc name /storage/0327/doc_00095211 to /storage/kkm_last_doc_name [16:55:51]save OK [16:55:51]Clear old archive folders... [16:55:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:51]tlvbuf is 01B53E50 [16:55:51]SAM_PROTO_ClearQueue [16:55:51]wFMCommunicate request_size=4 [16:55:51]MH_SAM_APDU [16:55:51]CAPDU: 80 09 00 00 [16:55:51]Write to MH i2c: E2 08 00 2F 3F 80 09 00 00 00 00 00 00 E0 [16:55:51]Write i2c OK [16:55:51]MH_I2C_Read... [16:55:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:51]Read from MH i2c: E2 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: E2 03 00 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: E2 03 00 2F 3F 00 90 00 E2 [16:55:51]RAPDU: 90 00 [16:55:51]wFMCommunicate OK [16:55:51]SAM_PROTO_ClearQueue done [16:55:51]KKMCreateOFDPacket [16:55:51]OFDProtocolAddRootSTLVToBuf [16:55:51]FM_MakeSignedData [16:55:51]FM_MakeSignedData [16:55:51]SAM_PROTO_SignData [16:55:51]wFMCommunicate request_size=4 [16:55:51]MH_SAM_APDU [16:55:51]CAPDU: 80 0D 01 02 [16:55:51]Write to MH i2c: E2 08 00 30 3F 80 0D 01 02 00 00 00 00 E8 [16:55:51]Write i2c OK [16:55:51]MH_I2C_Read... [16:55:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:51]Read from MH i2c: E2 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: E2 03 00 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: E2 03 00 30 3F 00 90 00 E3 [16:55:51]RAPDU: 90 00 [16:55:51]wFMCommunicate OK [16:55:51]wFMCommunicate request_size=255 [16:55:51]MH_SAM_APDU [16:55:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 1C 89 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EB 73 01 00 35 04 06 00 A2 [16:55:51]Write to MH i2c: E2 02 01 31 3F 80 0D 02 02 FA 00 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 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 1C 89 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EB 73 01 00 35 04 06 00 A2 00 00 49 [16:55:51]Write i2c OK [16:55:51]MH_I2C_Read... [16:55:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:52]Read from MH i2c: E2 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 03 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 03 00 31 3F 00 90 00 E4 [16:55:52]RAPDU: 90 00 [16:55:52]wFMCommunicate OK [16:55:52]wFMCommunicate request_size=10 [16:55:52]MH_SAM_APDU [16:55:52]CAPDU: 80 0D 02 02 05 5F 0D E3 93 C2 [16:55:52]Write to MH i2c: E2 0D 00 32 3F 80 0D 02 02 05 00 5F 0D E3 93 C2 00 00 99 [16:55:52]Write i2c OK [16:55:52]MH_I2C_Read... [16:55:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:52]Read from MH i2c: E2 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 03 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 03 00 32 3F 00 90 00 E5 [16:55:52]RAPDU: 90 00 [16:55:52]wFMCommunicate OK [16:55:52]wFMCommunicate request_size=4 [16:55:52]MH_SAM_APDU [16:55:52]CAPDU: 80 0D 03 02 [16:55:52]Write to MH i2c: E2 08 00 33 3F 80 0D 03 02 00 00 00 00 ED [16:55:52]Write i2c OK [16:55:52]MH_I2C_Read... [16:55:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:52]Read from MH i2c: E2 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 0B 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 0B 00 33 3F 00 49 EE 55 B4 69 43 19 DC 90 00 CF [16:55:52]RAPDU: 49 EE 55 B4 69 43 19 DC 90 00 [16:55:52]wFMCommunicate OK [16:55:52]SAM_PROTO_SignData done [16:55:52]FM_MakeSignedData done [16:55:52]CreateOFDProtocolMessage [16:55:52]wFMCommunicate request_size=4 [16:55:52]MH_SAM_APDU [16:55:52]CAPDU: 80 11 00 00 [16:55:52]Write to MH i2c: E2 08 00 34 3F 80 11 00 00 00 00 00 00 ED [16:55:52]Write i2c OK [16:55:52]MH_I2C_Read... [16:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:52]Read from MH i2c: E2 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 17 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 17 00 34 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3D [16:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:55:52]wFMCommunicate OK [16:55:52]CreateOFDProtocolMessage done [16:55:52]OFDSenderStorePacket 95211 [16:55:52]StoreOFDPacket docnum=95211 [16:55:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 90 7B 07 01 0B EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 1C 89 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EB 73 01 00 35 04 06 00 A2 5F 0D E3 93 C2 49 EE 55 B4 69 43 19 DC [16:55:52]CheckFolder [16:55:52]dirname=/storage/ofd_packets [16:55:52]CheckFolder done [16:55:52]ProducePacketName [16:55:52]name=ofd_packets/00095211 [16:55:52]NVStorageSaveData ofd_packets/00095211 [16:55:52]File name is /storage/ofd_packets/00095211 [16:55:52]Write 301 bytes [16:55:52]NVStorageSaveData done [16:55:52]OFDSenderStorePacket done [16:55:52]KKMCreateOFDPacket done [16:55:52]NVStorageSaveData kkm_last_timestamp [16:55:52]File name is /storage/kkm_last_timestamp [16:55:52]Write 4 bytes [16:55:52]NVStorageSaveData done [16:55:52]ExternCall_PrintAddStr [16:55:52]wPrintStart [16:55:52]Write to MH i2c: 01 00 00 35 3F 74 [16:55:52]Write i2c OK [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: 01 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: 01 07 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: 01 07 00 35 3F 00 80 00 00 00 FF 0F 09 [16:55:52]RasterBufferAndPrint [16:55:52]line Счет N : (1)196183 [16:55:52]line ИНН: 02508201610067 [16:55:52]line Контрольно-Кассовый Чек [16:55:52]line ПРОДАЖА [16:55:52]line ТРК (МРК, ГНК) : 41 [16:55:52]line Товар: 2710124500 [16:55:52]line Аи-95-К-5 [16:55:52]line 28.780 * 69.50 [16:55:52]line = 2000.21 [16:55:52]line НДС 12% НСП 1% [16:55:52]line > о реализуемом товаре [16:55:52]line ИТОГО: 2000.21 [16:55:52]line НСП 1% : 17.70 [16:55:52]line НДС 12% : 212.41 [16:55:52]line Наличными: 0.00 [16:55:52]line Безнал.: 2000.21 [16:55:52]line Место: АЗС № 6 "Партнер Нефть" [16:55:52]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:55:52]line СНО: Общий режим [16:55:52]line Чек 141 12.03.2024 16:55 [16:55:52]line Смена: 327 ФФД: 1.0 [16:55:52]line ЗНМ: 0300000009 [16:55:52]line РНМ: 0000000000090555 [16:55:52]line Версия ККМ: 001 [16:55:52]line Платежная система: О! деньги [16:55:52]line ФМ: 0000000000874811 [16:55:52]line ФД: 95211 [16:55:52]line ФПД: 178529138611138 [16:55:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T165556&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95211&fm=178529138611138&tin=02508201610067®Number=0000000000090555&sum=200021 [16:55:52]OFD Sender: Processing packet 95211 [packets to send 30, broken 29] [16:55:52]ProducePacketName [16:55:52]name=ofd_packets/00095211 [16:55:52]OFD Sender: To server: pG, [16:55:52]CommunicateWithHost lk.salyk.kg:30040 [16:55:52]ConnectInit lk.salyk.kg [16:55:52]written 0, free lines is 4095 [16:55:52]Connected sock=10 [16:55:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 90 7B 07 01 0B EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 1C 89 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EB 73 01 00 35 04 06 00 A2 5F 0D E3 93 C2 49 EE 55 B4 69 43 19 DC [16:55:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 7B 3C 47 00 F7 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EB 73 01 00 F4 03 04 00 72 34 F0 65 B6 04 01 00 00 2C B2 BF D4 E5 8C 05 0C [16:55:52]CommunicateWithHost err = 0 [16:55:52]CheckOFDResponse [16:55:52]1017 (14) - 77093643461234 [16:55:52]1041 (16) - 0000000000874811 [16:55:52]1040 (4) - 95211 [16:55:52]1012 (4) - 12.03.2024 10:54 [16:55:52]1206 (1) - 0 [16:55:52]OFD Sender: Remove packet 95211 [16:55:52]ProducePacketName [16:55:52]name=ofd_packets/00095211 [16:55:52]NVStorageDeleteData [16:55:53]Write to MH i2c: 01 00 00 5F 3F 9E [16:55:53]Write i2c OK [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: 01 [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: 01 07 00 [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: 01 07 00 5F 3F 00 80 00 00 00 5A 0D 8C [16:55:53]RasterBufferAndPrint [16:55:53]line [16:55:53]line [16:55:53]line [16:55:53]line [16:55:53]line [16:55:53]written 0, free lines is 3424 [16:55:53]process_action close_receipt done [16:55:53]requested_data is exist [16:55:53]produce_requested_data [16:55:53]requested_item fm.sn is exist - process it [16:55:53]wFMCommunicate request_size=4 [16:55:53]MH_SAM_APDU [16:55:53]CAPDU: 80 11 00 00 [16:55:53]Write to MH i2c: E2 08 00 66 3F 80 11 00 00 00 00 00 00 1F [16:55:53]Write i2c OK [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: E2 [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: E2 17 00 [16:55:53]MH_I2C_Read... [16:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:53]Read from MH i2c: E2 17 00 66 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6F [16:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:55:53]wFMCommunicate OK [16:55:53]requested_item fd.num is exist - process it [16:55:53]SAM_PROTO_GetFieldsCounters [16:55:53]wFMCommunicate request_size=4 [16:55:53]MH_SAM_APDU [16:55:53]CAPDU: 80 13 00 00 [16:55:53]Write to MH i2c: E2 08 00 67 3F 80 13 00 00 00 00 00 00 22 [16:55:53]Write i2c OK [16:55:53]MH_I2C_Read... [16:55:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:53]Read from MH i2c: E2 [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: E2 62 00 [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: E2 62 00 67 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EB 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [16:55:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EB 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:53]wFMCommunicate OK [16:55:53]SAM_PROTO_GetFieldsCounters done [16:55:53]requested_item shift.num is exist - process it [16:55:53]requested_item shift.opened is exist - process it [16:55:53]req_shift_opened [16:55:53]FM_GetShiftState [16:55:53]SAM_PROTO_GetShiftState [16:55:53]wFMCommunicate request_size=4 [16:55:53]MH_SAM_APDU [16:55:53]CAPDU: 80 13 01 00 [16:55:53]Write to MH i2c: E2 08 00 68 3F 80 13 01 00 00 00 00 00 24 [16:55:53]Write i2c OK [16:55:53]MH_I2C_Read... [16:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:53]Read from MH i2c: E2 [16:55:53]MH_I2C_Read... [16:55:53]OFD Sender: No OFD packet to send [16:55:53]Read from MH i2c: E2 0E 00 [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: E2 0E 00 68 3F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 98 [16:55:53]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:55:53]wFMCommunicate OK [16:55:53]SAM_PROTO_GetShiftState done [16:55:53]FM_GetShiftState done [16:55:53]req_shift_opened done [16:55:53]requested_item shift.open_date is exist - process it [16:55:53]req_shift_open_date [16:55:53]req_shift_open_date done [16:55:53]produce_requested_data done [16:55:53]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95211,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [16:55:53]process_action_free close_receipt [16:55:53]json_value_free [16:55:53]json_value_free done [16:55:53]process_json_proto returns [16:55:53]Send response to host [16:55:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95211,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [16:55:53]free response buf [16:55:53]execute_script done [16:55:53]execute_script returns [16:55:53]free content buf [16:55:53]Sock 8.Close socket [16:55:53]Sock 8.Thread stoped [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]accept exits with 9 [16:56:28]New connection [16:56:28]New thread 3066957156 created [16:56:28]Thread 3066813796 joined [16:56:28]Waiting for new connection... [16:56:28] Sock 9.Parse request [16:56:28]Sock 9.Check first char [16:56:28]Sock 9.First char is OK [16:56:28]request: POST /json_proto HTTP/1.0 [16:56:28]Method: POST [16:56:28]URL: /json_proto [16:56:28]Method is POST - this is cgi request [16:56:28]url: /json_proto [16:56:28]query_string will be loaded in cgi processing [16:56:28]execute_cgi json_proto POST (null) [16:56:28]execute_cgi path=json_proto method=POST [16:56:28]POST find Content-Length [16:56:28]Host: 172.17.62.67:8080 [16:56:28]Content-Length: 677 [16:56:28]Content-Type: application/json [16:56:28] [16:56:28]POST finish read [16:56:28]Found Content-Length = 677 [16:56:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [16:56:28]execute_script... [16:56: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)196184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [16:56:28]POST & json_proto [16:56:28]process_json_proto [16:56:28]json parsed OK: [16:56:28]protocol is kg_v1.0 [16:56:28]action value=close_receipt [16:56:28]process_action close_receipt [16:56:28]cmd_close_receipt [16:56:28]MH_GetDate [16:56:28]Write to MH i2c: F0 00 00 69 3F 97 [16:56:28]Write i2c OK [16:56:28]MH_I2C_Read... [16:56:28]Read from MH i2c: F0 [16:56:28]MH_I2C_Read... [16:56:28]Read from MH i2c: F0 05 00 [16:56:28]MH_I2C_Read... [16:56:28]Read from MH i2c: F0 05 00 69 3F 00 42 89 F0 65 BC [16:56:28]GetLastDocTimeStamp 1710262556 [16:56:28]current date 1710262594 [16:56:28]FM_GetShiftState [16:56:28]SAM_PROTO_GetShiftState [16:56:28]wFMCommunicate request_size=4 [16:56:28]MH_SAM_APDU [16:56:28]CAPDU: 80 13 01 00 [16:56:28]Write to MH i2c: E2 08 00 6A 3F 80 13 01 00 00 00 00 00 26 [16:56:28]Write i2c OK [16:56:28]MH_I2C_Read... [16:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:28]Read from MH i2c: E2 [16:56:28]MH_I2C_Read... [16:56:28]Read from MH i2c: E2 0E 00 [16:56:28]MH_I2C_Read... [16:56:28]Read from MH i2c: E2 0E 00 6A 3F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 9A [16:56:28]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:56:28]wFMCommunicate OK [16:56:28]SAM_PROTO_GetShiftState done [16:56:28]FM_GetShiftState done [16:56:28]opened in 1710201976 [16:56:28]opened+sec_in_day 1710288376 [16:56:28]quantity*price = 30003 [16:56:28]sum+1 = 30004 [16:56:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 142 12.03.2024 16:56 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95212 ФПД: 50300210604545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T165634&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95212&fm=50300210604545&tin=02508201610067®Number=0000000000090555&sum=30000 [16:56:29]StoreToDocumentArchive [16:56:29]shift 327 fd 95212 [16:56:29]save to /storage/0327/doc_00095212 [16:56:29]save last doc name /storage/0327/doc_00095212 to /storage/kkm_last_doc_name [16:56:29]save OK [16:56:29]Clear old archive folders... [16:56:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:29]tlvbuf is 01A462B0 [16:56:29]SAM_PROTO_ClearQueue [16:56:29]wFMCommunicate request_size=4 [16:56:29]MH_SAM_APDU [16:56:29]CAPDU: 80 09 00 00 [16:56:29]Write to MH i2c: E2 08 00 77 3F 80 09 00 00 00 00 00 00 28 [16:56:29]Write i2c OK [16:56:29]MH_I2C_Read... [16:56:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:29]Read from MH i2c: E2 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 03 00 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 03 00 77 3F 00 90 00 2A [16:56:29]RAPDU: 90 00 [16:56:29]wFMCommunicate OK [16:56:29]SAM_PROTO_ClearQueue done [16:56:29]KKMCreateOFDPacket [16:56:29]OFDProtocolAddRootSTLVToBuf [16:56:29]FM_MakeSignedData [16:56:29]FM_MakeSignedData [16:56:29]SAM_PROTO_SignData [16:56:29]wFMCommunicate request_size=4 [16:56:29]MH_SAM_APDU [16:56:29]CAPDU: 80 0D 01 02 [16:56:29]Write to MH i2c: E2 08 00 78 3F 80 0D 01 02 00 00 00 00 30 [16:56:29]Write i2c OK [16:56:29]MH_I2C_Read... [16:56:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:29]Read from MH i2c: E2 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 03 00 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 03 00 78 3F 00 90 00 2B [16:56:29]RAPDU: 90 00 [16:56:29]wFMCommunicate OK [16:56:29]wFMCommunicate request_size=255 [16:56:29]MH_SAM_APDU [16:56:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 8E 00 00 00 F4 03 04 00 42 89 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EC 73 01 00 35 04 06 00 2D [16:56:29]Write to MH i2c: E2 02 01 79 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 8E 00 00 00 F4 03 04 00 42 89 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EC 73 01 00 35 04 06 00 2D 00 00 91 [16:56:29]Write i2c OK [16:56:29]MH_I2C_Read... [16:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:30]Read from MH i2c: E2 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: E2 03 00 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: E2 03 00 79 3F 00 90 00 2C [16:56:30]RAPDU: 90 00 [16:56:30]wFMCommunicate OK [16:56:30]wFMCommunicate request_size=10 [16:56:30]MH_SAM_APDU [16:56:30]CAPDU: 80 0D 02 02 05 BF 6E 2F 6A 01 [16:56:30]Write to MH i2c: E2 0D 00 7A 3F 80 0D 02 02 05 00 BF 6E 2F 6A 01 00 00 04 [16:56:30]Write i2c OK [16:56:30]MH_I2C_Read... [16:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:30]Read from MH i2c: E2 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: E2 03 00 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: E2 03 00 7A 3F 00 90 00 2D [16:56:30]RAPDU: 90 00 [16:56:30]wFMCommunicate OK [16:56:30]wFMCommunicate request_size=4 [16:56:30]MH_SAM_APDU [16:56:30]CAPDU: 80 0D 03 02 [16:56:30]Write to MH i2c: E2 08 00 7B 3F 80 0D 03 02 00 00 00 00 35 [16:56:30]Write i2c OK [16:56:30]MH_I2C_Read... [16:56:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:30]Read from MH i2c: E2 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: E2 0B 00 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: E2 0B 00 7B 3F 00 64 B7 30 4F 63 A8 4A 76 90 00 9B [16:56:30]RAPDU: 64 B7 30 4F 63 A8 4A 76 90 00 [16:56:30]wFMCommunicate OK [16:56:30]SAM_PROTO_SignData done [16:56:30]FM_MakeSignedData done [16:56:30]CreateOFDProtocolMessage [16:56:30]wFMCommunicate request_size=4 [16:56:30]MH_SAM_APDU [16:56:30]CAPDU: 80 11 00 00 [16:56:30]Write to MH i2c: E2 08 00 7C 3F 80 11 00 00 00 00 00 00 35 [16:56:30]Write i2c OK [16:56:30]MH_I2C_Read... [16:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:30]Read from MH i2c: E2 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: E2 17 00 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: E2 17 00 7C 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 85 [16:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:56:30]wFMCommunicate OK [16:56:30]CreateOFDProtocolMessage done [16:56:30]OFDSenderStorePacket 95212 [16:56:30]StoreOFDPacket docnum=95212 [16:56:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 18 42 07 01 40 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 8E 00 00 00 F4 03 04 00 42 89 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EC 73 01 00 35 04 06 00 2D BF 6E 2F 6A 01 64 B7 30 4F 63 A8 4A 76 [16:56:30]CheckFolder [16:56:30]dirname=/storage/ofd_packets [16:56:30]CheckFolder done [16:56:30]ProducePacketName [16:56:30]name=ofd_packets/00095212 [16:56:30]NVStorageSaveData ofd_packets/00095212 [16:56:30]File name is /storage/ofd_packets/00095212 [16:56:30]Write 301 bytes [16:56:30]NVStorageSaveData done [16:56:30]OFDSenderStorePacket done [16:56:30]KKMCreateOFDPacket done [16:56:30]NVStorageSaveData kkm_last_timestamp [16:56:30]File name is /storage/kkm_last_timestamp [16:56:30]Write 4 bytes [16:56:30]NVStorageSaveData done [16:56:30]ExternCall_PrintAddStr [16:56:30]wPrintStart [16:56:30]Write to MH i2c: 01 00 00 7D 3F BC [16:56:30]Write i2c OK [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: 01 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: 01 07 00 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: 01 07 00 7D 3F 00 80 00 00 00 FF 0F 51 [16:56:30]RasterBufferAndPrint [16:56:30]line Счет N : (1)196184 [16:56:30]line ИНН: 02508201610067 [16:56:30]line Контрольно-Кассовый Чек [16:56:30]line ПРОДАЖА [16:56:30]line ТРК (МРК, ГНК) : 32 [16:56:30]line Товар: 2710124130 [16:56:30]line Аи-92-К-5 [16:56:30]line 4.770 * 62.90 [16:56:30]line = 300.03 [16:56:30]line НДС 12% НСП 1% [16:56:30]line > о реализуемом товаре [16:56:30]line ОКРУГЛЕНИЕ: -0.03 [16:56:30]line ИТОГО: 300.00 [16:56:30]line Внесено: 300.00 [16:56:30]line СДАЧА: 0.00 [16:56:30]line НСП 1% : 2.65 [16:56:30]line НДС 12% : 31.86 [16:56:30]line Наличными: 300.00 [16:56:30]line Безнал.: 0.00 [16:56:30]line Место: АЗС № 6 "Партнер Нефть" [16:56:30]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:56:30]line СНО: Общий режим [16:56:30]line Чек 142 12.03.2024 16:56 [16:56:30]line Смена: 327 ФФД: 1.0 [16:56:30]line ЗНМ: 0300000009 [16:56:30]line РНМ: 0000000000090555 [16:56:30]line Версия ККМ: 001 [16:56:30]line ФМ: 0000000000874811 [16:56:30]line ФД: 95212 [16:56:30]line ФПД: 50300210604545 [16:56:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T165634&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95212&fm=50300210604545&tin=02508201610067®Number=0000000000090555&sum=30000 [16:56:30]written 0, free lines is 4095 [16:56:30]OFD Sender: Processing packet 95212 [packets to send 30, broken 29] [16:56:30]ProducePacketName [16:56:30]name=ofd_packets/00095212 [16:56:30]OFD Sender: To server: pG, [16:56:30]CommunicateWithHost lk.salyk.kg:30040 [16:56:30]ConnectInit lk.salyk.kg [16:56:30]Connected sock=10 [16:56:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 18 42 07 01 40 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 8E 00 00 00 F4 03 04 00 42 89 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EC 73 01 00 35 04 06 00 2D BF 6E 2F 6A 01 64 B7 30 4F 63 A8 4A 76 [16:56:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 11 8B 47 00 01 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EC 73 01 00 F4 03 04 00 98 34 F0 65 B6 04 01 00 00 E3 80 1E FB 15 27 34 10 [16:56:30]CommunicateWithHost err = 0 [16:56:30]CheckOFDResponse [16:56:30]1017 (14) - 77093643461234 [16:56:30]1041 (16) - 0000000000874811 [16:56:30]1040 (4) - 95212 [16:56:30]1012 (4) - 12.03.2024 10:55 [16:56:30]1206 (1) - 0 [16:56:30]OFD Sender: Remove packet 95212 [16:56:30]ProducePacketName [16:56:30]name=ofd_packets/00095212 [16:56:30]NVStorageDeleteData [16:56:30]Write to MH i2c: 01 00 00 A8 3F E7 [16:56:30]Write i2c OK [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: 01 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: 01 07 00 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: 01 07 00 A8 3F 00 80 00 00 00 47 0D C2 [16:56:30]RasterBufferAndPrint [16:56:30]line [16:56:30]line [16:56:30]line [16:56:30]line [16:56:30]line [16:56:30]written 0, free lines is 3407 [16:56:31]process_action close_receipt done [16:56:31]requested_data is exist [16:56:31]produce_requested_data [16:56:31]requested_item fm.sn is exist - process it [16:56:31]wFMCommunicate request_size=4 [16:56:31]MH_SAM_APDU [16:56:31]CAPDU: 80 11 00 00 [16:56:31]Write to MH i2c: E2 08 00 AF 3F 80 11 00 00 00 00 00 00 68 [16:56:31]Write i2c OK [16:56:31]MH_I2C_Read... [16:56:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:31]Read from MH i2c: E2 [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: E2 17 00 [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: E2 17 00 AF 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B8 [16:56:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:56:31]wFMCommunicate OK [16:56:31]requested_item fd.num is exist - process it [16:56:31]SAM_PROTO_GetFieldsCounters [16:56:31]wFMCommunicate request_size=4 [16:56:31]MH_SAM_APDU [16:56:31]CAPDU: 80 13 00 00 [16:56:31]Write to MH i2c: E2 08 00 B0 3F 80 13 00 00 00 00 00 00 6B [16:56:31]Write i2c OK [16:56:31]MH_I2C_Read... [16:56:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:31]Read from MH i2c: E2 [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: E2 62 00 [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: E2 62 00 B0 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EC 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [16:56:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EC 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:31]wFMCommunicate OK [16:56:31]SAM_PROTO_GetFieldsCounters done [16:56:31]requested_item shift.num is exist - process it [16:56:31]requested_item shift.opened is exist - process it [16:56:31]req_shift_opened [16:56:31]FM_GetShiftState [16:56:31]SAM_PROTO_GetShiftState [16:56:31]wFMCommunicate request_size=4 [16:56:31]MH_SAM_APDU [16:56:31]CAPDU: 80 13 01 00 [16:56:31]Write to MH i2c: E2 08 00 B1 3F 80 13 01 00 00 00 00 00 6D [16:56:31]Write i2c OK [16:56:31]MH_I2C_Read... [16:56:31]OFD Sender: No OFD packet to send [16:56:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:31]Read from MH i2c: E2 [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: E2 0E 00 [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: E2 0E 00 B1 3F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 E1 [16:56:31]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [16:56:31]wFMCommunicate OK [16:56:31]SAM_PROTO_GetShiftState done [16:56:31]FM_GetShiftState done [16:56:31]req_shift_opened done [16:56:31]requested_item shift.open_date is exist - process it [16:56:31]req_shift_open_date [16:56:31]req_shift_open_date done [16:56:31]produce_requested_data done [16:56:31]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95212,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [16:56:31]process_action_free close_receipt [16:56:31]json_value_free [16:56:31]json_value_free done [16:56:31]process_json_proto returns [16:56:31]Send response to host [16:56:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95212,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [16:56:31]free response buf [16:56:31]execute_script done [16:56:31]execute_script returns [16:56:31]free content buf [16:56:31]Sock 9.Close socket [16:56:31]Sock 9.Thread stoped [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]OFD Sender: No OFD packet to send [17:02:31]OFD Sender: No OFD packet to send [17:02:36]OFD Sender: No OFD packet to send [17:02:41]OFD Sender: No OFD packet to send [17:02:46]OFD Sender: No OFD packet to send [17:02:51]OFD Sender: No OFD packet to send [17:02:56]OFD Sender: No OFD packet to send [17:03:01]OFD Sender: No OFD packet to send [17:03:06]OFD Sender: No OFD packet to send [17:03:11]OFD Sender: No OFD packet to send [17:03:16]OFD Sender: No OFD packet to send [17:03:21]OFD Sender: No OFD packet to send [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:35]accept exits with 8 [17:05:35]New connection [17:05:35]New thread 3066813796 created [17:05:35]Thread 3066957156 joined [17:05:35]Waiting for new connection... [17:05:35] Sock 8.Parse request [17:05:35]Sock 8.Check first char [17:05:35]Sock 8.First char is OK [17:05:35]request: POST /json_proto HTTP/1.0 [17:05:35]Method: POST [17:05:35]URL: /json_proto [17:05:35]Method is POST - this is cgi request [17:05:35]url: /json_proto [17:05:35]query_string will be loaded in cgi processing [17:05:35]execute_cgi json_proto POST (null) [17:05:35]execute_cgi path=json_proto method=POST [17:05:35]POST find Content-Length [17:05:35]Host: 172.17.62.67:8080 [17:05:35]Content-Length: 677 [17:05:35]Content-Type: application/json [17:05:35] [17:05:35]POST finish read [17:05:35]Found Content-Length = 677 [17:05:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [17:05:35]execute_script... [17: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)196186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [17:05:35]POST & json_proto [17:05:35]process_json_proto [17:05:35]json parsed OK: [17:05:35]protocol is kg_v1.0 [17:05:35]action value=close_receipt [17:05:35]process_action close_receipt [17:05:35]cmd_close_receipt [17:05:35]MH_GetDate [17:05:35]Write to MH i2c: F0 00 00 B2 3F E0 [17:05:35]Write i2c OK [17:05:35]MH_I2C_Read... [17:05:35]Read from MH i2c: F0 [17:05:35]MH_I2C_Read... [17:05:35]Read from MH i2c: F0 05 00 [17:05:35]MH_I2C_Read... [17:05:35]Read from MH i2c: F0 05 00 B2 3F 00 65 8B F0 65 2A [17:05:35]GetLastDocTimeStamp 1710262594 [17:05:35]current date 1710263141 [17:05:35]FM_GetShiftState [17:05:35]SAM_PROTO_GetShiftState [17:05:35]wFMCommunicate request_size=4 [17:05:35]MH_SAM_APDU [17:05:35]CAPDU: 80 13 01 00 [17:05:35]Write to MH i2c: E2 08 00 B3 3F 80 13 01 00 00 00 00 00 6F [17:05:35]Write i2c OK [17:05:35]MH_I2C_Read... [17:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:35]Read from MH i2c: E2 [17:05:35]MH_I2C_Read... [17:05:35]Read from MH i2c: E2 0E 00 [17:05:35]MH_I2C_Read... [17:05:35]Read from MH i2c: E2 0E 00 B3 3F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 E3 [17:05:35]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:05:35]wFMCommunicate OK [17:05:35]SAM_PROTO_GetShiftState done [17:05:35]FM_GetShiftState done [17:05:35]opened in 1710201976 [17:05:35]opened+sec_in_day 1710288376 [17:05:35]quantity*price = 30003 [17:05:35]sum+1 = 30004 [17:05:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 143 12.03.2024 17:05 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95213 ФПД: 146428904995376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T170541&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95213&fm=146428904995376&tin=02508201610067®Number=0000000000090555&sum=30000 [17:05:36]StoreToDocumentArchive [17:05:36]shift 327 fd 95213 [17:05:36]save to /storage/0327/doc_00095213 [17:05:36]save last doc name /storage/0327/doc_00095213 to /storage/kkm_last_doc_name [17:05:36]save OK [17:05:36]Clear old archive folders... [17:05:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:36]tlvbuf is 01A4C6A0 [17:05:36]SAM_PROTO_ClearQueue [17:05:36]wFMCommunicate request_size=4 [17:05:36]MH_SAM_APDU [17:05:36]CAPDU: 80 09 00 00 [17:05:36]Write to MH i2c: E2 08 00 C0 3F 80 09 00 00 00 00 00 00 71 [17:05:36]Write i2c OK [17:05:36]MH_I2C_Read... [17:05:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:36]Read from MH i2c: E2 [17:05:36]MH_I2C_Read... [17:05:36]Read from MH i2c: E2 03 00 [17:05:36]MH_I2C_Read... [17:05:36]Read from MH i2c: E2 03 00 C0 3F 00 90 00 73 [17:05:36]RAPDU: 90 00 [17:05:36]wFMCommunicate OK [17:05:36]SAM_PROTO_ClearQueue done [17:05:36]KKMCreateOFDPacket [17:05:36]OFDProtocolAddRootSTLVToBuf [17:05:36]FM_MakeSignedData [17:05:36]FM_MakeSignedData [17:05:36]SAM_PROTO_SignData [17:05:36]wFMCommunicate request_size=4 [17:05:36]MH_SAM_APDU [17:05:36]CAPDU: 80 0D 01 02 [17:05:36]Write to MH i2c: E2 08 00 C1 3F 80 0D 01 02 00 00 00 00 79 [17:05:36]Write i2c OK [17:05:36]MH_I2C_Read... [17:05:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:36]Read from MH i2c: E2 [17:05:36]MH_I2C_Read... [17:05:36]Read from MH i2c: E2 03 00 [17:05:36]MH_I2C_Read... [17:05:36]Read from MH i2c: E2 03 00 C1 3F 00 90 00 74 [17:05:36]RAPDU: 90 00 [17:05:36]wFMCommunicate OK [17:05:36]wFMCommunicate request_size=255 [17:05:36]MH_SAM_APDU [17:05:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 8F 00 00 00 F4 03 04 00 65 8B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 ED 73 01 00 35 04 06 00 85 [17:05:36]Write to MH i2c: E2 02 01 C2 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 8F 00 00 00 F4 03 04 00 65 8B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 ED 73 01 00 35 04 06 00 85 00 00 59 [17:05:36]Write i2c OK [17:05:36]MH_I2C_Read... [17:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:36]Read from MH i2c: E2 [17:05:36]MH_I2C_Read... [17:05:36]Read from MH i2c: E2 03 00 [17:05:36]MH_I2C_Read... [17:05:36]Read from MH i2c: E2 03 00 C2 3F 00 90 00 75 [17:05:36]RAPDU: 90 00 [17:05:36]wFMCommunicate OK [17:05:36]wFMCommunicate request_size=10 [17:05:36]MH_SAM_APDU [17:05:36]CAPDU: 80 0D 02 02 05 2D 22 DD FA 30 [17:05:36]Write to MH i2c: E2 0D 00 C3 3F 80 0D 02 02 05 00 2D 22 DD FA 30 00 00 DC [17:05:36]Write i2c OK [17:05:36]MH_I2C_Read... [17:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:36]Read from MH i2c: E2 [17:05:36]MH_I2C_Read... [17:05:36]Read from MH i2c: E2 03 00 [17:05:36]MH_I2C_Read... [17:05:36]Read from MH i2c: E2 03 00 C3 3F 00 90 00 76 [17:05:36]RAPDU: 90 00 [17:05:36]wFMCommunicate OK [17:05:36]wFMCommunicate request_size=4 [17:05:36]MH_SAM_APDU [17:05:36]CAPDU: 80 0D 03 02 [17:05:36]Write to MH i2c: E2 08 00 C4 3F 80 0D 03 02 00 00 00 00 7E [17:05:36]Write i2c OK [17:05:36]MH_I2C_Read... [17:05:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:36]Read from MH i2c: E2 [17:05:36]MH_I2C_Read... [17:05:36]Read from MH i2c: E2 0B 00 [17:05:36]MH_I2C_Read... [17:05:36]Read from MH i2c: E2 0B 00 C4 3F 00 0B 3F 03 AF 86 85 45 44 90 00 0F [17:05:36]RAPDU: 0B 3F 03 AF 86 85 45 44 90 00 [17:05:36]wFMCommunicate OK [17:05:36]SAM_PROTO_SignData done [17:05:36]FM_MakeSignedData done [17:05:36]CreateOFDProtocolMessage [17:05:36]wFMCommunicate request_size=4 [17:05:36]MH_SAM_APDU [17:05:36]CAPDU: 80 11 00 00 [17:05:36]Write to MH i2c: E2 08 00 C5 3F 80 11 00 00 00 00 00 00 7E [17:05:36]Write i2c OK [17:05:36]MH_I2C_Read... [17:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:36]Read from MH i2c: E2 [17:05:36]MH_I2C_Read... [17:05:36]Read from MH i2c: E2 17 00 [17:05:36]MH_I2C_Read... [17:05:36]Read from MH i2c: E2 17 00 C5 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CE [17:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:05:36]wFMCommunicate OK [17:05:36]CreateOFDProtocolMessage done [17:05:36]OFDSenderStorePacket 95213 [17:05:36]StoreOFDPacket docnum=95213 [17:05:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D3 67 07 01 A0 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 8F 00 00 00 F4 03 04 00 65 8B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 ED 73 01 00 35 04 06 00 85 2D 22 DD FA 30 0B 3F 03 AF 86 85 45 44 [17:05:36]CheckFolder [17:05:36]dirname=/storage/ofd_packets [17:05:36]CheckFolder done [17:05:36]ProducePacketName [17:05:36]name=ofd_packets/00095213 [17:05:36]NVStorageSaveData ofd_packets/00095213 [17:05:36]File name is /storage/ofd_packets/00095213 [17:05:36]Write 301 bytes [17:05:36]NVStorageSaveData done [17:05:36]OFDSenderStorePacket done [17:05:36]KKMCreateOFDPacket done [17:05:36]NVStorageSaveData kkm_last_timestamp [17:05:36]File name is /storage/kkm_last_timestamp [17:05:36]Write 4 bytes [17:05:36]NVStorageSaveData done [17:05:36]ExternCall_PrintAddStr [17:05:36]wPrintStart [17:05:36]Write to MH i2c: 01 00 00 C6 3F 05 [17:05:36]Write i2c OK [17:05:36]MH_I2C_Read... [17:05:36]Read from MH i2c: 01 [17:05:36]MH_I2C_Read... [17:05:36]Read from MH i2c: 01 07 00 [17:05:36]MH_I2C_Read... [17:05:36]Read from MH i2c: 01 07 00 C6 3F 00 80 00 00 00 FF 0F 9A [17:05:36]RasterBufferAndPrint [17:05:36]line Счет N : (1)196186 [17:05:36]line ИНН: 02508201610067 [17:05:36]line Контрольно-Кассовый Чек [17:05:36]line ПРОДАЖА [17:05:36]line ТРК (МРК, ГНК) : 22 [17:05:36]line Товар: 2710124130 [17:05:36]line Аи-92-К-5 [17:05:36]line 4.770 * 62.90 [17:05:36]line = 300.03 [17:05:36]line НДС 12% НСП 1% [17:05:36]line > о реализуемом товаре [17:05:36]line ОКРУГЛЕНИЕ: -0.03 [17:05:36]line ИТОГО: 300.00 [17:05:36]line Внесено: 300.00 [17:05:36]line СДАЧА: 0.00 [17:05:36]line НСП 1% : 2.65 [17:05:36]line НДС 12% : 31.86 [17:05:36]line Наличными: 300.00 [17:05:36]line Безнал.: 0.00 [17:05:36]line Место: АЗС № 6 "Партнер Нефть" [17:05:36]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:05:36]line СНО: Общий режим [17:05:36]line Чек 143 12.03.2024 17:05 [17:05:36]line Смена: 327 ФФД: 1.0 [17:05:36]line ЗНМ: 0300000009 [17:05:36]line РНМ: 0000000000090555 [17:05:36]line Версия ККМ: 001 [17:05:36]line ФМ: 0000000000874811 [17:05:36]line ФД: 95213 [17:05:36]line ФПД: 146428904995376 [17:05:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T170541&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95213&fm=146428904995376&tin=02508201610067®Number=0000000000090555&sum=30000 [17:05:37]OFD Sender: Processing packet 95213 [packets to send 30, broken 29] [17:05:37]ProducePacketName [17:05:37]name=ofd_packets/00095213 [17:05:37]OFD Sender: To server: pG, [17:05:37]CommunicateWithHost lk.salyk.kg:30040 [17:05:37]ConnectInit lk.salyk.kg [17:05:37]written 0, free lines is 4095 [17:05:37]Connected sock=10 [17:05:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D3 67 07 01 A0 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 8F 00 00 00 F4 03 04 00 65 8B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 ED 73 01 00 35 04 06 00 85 2D 22 DD FA 30 0B 3F 03 AF 86 85 45 44 [17:05:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 95 3C 47 00 50 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 ED 73 01 00 F4 03 04 00 BA 36 F0 65 B6 04 01 00 00 93 12 44 E9 58 BD 5F 0B [17:05:37]CommunicateWithHost err = 0 [17:05:37]CheckOFDResponse [17:05:37]1017 (14) - 77093643461234 [17:05:37]1041 (16) - 0000000000874811 [17:05:37]1040 (4) - 95213 [17:05:37]1012 (4) - 12.03.2024 11:04 [17:05:37]1206 (1) - 0 [17:05:37]OFD Sender: Remove packet 95213 [17:05:37]ProducePacketName [17:05:37]name=ofd_packets/00095213 [17:05:37]NVStorageDeleteData [17:05:37]Write to MH i2c: 01 00 00 F1 3F 30 [17:05:37]Write i2c OK [17:05:37]MH_I2C_Read... [17:05:37]Read from MH i2c: 01 [17:05:37]MH_I2C_Read... [17:05:37]Read from MH i2c: 01 07 00 [17:05:37]MH_I2C_Read... [17:05:37]Read from MH i2c: 01 07 00 F1 3F 00 80 00 00 00 4A 0D 0E [17:05:37]RasterBufferAndPrint [17:05:37]line [17:05:37]line [17:05:37]line [17:05:37]line [17:05:37]line [17:05:37]written 0, free lines is 3408 [17:05:37]process_action close_receipt done [17:05:37]requested_data is exist [17:05:37]produce_requested_data [17:05:37]requested_item fm.sn is exist - process it [17:05:37]wFMCommunicate request_size=4 [17:05:37]MH_SAM_APDU [17:05:37]CAPDU: 80 11 00 00 [17:05:37]Write to MH i2c: E2 08 00 F8 3F 80 11 00 00 00 00 00 00 B1 [17:05:37]Write i2c OK [17:05:37]MH_I2C_Read... [17:05:37]Read from MH i2c: E2 [17:05:37]MH_I2C_Read... [17:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:37]Read from MH i2c: E2 17 00 [17:05:37]MH_I2C_Read... [17:05:37]Read from MH i2c: E2 17 00 F8 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 01 [17:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:05:37]wFMCommunicate OK [17:05:37]requested_item fd.num is exist - process it [17:05:37]SAM_PROTO_GetFieldsCounters [17:05:37]wFMCommunicate request_size=4 [17:05:37]MH_SAM_APDU [17:05:37]CAPDU: 80 13 00 00 [17:05:37]Write to MH i2c: E2 08 00 F9 3F 80 13 00 00 00 00 00 00 B4 [17:05:37]Write i2c OK [17:05:37]MH_I2C_Read... [17:05:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:37]Read from MH i2c: E2 [17:05:37]MH_I2C_Read... [17:05:37]Read from MH i2c: E2 62 00 [17:05:37]MH_I2C_Read... [17:05:37]Read from MH i2c: E2 62 00 F9 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 ED 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [17:05:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 ED 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:37]wFMCommunicate OK [17:05:37]SAM_PROTO_GetFieldsCounters done [17:05:37]requested_item shift.num is exist - process it [17:05:37]requested_item shift.opened is exist - process it [17:05:37]req_shift_opened [17:05:37]FM_GetShiftState [17:05:37]SAM_PROTO_GetShiftState [17:05:37]wFMCommunicate request_size=4 [17:05:37]MH_SAM_APDU [17:05:37]CAPDU: 80 13 01 00 [17:05:37]Write to MH i2c: E2 08 00 FA 3F 80 13 01 00 00 00 00 00 B6 [17:05:37]Write i2c OK [17:05:37]MH_I2C_Read... [17:05:37]OFD Sender: No OFD packet to send [17:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:37]Read from MH i2c: E2 [17:05:37]MH_I2C_Read... [17:05:37]Read from MH i2c: E2 0E 00 [17:05:37]MH_I2C_Read... [17:05:37]Read from MH i2c: E2 0E 00 FA 3F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 2A [17:05:37]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:05:37]wFMCommunicate OK [17:05:37]SAM_PROTO_GetShiftState done [17:05:37]FM_GetShiftState done [17:05:37]req_shift_opened done [17:05:37]requested_item shift.open_date is exist - process it [17:05:37]req_shift_open_date [17:05:37]req_shift_open_date done [17:05:37]produce_requested_data done [17:05:37]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95213,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:05:37]process_action_free close_receipt [17:05:37]json_value_free [17:05:37]json_value_free done [17:05:37]process_json_proto returns [17:05:37]Send response to host [17:05:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95213,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:05:37]free response buf [17:05:37]execute_script done [17:05:37]execute_script returns [17:05:37]free content buf [17:05:37]Sock 8.Close socket [17:05:37]Sock 8.Thread stoped [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:51]accept exits with 9 [17:05:51]New connection [17:05:51]New thread 3066957156 created [17:05:51]Thread 3066813796 joined [17:05:51]Waiting for new connection... [17:05:51] Sock 9.Parse request [17:05:51]Sock 9.Check first char [17:05:51]Sock 9.First char is OK [17:05:51]request: POST /json_proto HTTP/1.0 [17:05:51]Method: POST [17:05:51]URL: /json_proto [17:05:51]Method is POST - this is cgi request [17:05:51]url: /json_proto [17:05:51]query_string will be loaded in cgi processing [17:05:51]execute_cgi json_proto POST (null) [17:05:51]execute_cgi path=json_proto method=POST [17:05:51]POST find Content-Length [17:05:51]Host: 172.17.62.67:8080 [17:05:51]Content-Length: 1201 [17:05:51]Content-Type: application/json [17:05:51] [17:05:51]POST finish read [17:05:51]Found Content-Length = 1201 [17:05:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196185\u000A12.03.2024 17:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3689386.90\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:51]execute_script... [17:05:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196185\u000A12.03.2024 17:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3689386.90\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:51]POST & json_proto [17:05:51]process_json_proto [17:05:51]json parsed OK: [17:05:51]protocol is kg_v1.0 [17:05:51]action value=print_text [17:05:51]process_action print_text [17:05:51]cmd_print_text [17:05:51]ExternCall_PrintAddStr [17:05:51]wPrintStart [17:05:51]Write to MH i2c: 01 00 00 FB 3F 3A [17:05:51]Write i2c OK [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: 01 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: 01 07 00 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: 01 07 00 FB 3F 00 80 00 00 00 FF 0F CF [17:05:51]RasterBufferAndPrint [17:05:51]line *****ТОВАРНЫЙ ЧЕК***** [17:05:51]line АЗС 6 [17:05:51]line Партнер нефть [17:05:51]line 02508201610067 [17:05:51]line Кассир : Мыктыбекова И. [17:05:51]line Счет N : (1)196185 [17:05:51]line 12.03.2024 17:00 [17:05:51]line ПРОДАЖА [17:05:51]line ТРК (МРК, ГНК): 51 [17:05:51]line Вид ГСМ : 2710194210 [17:05:51]line ДТ-К-5 [17:05:51]line 20.000 x 70.90 [17:05:51]line ИТОГ: 1418.00 [17:05:51]line Тип оплаты: Талоны: Партнер нефть [17:05:51]line 3689386.90 [17:05:51]line ______________________ [17:05:51]line (подпись) [17:05:51]written 0, free lines is 4095 [17:05:51]Write to MH i2c: 01 00 00 0F 40 4F [17:05:51]Write i2c OK [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: 01 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: 01 07 00 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: 01 07 00 0F 40 00 80 00 00 00 65 0E 49 [17:05:51]RasterBufferAndPrint [17:05:51]line [17:05:51]line [17:05:51]line [17:05:51]line [17:05:51]line [17:05:51]written 0, free lines is 3690 [17:05:51]process_action print_text done [17:05:51]requested_data is exist [17:05:51]produce_requested_data [17:05:51]requested_item fm.sn is exist - process it [17:05:51]wFMCommunicate request_size=4 [17:05:51]MH_SAM_APDU [17:05:51]CAPDU: 80 11 00 00 [17:05:51]Write to MH i2c: E2 08 00 16 40 80 11 00 00 00 00 00 00 D0 [17:05:51]Write i2c OK [17:05:51]MH_I2C_Read... [17:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:51]Read from MH i2c: E2 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 17 00 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 17 00 16 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 20 [17:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:05:51]wFMCommunicate OK [17:05:51]requested_item fd.num is exist - process it [17:05:51]SAM_PROTO_GetFieldsCounters [17:05:51]wFMCommunicate request_size=4 [17:05:51]MH_SAM_APDU [17:05:51]CAPDU: 80 13 00 00 [17:05:51]Write to MH i2c: E2 08 00 17 40 80 13 00 00 00 00 00 00 D3 [17:05:51]Write i2c OK [17:05:51]MH_I2C_Read... [17:05:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:51]Read from MH i2c: E2 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 62 00 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 62 00 17 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 ED 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [17:05:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 ED 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:51]wFMCommunicate OK [17:05:51]SAM_PROTO_GetFieldsCounters done [17:05:51]requested_item shift.num is exist - process it [17:05:51]requested_item shift.opened is exist - process it [17:05:51]req_shift_opened [17:05:51]FM_GetShiftState [17:05:51]SAM_PROTO_GetShiftState [17:05:51]wFMCommunicate request_size=4 [17:05:51]MH_SAM_APDU [17:05:51]CAPDU: 80 13 01 00 [17:05:51]Write to MH i2c: E2 08 00 18 40 80 13 01 00 00 00 00 00 D5 [17:05:51]Write i2c OK [17:05:51]MH_I2C_Read... [17:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:51]Read from MH i2c: E2 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 0E 00 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 0E 00 18 40 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 49 [17:05:51]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:05:51]wFMCommunicate OK [17:05:51]SAM_PROTO_GetShiftState done [17:05:51]FM_GetShiftState done [17:05:51]req_shift_opened done [17:05:51]requested_item shift.open_date is exist - process it [17:05:51]req_shift_open_date [17:05:51]req_shift_open_date done [17:05:51]produce_requested_data done [17:05:51]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95213,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:05:51]process_action_free print_text [17:05:51]json_value_free [17:05:51]json_value_free done [17:05:51]process_json_proto returns [17:05:51]Send response to host [17:05:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95213,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:05:51]free response buf [17:05:51]execute_script done [17:05:51]execute_script returns [17:05:51]free content buf [17:05:51]Sock 9.Close socket [17:05:51]Sock 9.Thread stoped [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:57]accept exits with 8 [17:10:57]New connection [17:10:57]New thread 3066813796 created [17:10:57]Thread 3066957156 joined [17:10:57]Waiting for new connection... [17:10:57] Sock 8.Parse request [17:10:57]Sock 8.Check first char [17:10:57]Sock 8.First char is OK [17:10:57]request: POST /json_proto HTTP/1.0 [17:10:57]Method: POST [17:10:57]URL: /json_proto [17:10:57]Method is POST - this is cgi request [17:10:57]url: /json_proto [17:10:57]query_string will be loaded in cgi processing [17:10:57]execute_cgi json_proto POST (null) [17:10:57]execute_cgi path=json_proto method=POST [17:10:57]POST find Content-Length [17:10:57]Host: 172.17.62.67:8080 [17:10:57]Content-Length: 682 [17:10:57]Content-Type: application/json [17:10:57] [17:10:57]POST finish read [17:10:57]Found Content-Length = 682 [17:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 39.750, "sum" : 2500.28, "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" ] } } [17:10:57]execute_script... [17:10: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)196187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 39.750, "sum" : 2500.28, "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" ] } } [17:10:57]POST & json_proto [17:10:57]process_json_proto [17:10:57]json parsed OK: [17:10:57]protocol is kg_v1.0 [17:10:57]action value=close_receipt [17:10:57]process_action close_receipt [17:10:57]cmd_close_receipt [17:10:57]MH_GetDate [17:10:57]Write to MH i2c: F0 00 00 19 40 48 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: F0 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: F0 05 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: F0 05 00 19 40 00 A7 8C F0 65 D5 [17:10:57]GetLastDocTimeStamp 1710263141 [17:10:57]current date 1710263463 [17:10:57]FM_GetShiftState [17:10:57]SAM_PROTO_GetShiftState [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 13 01 00 [17:10:57]Write to MH i2c: E2 08 00 1A 40 80 13 01 00 00 00 00 00 D7 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 0E 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 0E 00 1A 40 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 4B [17:10:57]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:10:57]wFMCommunicate OK [17:10:57]SAM_PROTO_GetShiftState done [17:10:57]FM_GetShiftState done [17:10:57]opened in 1710201976 [17:10:57]opened+sec_in_day 1710288376 [17:10:57]quantity*price = 250027 [17:10:57]sum+1 = 250029 [17:10:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 144 12.03.2024 17:11 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95214 ФПД: 120007964534192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T171103&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95214&fm=120007964534192&tin=02508201610067®Number=0000000000090555&sum=250000 [17:10:58]StoreToDocumentArchive [17:10:58]shift 327 fd 95214 [17:10:58]save to /storage/0327/doc_00095214 [17:10:58]save last doc name /storage/0327/doc_00095214 to /storage/kkm_last_doc_name [17:10:58]save OK [17:10:58]Clear old archive folders... [17:10:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:58]tlvbuf is 01AB21E0 [17:10:58]SAM_PROTO_ClearQueue [17:10:58]wFMCommunicate request_size=4 [17:10:58]MH_SAM_APDU [17:10:58]CAPDU: 80 09 00 00 [17:10:58]Write to MH i2c: E2 08 00 27 40 80 09 00 00 00 00 00 00 D9 [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:58]Read from MH i2c: E2 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 03 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 03 00 27 40 00 90 00 DB [17:10:58]RAPDU: 90 00 [17:10:58]wFMCommunicate OK [17:10:58]SAM_PROTO_ClearQueue done [17:10:58]KKMCreateOFDPacket [17:10:58]OFDProtocolAddRootSTLVToBuf [17:10:58]FM_MakeSignedData [17:10:58]FM_MakeSignedData [17:10:58]SAM_PROTO_SignData [17:10:58]wFMCommunicate request_size=4 [17:10:58]MH_SAM_APDU [17:10:58]CAPDU: 80 0D 01 02 [17:10:58]Write to MH i2c: E2 08 00 28 40 80 0D 01 02 00 00 00 00 E1 [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:58]Read from MH i2c: E2 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 03 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 03 00 28 40 00 90 00 DC [17:10:58]RAPDU: 90 00 [17:10:58]wFMCommunicate OK [17:10:58]wFMCommunicate request_size=255 [17:10:58]MH_SAM_APDU [17:10:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 9B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AC 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 B8 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 90 00 00 00 F4 03 04 00 A7 8C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EE 73 01 00 35 04 06 00 6D [17:10:58]Write to MH i2c: E2 02 01 29 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 9B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AC 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 B8 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 90 00 00 00 F4 03 04 00 A7 8C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EE 73 01 00 35 04 06 00 6D 00 00 B2 [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:58]Read from MH i2c: E2 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 03 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 03 00 29 40 00 90 00 DD [17:10:58]RAPDU: 90 00 [17:10:58]wFMCommunicate OK [17:10:58]wFMCommunicate request_size=10 [17:10:58]MH_SAM_APDU [17:10:58]CAPDU: 80 0D 02 02 05 25 88 18 A5 B0 [17:10:58]Write to MH i2c: E2 0D 00 2A 40 80 0D 02 02 05 00 25 88 18 A5 B0 00 00 08 [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:58]Read from MH i2c: E2 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 03 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 03 00 2A 40 00 90 00 DE [17:10:58]RAPDU: 90 00 [17:10:58]wFMCommunicate OK [17:10:58]wFMCommunicate request_size=4 [17:10:58]MH_SAM_APDU [17:10:58]CAPDU: 80 0D 03 02 [17:10:58]Write to MH i2c: E2 08 00 2B 40 80 0D 03 02 00 00 00 00 E6 [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:58]Read from MH i2c: E2 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 0B 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 0B 00 2B 40 00 61 77 25 FD 63 93 99 2A 90 00 9A [17:10:58]RAPDU: 61 77 25 FD 63 93 99 2A 90 00 [17:10:58]wFMCommunicate OK [17:10:58]SAM_PROTO_SignData done [17:10:58]FM_MakeSignedData done [17:10:58]CreateOFDProtocolMessage [17:10:58]wFMCommunicate request_size=4 [17:10:58]MH_SAM_APDU [17:10:58]CAPDU: 80 11 00 00 [17:10:58]Write to MH i2c: E2 08 00 2C 40 80 11 00 00 00 00 00 00 E6 [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:58]Read from MH i2c: E2 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 17 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 17 00 2C 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 36 [17:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:10:58]wFMCommunicate OK [17:10:58]CreateOFDProtocolMessage done [17:10:58]OFDSenderStorePacket 95214 [17:10:58]StoreOFDPacket docnum=95214 [17:10:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 58 A4 07 01 B8 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 9B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AC 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 B8 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 90 00 00 00 F4 03 04 00 A7 8C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EE 73 01 00 35 04 06 00 6D 25 88 18 A5 B0 61 77 25 FD 63 93 99 2A [17:10:58]CheckFolder [17:10:58]dirname=/storage/ofd_packets [17:10:58]CheckFolder done [17:10:58]ProducePacketName [17:10:58]name=ofd_packets/00095214 [17:10:58]NVStorageSaveData ofd_packets/00095214 [17:10:58]File name is /storage/ofd_packets/00095214 [17:10:58]Write 301 bytes [17:10:58]NVStorageSaveData done [17:10:58]OFDSenderStorePacket done [17:10:58]KKMCreateOFDPacket done [17:10:58]NVStorageSaveData kkm_last_timestamp [17:10:58]File name is /storage/kkm_last_timestamp [17:10:58]Write 4 bytes [17:10:58]NVStorageSaveData done [17:10:58]ExternCall_PrintAddStr [17:10:58]wPrintStart [17:10:58]Write to MH i2c: 01 00 00 2D 40 6D [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 2D 40 00 80 00 00 00 FF 0F 02 [17:10:58]RasterBufferAndPrint [17:10:58]line Счет N : (1)196187 [17:10:58]line ИНН: 02508201610067 [17:10:58]line Контрольно-Кассовый Чек [17:10:58]line ПРОДАЖА [17:10:58]line ТРК (МРК, ГНК) : 32 [17:10:58]line Товар: 2710124130 [17:10:58]line Аи-92-К-5 [17:10:58]line 39.750 * 62.90 [17:10:58]line = 2500.28 [17:10:58]line НДС 12% НСП 1% [17:10:58]line > о реализуемом товаре [17:10:58]line ОКРУГЛЕНИЕ: -0.28 [17:10:58]line ИТОГО: 2500.00 [17:10:58]line Внесено: 2500.00 [17:10:58]line СДАЧА: 0.00 [17:10:58]line НСП 1% : 22.13 [17:10:58]line НДС 12% : 265.52 [17:10:58]line Наличными: 2500.00 [17:10:58]line Безнал.: 0.00 [17:10:58]line Место: АЗС № 6 "Партнер Нефть" [17:10:58]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:10:58]line СНО: Общий режим [17:10:58]line Чек 144 12.03.2024 17:11 [17:10:58]line Смена: 327 ФФД: 1.0 [17:10:58]line ЗНМ: 0300000009 [17:10:58]line РНМ: 0000000000090555 [17:10:58]line Версия ККМ: 001 [17:10:58]line ФМ: 0000000000874811 [17:10:58]line ФД: 95214 [17:10:58]line ФПД: 120007964534192 [17:10:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T171103&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95214&fm=120007964534192&tin=02508201610067®Number=0000000000090555&sum=250000 [17:10:59]OFD Sender: Processing packet 95214 [packets to send 30, broken 29] [17:10:59]ProducePacketName [17:10:59]name=ofd_packets/00095214 [17:10:59]OFD Sender: To server: pG, [17:10:59]CommunicateWithHost lk.salyk.kg:30040 [17:10:59]ConnectInit lk.salyk.kg [17:10:59]written 0, free lines is 4095 [17:10:59]Connected sock=10 [17:10:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 58 A4 07 01 B8 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 9B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AC 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 B8 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 90 00 00 00 F4 03 04 00 A7 8C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EE 73 01 00 35 04 06 00 6D 25 88 18 A5 B0 61 77 25 FD 63 93 99 2A [17:10:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 DE A5 47 00 BB 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EE 73 01 00 F4 03 04 00 FC 37 F0 65 B6 04 01 00 00 4E 0E E7 C3 4E 21 1A A6 [17:10:59]CommunicateWithHost err = 0 [17:10:59]CheckOFDResponse [17:10:59]1017 (14) - 77093643461234 [17:10:59]1041 (16) - 0000000000874811 [17:10:59]1040 (4) - 95214 [17:10:59]1012 (4) - 12.03.2024 11:09 [17:10:59]1206 (1) - 0 [17:10:59]OFD Sender: Remove packet 95214 [17:10:59]ProducePacketName [17:10:59]name=ofd_packets/00095214 [17:10:59]NVStorageDeleteData [17:10:59]Write to MH i2c: 01 00 00 58 40 98 [17:10:59]Write i2c OK [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: 01 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: 01 07 00 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: 01 07 00 58 40 00 80 00 00 00 51 0D 7D [17:10:59]RasterBufferAndPrint [17:10:59]line [17:10:59]line [17:10:59]line [17:10:59]line [17:10:59]line [17:10:59]written 0, free lines is 3415 [17:10:59]process_action close_receipt done [17:10:59]requested_data is exist [17:10:59]produce_requested_data [17:10:59]requested_item fm.sn is exist - process it [17:10:59]wFMCommunicate request_size=4 [17:10:59]MH_SAM_APDU [17:10:59]CAPDU: 80 11 00 00 [17:10:59]Write to MH i2c: E2 08 00 5F 40 80 11 00 00 00 00 00 00 19 [17:10:59]Write i2c OK [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 [17:10:59]MH_I2C_Read... [17:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:59]Read from MH i2c: E2 17 00 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 17 00 5F 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 69 [17:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:10:59]wFMCommunicate OK [17:10:59]requested_item fd.num is exist - process it [17:10:59]SAM_PROTO_GetFieldsCounters [17:10:59]wFMCommunicate request_size=4 [17:10:59]MH_SAM_APDU [17:10:59]CAPDU: 80 13 00 00 [17:10:59]Write to MH i2c: E2 08 00 60 40 80 13 00 00 00 00 00 00 1C [17:10:59]Write i2c OK [17:10:59]MH_I2C_Read... [17:10:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:59]Read from MH i2c: E2 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 62 00 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 62 00 60 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EE 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [17:10:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EE 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:59]wFMCommunicate OK [17:10:59]SAM_PROTO_GetFieldsCounters done [17:10:59]requested_item shift.num is exist - process it [17:10:59]requested_item shift.opened is exist - process it [17:10:59]req_shift_opened [17:10:59]FM_GetShiftState [17:10:59]SAM_PROTO_GetShiftState [17:10:59]wFMCommunicate request_size=4 [17:10:59]MH_SAM_APDU [17:10:59]CAPDU: 80 13 01 00 [17:10:59]Write to MH i2c: E2 08 00 61 40 80 13 01 00 00 00 00 00 1E [17:10:59]Write i2c OK [17:10:59]MH_I2C_Read... [17:10:59]OFD Sender: No OFD packet to send [17:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:59]Read from MH i2c: E2 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 0E 00 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 0E 00 61 40 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 92 [17:10:59]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:10:59]wFMCommunicate OK [17:10:59]SAM_PROTO_GetShiftState done [17:10:59]FM_GetShiftState done [17:10:59]req_shift_opened done [17:10:59]requested_item shift.open_date is exist - process it [17:10:59]req_shift_open_date [17:10:59]req_shift_open_date done [17:10:59]produce_requested_data done [17:10:59]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95214,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:10:59]process_action_free close_receipt [17:10:59]json_value_free [17:10:59]json_value_free done [17:10:59]process_json_proto returns [17:10:59]Send response to host [17:10:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95214,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:10:59]free response buf [17:10:59]execute_script done [17:10:59]execute_script returns [17:10:59]free content buf [17:10:59]Sock 8.Close socket [17:10:59]Sock 8.Thread stoped [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12: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:27]accept exits with 9 [17:13:27]New connection [17:13:27]New thread 3066957156 created [17:13:27]Thread 3066813796 joined [17:13:27]Waiting for new connection... [17:13:27] Sock 9.Parse request [17:13:27]Sock 9.Check first char [17:13:27]Sock 9.First char is OK [17:13:27]request: POST /json_proto HTTP/1.0 [17:13:27]Method: POST [17:13:27]URL: /json_proto [17:13:27]Method is POST - this is cgi request [17:13:27]url: /json_proto [17:13:27]query_string will be loaded in cgi processing [17:13:27]execute_cgi json_proto POST (null) [17:13:27]execute_cgi path=json_proto method=POST [17:13:27]POST find Content-Length [17:13:27]Host: 172.17.62.67:8080 [17:13:27]Content-Length: 738 [17:13:27]Content-Type: application/json [17:13:27] [17:13:27]POST finish read [17:13:27]Found Content-Length = 738 [17:13:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95214, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 39.750, "sum" : 2500.28, "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" ] } } [17:13:27]execute_script... [17:13:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95214, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 39.750, "sum" : 2500.28, "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" ] } } [17:13:27]POST & json_proto [17:13:27]process_json_proto [17:13:27]json parsed OK: [17:13:27]protocol is kg_v1.0 [17:13:27]action value=close_receipt [17:13:27]process_action close_receipt [17:13:27]cmd_close_receipt [17:13:27]MH_GetDate [17:13:27]Write to MH i2c: F0 00 00 62 40 91 [17:13:27]Write i2c OK [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: F0 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: F0 05 00 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: F0 05 00 62 40 00 3D 8D F0 65 B5 [17:13:27]GetLastDocTimeStamp 1710263463 [17:13:27]current date 1710263613 [17:13:27]FM_GetShiftState [17:13:27]SAM_PROTO_GetShiftState [17:13:27]wFMCommunicate request_size=4 [17:13:27]MH_SAM_APDU [17:13:27]CAPDU: 80 13 01 00 [17:13:27]Write to MH i2c: E2 08 00 63 40 80 13 01 00 00 00 00 00 20 [17:13:27]Write i2c OK [17:13:27]MH_I2C_Read... [17:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:27]Read from MH i2c: E2 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: E2 0E 00 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: E2 0E 00 63 40 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 94 [17:13:27]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:13:27]wFMCommunicate OK [17:13:27]SAM_PROTO_GetShiftState done [17:13:27]FM_GetShiftState done [17:13:27]opened in 1710201976 [17:13:27]opened+sec_in_day 1710288376 [17:13:27]quantity*price = 250027 [17:13:27]sum+1 = 250029 [17:13:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 2500.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 145 12.03.2024 17:13 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95214 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95215 ФПД: 165982139446155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T171333&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95215&fm=165982139446155&tin=02508201610067®Number=0000000000090555&sum=250000 [17:13:28]StoreToDocumentArchive [17:13:28]shift 327 fd 95215 [17:13:28]save to /storage/0327/doc_00095215 [17:13:28]save last doc name /storage/0327/doc_00095215 to /storage/kkm_last_doc_name [17:13:28]save OK [17:13:28]Clear old archive folders... [17:13:28]ProcessDocumentItem done err = 0, tmpTLVsize=279 [17:13:28]tlvbuf is 01A8D760 [17:13:28]SAM_PROTO_ClearQueue [17:13:28]wFMCommunicate request_size=4 [17:13:28]MH_SAM_APDU [17:13:28]CAPDU: 80 09 00 00 [17:13:28]Write to MH i2c: E2 08 00 72 40 80 09 00 00 00 00 00 00 24 [17:13:28]Write i2c OK [17:13:28]MH_I2C_Read... [17:13:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:28]Read from MH i2c: E2 [17:13:28]MH_I2C_Read... [17:13:28]Read from MH i2c: E2 03 00 [17:13:28]MH_I2C_Read... [17:13:28]Read from MH i2c: E2 03 00 72 40 00 90 00 26 [17:13:28]RAPDU: 90 00 [17:13:28]wFMCommunicate OK [17:13:28]SAM_PROTO_ClearQueue done [17:13:28]KKMCreateOFDPacket [17:13:28]OFDProtocolAddRootSTLVToBuf [17:13:28]FM_MakeSignedData [17:13:28]FM_MakeSignedData [17:13:28]SAM_PROTO_SignData [17:13:28]wFMCommunicate request_size=4 [17:13:28]MH_SAM_APDU [17:13:28]CAPDU: 80 0D 01 02 [17:13:28]Write to MH i2c: E2 08 00 73 40 80 0D 01 02 00 00 00 00 2C [17:13:28]Write i2c OK [17:13:28]MH_I2C_Read... [17:13:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:28]Read from MH i2c: E2 [17:13:28]MH_I2C_Read... [17:13:28]Read from MH i2c: E2 03 00 [17:13:28]MH_I2C_Read... [17:13:28]Read from MH i2c: E2 03 00 73 40 00 90 00 27 [17:13:28]RAPDU: 90 00 [17:13:28]wFMCommunicate OK [17:13:28]wFMCommunicate request_size=255 [17:13:28]MH_SAM_APDU [17:13:28]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 9B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AC 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 B8 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 91 00 00 00 F4 03 04 00 3D 8D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 EE 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 [17:13:28]Write to MH i2c: E2 02 01 74 40 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 9B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AC 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 B8 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 91 00 00 00 F4 03 04 00 3D 8D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 EE 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 00 00 8A [17:13:28]Write i2c OK [17:13:28]MH_I2C_Read... [17:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:28]Read from MH i2c: E2 [17:13:28]MH_I2C_Read... [17:13:28]Read from MH i2c: E2 03 00 [17:13:28]MH_I2C_Read... [17:13:28]Read from MH i2c: E2 03 00 74 40 00 90 00 28 [17:13:28]RAPDU: 90 00 [17:13:28]wFMCommunicate OK [17:13:28]wFMCommunicate request_size=38 [17:13:28]MH_SAM_APDU [17:13:28]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EF 73 01 00 35 04 06 00 96 F5 BA 75 F3 8B [17:13:28]Write to MH i2c: E2 29 00 75 40 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EF 73 01 00 35 04 06 00 96 F5 BA 75 F3 8B 00 00 50 [17:13:28]Write i2c OK [17:13:28]MH_I2C_Read... [17:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:28]Read from MH i2c: E2 [17:13:28]MH_I2C_Read... [17:13:28]Read from MH i2c: E2 03 00 [17:13:28]MH_I2C_Read... [17:13:28]Read from MH i2c: E2 03 00 75 40 00 90 00 29 [17:13:28]RAPDU: 90 00 [17:13:28]wFMCommunicate OK [17:13:28]wFMCommunicate request_size=4 [17:13:28]MH_SAM_APDU [17:13:28]CAPDU: 80 0D 03 02 [17:13:28]Write to MH i2c: E2 08 00 76 40 80 0D 03 02 00 00 00 00 31 [17:13:28]Write i2c OK [17:13:28]MH_I2C_Read... [17:13:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:29]Read from MH i2c: E2 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: E2 0B 00 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: E2 0B 00 76 40 00 39 28 DA DB 1D FF 83 A8 90 00 8F [17:13:29]RAPDU: 39 28 DA DB 1D FF 83 A8 90 00 [17:13:29]wFMCommunicate OK [17:13:29]SAM_PROTO_SignData done [17:13:29]FM_MakeSignedData done [17:13:29]CreateOFDProtocolMessage [17:13:29]wFMCommunicate request_size=4 [17:13:29]MH_SAM_APDU [17:13:29]CAPDU: 80 11 00 00 [17:13:29]Write to MH i2c: E2 08 00 77 40 80 11 00 00 00 00 00 00 31 [17:13:29]Write i2c OK [17:13:29]MH_I2C_Read... [17:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:29]Read from MH i2c: E2 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: E2 17 00 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: E2 17 00 77 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 81 [17:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:13:29]wFMCommunicate OK [17:13:29]CreateOFDProtocolMessage done [17:13:29]OFDSenderStorePacket 95215 [17:13:29]StoreOFDPacket docnum=95215 [17:13:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 59 CC 23 01 1F D8 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 9B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AC 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 B8 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 91 00 00 00 F4 03 04 00 3D 8D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 EE 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EF 73 01 00 35 04 06 00 96 F5 BA 75 F3 8B 39 28 DA DB 1D FF 83 A8 [17:13:29]CheckFolder [17:13:29]dirname=/storage/ofd_packets [17:13:29]CheckFolder done [17:13:29]ProducePacketName [17:13:29]name=ofd_packets/00095215 [17:13:29]NVStorageSaveData ofd_packets/00095215 [17:13:29]File name is /storage/ofd_packets/00095215 [17:13:29]Write 329 bytes [17:13:29]NVStorageSaveData done [17:13:29]OFDSenderStorePacket done [17:13:29]KKMCreateOFDPacket done [17:13:29]NVStorageSaveData kkm_last_timestamp [17:13:29]File name is /storage/kkm_last_timestamp [17:13:29]OFD Sender: Processing packet 95215 [packets to send 30, broken 29] [17:13:29]ProducePacketName [17:13:29]name=ofd_packets/00095215 [17:13:29]OFD Sender: To server: pG, [17:13:29]CommunicateWithHost lk.salyk.kg:30040 [17:13:29]ConnectInit lk.salyk.kg [17:13:29]Write 4 bytes [17:13:29]NVStorageSaveData done [17:13:29]ExternCall_PrintAddStr [17:13:29]wPrintStart [17:13:29]Write to MH i2c: 01 00 00 78 40 B8 [17:13:29]Write i2c OK [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: 01 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: 01 07 00 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: 01 07 00 78 40 00 80 00 00 00 FF 0F 4D [17:13:29]RasterBufferAndPrint [17:13:29]line Счет N : (1)196187 [17:13:29]line ИНН: 02508201610067 [17:13:29]line Контрольно-Кассовый Чек [17:13:29]line ВОЗВРАТ ПРОДАЖИ [17:13:29]line ТРК (МРК, ГНК) : 32 [17:13:29]line Товар: 2710124130 [17:13:29]line Аи-92-К-5 [17:13:29]line 39.750 * 62.90 [17:13:29]line = 2500.28 [17:13:29]line НДС 12% НСП 1% [17:13:29]line > о реализуемом товаре [17:13:29]line ОКРУГЛЕНИЕ: -0.28 [17:13:29]line ИТОГО: 2500.00 [17:13:29]line НСП 1% : 22.13 [17:13:29]line НДС 12% : 265.52 [17:13:29]line Наличными: 2500.00 [17:13:29]line Безнал.: 0.00 [17:13:29]line Место: АЗС № 6 "Партнер Нефть" [17:13:29]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:13:29]line СНО: Общий режим [17:13:29]line Чек 145 12.03.2024 17:13 [17:13:29]line Смена: 327 ФФД: 1.0 [17:13:29]line ЗНМ: 0300000009 [17:13:29]line РНМ: 0000000000090555 [17:13:29]line Версия ККМ: 001 [17:13:29]line ФД осн.: 95214 [17:13:29]line ФМ осн.: 0000000000874811 [17:13:29]line ФМ: 0000000000874811 [17:13:29]line ФД: 95215 [17:13:29]line ФПД: 165982139446155 [17:13:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T171333&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95215&fm=165982139446155&tin=02508201610067®Number=0000000000090555&sum=250000 [17:13:29]Connected sock=11 [17:13:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 59 CC 23 01 1F D8 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 9B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AC 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 B8 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 91 00 00 00 F4 03 04 00 3D 8D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 EE 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EF 73 01 00 35 04 06 00 96 F5 BA 75 F3 8B 39 28 DA DB 1D FF 83 A8 [17:13:29]written 0, free lines is 4095 [17:13:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F5 84 47 00 F5 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EF 73 01 00 F4 03 04 00 93 38 F0 65 B6 04 01 00 00 8D 3C E5 00 50 71 21 4C [17:13:29]CommunicateWithHost err = 0 [17:13:29]CheckOFDResponse [17:13:29]1017 (14) - 77093643461234 [17:13:29]1041 (16) - 0000000000874811 [17:13:29]1040 (4) - 95215 [17:13:29]1012 (4) - 12.03.2024 11:12 [17:13:29]1206 (1) - 0 [17:13:29]OFD Sender: Remove packet 95215 [17:13:29]ProducePacketName [17:13:29]name=ofd_packets/00095215 [17:13:29]NVStorageDeleteData [17:13:29]Write to MH i2c: 01 00 00 A3 40 E3 [17:13:29]Write i2c OK [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: 01 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: 01 07 00 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: 01 07 00 A3 40 00 80 00 00 00 66 0D DD [17:13:29]RasterBufferAndPrint [17:13:29]line [17:13:29]line [17:13:29]line [17:13:29]line [17:13:29]line [17:13:29]written 0, free lines is 3434 [17:13:29]process_action close_receipt done [17:13:29]requested_data is exist [17:13:29]produce_requested_data [17:13:29]requested_item fm.sn is exist - process it [17:13:29]wFMCommunicate request_size=4 [17:13:29]MH_SAM_APDU [17:13:29]CAPDU: 80 11 00 00 [17:13:29]Write to MH i2c: E2 08 00 AA 40 80 11 00 00 00 00 00 00 64 [17:13:29]Write i2c OK [17:13:29]MH_I2C_Read... [17:13:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:30]Read from MH i2c: E2 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 17 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 17 00 AA 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B4 [17:13:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:13:30]wFMCommunicate OK [17:13:30]requested_item fd.num is exist - process it [17:13:30]SAM_PROTO_GetFieldsCounters [17:13:30]wFMCommunicate request_size=4 [17:13:30]MH_SAM_APDU [17:13:30]CAPDU: 80 13 00 00 [17:13:30]Write to MH i2c: E2 08 00 AB 40 80 13 00 00 00 00 00 00 67 [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:30]OFD Sender: No OFD packet to send [17:13:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:30]Read from MH i2c: E2 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 62 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 62 00 AB 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EF 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [17:13:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EF 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:30]wFMCommunicate OK [17:13:30]SAM_PROTO_GetFieldsCounters done [17:13:30]requested_item shift.num is exist - process it [17:13:30]requested_item shift.opened is exist - process it [17:13:30]req_shift_opened [17:13:30]FM_GetShiftState [17:13:30]SAM_PROTO_GetShiftState [17:13:30]wFMCommunicate request_size=4 [17:13:30]MH_SAM_APDU [17:13:30]CAPDU: 80 13 01 00 [17:13:30]Write to MH i2c: E2 08 00 AC 40 80 13 01 00 00 00 00 00 69 [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:30]Read from MH i2c: E2 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 0E 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 0E 00 AC 40 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 DD [17:13:30]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:13:30]wFMCommunicate OK [17:13:30]SAM_PROTO_GetShiftState done [17:13:30]FM_GetShiftState done [17:13:30]req_shift_opened done [17:13:30]requested_item shift.open_date is exist - process it [17:13:30]req_shift_open_date [17:13:30]req_shift_open_date done [17:13:30]produce_requested_data done [17:13:30]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95215,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:13:30]process_action_free close_receipt [17:13:30]json_value_free [17:13:30]json_value_free done [17:13:30]process_json_proto returns [17:13:30]Send response to host [17:13:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95215,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:13:30]free response buf [17:13:30]execute_script done [17:13:30]execute_script returns [17:13:30]free content buf [17:13:30]Sock 9.Close socket [17:13:30]Sock 9.Thread stoped [17:13:30]accept exits with 8 [17:13:30]New connection [17:13:30]New thread 3066813796 created [17:13:30]Thread 3066957156 joined [17:13:30]Waiting for new connection... [17:13:30] Sock 8.Parse request [17:13:30]Sock 8.Check first char [17:13:30]Sock 8.First char is OK [17:13:30]request: POST /json_proto HTTP/1.0 [17:13:30]Method: POST [17:13:30]URL: /json_proto [17:13:30]Method is POST - this is cgi request [17:13:30]url: /json_proto [17:13:30]query_string will be loaded in cgi processing [17:13:30]execute_cgi json_proto POST (null) [17:13:30]execute_cgi path=json_proto method=POST [17:13:30]POST find Content-Length [17:13:30]Host: 172.17.62.67:8080 [17:13:30]Content-Length: 682 [17:13:30]Content-Type: application/json [17:13:30] [17:13:30]POST finish read [17:13:30]Found Content-Length = 682 [17:13:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 29.680, "sum" : 1866.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 1866.00, "payments": [ { "type": 0, "sum" : 1866.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:30]execute_script... [17:13: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)196187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 29.680, "sum" : 1866.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 1866.00, "payments": [ { "type": 0, "sum" : 1866.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:30]POST & json_proto [17:13:30]process_json_proto [17:13:30]json parsed OK: [17:13:30]protocol is kg_v1.0 [17:13:30]action value=close_receipt [17:13:30]process_action close_receipt [17:13:30]cmd_close_receipt [17:13:30]MH_GetDate [17:13:30]Write to MH i2c: F0 00 00 AD 40 DC [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: F0 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: F0 05 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: F0 05 00 AD 40 00 40 8D F0 65 03 [17:13:30]GetLastDocTimeStamp 1710263613 [17:13:30]current date 1710263616 [17:13:30]FM_GetShiftState [17:13:30]SAM_PROTO_GetShiftState [17:13:30]wFMCommunicate request_size=4 [17:13:30]MH_SAM_APDU [17:13:30]CAPDU: 80 13 01 00 [17:13:30]Write to MH i2c: E2 08 00 AE 40 80 13 01 00 00 00 00 00 6B [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:30]Read from MH i2c: E2 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 0E 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 0E 00 AE 40 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 DF [17:13:30]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:13:30]wFMCommunicate OK [17:13:30]SAM_PROTO_GetShiftState done [17:13:30]FM_GetShiftState done [17:13:30]opened in 1710201976 [17:13:30]opened+sec_in_day 1710288376 [17:13:30]quantity*price = 186687 [17:13:30]sum+1 = 186688 [17:13:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 1866.00 Внесено: 2500.00 СДАЧА: 634.00 НСП 1% : 16.52 НДС 12% : 198.25 Наличными: 1866.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 146 12.03.2024 17:13 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95216 ФПД: 144510734098597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T171336&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95216&fm=144510734098597&tin=02508201610067®Number=0000000000090555&sum=186600 [17:13:31]StoreToDocumentArchive [17:13:31]shift 327 fd 95216 [17:13:31]save to /storage/0327/doc_00095216 [17:13:31]save last doc name /storage/0327/doc_00095216 to /storage/kkm_last_doc_name [17:13:31]save OK [17:13:31]Clear old archive folders... [17:13:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:31]tlvbuf is 01A2EAE0 [17:13:31]SAM_PROTO_ClearQueue [17:13:31]wFMCommunicate request_size=4 [17:13:31]MH_SAM_APDU [17:13:31]CAPDU: 80 09 00 00 [17:13:31]Write to MH i2c: E2 08 00 BB 40 80 09 00 00 00 00 00 00 6D [17:13:31]Write i2c OK [17:13:31]MH_I2C_Read... [17:13:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:31]Read from MH i2c: E2 [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: E2 03 00 [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: E2 03 00 BB 40 00 90 00 6F [17:13:31]RAPDU: 90 00 [17:13:31]wFMCommunicate OK [17:13:31]SAM_PROTO_ClearQueue done [17:13:31]KKMCreateOFDPacket [17:13:31]OFDProtocolAddRootSTLVToBuf [17:13:31]FM_MakeSignedData [17:13:31]FM_MakeSignedData [17:13:31]SAM_PROTO_SignData [17:13:31]wFMCommunicate request_size=4 [17:13:31]MH_SAM_APDU [17:13:31]CAPDU: 80 0D 01 02 [17:13:31]Write to MH i2c: E2 08 00 BC 40 80 0D 01 02 00 00 00 00 75 [17:13:31]Write i2c OK [17:13:31]MH_I2C_Read... [17:13:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:32]Read from MH i2c: E2 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 03 00 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 03 00 BC 40 00 90 00 70 [17:13:32]RAPDU: 90 00 [17:13:32]wFMCommunicate OK [17:13:32]wFMCommunicate request_size=255 [17:13:32]MH_SAM_APDU [17:13:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 3F D9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 D8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 4D 00 00 00 00 07 04 06 00 E8 D8 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 40 8D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F0 73 01 00 35 04 06 00 83 [17:13:32]Write to MH i2c: E2 02 01 BD 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 3F D9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 D8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 4D 00 00 00 00 07 04 06 00 E8 D8 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 40 8D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F0 73 01 00 35 04 06 00 83 00 00 41 [17:13:32]Write i2c OK [17:13:32]MH_I2C_Read... [17:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:32]Read from MH i2c: E2 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 03 00 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 03 00 BD 40 00 90 00 71 [17:13:32]RAPDU: 90 00 [17:13:32]wFMCommunicate OK [17:13:32]wFMCommunicate request_size=10 [17:13:32]MH_SAM_APDU [17:13:32]CAPDU: 80 0D 02 02 05 6E 86 F8 E0 A5 [17:13:32]Write to MH i2c: E2 0D 00 BE 40 80 0D 02 02 05 00 6E 86 F8 E0 A5 00 00 F3 [17:13:32]Write i2c OK [17:13:32]MH_I2C_Read... [17:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:32]Read from MH i2c: E2 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 03 00 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 03 00 BE 40 00 90 00 72 [17:13:32]RAPDU: 90 00 [17:13:32]wFMCommunicate OK [17:13:32]wFMCommunicate request_size=4 [17:13:32]MH_SAM_APDU [17:13:32]CAPDU: 80 0D 03 02 [17:13:32]Write to MH i2c: E2 08 00 BF 40 80 0D 03 02 00 00 00 00 7A [17:13:32]Write i2c OK [17:13:32]MH_I2C_Read... [17:13:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:32]Read from MH i2c: E2 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 0B 00 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 0B 00 BF 40 00 A2 B5 E5 99 F7 9D 90 93 90 00 07 [17:13:32]RAPDU: A2 B5 E5 99 F7 9D 90 93 90 00 [17:13:32]wFMCommunicate OK [17:13:32]SAM_PROTO_SignData done [17:13:32]FM_MakeSignedData done [17:13:32]CreateOFDProtocolMessage [17:13:32]wFMCommunicate request_size=4 [17:13:32]MH_SAM_APDU [17:13:32]CAPDU: 80 11 00 00 [17:13:32]Write to MH i2c: E2 08 00 C0 40 80 11 00 00 00 00 00 00 7A [17:13:32]Write i2c OK [17:13:32]MH_I2C_Read... [17:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:32]Read from MH i2c: E2 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 17 00 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 17 00 C0 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CA [17:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:13:32]wFMCommunicate OK [17:13:32]CreateOFDProtocolMessage done [17:13:32]OFDSenderStorePacket 95216 [17:13:32]StoreOFDPacket docnum=95216 [17:13:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F9 4B 07 01 AD 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 3F D9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 D8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 4D 00 00 00 00 07 04 06 00 E8 D8 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 40 8D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F0 73 01 00 35 04 06 00 83 6E 86 F8 E0 A5 A2 B5 E5 99 F7 9D 90 93 [17:13:32]CheckFolder [17:13:32]dirname=/storage/ofd_packets [17:13:32]CheckFolder done [17:13:32]ProducePacketName [17:13:32]name=ofd_packets/00095216 [17:13:32]NVStorageSaveData ofd_packets/00095216 [17:13:32]File name is /storage/ofd_packets/00095216 [17:13:32]Write 301 bytes [17:13:32]NVStorageSaveData done [17:13:32]OFDSenderStorePacket done [17:13:32]KKMCreateOFDPacket done [17:13:32]NVStorageSaveData kkm_last_timestamp [17:13:32]File name is /storage/kkm_last_timestamp [17:13:32]Write 4 bytes [17:13:32]NVStorageSaveData done [17:13:32]ExternCall_PrintAddStr [17:13:32]wPrintStart [17:13:32]Write to MH i2c: 01 00 00 C1 40 01 [17:13:32]Write i2c OK [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: 01 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: 01 07 00 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: 01 07 00 C1 40 00 80 00 00 00 FF 0F 96 [17:13:32]RasterBufferAndPrint [17:13:32]line Счет N : (1)196187 [17:13:32]line ИНН: 02508201610067 [17:13:32]line Контрольно-Кассовый Чек [17:13:32]line ПРОДАЖА [17:13:32]line ТРК (МРК, ГНК) : 32 [17:13:32]line Товар: 2710124130 [17:13:32]line Аи-92-К-5 [17:13:32]line 29.680 * 62.90 [17:13:32]line = 1866.87 [17:13:32]line НДС 12% НСП 1% [17:13:32]line > о реализуемом товаре [17:13:32]line ОКРУГЛЕНИЕ: -0.87 [17:13:32]line ИТОГО: 1866.00 [17:13:32]line Внесено: 2500.00 [17:13:32]line СДАЧА: 634.00 [17:13:32]line НСП 1% : 16.52 [17:13:32]line НДС 12% : 198.25 [17:13:32]line Наличными: 1866.00 [17:13:32]line Безнал.: 0.00 [17:13:32]line Место: АЗС № 6 "Партнер Нефть" [17:13:32]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:13:32]line СНО: Общий режим [17:13:32]line Чек 146 12.03.2024 17:13 [17:13:32]line Смена: 327 ФФД: 1.0 [17:13:32]line ЗНМ: 0300000009 [17:13:32]line РНМ: 0000000000090555 [17:13:32]line Версия ККМ: 001 [17:13:32]line ФМ: 0000000000874811 [17:13:32]line ФД: 95216 [17:13:33]line ФПД: 144510734098597 [17:13:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T171336&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95216&fm=144510734098597&tin=02508201610067®Number=0000000000090555&sum=186600 [17:13:33]OFD Sender: Processing packet 95216 [packets to send 30, broken 29] [17:13:33]ProducePacketName [17:13:33]name=ofd_packets/00095216 [17:13:33]OFD Sender: To server: pG, [17:13:33]CommunicateWithHost lk.salyk.kg:30040 [17:13:33]ConnectInit lk.salyk.kg [17:13:33]written 0, free lines is 4095 [17:13:33]Connected sock=10 [17:13:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F9 4B 07 01 AD 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 3F D9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 D8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 4D 00 00 00 00 07 04 06 00 E8 D8 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 40 8D F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F0 73 01 00 35 04 06 00 83 6E 86 F8 E0 A5 A2 B5 E5 99 F7 9D 90 93 [17:13:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 01 6B 47 00 48 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F0 73 01 00 F4 03 04 00 96 38 F0 65 B6 04 01 00 00 C2 57 C8 CD B3 2B FC 7F [17:13:33]CommunicateWithHost err = 0 [17:13:33]CheckOFDResponse [17:13:33]1017 (14) - 77093643461234 [17:13:33]1041 (16) - 0000000000874811 [17:13:33]1040 (4) - 95216 [17:13:33]1012 (4) - 12.03.2024 11:12 [17:13:33]1206 (1) - 0 [17:13:33]OFD Sender: Remove packet 95216 [17:13:33]ProducePacketName [17:13:33]name=ofd_packets/00095216 [17:13:33]NVStorageDeleteData [17:13:33]Write to MH i2c: 01 00 00 EC 40 2C [17:13:33]Write i2c OK [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: 01 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: 01 07 00 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: 01 07 00 EC 40 00 80 00 00 00 66 0D 26 [17:13:33]RasterBufferAndPrint [17:13:33]line [17:13:33]line [17:13:33]line [17:13:33]line [17:13:33]line [17:13:33]written 0, free lines is 3446 [17:13:33]process_action close_receipt done [17:13:33]requested_data is exist [17:13:33]produce_requested_data [17:13:33]requested_item fm.sn is exist - process it [17:13:33]wFMCommunicate request_size=4 [17:13:33]MH_SAM_APDU [17:13:33]CAPDU: 80 11 00 00 [17:13:33]Write to MH i2c: E2 08 00 F3 40 80 11 00 00 00 00 00 00 AD [17:13:33]Write i2c OK [17:13:33]MH_I2C_Read... [17:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:33]Read from MH i2c: E2 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: E2 17 00 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: E2 17 00 F3 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FD [17:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:13:33]wFMCommunicate OK [17:13:33]requested_item fd.num is exist - process it [17:13:33]SAM_PROTO_GetFieldsCounters [17:13:33]wFMCommunicate request_size=4 [17:13:33]MH_SAM_APDU [17:13:33]CAPDU: 80 13 00 00 [17:13:33]Write to MH i2c: E2 08 00 F4 40 80 13 00 00 00 00 00 00 B0 [17:13:33]Write i2c OK [17:13:33]MH_I2C_Read... [17:13:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:33]Read from MH i2c: E2 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: E2 62 00 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: E2 62 00 F4 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F0 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [17:13:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F0 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:33]wFMCommunicate OK [17:13:33]SAM_PROTO_GetFieldsCounters done [17:13:33]requested_item shift.num is exist - process it [17:13:33]requested_item shift.opened is exist - process it [17:13:33]req_shift_opened [17:13:33]FM_GetShiftState [17:13:33]SAM_PROTO_GetShiftState [17:13:33]wFMCommunicate request_size=4 [17:13:33]MH_SAM_APDU [17:13:33]CAPDU: 80 13 01 00 [17:13:33]Write to MH i2c: E2 08 00 F5 40 80 13 01 00 00 00 00 00 B2 [17:13:33]Write i2c OK [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:33]E2 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: E2 0E 00 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: E2 0E 00 F5 40 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 26 [17:13:33]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:13:33]wFMCommunicate OK [17:13:33]SAM_PROTO_GetShiftState done [17:13:33]FM_GetShiftState done [17:13:33]req_shift_opened done [17:13:33]requested_item shift.open_date is exist - process it [17:13:33]req_shift_open_date [17:13:33]req_shift_open_date done [17:13:33]produce_requested_data done [17:13:33]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95216,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:13:33]process_action_free close_receipt [17:13:33]json_value_free [17:13:33]json_value_free done [17:13:33]process_json_proto returns [17:13:33]Send response to host [17:13:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95216,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:13:33]free response buf [17:13:33]execute_script done [17:13:33]execute_script returns [17:13:33]free content buf [17:13:33]Sock 8.Close socket [17:13:33]Sock 8.Thread stoped [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:49]OFD Sender: No OFD packet to send [17:13:54]OFD Sender: No OFD packet to send [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:09]OFD Sender: No OFD packet to send [17:14:14]OFD Sender: No OFD packet to send [17:14:19]OFD Sender: No OFD packet to send [17:14:24]OFD Sender: No OFD packet to send [17:14:29]OFD Sender: No OFD packet to send [17:14:34]OFD Sender: No OFD packet to send [17:14:39]OFD Sender: No OFD packet to send [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:04]OFD Sender: No OFD packet to send [17:17:08]accept exits with 9 [17:17:08]New connection [17:17:08]New thread 3066957156 created [17:17:08]Thread 3066813796 joined [17:17:08]Waiting for new connection... [17:17:08] Sock 9.Parse request [17:17:08]Sock 9.Check first char [17:17:08]Sock 9.First char is OK [17:17:08]request: POST /json_proto HTTP/1.0 [17:17:08]Method: POST [17:17:08]URL: /json_proto [17:17:08]Method is POST - this is cgi request [17:17:08]url: /json_proto [17:17:08]query_string will be loaded in cgi processing [17:17:08]execute_cgi json_proto POST (null) [17:17:08]execute_cgi path=json_proto method=POST [17:17:08]POST find Content-Length [17:17:08]Host: 172.17.62.67:8080 [17:17:08]Content-Length: 812 [17:17:08]Content-Type: application/json [17:17:08] [17:17:08]POST finish read [17:17:08]Found Content-Length = 812 [17:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 50.000, "sum" : 3195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3195.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:08]execute_script... [17: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)196188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 50.000, "sum" : 3195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3195.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:08]POST & json_proto [17:17:08]process_json_proto [17:17:08]json parsed OK: [17:17:08]protocol is kg_v1.0 [17:17:08]action value=close_receipt [17:17:08]process_action close_receipt [17:17:08]cmd_close_receipt [17:17:08]MH_GetDate [17:17:08]Write to MH i2c: F0 00 00 F6 40 25 [17:17:08]Write i2c OK [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: F0 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: F0 05 00 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: F0 05 00 F6 40 00 1A 8E F0 65 27 [17:17:08]GetLastDocTimeStamp 1710263616 [17:17:08]current date 1710263834 [17:17:08]FM_GetShiftState [17:17:08]SAM_PROTO_GetShiftState [17:17:08]wFMCommunicate request_size=4 [17:17:08]MH_SAM_APDU [17:17:08]CAPDU: 80 13 01 00 [17:17:08]Write to MH i2c: E2 08 00 F7 40 80 13 01 00 00 00 00 00 B4 [17:17:08]Write i2c OK [17:17:08]MH_I2C_Read... [17:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:08]Read from MH i2c: E2 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 0E 00 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 0E 00 F7 40 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 28 [17:17:08]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:17:08]wFMCommunicate OK [17:17:08]SAM_PROTO_GetShiftState done [17:17:08]FM_GetShiftState done [17:17:08]opened in 1710201976 [17:17:08]opened+sec_in_day 1710288376 [17:17:08]quantity*price = 319500 [17:17:08]sum+1 = 319501 [17:17:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3195.00 НСП 1% : 28.27 НДС 12% : 339.29 Наличными: 0.00 Безнал.: 3195.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 147 12.03.2024 17:17 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95217 ФПД: 57083666344452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T171714&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95217&fm=57083666344452&tin=02508201610067®Number=0000000000090555&sum=319500 [17:17:09]StoreToDocumentArchive [17:17:09]shift 327 fd 95217 [17:17:09]save to /storage/0327/doc_00095217 [17:17:09]save last doc name /storage/0327/doc_00095217 to /storage/kkm_last_doc_name [17:17:09]save OK [17:17:09]Clear old archive folders... [17:17:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:17:09]tlvbuf is 01A9B050 [17:17:09]SAM_PROTO_ClearQueue [17:17:09]wFMCommunicate request_size=4 [17:17:09]MH_SAM_APDU [17:17:09]CAPDU: 80 09 00 00 [17:17:09]Write to MH i2c: E2 08 00 04 41 80 09 00 00 00 00 00 00 B7 [17:17:09]Write i2c OK [17:17:09]MH_I2C_Read... [17:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:09]Read from MH i2c: E2 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 03 00 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 03 00 04 41 00 90 00 B9 [17:17:09]RAPDU: 90 00 [17:17:09]wFMCommunicate OK [17:17:09]SAM_PROTO_ClearQueue done [17:17:09]KKMCreateOFDPacket [17:17:09]OFDProtocolAddRootSTLVToBuf [17:17:09]FM_MakeSignedData [17:17:09]FM_MakeSignedData [17:17:09]SAM_PROTO_SignData [17:17:09]wFMCommunicate request_size=4 [17:17:09]MH_SAM_APDU [17:17:09]CAPDU: 80 0D 01 02 [17:17:09]Write to MH i2c: E2 08 00 05 41 80 0D 01 02 00 00 00 00 BF [17:17:09]Write i2c OK [17:17:09]MH_I2C_Read... [17:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:09]Read from MH i2c: E2 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 03 00 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 03 00 05 41 00 90 00 BA [17:17:09]RAPDU: 90 00 [17:17:09]wFMCommunicate OK [17:17:09]wFMCommunicate request_size=255 [17:17:09]MH_SAM_APDU [17:17:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 0C E0 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C E0 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C E0 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 1A 8E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F1 73 01 00 35 04 06 00 [17:17:09]Write to MH i2c: E2 02 01 06 41 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 0C E0 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C E0 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C E0 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 1A 8E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F1 73 01 00 35 04 06 00 00 00 B3 [17:17:09]Write i2c OK [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 [17:17:09]MH_I2C_Read... [17:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:09]Read from MH i2c: E2 03 00 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 03 00 06 41 00 90 00 BB [17:17:09]RAPDU: 90 00 [17:17:09]wFMCommunicate OK [17:17:09]wFMCommunicate request_size=11 [17:17:09]MH_SAM_APDU [17:17:09]CAPDU: 80 0D 02 02 06 33 EA D3 A7 AA 04 [17:17:09]Write to MH i2c: E2 0E 00 07 41 80 0D 02 02 06 00 33 EA D3 A7 AA 04 00 00 13 [17:17:09]Write i2c OK [17:17:09]MH_I2C_Read... [17:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:09]Read from MH i2c: E2 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 03 00 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 03 00 07 41 00 90 00 BC [17:17:09]RAPDU: 90 00 [17:17:09]wFMCommunicate OK [17:17:09]wFMCommunicate request_size=4 [17:17:09]MH_SAM_APDU [17:17:09]CAPDU: 80 0D 03 02 [17:17:09]Write to MH i2c: E2 08 00 08 41 80 0D 03 02 00 00 00 00 C4 [17:17:09]Write i2c OK [17:17:09]MH_I2C_Read... [17:17:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:09]Read from MH i2c: E2 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 0B 00 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 0B 00 08 41 00 B4 50 88 7C 4E C4 3E 48 90 00 65 [17:17:09]RAPDU: B4 50 88 7C 4E C4 3E 48 90 00 [17:17:09]wFMCommunicate OK [17:17:09]SAM_PROTO_SignData done [17:17:09]FM_MakeSignedData done [17:17:09]CreateOFDProtocolMessage [17:17:09]wFMCommunicate request_size=4 [17:17:09]MH_SAM_APDU [17:17:09]CAPDU: 80 11 00 00 [17:17:09]Write to MH i2c: E2 08 00 09 41 80 11 00 00 00 00 00 00 C4 [17:17:09]Write i2c OK [17:17:09]MH_I2C_Read... [17:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:10]Read from MH i2c: E2 [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: E2 17 00 [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: E2 17 00 09 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 14 [17:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:17:10]wFMCommunicate OK [17:17:10]CreateOFDProtocolMessage done [17:17:10]OFDSenderStorePacket 95217 [17:17:10]StoreOFDPacket docnum=95217 [17:17:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 41 D9 08 01 4E 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 0C E0 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C E0 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C E0 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 1A 8E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F1 73 01 00 35 04 06 00 33 EA D3 A7 AA 04 B4 50 88 7C 4E C4 3E 48 [17:17:10]CheckFolder [17:17:10]dirname=/storage/ofd_packets [17:17:10]CheckFolder done [17:17:10]ProducePacketName [17:17:10]name=ofd_packets/00095217 [17:17:10]NVStorageSaveData ofd_packets/00095217 [17:17:10]File name is /storage/ofd_packets/00095217 [17:17:10]Write 302 bytes [17:17:10]NVStorageSaveData done [17:17:10]OFDSenderStorePacket done [17:17:10]KKMCreateOFDPacket done [17:17:10]NVStorageSaveData kkm_last_timestamp [17:17:10]File name is /storage/kkm_last_timestamp [17:17:10]Write 4 bytes [17:17:10]NVStorageSaveData done [17:17:10]ExternCall_PrintAddStr [17:17:10]wPrintStart [17:17:10]Write to MH i2c: 01 00 00 0A 41 4B [17:17:10]Write i2c OK [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: 01 [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: 01 07 00 [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: 01 07 00 0A 41 00 80 00 00 00 FF 0F E0 [17:17:10]RasterBufferAndPrint [17:17:10]line Счет N : (1)196188 [17:17:10]line ИНН: 02508201610067 [17:17:10]line Контрольно-Кассовый Чек [17:17:10]line ПРОДАЖА [17:17:10]line ТРК (МРК, ГНК) : 43 [17:17:10]line Товар: 2710124130 [17:17:10]line SUPER 92-К-5 [17:17:10]line 50.000 * 63.90 [17:17:10]line = 3195.00 [17:17:10]line НДС 12% НСП 1% [17:17:10]line > о реализуемом товаре [17:17:10]line ИТОГО: 3195.00 [17:17:10]line НСП 1% : 28.27 [17:17:10]line НДС 12% : 339.29 [17:17:10]line Наличными: 0.00 [17:17:10]line Безнал.: 3195.00 [17:17:10]line Место: АЗС № 6 "Партнер Нефть" [17:17:10]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:17:10]line СНО: Общий режим [17:17:10]line Чек 147 12.03.2024 17:17 [17:17:10]line Смена: 327 ФФД: 1.0 [17:17:10]line ЗНМ: 0300000009 [17:17:10]line РНМ: 0000000000090555 [17:17:10]line Версия ККМ: 001 [17:17:10]line Платежная система: Бакай Банк [17:17:10]line ФМ: 0000000000874811 [17:17:10]line ФД: 95217 [17:17:10]line ФПД: 57083666344452 [17:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T171714&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95217&fm=57083666344452&tin=02508201610067®Number=0000000000090555&sum=319500 [17:17:10]OFD Sender: Processing packet 95217 [packets to send 30, broken 29] [17:17:10]ProducePacketName [17:17:10]name=ofd_packets/00095217 [17:17:10]OFD Sender: To server: pG, [17:17:10]CommunicateWithHost lk.salyk.kg:30040 [17:17:10]ConnectInit lk.salyk.kg [17:17:10]written 0, free lines is 4095 [17:17:10]Connected sock=10 [17:17:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 41 D9 08 01 4E 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 0C E0 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C E0 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C E0 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 1A 8E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F1 73 01 00 35 04 06 00 33 EA D3 A7 AA 04 B4 50 88 7C 4E C4 3E 48 [17:17:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B4 55 47 00 20 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 38 37 34 38 31 31 10 04 04 00 F1 73 01 00 F4 03 04 00 70 39 F0 65 B6 04 01 00 00 3B A4 5F 97 AC CC E4 F8 [17:17:10]CommunicateWithHost err = 0 [17:17:10]CheckOFDResponse [17:17:10]1017 (14) - 77093643461234 [17:17:10]1041 (16) - 0000000000874811 [17:17:10]1040 (4) - 95217 [17:17:10]1012 (4) - 12.03.2024 11:16 [17:17:10]1206 (1) - 0 [17:17:10]OFD Sender: Remove packet 95217 [17:17:10]ProducePacketName [17:17:10]name=ofd_packets/00095217 [17:17:10]NVStorageDeleteData [17:17:10]Write to MH i2c: 01 00 00 34 41 75 [17:17:10]Write i2c OK [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: 01 [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: 01 07 00 [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: 01 07 00 34 41 00 80 00 00 00 66 0D 6F [17:17:10]RasterBufferAndPrint [17:17:10]line [17:17:10]line [17:17:10]line [17:17:10]line [17:17:10]line [17:17:10]written 0, free lines is 3436 [17:17:10]process_action close_receipt done [17:17:10]requested_data is exist [17:17:10]produce_requested_data [17:17:10]requested_item fm.sn is exist - process it [17:17:10]wFMCommunicate request_size=4 [17:17:10]MH_SAM_APDU [17:17:10]CAPDU: 80 11 00 00 [17:17:10]Write to MH i2c: E2 08 00 3B 41 80 11 00 00 00 00 00 00 F6 [17:17:10]Write i2c OK [17:17:10]MH_I2C_Read... [17:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:10]Read from MH i2c: E2 [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: E2 17 00 [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: E2 17 00 3B 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 46 [17:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:17:10]wFMCommunicate OK [17:17:10]requested_item fd.num is exist - process it [17:17:10]SAM_PROTO_GetFieldsCounters [17:17:10]wFMCommunicate request_size=4 [17:17:10]MH_SAM_APDU [17:17:10]CAPDU: 80 13 00 00 [17:17:10]Write to MH i2c: E2 08 00 3C 41 80 13 00 00 00 00 00 00 F9 [17:17:10]Write i2c OK [17:17:10]MH_I2C_Read... [17:17:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:11]Read from MH i2c: E2 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 62 00 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 62 00 3C 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F1 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [17:17:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F1 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:11]wFMCommunicate OK [17:17:11]SAM_PROTO_GetFieldsCounters done [17:17:11]requested_item shift.num is exist - process it [17:17:11]requested_item shift.opened is exist - process it [17:17:11]req_shift_opened [17:17:11]FM_GetShiftState [17:17:11]SAM_PROTO_GetShiftState [17:17:11]wFMCommunicate request_size=4 [17:17:11]MH_SAM_APDU [17:17:11]CAPDU: 80 13 01 00 [17:17:11]Write to MH i2c: E2 08 00 3D 41 80 13 01 00 00 00 00 00 FB [17:17:11]Write i2c OK [17:17:11]MH_I2C_Read... [17:17:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:11]Read from MH i2c: E2 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 0E 00 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 0E 00 3D 41 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 6F [17:17:11]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:17:11]wFMCommunicate OK [17:17:11]SAM_PROTO_GetShiftState done [17:17:11]FM_GetShiftState done [17:17:11]req_shift_opened done [17:17:11]requested_item shift.open_date is exist - process it [17:17:11]req_shift_open_date [17:17:11]req_shift_open_date done [17:17:11]produce_requested_data done [17:17:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95217,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:17:11]process_action_free close_receipt [17:17:11]json_value_free [17:17:11]json_value_free done [17:17:11]process_json_proto returns [17:17:11]Send response to host [17:17:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95217,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:17:11]free response buf [17:17:11]execute_script done [17:17:11]execute_script returns [17:17:11]free content buf [17:17:11]Sock 9.Close socket [17:17:11]Sock 9.Thread stoped [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:19:58]accept exits with 8 [17:19:58]New connection [17:19:58]New thread 3066813796 created [17:19:58]Thread 3066957156 joined [17:19:58]Waiting for new connection... [17:19:58] Sock 8.Parse request [17:19:58]Sock 8.Check first char [17:19:58]Sock 8.First char is OK [17:19:58]request: POST /json_proto HTTP/1.0 [17:19:58]Method: POST [17:19:58]URL: /json_proto [17:19:58]Method is POST - this is cgi request [17:19:58]url: /json_proto [17:19:58]query_string will be loaded in cgi processing [17:19:58]execute_cgi json_proto POST (null) [17:19:58]execute_cgi path=json_proto method=POST [17:19:58]POST find Content-Length [17:19:58]Host: 172.17.62.67:8080 [17:19:58]Content-Length: 809 [17:19:58]Content-Type: application/json [17:19:58] [17:19:58]POST finish read [17:19:58]Found Content-Length = 809 [17:19:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 9.440, "sum" : 603.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 603.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:58]execute_script... [17:19: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)196189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 9.440, "sum" : 603.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 603.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:58]POST & json_proto [17:19:58]process_json_proto [17:19:58]json parsed OK: [17:19:58]protocol is kg_v1.0 [17:19:58]action value=close_receipt [17:19:58]process_action close_receipt [17:19:58]cmd_close_receipt [17:19:58]MH_GetDate [17:19:58]Write to MH i2c: F0 00 00 3E 41 6E [17:19:58]Write i2c OK [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: F0 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: F0 05 00 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: F0 05 00 3E 41 00 C4 8E F0 65 1A [17:19:58]GetLastDocTimeStamp 1710263834 [17:19:58]current date 1710264004 [17:19:58]FM_GetShiftState [17:19:58]SAM_PROTO_GetShiftState [17:19:58]wFMCommunicate request_size=4 [17:19:58]MH_SAM_APDU [17:19:58]CAPDU: 80 13 01 00 [17:19:58]Write to MH i2c: E2 08 00 3F 41 80 13 01 00 00 00 00 00 FD [17:19:58]Write i2c OK [17:19:58]MH_I2C_Read... [17:19:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:58]Read from MH i2c: E2 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: E2 0E 00 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: E2 0E 00 3F 41 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 71 [17:19:58]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:19:58]wFMCommunicate OK [17:19:58]SAM_PROTO_GetShiftState done [17:19:58]FM_GetShiftState done [17:19:58]opened in 1710201976 [17:19:58]opened+sec_in_day 1710288376 [17:19:58]quantity*price = 60321 [17:19:58]sum+1 = 60323 [17:19:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 603.22 НСП 1% : 5.34 НДС 12% : 64.06 Наличными: 0.00 Безнал.: 603.22 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 148 12.03.2024 17:20 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95218 ФПД: 112633352273176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T172004&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95218&fm=112633352273176&tin=02508201610067®Number=0000000000090555&sum=60322 [17:19:59]StoreToDocumentArchive [17:19:59]shift 327 fd 95218 [17:19:59]save to /storage/0327/doc_00095218 [17:19:59]save last doc name /storage/0327/doc_00095218 to /storage/kkm_last_doc_name [17:19:59]save OK [17:19:59]Clear old archive folders... [17:19:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:19:59]tlvbuf is 01A9AE30 [17:19:59]SAM_PROTO_ClearQueue [17:19:59]wFMCommunicate request_size=4 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 09 00 00 [17:19:59]Write to MH i2c: E2 08 00 4C 41 80 09 00 00 00 00 00 00 FF [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:59]Read from MH i2c: E2 03 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 03 00 4C 41 00 90 00 01 [17:19:59]RAPDU: 90 00 [17:19:59]wFMCommunicate OK [17:19:59]SAM_PROTO_ClearQueue done [17:19:59]KKMCreateOFDPacket [17:19:59]OFDProtocolAddRootSTLVToBuf [17:19:59]FM_MakeSignedData [17:19:59]FM_MakeSignedData [17:19:59]SAM_PROTO_SignData [17:19:59]wFMCommunicate request_size=4 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 0D 01 02 [17:19:59]Write to MH i2c: E2 08 00 4D 41 80 0D 01 02 00 00 00 00 07 [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 03 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 03 00 4D 41 00 90 00 02 [17:19:59]RAPDU: 90 00 [17:19:59]wFMCommunicate OK [17:19:59]wFMCommunicate request_size=255 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A2 EB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 EB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 C4 8E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F2 73 01 00 35 04 06 00 [17:19:59]Write to MH i2c: E2 02 01 4E 41 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A2 EB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 EB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 C4 8E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F2 73 01 00 35 04 06 00 00 00 83 [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 03 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 03 00 4E 41 00 90 00 03 [17:19:59]RAPDU: 90 00 [17:19:59]wFMCommunicate OK [17:19:59]wFMCommunicate request_size=11 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 0D 02 02 06 66 70 7E F3 BD 18 [17:19:59]Write to MH i2c: E2 0E 00 4F 41 80 0D 02 02 06 00 66 70 7E F3 BD 18 00 00 32 [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 03 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 03 00 4F 41 00 90 00 04 [17:19:59]RAPDU: 90 00 [17:19:59]wFMCommunicate OK [17:19:59]wFMCommunicate request_size=4 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 0D 03 02 [17:19:59]Write to MH i2c: E2 08 00 50 41 80 0D 03 02 00 00 00 00 0C [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 0B 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 0B 00 50 41 00 C7 B9 88 49 5B 52 72 C5 90 00 42 [17:19:59]RAPDU: C7 B9 88 49 5B 52 72 C5 90 00 [17:19:59]wFMCommunicate OK [17:19:59]SAM_PROTO_SignData done [17:19:59]FM_MakeSignedData done [17:19:59]CreateOFDProtocolMessage [17:19:59]wFMCommunicate request_size=4 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 11 00 00 [17:19:59]Write to MH i2c: E2 08 00 51 41 80 11 00 00 00 00 00 00 0C [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 17 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 17 00 51 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5C [17:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:19:59]wFMCommunicate OK [17:19:59]CreateOFDProtocolMessage done [17:19:59]OFDSenderStorePacket 95218 [17:19:59]StoreOFDPacket docnum=95218 [17:19:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 90 2C 08 01 C6 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A2 EB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 EB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 C4 8E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F2 73 01 00 35 04 06 00 66 70 7E F3 BD 18 C7 B9 88 49 5B 52 72 C5 [17:19:59]CheckFolder [17:19:59]dirname=/storage/ofd_packets [17:19:59]CheckFolder done [17:19:59]ProducePacketName [17:19:59]name=ofd_packets/00095218 [17:19:59]NVStorageSaveData ofd_packets/00095218 [17:19:59]File name is /storage/ofd_packets/00095218 [17:19:59]Write 302 bytes [17:19:59]NVStorageSaveData done [17:19:59]OFDSenderStorePacket done [17:19:59]KKMCreateOFDPacket done [17:19:59]NVStorageSaveData kkm_last_timestamp [17:19:59]File name is /storage/kkm_last_timestamp [17:19:59]Write 4 bytes [17:19:59]NVStorageSaveData done [17:19:59]ExternCall_PrintAddStr [17:19:59]wPrintStart [17:19:59]Write to MH i2c: 01 00 00 52 41 93 [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: 01 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: 01 07 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: 01 07 00 52 41 00 80 00 00 00 FF 0F 28 [17:19:59]RasterBufferAndPrint [17:19:59]line Счет N : (1)196189 [17:19:59]line ИНН: 02508201610067 [17:19:59]line Контрольно-Кассовый Чек [17:19:59]line ПРОДАЖА [17:19:59]line ТРК (МРК, ГНК) : 43 [17:19:59]line Товар: 2710124130 [17:19:59]line SUPER 92-К-5 [17:19:59]line 9.440 * 63.90 [17:19:59]line = 603.22 [17:19:59]line НДС 12% НСП 1% [17:19:59]line > о реализуемом товаре [17:19:59]line ИТОГО: 603.22 [17:19:59]line НСП 1% : 5.34 [17:19:59]line НДС 12% : 64.06 [17:19:59]line Наличными: 0.00 [17:19:59]line Безнал.: 603.22 [17:19:59]line Место: АЗС № 6 "Партнер Нефть" [17:19:59]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:19:59]line СНО: Общий режим [17:19:59]line Чек 148 12.03.2024 17:20 [17:19:59]line Смена: 327 ФФД: 1.0 [17:19:59]line ЗНМ: 0300000009 [17:19:59]line РНМ: 0000000000090555 [17:19:59]line Версия ККМ: 001 [17:19:59]line Платежная система: Бакай Банк [17:19:59]line ФМ: 0000000000874811 [17:19:59]line ФД: 95218 [17:19:59]line ФПД: 112633352273176 [17:20:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T172004&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95218&fm=112633352273176&tin=02508201610067®Number=0000000000090555&sum=60322 [17:20:00]OFD Sender: Processing packet 95218 [packets to send 30, broken 29] [17:20:00]ProducePacketName [17:20:00]name=ofd_packets/00095218 [17:20:00]OFD Sender: To server: pG, [17:20:00]CommunicateWithHost lk.salyk.kg:30040 [17:20:00]ConnectInit lk.salyk.kg [17:20:00]written 0, free lines is 4095 [17:20:00]Connected sock=10 [17:20:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 90 2C 08 01 C6 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A2 EB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 EB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 C4 8E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F2 73 01 00 35 04 06 00 66 70 7E F3 BD 18 C7 B9 88 49 5B 52 72 C5 [17:20:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 ED 69 47 00 AC 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F2 73 01 00 F4 03 04 00 19 3A F0 65 B6 04 01 00 00 29 03 34 14 1B 85 2B 14 [17:20:00]CommunicateWithHost err = 0 [17:20:00]CheckOFDResponse [17:20:00]1017 (14) - 77093643461234 [17:20:00]1041 (16) - 0000000000874811 [17:20:00]1040 (4) - 95218 [17:20:00]1012 (4) - 12.03.2024 11:18 [17:20:00]1206 (1) - 0 [17:20:00]OFD Sender: Remove packet 95218 [17:20:00]ProducePacketName [17:20:00]name=ofd_packets/00095218 [17:20:00]NVStorageDeleteData [17:20:00]Write to MH i2c: 01 00 00 7C 41 BD [17:20:00]Write i2c OK [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: 01 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: 01 07 00 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: 01 07 00 7C 41 00 80 00 00 00 60 0D B1 [17:20:00]RasterBufferAndPrint [17:20:00]line [17:20:00]line [17:20:00]line [17:20:00]line [17:20:00]line [17:20:00]written 0, free lines is 3430 [17:20:00]process_action close_receipt done [17:20:00]requested_data is exist [17:20:00]produce_requested_data [17:20:00]requested_item fm.sn is exist - process it [17:20:00]wFMCommunicate request_size=4 [17:20:00]MH_SAM_APDU [17:20:00]CAPDU: 80 11 00 00 [17:20:00]Write to MH i2c: E2 08 00 83 41 80 11 00 00 00 00 00 00 3E [17:20:00]Write i2c OK [17:20:00]MH_I2C_Read... [17:20:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:00]Read from MH i2c: E2 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 17 00 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 17 00 83 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8E [17:20:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:20:00]wFMCommunicate OK [17:20:00]requested_item fd.num is exist - process it [17:20:00]SAM_PROTO_GetFieldsCounters [17:20:00]wFMCommunicate request_size=4 [17:20:00]MH_SAM_APDU [17:20:00]CAPDU: 80 13 00 00 [17:20:00]Write to MH i2c: E2 08 00 84 41 80 13 00 00 00 00 00 00 41 [17:20:00]Write i2c OK [17:20:00]MH_I2C_Read... [17:20:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:00]Read from MH i2c: E2 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 62 00 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 62 00 84 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F2 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [17:20:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F2 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:00]wFMCommunicate OK [17:20:00]SAM_PROTO_GetFieldsCounters done [17:20:00]requested_item shift.num is exist - process it [17:20:00]requested_item shift.opened is exist - process it [17:20:00]req_shift_opened [17:20:00]FM_GetShiftState [17:20:00]SAM_PROTO_GetShiftState [17:20:00]wFMCommunicate request_size=4 [17:20:00]MH_SAM_APDU [17:20:00]CAPDU: 80 13 01 00 [17:20:00]Write to MH i2c: E2 08 00 85 41 80 13 01 00 00 00 00 00 43 [17:20:00]Write i2c OK [17:20:00]MH_I2C_Read... [17:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:01]OFD Sender: No OFD packet to send [17:20:01]Read from MH i2c: E2 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 0E 00 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 0E 00 85 41 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B7 [17:20:01]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:20:01]wFMCommunicate OK [17:20:01]SAM_PROTO_GetShiftState done [17:20:01]FM_GetShiftState done [17:20:01]req_shift_opened done [17:20:01]requested_item shift.open_date is exist - process it [17:20:01]req_shift_open_date [17:20:01]req_shift_open_date done [17:20:01]produce_requested_data done [17:20:01]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95218,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:20:01]process_action_free close_receipt [17:20:01]json_value_free [17:20:01]json_value_free done [17:20:01]process_json_proto returns [17:20:01]Send response to host [17:20:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95218,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:20:01]free response buf [17:20:01]execute_script done [17:20:01]execute_script returns [17:20:01]free content buf [17:20:01]Sock 8.Close socket [17:20:01]Sock 8.Thread stoped [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:20]accept exits with 9 [17:20:20]New connection [17:20:20]New thread 3066957156 created [17:20:20]Thread 3066813796 joined [17:20:20]Waiting for new connection... [17:20:20] Sock 9.Parse request [17:20:20]Sock 9.Check first char [17:20:20]Sock 9.First char is OK [17:20:20]request: POST /json_proto HTTP/1.0 [17:20:20]Method: POST [17:20:20]URL: /json_proto [17:20:20]Method is POST - this is cgi request [17:20:20]url: /json_proto [17:20:20]query_string will be loaded in cgi processing [17:20:20]execute_cgi json_proto POST (null) [17:20:20]execute_cgi path=json_proto method=POST [17:20:20]POST find Content-Length [17:20:20]Host: 172.17.62.67:8080 [17:20:20]Content-Length: 677 [17:20:20]Content-Type: application/json [17:20:20] [17:20:20]POST finish read [17:20:20]Found Content-Length = 677 [17:20:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:20]execute_script... [17:20: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)196190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:20]POST & json_proto [17:20:20]process_json_proto [17:20:20]json parsed OK: [17:20:20]protocol is kg_v1.0 [17:20:20]action value=close_receipt [17:20:20]process_action close_receipt [17:20:20]cmd_close_receipt [17:20:20]MH_GetDate [17:20:20]Write to MH i2c: F0 00 00 86 41 B6 [17:20:20]Write i2c OK [17:20:20]MH_I2C_Read... [17:20:20]Read from MH i2c: F0 [17:20:20]MH_I2C_Read... [17:20:20]Read from MH i2c: F0 05 00 [17:20:20]MH_I2C_Read... [17:20:20]Read from MH i2c: F0 05 00 86 41 00 DA 8E F0 65 78 [17:20:20]GetLastDocTimeStamp 1710264004 [17:20:20]current date 1710264026 [17:20:20]FM_GetShiftState [17:20:20]SAM_PROTO_GetShiftState [17:20:20]wFMCommunicate request_size=4 [17:20:20]MH_SAM_APDU [17:20:20]CAPDU: 80 13 01 00 [17:20:20]Write to MH i2c: E2 08 00 87 41 80 13 01 00 00 00 00 00 45 [17:20:20]Write i2c OK [17:20:20]MH_I2C_Read... [17:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:20]Read from MH i2c: E2 [17:20:20]MH_I2C_Read... [17:20:20]Read from MH i2c: E2 0E 00 [17:20:20]MH_I2C_Read... [17:20:20]Read from MH i2c: E2 0E 00 87 41 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B9 [17:20:20]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:20:20]wFMCommunicate OK [17:20:20]SAM_PROTO_GetShiftState done [17:20:20]FM_GetShiftState done [17:20:20]opened in 1710201976 [17:20:20]opened+sec_in_day 1710288376 [17:20:20]quantity*price = 40004 [17:20:20]sum+1 = 40005 [17:20:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 149 12.03.2024 17:20 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95219 ФПД: 189116450161074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T172026&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95219&fm=189116450161074&tin=02508201610067®Number=0000000000090555&sum=40000 [17:20:21]StoreToDocumentArchive [17:20:21]shift 327 fd 95219 [17:20:21]save to /storage/0327/doc_00095219 [17:20:21]save last doc name /storage/0327/doc_00095219 to /storage/kkm_last_doc_name [17:20:21]save OK [17:20:21]Clear old archive folders... [17:20:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:21]tlvbuf is 01B6DBC0 [17:20:21]SAM_PROTO_ClearQueue [17:20:21]wFMCommunicate request_size=4 [17:20:21]MH_SAM_APDU [17:20:21]CAPDU: 80 09 00 00 [17:20:21]Write to MH i2c: E2 08 00 94 41 80 09 00 00 00 00 00 00 47 [17:20:21]Write i2c OK [17:20:21]MH_I2C_Read... [17:20:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:21]Read from MH i2c: E2 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: E2 03 00 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: E2 03 00 94 41 00 90 00 49 [17:20:21]RAPDU: 90 00 [17:20:21]wFMCommunicate OK [17:20:21]SAM_PROTO_ClearQueue done [17:20:21]KKMCreateOFDPacket [17:20:21]OFDProtocolAddRootSTLVToBuf [17:20:21]FM_MakeSignedData [17:20:21]FM_MakeSignedData [17:20:21]SAM_PROTO_SignData [17:20:21]wFMCommunicate request_size=4 [17:20:21]MH_SAM_APDU [17:20:21]CAPDU: 80 0D 01 02 [17:20:21]Write to MH i2c: E2 08 00 95 41 80 0D 01 02 00 00 00 00 4F [17:20:21]Write i2c OK [17:20:21]MH_I2C_Read... [17:20:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:21]Read from MH i2c: E2 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: E2 03 00 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: E2 03 00 95 41 00 90 00 4A [17:20:21]RAPDU: 90 00 [17:20:21]wFMCommunicate OK [17:20:21]wFMCommunicate request_size=255 [17:20:21]MH_SAM_APDU [17:20:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 95 00 00 00 F4 03 04 00 DA 8E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F3 73 01 00 35 04 06 00 AC [17:20:21]Write to MH i2c: E2 02 01 96 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 95 00 00 00 F4 03 04 00 DA 8E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F3 73 01 00 35 04 06 00 AC 00 00 3F [17:20:21]Write i2c OK [17:20:21]MH_I2C_Read... [17:20:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:21]Read from MH i2c: E2 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: E2 03 00 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: E2 03 00 96 41 00 90 00 4B [17:20:21]RAPDU: 90 00 [17:20:21]wFMCommunicate OK [17:20:21]wFMCommunicate request_size=10 [17:20:21]MH_SAM_APDU [17:20:21]CAPDU: 80 0D 02 02 05 00 1A D5 41 B2 [17:20:21]Write to MH i2c: E2 0D 00 97 41 80 0D 02 02 05 00 00 1A D5 41 B2 00 00 3E [17:20:21]Write i2c OK [17:20:21]MH_I2C_Read... [17:20:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:21]Read from MH i2c: E2 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: E2 03 00 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: E2 03 00 97 41 00 90 00 4C [17:20:21]RAPDU: 90 00 [17:20:21]wFMCommunicate OK [17:20:21]wFMCommunicate request_size=4 [17:20:21]MH_SAM_APDU [17:20:21]CAPDU: 80 0D 03 02 [17:20:21]Write to MH i2c: E2 08 00 98 41 80 0D 03 02 00 00 00 00 54 [17:20:21]Write i2c OK [17:20:21]MH_I2C_Read... [17:20:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:21]Read from MH i2c: E2 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: E2 0B 00 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: E2 0B 00 98 41 00 D1 99 04 B5 1C F3 A1 9F 90 00 C7 [17:20:21]RAPDU: D1 99 04 B5 1C F3 A1 9F 90 00 [17:20:21]wFMCommunicate OK [17:20:21]SAM_PROTO_SignData done [17:20:21]FM_MakeSignedData done [17:20:21]CreateOFDProtocolMessage [17:20:21]wFMCommunicate request_size=4 [17:20:21]MH_SAM_APDU [17:20:21]CAPDU: 80 11 00 00 [17:20:21]Write to MH i2c: E2 08 00 99 41 80 11 00 00 00 00 00 00 54 [17:20:21]Write i2c OK [17:20:21]MH_I2C_Read... [17:20:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:21]Read from MH i2c: E2 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: E2 17 00 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: E2 17 00 99 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A4 [17:20:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:20:21]wFMCommunicate OK [17:20:21]CreateOFDProtocolMessage done [17:20:21]OFDSenderStorePacket 95219 [17:20:21]StoreOFDPacket docnum=95219 [17:20:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C3 2B 07 01 22 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 95 00 00 00 F4 03 04 00 DA 8E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F3 73 01 00 35 04 06 00 AC 00 1A D5 41 B2 D1 99 04 B5 1C F3 A1 9F [17:20:21]CheckFolder [17:20:21]dirname=/storage/ofd_packets [17:20:21]CheckFolder done [17:20:21]ProducePacketName [17:20:21]name=ofd_packets/00095219 [17:20:21]NVStorageSaveData ofd_packets/00095219 [17:20:21]File name is /storage/ofd_packets/00095219 [17:20:21]Write 301 bytes [17:20:21]NVStorageSaveData done [17:20:21]OFDSenderStorePacket done [17:20:21]KKMCreateOFDPacket done [17:20:21]NVStorageSaveData kkm_last_timestamp [17:20:21]File name is /storage/kkm_last_timestamp [17:20:21]Write 4 bytes [17:20:21]NVStorageSaveData done [17:20:21]ExternCall_PrintAddStr [17:20:21]wPrintStart [17:20:21]Write to MH i2c: 01 00 00 9A 41 DB [17:20:21]Write i2c OK [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: 01 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: 01 07 00 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: 01 07 00 9A 41 00 80 00 00 00 FF 0F 70 [17:20:21]RasterBufferAndPrint [17:20:21]line Счет N : (1)196190 [17:20:21]line ИНН: 02508201610067 [17:20:21]line Контрольно-Кассовый Чек [17:20:21]line ПРОДАЖА [17:20:21]line ТРК (МРК, ГНК) : 32 [17:20:21]line Товар: 2710124130 [17:20:21]line Аи-92-К-5 [17:20:21]line 6.360 * 62.90 [17:20:21]line = 400.04 [17:20:21]line НДС 12% НСП 1% [17:20:21]line > о реализуемом товаре [17:20:21]line ОКРУГЛЕНИЕ: -0.04 [17:20:21]line ИТОГО: 400.00 [17:20:21]line Внесено: 400.00 [17:20:21]line СДАЧА: 0.00 [17:20:21]line НСП 1% : 3.54 [17:20:21]line НДС 12% : 42.48 [17:20:21]line Наличными: 400.00 [17:20:21]line Безнал.: 0.00 [17:20:21]line Место: АЗС № 6 "Партнер Нефть" [17:20:21]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:20:21]line СНО: Общий режим [17:20:21]line Чек 149 12.03.2024 17:20 [17:20:21]line Смена: 327 ФФД: 1.0 [17:20:21]line ЗНМ: 0300000009 [17:20:21]line РНМ: 0000000000090555 [17:20:21]line Версия ККМ: 001 [17:20:21]line ФМ: 0000000000874811 [17:20:21]line ФД: 95219 [17:20:21]line ФПД: 189116450161074 [17:20:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T172026&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95219&fm=189116450161074&tin=02508201610067®Number=0000000000090555&sum=40000 [17:20:22]OFD Sender: Processing packet 95219 [packets to send 30, broken 29] [17:20:22]ProducePacketName [17:20:22]name=ofd_packets/00095219 [17:20:22]OFD Sender: To server: pG, [17:20:22]CommunicateWithHost lk.salyk.kg:30040 [17:20:22]ConnectInit lk.salyk.kg [17:20:22]written 0, free lines is 4095 [17:20:22]Connected sock=10 [17:20:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C3 2B 07 01 22 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 95 00 00 00 F4 03 04 00 DA 8E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F3 73 01 00 35 04 06 00 AC 00 1A D5 41 B2 D1 99 04 B5 1C F3 A1 9F [17:20:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 2E F0 47 00 15 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F3 73 01 00 F4 03 04 00 2F 3A F0 65 B6 04 01 00 00 7D 41 3B 04 8A 2C 02 FF [17:20:22]CommunicateWithHost err = 0 [17:20:22]CheckOFDResponse [17:20:22]1017 (14) - 77093643461234 [17:20:22]1041 (16) - 0000000000874811 [17:20:22]1040 (4) - 95219 [17:20:22]1012 (4) - 12.03.2024 11:19 [17:20:22]1206 (1) - 0 [17:20:22]OFD Sender: Remove packet 95219 [17:20:22]ProducePacketName [17:20:22]name=ofd_packets/00095219 [17:20:22]NVStorageDeleteData [17:20:22]Write to MH i2c: 01 00 00 C5 41 06 [17:20:22]Write i2c OK [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: 01 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: 01 07 00 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: 01 07 00 C5 41 00 80 00 00 00 4D 0D E7 [17:20:22]RasterBufferAndPrint [17:20:22]line [17:20:22]line [17:20:22]line [17:20:22]line [17:20:22]line [17:20:22]written 0, free lines is 3411 [17:20:22]process_action close_receipt done [17:20:22]requested_data is exist [17:20:22]produce_requested_data [17:20:22]requested_item fm.sn is exist - process it [17:20:22]wFMCommunicate request_size=4 [17:20:22]MH_SAM_APDU [17:20:22]CAPDU: 80 11 00 00 [17:20:22]Write to MH i2c: E2 08 00 CC 41 80 11 00 00 00 00 00 00 87 [17:20:22]Write i2c OK [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 [17:20:22]MH_I2C_Read... [17:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:22]Read from MH i2c: E2 17 00 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 17 00 CC 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D7 [17:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:20:22]wFMCommunicate OK [17:20:22]requested_item fd.num is exist - process it [17:20:22]SAM_PROTO_GetFieldsCounters [17:20:22]wFMCommunicate request_size=4 [17:20:22]MH_SAM_APDU [17:20:22]CAPDU: 80 13 00 00 [17:20:22]Write to MH i2c: E2 08 00 CD 41 80 13 00 00 00 00 00 00 8A [17:20:22]Write i2c OK [17:20:22]MH_I2C_Read... [17:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:22]Read from MH i2c: E2 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 62 00 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 62 00 CD 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F3 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [17:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F3 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:22]wFMCommunicate OK [17:20:22]SAM_PROTO_GetFieldsCounters done [17:20:22]requested_item shift.num is exist - process it [17:20:22]requested_item shift.opened is exist - process it [17:20:22]req_shift_opened [17:20:22]FM_GetShiftState [17:20:22]SAM_PROTO_GetShiftState [17:20:22]wFMCommunicate request_size=4 [17:20:22]MH_SAM_APDU [17:20:22]CAPDU: 80 13 01 00 [17:20:22]Write to MH i2c: E2 08 00 CE 41 80 13 01 00 00 00 00 00 8C [17:20:22]Write i2c OK [17:20:22]MH_I2C_Read... [17:20:22]OFD Sender: No OFD packet to send [17:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:22]Read from MH i2c: E2 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 0E 00 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 0E 00 CE 41 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 00 [17:20:22]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:20:22]wFMCommunicate OK [17:20:22]SAM_PROTO_GetShiftState done [17:20:22]FM_GetShiftState done [17:20:22]req_shift_opened done [17:20:22]requested_item shift.open_date is exist - process it [17:20:22]req_shift_open_date [17:20:22]req_shift_open_date done [17:20:22]produce_requested_data done [17:20:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95219,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:20:22]process_action_free close_receipt [17:20:22]json_value_free [17:20:22]json_value_free done [17:20:22]process_json_proto returns [17:20:22]Send response to host [17:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95219,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:20:22]free response buf [17:20:22]execute_script done [17:20:22]execute_script returns [17:20:22]free content buf [17:20:22]Sock 9.Close socket [17:20:22]Sock 9.Thread stoped [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:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:19]accept exits with 8 [17:24:19]New connection [17:24:19]New thread 3066813796 created [17:24:19]Thread 3066957156 joined [17:24:19]Waiting for new connection... [17:24:19] Sock 8.Parse request [17:24:19]Sock 8.Check first char [17:24:19]Sock 8.First char is OK [17:24:19]request: POST /json_proto HTTP/1.0 [17:24:19]Method: POST [17:24:19]URL: /json_proto [17:24:19]Method is POST - this is cgi request [17:24:19]url: /json_proto [17:24:19]query_string will be loaded in cgi processing [17:24:19]execute_cgi json_proto POST (null) [17:24:19]execute_cgi path=json_proto method=POST [17:24:19]POST find Content-Length [17:24:19]Host: 172.17.62.67:8080 [17:24:19]Content-Length: 819 [17:24:19]Content-Type: application/json [17:24:19] [17:24:19]POST finish read [17:24:19]Found Content-Length = 819 [17:24:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 50.360, "sum" : 3500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3500.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:19]execute_script... [17:24: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)196191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 50.360, "sum" : 3500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3500.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:19]POST & json_proto [17:24:19]process_json_proto [17:24:19]json parsed OK: [17:24:19]protocol is kg_v1.0 [17:24:19]action value=close_receipt [17:24:19]process_action close_receipt [17:24:19]cmd_close_receipt [17:24:19]MH_GetDate [17:24:19]Write to MH i2c: F0 00 00 CF 41 FF [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: F0 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: F0 05 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: F0 05 00 CF 41 00 C9 8F F0 65 B1 [17:24:19]GetLastDocTimeStamp 1710264026 [17:24:19]current date 1710264265 [17:24:19]FM_GetShiftState [17:24:19]SAM_PROTO_GetShiftState [17:24:19]wFMCommunicate request_size=4 [17:24:19]MH_SAM_APDU [17:24:19]CAPDU: 80 13 01 00 [17:24:19]Write to MH i2c: E2 08 00 D0 41 80 13 01 00 00 00 00 00 8E [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 0E 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 0E 00 D0 41 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 02 [17:24:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:24:19]wFMCommunicate OK [17:24:19]SAM_PROTO_GetShiftState done [17:24:19]FM_GetShiftState done [17:24:19]opened in 1710201976 [17:24:19]opened+sec_in_day 1710288376 [17:24:19]quantity*price = 350002 [17:24:19]sum+1 = 350003 [17:24:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3500.02 НСП 1% : 30.97 НДС 12% : 371.68 Наличными: 0.00 Безнал.: 3500.02 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 150 12.03.2024 17:24 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95220 ФПД: 112288624515390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T172425&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95220&fm=112288624515390&tin=02508201610067®Number=0000000000090555&sum=350002 [17:24:20]StoreToDocumentArchive [17:24:20]shift 327 fd 95220 [17:24:20]save to /storage/0327/doc_00095220 [17:24:20]save last doc name /storage/0327/doc_00095220 to /storage/kkm_last_doc_name [17:24:20]save OK [17:24:20]Clear old archive folders... [17:24:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:20]tlvbuf is B6F56300 [17:24:20]SAM_PROTO_ClearQueue [17:24:20]wFMCommunicate request_size=4 [17:24:20]MH_SAM_APDU [17:24:20]CAPDU: 80 09 00 00 [17:24:20]Write to MH i2c: E2 08 00 DD 41 80 09 00 00 00 00 00 00 90 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:20]Read from MH i2c: E2 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 03 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 03 00 DD 41 00 90 00 92 [17:24:20]RAPDU: 90 00 [17:24:20]wFMCommunicate OK [17:24:20]SAM_PROTO_ClearQueue done [17:24:20]KKMCreateOFDPacket [17:24:20]OFDProtocolAddRootSTLVToBuf [17:24:20]FM_MakeSignedData [17:24:20]FM_MakeSignedData [17:24:20]SAM_PROTO_SignData [17:24:20]wFMCommunicate request_size=4 [17:24:20]MH_SAM_APDU [17:24:20]CAPDU: 80 0D 01 02 [17:24:20]Write to MH i2c: E2 08 00 DE 41 80 0D 01 02 00 00 00 00 98 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:20]Read from MH i2c: E2 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 03 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 03 00 DE 41 00 90 00 93 [17:24:20]RAPDU: 90 00 [17:24:20]wFMCommunicate OK [17:24:20]wFMCommunicate request_size=255 [17:24:20]MH_SAM_APDU [17:24:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 C4 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C9 8F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F4 73 01 00 35 04 06 00 66 [17:24:20]Write to MH i2c: E2 02 01 DF 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 C4 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C9 8F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F4 73 01 00 35 04 06 00 66 00 00 48 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:20]Read from MH i2c: E2 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 03 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 03 00 DF 41 00 90 00 94 [17:24:20]RAPDU: 90 00 [17:24:20]wFMCommunicate OK [17:24:20]wFMCommunicate request_size=10 [17:24:20]MH_SAM_APDU [17:24:20]CAPDU: 80 0D 02 02 05 20 3B 93 99 3E [17:24:20]Write to MH i2c: E2 0D 00 E0 41 80 0D 02 02 05 00 20 3B 93 99 3E 00 00 6A [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:21]Read from MH i2c: E2 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 03 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 03 00 E0 41 00 90 00 95 [17:24:21]RAPDU: 90 00 [17:24:21]wFMCommunicate OK [17:24:21]wFMCommunicate request_size=4 [17:24:21]MH_SAM_APDU [17:24:21]CAPDU: 80 0D 03 02 [17:24:21]Write to MH i2c: E2 08 00 E1 41 80 0D 03 02 00 00 00 00 9D [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:21]Read from MH i2c: E2 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 0B 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 0B 00 E1 41 00 8B 65 1E F2 05 29 9E 6A 90 00 D4 [17:24:21]RAPDU: 8B 65 1E F2 05 29 9E 6A 90 00 [17:24:21]wFMCommunicate OK [17:24:21]SAM_PROTO_SignData done [17:24:21]FM_MakeSignedData done [17:24:21]CreateOFDProtocolMessage [17:24:21]wFMCommunicate request_size=4 [17:24:21]MH_SAM_APDU [17:24:21]CAPDU: 80 11 00 00 [17:24:21]Write to MH i2c: E2 08 00 E2 41 80 11 00 00 00 00 00 00 9D [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:21]Read from MH i2c: E2 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 17 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 17 00 E2 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 ED [17:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:24:21]wFMCommunicate OK [17:24:21]CreateOFDProtocolMessage done [17:24:21]OFDSenderStorePacket 95220 [17:24:21]StoreOFDPacket docnum=95220 [17:24:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 91 10 07 01 16 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 C4 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C9 8F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F4 73 01 00 35 04 06 00 66 20 3B 93 99 3E 8B 65 1E F2 05 29 9E 6A [17:24:21]CheckFolder [17:24:21]dirname=/storage/ofd_packets [17:24:21]CheckFolder done [17:24:21]ProducePacketName [17:24:21]name=ofd_packets/00095220 [17:24:21]NVStorageSaveData ofd_packets/00095220 [17:24:21]File name is /storage/ofd_packets/00095220 [17:24:21]Write 301 bytes [17:24:21]NVStorageSaveData done [17:24:21]OFDSenderStorePacket done [17:24:21]KKMCreateOFDPacket done [17:24:21]NVStorageSaveData kkm_last_timestamp [17:24:21]File name is /storage/kkm_last_timestamp [17:24:21]Write 4 bytes [17:24:21]NVStorageSaveData done [17:24:21]ExternCall_PrintAddStr [17:24:21]wPrintStart [17:24:21]Write to MH i2c: 01 00 00 E3 41 24 [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: 01 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: 01 07 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: 01 07 00 E3 41 00 80 00 00 00 FF 0F B9 [17:24:21]RasterBufferAndPrint [17:24:21]line Счет N : (1)196191 [17:24:21]line ИНН: 02508201610067 [17:24:21]line Контрольно-Кассовый Чек [17:24:21]line ПРОДАЖА [17:24:21]line ТРК (МРК, ГНК) : 11 [17:24:21]line Товар: 2710124500 [17:24:21]line Аи-95-К-5 [17:24:21]line 50.360 * 69.50 [17:24:21]line = 3500.02 [17:24:21]line НДС 12% НСП 1% [17:24:21]line > о реализуемом товаре [17:24:21]line ИТОГО: 3500.02 [17:24:21]line НСП 1% : 30.97 [17:24:21]line НДС 12% : 371.68 [17:24:21]line Наличными: 0.00 [17:24:21]line Безнал.: 3500.02 [17:24:21]line Место: АЗС № 6 "Партнер Нефть" [17:24:21]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:24:21]line СНО: Общий режим [17:24:21]line Чек 150 12.03.2024 17:24 [17:24:21]line Смена: 327 ФФД: 1.0 [17:24:21]line ЗНМ: 0300000009 [17:24:21]line РНМ: 0000000000090555 [17:24:21]line Версия ККМ: 001 [17:24:21]line Платежная система: Бакай Банк [17:24:21]line ФМ: 0000000000874811 [17:24:21]line ФД: 95220 [17:24:21]line ФПД: 112288624515390 [17:24:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T172425&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95220&fm=112288624515390&tin=02508201610067®Number=0000000000090555&sum=350002 [17:24:21]OFD Sender: Processing packet 95220 [packets to send 30, broken 29] [17:24:21]ProducePacketName [17:24:21]name=ofd_packets/00095220 [17:24:21]OFD Sender: To server: pG, [17:24:21]CommunicateWithHost lk.salyk.kg:30040 [17:24:21]ConnectInit lk.salyk.kg [17:24:21]written 0, free lines is 4095 [17:24:21]Connected sock=10 [17:24:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 91 10 07 01 16 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 C4 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C9 8F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F4 73 01 00 35 04 06 00 66 20 3B 93 99 3E 8B 65 1E F2 05 29 9E 6A [17:24:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E9 51 47 00 38 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F4 73 01 00 F4 03 04 00 1F 3B F0 65 B6 04 01 00 00 D4 BF C9 1E 44 6D 98 E2 [17:24:21]CommunicateWithHost err = 0 [17:24:21]CheckOFDResponse [17:24:21]1017 (14) - 77093643461234 [17:24:21]1041 (16) - 0000000000874811 [17:24:21]1040 (4) - 95220 [17:24:21]1012 (4) - 12.03.2024 11:23 [17:24:21]1206 (1) - 0 [17:24:21]OFD Sender: Remove packet 95220 [17:24:21]ProducePacketName [17:24:21]name=ofd_packets/00095220 [17:24:21]NVStorageDeleteData [17:24:21]Write to MH i2c: 01 00 00 0D 42 4F [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: 01 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: 01 07 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: 01 07 00 0D 42 00 80 00 00 00 61 0D 44 [17:24:21]RasterBufferAndPrint [17:24:21]line [17:24:21]line [17:24:21]line [17:24:21]line [17:24:21]line [17:24:21]written 0, free lines is 3431 [17:24:21]process_action close_receipt done [17:24:21]requested_data is exist [17:24:21]produce_requested_data [17:24:21]requested_item fm.sn is exist - process it [17:24:21]wFMCommunicate request_size=4 [17:24:21]MH_SAM_APDU [17:24:21]CAPDU: 80 11 00 00 [17:24:21]Write to MH i2c: E2 08 00 14 42 80 11 00 00 00 00 00 00 D0 [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 17 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 17 00 14 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 20 [17:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:24:22]wFMCommunicate OK [17:24:22]requested_item fd.num is exist - process it [17:24:22]SAM_PROTO_GetFieldsCounters [17:24:22]wFMCommunicate request_size=4 [17:24:22]MH_SAM_APDU [17:24:22]CAPDU: 80 13 00 00 [17:24:22]Write to MH i2c: E2 08 00 15 42 80 13 00 00 00 00 00 00 D3 [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 62 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 62 00 15 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F4 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [17:24:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F4 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:22]wFMCommunicate OK [17:24:22]SAM_PROTO_GetFieldsCounters done [17:24:22]requested_item shift.num is exist - process it [17:24:22]requested_item shift.opened is exist - process it [17:24:22]req_shift_opened [17:24:22]FM_GetShiftState [17:24:22]SAM_PROTO_GetShiftState [17:24:22]wFMCommunicate request_size=4 [17:24:22]MH_SAM_APDU [17:24:22]CAPDU: 80 13 01 00 [17:24:22]Write to MH i2c: E2 08 00 16 42 80 13 01 00 00 00 00 00 D5 [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 0E 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 0E 00 16 42 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 49 [17:24:22]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:24:22]wFMCommunicate OK [17:24:22]SAM_PROTO_GetShiftState done [17:24:22]FM_GetShiftState done [17:24:22]req_shift_opened done [17:24:22]requested_item shift.open_date is exist - process it [17:24:22]req_shift_open_date [17:24:22]req_shift_open_date done [17:24:22]produce_requested_data done [17:24:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95220,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:24:22]process_action_free close_receipt [17:24:22]json_value_free [17:24:22]json_value_free done [17:24:22]process_json_proto returns [17:24:22]Send response to host [17:24:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95220,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:24:22]free response buf [17:24:22]execute_script done [17:24:22]execute_script returns [17:24:22]free content buf [17:24:22]Sock 8.Close socket [17:24:22]Sock 8.Thread stoped [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:09]accept exits with 9 [17:29:09]New connection [17:29:09]New thread 3066957156 created [17:29:09]Thread 3066813796 joined [17:29:09]Waiting for new connection... [17:29:09] Sock 9.Parse request [17:29:09]Sock 9.Check first char [17:29:09]Sock 9.First char is OK [17:29:09]request: POST /json_proto HTTP/1.0 [17:29:09]Method: POST [17:29:09]URL: /json_proto [17:29:09]Method is POST - this is cgi request [17:29:09]url: /json_proto [17:29:09]query_string will be loaded in cgi processing [17:29:09]execute_cgi json_proto POST (null) [17:29:09]execute_cgi path=json_proto method=POST [17:29:09]POST find Content-Length [17:29:09]Host: 172.17.62.67:8080 [17:29:09]Content-Length: 677 [17:29:09]Content-Type: application/json [17:29:09] [17:29:09]POST finish read [17:29:09]Found Content-Length = 677 [17:29:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.980, "sum" : 250.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:09]execute_script... [17:29:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.980, "sum" : 250.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:09]POST & json_proto [17:29:09]process_json_proto [17:29:09]json parsed OK: [17:29:09]protocol is kg_v1.0 [17:29:09]action value=close_receipt [17:29:09]process_action close_receipt [17:29:09]cmd_close_receipt [17:29:09]MH_GetDate [17:29:09]Write to MH i2c: F0 00 00 17 42 48 [17:29:09]Write i2c OK [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: F0 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: F0 05 00 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: F0 05 00 17 42 00 EB 90 F0 65 1D [17:29:09]GetLastDocTimeStamp 1710264265 [17:29:09]current date 1710264555 [17:29:09]FM_GetShiftState [17:29:09]SAM_PROTO_GetShiftState [17:29:09]wFMCommunicate request_size=4 [17:29:09]MH_SAM_APDU [17:29:09]CAPDU: 80 13 01 00 [17:29:09]Write to MH i2c: E2 08 00 18 42 80 13 01 00 00 00 00 00 D7 [17:29:09]Write i2c OK [17:29:09]MH_I2C_Read... [17:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:09]Read from MH i2c: E2 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: E2 0E 00 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: E2 0E 00 18 42 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 4B [17:29:09]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:29:09]wFMCommunicate OK [17:29:09]SAM_PROTO_GetShiftState done [17:29:09]FM_GetShiftState done [17:29:09]opened in 1710201976 [17:29:09]opened+sec_in_day 1710288376 [17:29:09]quantity*price = 25034 [17:29:09]sum+1 = 25035 [17:29:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 151 12.03.2024 17:29 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95221 ФПД: 116510490061398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T172915&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95221&fm=116510490061398&tin=02508201610067®Number=0000000000090555&sum=25000 [17:29:10]StoreToDocumentArchive [17:29:10]shift 327 fd 95221 [17:29:10]save to /storage/0327/doc_00095221 [17:29:10]save last doc name /storage/0327/doc_00095221 to /storage/kkm_last_doc_name [17:29:10]save OK [17:29:10]Clear old archive folders... [17:29:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:10]tlvbuf is 01AECD50 [17:29:10]SAM_PROTO_ClearQueue [17:29:10]wFMCommunicate request_size=4 [17:29:10]MH_SAM_APDU [17:29:10]CAPDU: 80 09 00 00 [17:29:10]Write to MH i2c: E2 08 00 25 42 80 09 00 00 00 00 00 00 D9 [17:29:10]Write i2c OK [17:29:10]MH_I2C_Read... [17:29:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:10]Read from MH i2c: E2 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: E2 03 00 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: E2 03 00 25 42 00 90 00 DB [17:29:10]RAPDU: 90 00 [17:29:10]wFMCommunicate OK [17:29:10]SAM_PROTO_ClearQueue done [17:29:10]KKMCreateOFDPacket [17:29:10]OFDProtocolAddRootSTLVToBuf [17:29:10]FM_MakeSignedData [17:29:10]FM_MakeSignedData [17:29:10]SAM_PROTO_SignData [17:29:10]wFMCommunicate request_size=4 [17:29:10]MH_SAM_APDU [17:29:10]CAPDU: 80 0D 01 02 [17:29:10]Write to MH i2c: E2 08 00 26 42 80 0D 01 02 00 00 00 00 E1 [17:29:10]Write i2c OK [17:29:10]MH_I2C_Read... [17:29:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:10]Read from MH i2c: E2 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: E2 03 00 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: E2 03 00 26 42 00 90 00 DC [17:29:10]RAPDU: 90 00 [17:29:10]wFMCommunicate OK [17:29:10]wFMCommunicate request_size=255 [17:29:10]MH_SAM_APDU [17:29:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 EB 90 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F5 73 01 00 35 04 06 00 69 [17:29:10]Write to MH i2c: E2 02 01 27 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 EB 90 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F5 73 01 00 35 04 06 00 69 00 00 33 [17:29:10]Write i2c OK [17:29:10]MH_I2C_Read... [17:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:10]Read from MH i2c: E2 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: E2 03 00 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: E2 03 00 27 42 00 90 00 DD [17:29:10]RAPDU: 90 00 [17:29:10]wFMCommunicate OK [17:29:10]wFMCommunicate request_size=10 [17:29:10]MH_SAM_APDU [17:29:10]CAPDU: 80 0D 02 02 05 F7 36 5F 6A 56 [17:29:10]Write to MH i2c: E2 0D 00 28 42 80 0D 02 02 05 00 F7 36 5F 6A 56 00 00 3A [17:29:10]Write i2c OK [17:29:10]MH_I2C_Read... [17:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:10]Read from MH i2c: E2 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: E2 03 00 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: E2 03 00 28 42 00 90 00 DE [17:29:10]RAPDU: 90 00 [17:29:10]wFMCommunicate OK [17:29:10]wFMCommunicate request_size=4 [17:29:10]MH_SAM_APDU [17:29:10]CAPDU: 80 0D 03 02 [17:29:10]Write to MH i2c: E2 08 00 29 42 80 0D 03 02 00 00 00 00 E6 [17:29:10]Write i2c OK [17:29:10]MH_I2C_Read... [17:29:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:10]Read from MH i2c: E2 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: E2 0B 00 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: E2 0B 00 29 42 00 D2 02 C6 DF 7F D3 39 F9 90 00 E4 [17:29:10]RAPDU: D2 02 C6 DF 7F D3 39 F9 90 00 [17:29:10]wFMCommunicate OK [17:29:10]SAM_PROTO_SignData done [17:29:10]FM_MakeSignedData done [17:29:10]CreateOFDProtocolMessage [17:29:10]wFMCommunicate request_size=4 [17:29:10]MH_SAM_APDU [17:29:10]CAPDU: 80 11 00 00 [17:29:10]Write to MH i2c: E2 08 00 2A 42 80 11 00 00 00 00 00 00 E6 [17:29:10]Write i2c OK [17:29:10]MH_I2C_Read... [17:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:10]Read from MH i2c: E2 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: E2 17 00 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: E2 17 00 2A 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 36 [17:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:29:10]wFMCommunicate OK [17:29:10]CreateOFDProtocolMessage done [17:29:10]OFDSenderStorePacket 95221 [17:29:10]StoreOFDPacket docnum=95221 [17:29:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 80 2A 07 01 03 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 EB 90 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F5 73 01 00 35 04 06 00 69 F7 36 5F 6A 56 D2 02 C6 DF 7F D3 39 F9 [17:29:10]CheckFolder [17:29:10]dirname=/storage/ofd_packets [17:29:10]CheckFolder done [17:29:10]ProducePacketName [17:29:10]name=ofd_packets/00095221 [17:29:10]NVStorageSaveData ofd_packets/00095221 [17:29:10]File name is /storage/ofd_packets/00095221 [17:29:10]Write 301 bytes [17:29:10]NVStorageSaveData done [17:29:10]OFDSenderStorePacket done [17:29:10]KKMCreateOFDPacket done [17:29:10]NVStorageSaveData kkm_last_timestamp [17:29:10]File name is /storage/kkm_last_timestamp [17:29:10]Write 4 bytes [17:29:10]NVStorageSaveData done [17:29:10]ExternCall_PrintAddStr [17:29:10]wPrintStart [17:29:10]Write to MH i2c: 01 00 00 2B 42 6D [17:29:10]Write i2c OK [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: 01 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: 01 07 00 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: 01 07 00 2B 42 00 80 00 00 00 FF 0F 02 [17:29:10]RasterBufferAndPrint [17:29:10]line Счет N : (1)196192 [17:29:10]line ИНН: 02508201610067 [17:29:10]line Контрольно-Кассовый Чек [17:29:10]line ПРОДАЖА [17:29:10]line ТРК (МРК, ГНК) : 32 [17:29:10]line Товар: 2710124130 [17:29:10]line Аи-92-К-5 [17:29:10]line 3.980 * 62.90 [17:29:10]line = 250.34 [17:29:10]line НДС 12% НСП 1% [17:29:10]line > о реализуемом товаре [17:29:10]line ОКРУГЛЕНИЕ: -0.34 [17:29:10]line ИТОГО: 250.00 [17:29:10]line Внесено: 250.00 [17:29:10]line СДАЧА: 0.00 [17:29:10]line НСП 1% : 2.21 [17:29:10]line НДС 12% : 26.58 [17:29:10]line Наличными: 250.00 [17:29:10]line Безнал.: 0.00 [17:29:10]line Место: АЗС № 6 "Партнер Нефть" [17:29:10]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:29:10]line СНО: Общий режим [17:29:10]line Чек 151 12.03.2024 17:29 [17:29:10]line Смена: 327 ФФД: 1.0 [17:29:10]line ЗНМ: 0300000009 [17:29:10]line РНМ: 0000000000090555 [17:29:10]line Версия ККМ: 001 [17:29:10]line ФМ: 0000000000874811 [17:29:10]line ФД: 95221 [17:29:10]line ФПД: 116510490061398 [17:29:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T172915&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95221&fm=116510490061398&tin=02508201610067®Number=0000000000090555&sum=25000 [17:29:11]OFD Sender: Processing packet 95221 [packets to send 30, broken 29] [17:29:11]ProducePacketName [17:29:11]name=ofd_packets/00095221 [17:29:11]OFD Sender: To server: pG, [17:29:11]CommunicateWithHost lk.salyk.kg:30040 [17:29:11]ConnectInit lk.salyk.kg [17:29:11]written 0, free lines is 4095 [17:29:11]Connected sock=10 [17:29:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 80 2A 07 01 03 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 EB 90 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F5 73 01 00 35 04 06 00 69 F7 36 5F 6A 56 D2 02 C6 DF 7F D3 39 F9 [17:29:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 67 3B 47 00 6C 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F5 73 01 00 F4 03 04 00 40 3C F0 65 B6 04 01 00 00 D8 95 8D 5D D1 58 CD 4D [17:29:11]CommunicateWithHost err = 0 [17:29:11]CheckOFDResponse [17:29:11]1017 (14) - 77093643461234 [17:29:11]1041 (16) - 0000000000874811 [17:29:11]1040 (4) - 95221 [17:29:11]1012 (4) - 12.03.2024 11:28 [17:29:11]1206 (1) - 0 [17:29:11]OFD Sender: Remove packet 95221 [17:29:11]ProducePacketName [17:29:11]name=ofd_packets/00095221 [17:29:11]NVStorageDeleteData [17:29:11]Write to MH i2c: 01 00 00 56 42 98 [17:29:11]Write i2c OK [17:29:11]MH_I2C_Read... [17:29:11]Read from MH i2c: 01 [17:29:11]MH_I2C_Read... [17:29:11]Read from MH i2c: 01 07 00 [17:29:11]MH_I2C_Read... [17:29:11]Read from MH i2c: 01 07 00 56 42 00 80 00 00 00 49 0D 75 [17:29:11]RasterBufferAndPrint [17:29:11]line [17:29:11]line [17:29:11]line [17:29:11]line [17:29:11]line [17:29:11]written 0, free lines is 3407 [17:29:11]process_action close_receipt done [17:29:11]requested_data is exist [17:29:11]produce_requested_data [17:29:11]requested_item fm.sn is exist - process it [17:29:11]wFMCommunicate request_size=4 [17:29:11]MH_SAM_APDU [17:29:11]CAPDU: 80 11 00 00 [17:29:11]Write to MH i2c: E2 08 00 5D 42 80 11 00 00 00 00 00 00 19 [17:29:11]Write i2c OK [17:29:11]MH_I2C_Read... [17:29:11]Read from MH i2c: E2 [17:29:11]MH_I2C_Read... [17:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:11]Read from MH i2c: E2 17 00 [17:29:11]MH_I2C_Read... [17:29:11]Read from MH i2c: E2 17 00 5D 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 69 [17:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:29:11]wFMCommunicate OK [17:29:11]requested_item fd.num is exist - process it [17:29:11]SAM_PROTO_GetFieldsCounters [17:29:11]wFMCommunicate request_size=4 [17:29:11]MH_SAM_APDU [17:29:11]CAPDU: 80 13 00 00 [17:29:11]Write to MH i2c: E2 08 00 5E 42 80 13 00 00 00 00 00 00 1C [17:29:11]Write i2c OK [17:29:11]MH_I2C_Read... [17:29:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:11]Read from MH i2c: E2 [17:29:11]MH_I2C_Read... [17:29:11]Read from MH i2c: E2 62 00 [17:29:11]MH_I2C_Read... [17:29:11]Read from MH i2c: E2 62 00 5E 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F5 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [17:29:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F5 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:11]wFMCommunicate OK [17:29:11]SAM_PROTO_GetFieldsCounters done [17:29:11]requested_item shift.num is exist - process it [17:29:11]requested_item shift.opened is exist - process it [17:29:11]req_shift_opened [17:29:11]FM_GetShiftState [17:29:11]SAM_PROTO_GetShiftState [17:29:11]wFMCommunicate request_size=4 [17:29:11]MH_SAM_APDU [17:29:11]CAPDU: 80 13 01 00 [17:29:11]Write to MH i2c: E2 08 00 5F 42 80 13 01 00 00 00 00 00 1E [17:29:11]Write i2c OK [17:29:11]MH_I2C_Read... [17:29:11]OFD Sender: No OFD packet to send [17:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:12]Read from MH i2c: E2 [17:29:12]MH_I2C_Read... [17:29:12]Read from MH i2c: E2 0E 00 [17:29:12]MH_I2C_Read... [17:29:12]Read from MH i2c: E2 0E 00 5F 42 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 92 [17:29:12]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:29:12]wFMCommunicate OK [17:29:12]SAM_PROTO_GetShiftState done [17:29:12]FM_GetShiftState done [17:29:12]req_shift_opened done [17:29:12]requested_item shift.open_date is exist - process it [17:29:12]req_shift_open_date [17:29:12]req_shift_open_date done [17:29:12]produce_requested_data done [17:29:12]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95221,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:29:12]process_action_free close_receipt [17:29:12]json_value_free [17:29:12]json_value_free done [17:29:12]process_json_proto returns [17:29:12]Send response to host [17:29:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95221,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:29:12]free response buf [17:29:12]execute_script done [17:29:12]execute_script returns [17:29:12]free content buf [17:29:12]Sock 9.Close socket [17:29:12]Sock 9.Thread stoped [17:29:16]OFD Sender: No OFD packet to send [17:29:21]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 [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]accept exits with 8 [17:33:22]New connection [17:33:22]New thread 3066813796 created [17:33:22]Thread 3066957156 joined [17:33:22]Waiting for new connection... [17:33:22] Sock 8.Parse request [17:33:22]Sock 8.Check first char [17:33:22]Sock 8.First char is OK [17:33:22]request: POST /json_proto HTTP/1.0 [17:33:22]Method: POST [17:33:22]URL: /json_proto [17:33:22]Method is POST - this is cgi request [17:33:22]url: /json_proto [17:33:22]query_string will be loaded in cgi processing [17:33:22]execute_cgi json_proto POST (null) [17:33:22]execute_cgi path=json_proto method=POST [17:33:22]POST find Content-Length [17:33:22]Host: 172.17.62.67:8080 [17:33:22]Content-Length: 677 [17:33:22]Content-Type: application/json [17:33:22] [17:33:22]POST finish read [17:33:22]Found Content-Length = 677 [17:33:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.730, "sum" : 360.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:22]execute_script... [17:33:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.730, "sum" : 360.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:22]POST & json_proto [17:33:22]process_json_proto [17:33:22]json parsed OK: [17:33:22]protocol is kg_v1.0 [17:33:22]action value=close_receipt [17:33:22]process_action close_receipt [17:33:22]cmd_close_receipt [17:33:22]MH_GetDate [17:33:22]Write to MH i2c: F0 00 00 60 42 91 [17:33:22]Write i2c OK [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: F0 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: F0 05 00 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: F0 05 00 60 42 00 E8 91 F0 65 64 [17:33:22]GetLastDocTimeStamp 1710264555 [17:33:22]current date 1710264808 [17:33:22]FM_GetShiftState [17:33:22]SAM_PROTO_GetShiftState [17:33:22]wFMCommunicate request_size=4 [17:33:22]MH_SAM_APDU [17:33:22]CAPDU: 80 13 01 00 [17:33:22]Write to MH i2c: E2 08 00 61 42 80 13 01 00 00 00 00 00 20 [17:33:22]Write i2c OK [17:33:22]MH_I2C_Read... [17:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:22]Read from MH i2c: E2 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: E2 0E 00 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: E2 0E 00 61 42 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 94 [17:33:22]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:33:22]wFMCommunicate OK [17:33:22]SAM_PROTO_GetShiftState done [17:33:22]FM_GetShiftState done [17:33:22]opened in 1710201976 [17:33:22]opened+sec_in_day 1710288376 [17:33:22]quantity*price = 36041 [17:33:22]sum+1 = 36043 [17:33:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.27 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 152 12.03.2024 17:33 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95222 ФПД: 262457447389426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T173328&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95222&fm=262457447389426&tin=02508201610067®Number=0000000000090555&sum=36000 [17:33:23]StoreToDocumentArchive [17:33:23]shift 327 fd 95222 [17:33:23]save to /storage/0327/doc_00095222 [17:33:23]save last doc name /storage/0327/doc_00095222 to /storage/kkm_last_doc_name [17:33:23]save OK [17:33:23]Clear old archive folders... [17:33:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:23]tlvbuf is 01B6DA40 [17:33:23]SAM_PROTO_ClearQueue [17:33:23]wFMCommunicate request_size=4 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 09 00 00 [17:33:23]Write to MH i2c: E2 08 00 6E 42 80 09 00 00 00 00 00 00 22 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 6E 42 00 90 00 24 [17:33:23]RAPDU: 90 00 [17:33:23]wFMCommunicate OK [17:33:23]SAM_PROTO_ClearQueue done [17:33:23]KKMCreateOFDPacket [17:33:23]OFDProtocolAddRootSTLVToBuf [17:33:23]FM_MakeSignedData [17:33:23]FM_MakeSignedData [17:33:23]SAM_PROTO_SignData [17:33:23]wFMCommunicate request_size=4 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 0D 01 02 [17:33:23]Write to MH i2c: E2 08 00 6F 42 80 0D 01 02 00 00 00 00 2A [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 6F 42 00 90 00 25 [17:33:23]RAPDU: 90 00 [17:33:23]wFMCommunicate OK [17:33:23]wFMCommunicate request_size=255 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CA 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E8 91 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F6 73 01 00 35 04 06 00 EE [17:33:23]Write to MH i2c: E2 02 01 70 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CA 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E8 91 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F6 73 01 00 35 04 06 00 EE 00 00 47 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 70 42 00 90 00 26 [17:33:23]RAPDU: 90 00 [17:33:23]wFMCommunicate OK [17:33:23]wFMCommunicate request_size=10 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 0D 02 02 05 B4 22 EB 98 F2 [17:33:23]Write to MH i2c: E2 0D 00 71 42 80 0D 02 02 05 00 B4 22 EB 98 F2 00 00 82 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 71 42 00 90 00 27 [17:33:23]RAPDU: 90 00 [17:33:23]wFMCommunicate OK [17:33:23]wFMCommunicate request_size=4 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 0D 03 02 [17:33:23]Write to MH i2c: E2 08 00 72 42 80 0D 03 02 00 00 00 00 2F [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 0B 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 0B 00 72 42 00 21 23 6D 63 AD 0A DA 5F 90 00 34 [17:33:23]RAPDU: 21 23 6D 63 AD 0A DA 5F 90 00 [17:33:23]wFMCommunicate OK [17:33:23]SAM_PROTO_SignData done [17:33:23]FM_MakeSignedData done [17:33:23]CreateOFDProtocolMessage [17:33:23]wFMCommunicate request_size=4 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 11 00 00 [17:33:23]Write to MH i2c: E2 08 00 73 42 80 11 00 00 00 00 00 00 2F [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 17 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 17 00 73 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7F [17:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:33:23]wFMCommunicate OK [17:33:23]CreateOFDProtocolMessage done [17:33:23]OFDSenderStorePacket 95222 [17:33:23]StoreOFDPacket docnum=95222 [17:33:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 6E 37 07 01 90 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CA 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E8 91 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F6 73 01 00 35 04 06 00 EE B4 22 EB 98 F2 21 23 6D 63 AD 0A DA 5F [17:33:23]CheckFolder [17:33:23]dirname=/storage/ofd_packets [17:33:23]CheckFolder done [17:33:23]ProducePacketName [17:33:23]name=ofd_packets/00095222 [17:33:23]NVStorageSaveData ofd_packets/00095222 [17:33:23]File name is /storage/ofd_packets/00095222 [17:33:23]Write 301 bytes [17:33:23]NVStorageSaveData done [17:33:23]OFDSenderStorePacket done [17:33:23]KKMCreateOFDPacket done [17:33:23]NVStorageSaveData kkm_last_timestamp [17:33:23]File name is /storage/kkm_last_timestamp [17:33:23]Write 4 bytes [17:33:23]NVStorageSaveData done [17:33:23]ExternCall_PrintAddStr [17:33:23]wPrintStart [17:33:23]Write to MH i2c: 01 00 00 74 42 B6 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: 01 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: 01 07 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: 01 07 00 74 42 00 80 00 00 00 FF 0F 4B [17:33:23]RasterBufferAndPrint [17:33:23]line Счет N : (1)196194 [17:33:23]line ИНН: 02508201610067 [17:33:23]line Контрольно-Кассовый Чек [17:33:23]line ПРОДАЖА [17:33:23]line ТРК (МРК, ГНК) : 12 [17:33:23]line Товар: 2710124130 [17:33:23]line Аи-92-К-5 [17:33:23]line 5.730 * 62.90 [17:33:23]line = 360.42 [17:33:23]line НДС 12% НСП 1% [17:33:23]line > о реализуемом товаре [17:33:23]line ОКРУГЛЕНИЕ: -0.42 [17:33:23]line ИТОГО: 360.00 [17:33:23]line Внесено: 360.00 [17:33:23]line СДАЧА: 0.00 [17:33:23]line НСП 1% : 3.19 [17:33:23]line НДС 12% : 38.27 [17:33:23]line Наличными: 360.00 [17:33:23]line Безнал.: 0.00 [17:33:23]line Место: АЗС № 6 "Партнер Нефть" [17:33:23]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:33:23]line СНО: Общий режим [17:33:23]line Чек 152 12.03.2024 17:33 [17:33:23]line Смена: 327 ФФД: 1.0 [17:33:23]line ЗНМ: 0300000009 [17:33:23]line РНМ: 0000000000090555 [17:33:23]line Версия ККМ: 001 [17:33:23]line ФМ: 0000000000874811 [17:33:23]line ФД: 95222 [17:33:23]line ФПД: 262457447389426 [17:33:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T173328&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95222&fm=262457447389426&tin=02508201610067®Number=0000000000090555&sum=36000 [17:33:24]OFD Sender: Processing packet 95222 [packets to send 30, broken 29] [17:33:24]ProducePacketName [17:33:24]name=ofd_packets/00095222 [17:33:24]OFD Sender: To server: pG, [17:33:24]CommunicateWithHost lk.salyk.kg:30040 [17:33:24]ConnectInit lk.salyk.kg [17:33:24]written 0, free lines is 4095 [17:33:24]Connected sock=10 [17:33:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 6E 37 07 01 90 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CA 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E8 91 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F6 73 01 00 35 04 06 00 EE B4 22 EB 98 F2 21 23 6D 63 AD 0A DA 5F [17:33:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 70 4A 47 00 7A F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F6 73 01 00 F4 03 04 00 3D 3D F0 65 B6 04 01 00 00 95 0A 8C C1 DE B4 62 93 [17:33:24]CommunicateWithHost err = 0 [17:33:24]CheckOFDResponse [17:33:24]1017 (14) - 77093643461234 [17:33:24]1041 (16) - 0000000000874811 [17:33:24]1040 (4) - 95222 [17:33:24]1012 (4) - 12.03.2024 11:32 [17:33:24]1206 (1) - 0 [17:33:24]OFD Sender: Remove packet 95222 [17:33:24]ProducePacketName [17:33:24]name=ofd_packets/00095222 [17:33:24]NVStorageDeleteData [17:33:24]Write to MH i2c: 01 00 00 9F 42 E1 [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: 01 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: 01 07 00 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: 01 07 00 9F 42 00 80 00 00 00 4B 0D C0 [17:33:24]RasterBufferAndPrint [17:33:24]line [17:33:24]line [17:33:24]line [17:33:24]line [17:33:24]line [17:33:24]written 0, free lines is 3409 [17:33:24]process_action close_receipt done [17:33:24]requested_data is exist [17:33:24]produce_requested_data [17:33:24]requested_item fm.sn is exist - process it [17:33:24]wFMCommunicate request_size=4 [17:33:24]MH_SAM_APDU [17:33:24]CAPDU: 80 11 00 00 [17:33:24]Write to MH i2c: E2 08 00 A6 42 80 11 00 00 00 00 00 00 62 [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: E2 [17:33:24]MH_I2C_Read... [17:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:24]Read from MH i2c: E2 17 00 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: E2 17 00 A6 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B2 [17:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:33:24]wFMCommunicate OK [17:33:24]requested_item fd.num is exist - process it [17:33:24]SAM_PROTO_GetFieldsCounters [17:33:24]wFMCommunicate request_size=4 [17:33:24]MH_SAM_APDU [17:33:24]CAPDU: 80 13 00 00 [17:33:24]Write to MH i2c: E2 08 00 A7 42 80 13 00 00 00 00 00 00 65 [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:24]Read from MH i2c: E2 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: E2 62 00 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: E2 62 00 A7 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F6 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [17:33:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F6 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:24]wFMCommunicate OK [17:33:24]SAM_PROTO_GetFieldsCounters done [17:33:24]requested_item shift.num is exist - process it [17:33:24]requested_item shift.opened is exist - process it [17:33:24]req_shift_opened [17:33:24]FM_GetShiftState [17:33:24]SAM_PROTO_GetShiftState [17:33:24]wFMCommunicate request_size=4 [17:33:24]MH_SAM_APDU [17:33:24]CAPDU: 80 13 01 00 [17:33:24]Write to MH i2c: E2 08 00 A8 42 80 13 01 00 00 00 00 00 67 [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:24]OFD Sender: No OFD packet to send [17:33:24]Read from MH i2c: E2 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: E2 0E 00 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: E2 0E 00 A8 42 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 DB [17:33:24]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:33:24]wFMCommunicate OK [17:33:24]SAM_PROTO_GetShiftState done [17:33:24]FM_GetShiftState done [17:33:24]req_shift_opened done [17:33:24]requested_item shift.open_date is exist - process it [17:33:24]req_shift_open_date [17:33:24]req_shift_open_date done [17:33:24]produce_requested_data done [17:33:24]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95222,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:33:24]process_action_free close_receipt [17:33:24]json_value_free [17:33:24]json_value_free done [17:33:24]process_json_proto returns [17:33:24]Send response to host [17:33:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95222,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:33:24]free response buf [17:33:24]execute_script done [17:33:24]execute_script returns [17:33:24]free content buf [17:33:24]Sock 8.Close socket [17:33:24]Sock 8.Thread stoped [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:02]accept exits with 9 [17:36:02]New connection [17:36:02]New thread 3066957156 created [17:36:02]Thread 3066813796 joined [17:36:02]Waiting for new connection... [17:36:02] Sock 9.Parse request [17:36:02]Sock 9.Check first char [17:36:02]Sock 9.First char is OK [17:36:02]request: POST /json_proto HTTP/1.0 [17:36:02]Method: POST [17:36:02]URL: /json_proto [17:36:02]Method is POST - this is cgi request [17:36:02]url: /json_proto [17:36:02]query_string will be loaded in cgi processing [17:36:02]execute_cgi json_proto POST (null) [17:36:02]execute_cgi path=json_proto method=POST [17:36:02]POST find Content-Length [17:36:02]Host: 172.17.62.67:8080 [17:36:02]Content-Length: 1210 [17:36:02]Content-Type: application/json [17:36:02] [17:36:02]POST finish read [17:36:02]Found Content-Length = 1210 [17:36:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196193\u000A12.03.2024 17:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 200.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 14180.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\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:02]execute_script... [17:36:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196193\u000A12.03.2024 17:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 200.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 14180.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\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:02]POST & json_proto [17:36:02]process_json_proto [17:36:02]json parsed OK: [17:36:02]protocol is kg_v1.0 [17:36:02]action value=print_text [17:36:02]process_action print_text [17:36:02]cmd_print_text [17:36:02]ExternCall_PrintAddStr [17:36:02]wPrintStart [17:36:02]Write to MH i2c: 01 00 00 A9 42 EB [17:36:02]Write i2c OK [17:36:02]MH_I2C_Read... [17:36:02]Read from MH i2c: 01 [17:36:02]MH_I2C_Read... [17:36:02]Read from MH i2c: 01 07 00 [17:36:02]MH_I2C_Read... [17:36:02]Read from MH i2c: 01 07 00 A9 42 00 80 00 00 00 FF 0F 80 [17:36:02]RasterBufferAndPrint [17:36:02]line *****ТОВАРНЫЙ ЧЕК***** [17:36:02]line АЗС 6 [17:36:02]line Партнер нефть [17:36:02]line 02508201610067 [17:36:02]line Кассир : Мыктыбекова И. [17:36:02]line Счет N : (1)196193 [17:36:02]line 12.03.2024 17:30 [17:36:02]line ПРОДАЖА [17:36:02]line ТРК (МРК, ГНК): 61 [17:36:02]line Вид ГСМ : 2710194210 [17:36:02]line ДТ-К-5 [17:36:02]line 200.000 x 70.90 [17:36:02]line ИТОГ: 14180.00 [17:36:02]line Тип оплаты: Талоны: Топливная Карта [17:36:02]line 74820 [17:36:02]line ______________________ [17:36:02]line (подпись) [17:36:02]written 0, free lines is 4095 [17:36:02]Write to MH i2c: 01 00 00 BD 42 FF [17:36:02]Write i2c OK [17:36:02]MH_I2C_Read... [17:36:02]Read from MH i2c: 01 [17:36:02]MH_I2C_Read... [17:36:02]Read from MH i2c: 01 07 00 [17:36:02]MH_I2C_Read... [17:36:02]Read from MH i2c: 01 07 00 BD 42 00 80 00 00 00 61 0E F5 [17:36:02]RasterBufferAndPrint [17:36:02]line [17:36:02]line [17:36:02]line [17:36:02]line [17:36:02]line [17:36:02]written 0, free lines is 3685 [17:36:02]process_action print_text done [17:36:02]requested_data is exist [17:36:02]produce_requested_data [17:36:02]requested_item fm.sn is exist - process it [17:36:02]wFMCommunicate request_size=4 [17:36:02]MH_SAM_APDU [17:36:02]CAPDU: 80 11 00 00 [17:36:02]Write to MH i2c: E2 08 00 C4 42 80 11 00 00 00 00 00 00 80 [17:36:02]Write i2c OK [17:36:02]MH_I2C_Read... [17:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:02]Read from MH i2c: E2 [17:36:02]MH_I2C_Read... [17:36:02]Read from MH i2c: E2 17 00 [17:36:02]MH_I2C_Read... [17:36:02]Read from MH i2c: E2 17 00 C4 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D0 [17:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:36:02]wFMCommunicate OK [17:36:02]requested_item fd.num is exist - process it [17:36:02]SAM_PROTO_GetFieldsCounters [17:36:02]wFMCommunicate request_size=4 [17:36:02]MH_SAM_APDU [17:36:02]CAPDU: 80 13 00 00 [17:36:02]Write to MH i2c: E2 08 00 C5 42 80 13 00 00 00 00 00 00 83 [17:36:02]Write i2c OK [17:36:02]MH_I2C_Read... [17:36:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:02]Read from MH i2c: E2 [17:36:02]MH_I2C_Read... [17:36:02]Read from MH i2c: E2 62 00 [17:36:02]MH_I2C_Read... [17:36:02]Read from MH i2c: E2 62 00 C5 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F6 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [17:36:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F6 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:02]wFMCommunicate OK [17:36:02]SAM_PROTO_GetFieldsCounters done [17:36:02]requested_item shift.num is exist - process it [17:36:02]requested_item shift.opened is exist - process it [17:36:02]req_shift_opened [17:36:02]FM_GetShiftState [17:36:02]SAM_PROTO_GetShiftState [17:36:02]wFMCommunicate request_size=4 [17:36:02]MH_SAM_APDU [17:36:02]CAPDU: 80 13 01 00 [17:36:02]Write to MH i2c: E2 08 00 C6 42 80 13 01 00 00 00 00 00 85 [17:36:02]Write i2c OK [17:36:02]MH_I2C_Read... [17:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:03]Read from MH i2c: E2 [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: E2 0E 00 [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: E2 0E 00 C6 42 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F9 [17:36:03]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:36:03]wFMCommunicate OK [17:36:03]SAM_PROTO_GetShiftState done [17:36:03]FM_GetShiftState done [17:36:03]req_shift_opened done [17:36:03]requested_item shift.open_date is exist - process it [17:36:03]req_shift_open_date [17:36:03]req_shift_open_date done [17:36:03]produce_requested_data done [17:36:03]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95222,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:36:03]process_action_free print_text [17:36:03]json_value_free [17:36:03]json_value_free done [17:36:03]process_json_proto returns [17:36:03]Send response to host [17:36:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95222,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:36:03]free response buf [17:36:03]execute_script done [17:36:03]execute_script returns [17:36:03]free content buf [17:36:03]Sock 9.Close socket [17:36:03]Sock 9.Thread stoped [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:16]accept exits with 8 [17:40:16]New connection [17:40:16]New thread 3066813796 created [17:40:16]Thread 3066957156 joined [17:40:16]Waiting for new connection... [17:40:16] Sock 8.Parse request [17:40:16]Sock 8.Check first char [17:40:16]Sock 8.First char is OK [17:40:16]request: POST /json_proto HTTP/1.0 [17:40:16]Method: POST [17:40:16]URL: /json_proto [17:40:16]Method is POST - this is cgi request [17:40:16]url: /json_proto [17:40:16]query_string will be loaded in cgi processing [17:40:16]execute_cgi json_proto POST (null) [17:40:16]execute_cgi path=json_proto method=POST [17:40:16]POST find Content-Length [17:40:16]Host: 172.17.62.67:8080 [17:40:16]Content-Length: 670 [17:40:16]Content-Type: application/json [17:40:16] [17:40:16]POST finish read [17:40:16]Found Content-Length = 670 [17:40:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 6.260, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:16]execute_script... [17:40:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 6.260, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:16]POST & json_proto [17:40:16]process_json_proto [17:40:16]json parsed OK: [17:40:16]protocol is kg_v1.0 [17:40:16]action value=close_receipt [17:40:16]process_action close_receipt [17:40:16]cmd_close_receipt [17:40:16]MH_GetDate [17:40:16]Write to MH i2c: F0 00 00 C7 42 F8 [17:40:16]Write i2c OK [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: F0 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: F0 05 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: F0 05 00 C7 42 00 86 93 F0 65 6B [17:40:16]GetLastDocTimeStamp 1710264808 [17:40:16]current date 1710265222 [17:40:16]FM_GetShiftState [17:40:16]SAM_PROTO_GetShiftState [17:40:16]wFMCommunicate request_size=4 [17:40:16]MH_SAM_APDU [17:40:16]CAPDU: 80 13 01 00 [17:40:16]Write to MH i2c: E2 08 00 C8 42 80 13 01 00 00 00 00 00 87 [17:40:16]Write i2c OK [17:40:16]MH_I2C_Read... [17:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:16]Read from MH i2c: E2 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 0E 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 0E 00 C8 42 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 FB [17:40:16]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:40:16]wFMCommunicate OK [17:40:16]SAM_PROTO_GetShiftState done [17:40:16]FM_GetShiftState done [17:40:16]opened in 1710201976 [17:40:16]opened+sec_in_day 1710288376 [17:40:16]quantity*price = 40001 [17:40:16]sum+1 = 40002 [17:40:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 153 12.03.2024 17:40 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95223 ФПД: 175116277009000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T174022&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95223&fm=175116277009000&tin=02508201610067®Number=0000000000090555&sum=40000 [17:40:17]StoreToDocumentArchive [17:40:17]shift 327 fd 95223 [17:40:17]save to /storage/0327/doc_00095223 [17:40:17]save last doc name /storage/0327/doc_00095223 to /storage/kkm_last_doc_name [17:40:17]save OK [17:40:17]Clear old archive folders... [17:40:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:40:17]tlvbuf is 01AD2270 [17:40:17]SAM_PROTO_ClearQueue [17:40:17]wFMCommunicate request_size=4 [17:40:17]MH_SAM_APDU [17:40:17]CAPDU: 80 09 00 00 [17:40:17]Write to MH i2c: E2 08 00 D5 42 80 09 00 00 00 00 00 00 89 [17:40:17]Write i2c OK [17:40:17]MH_I2C_Read... [17:40:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:17]Read from MH i2c: E2 [17:40:17]MH_I2C_Read... [17:40:17]Read from MH i2c: E2 03 00 [17:40:17]MH_I2C_Read... [17:40:17]Read from MH i2c: E2 03 00 D5 42 00 90 00 8B [17:40:17]RAPDU: 90 00 [17:40:17]wFMCommunicate OK [17:40:17]SAM_PROTO_ClearQueue done [17:40:17]KKMCreateOFDPacket [17:40:17]OFDProtocolAddRootSTLVToBuf [17:40:17]FM_MakeSignedData [17:40:17]FM_MakeSignedData [17:40:17]SAM_PROTO_SignData [17:40:17]wFMCommunicate request_size=4 [17:40:17]MH_SAM_APDU [17:40:17]CAPDU: 80 0D 01 02 [17:40:17]Write to MH i2c: E2 08 00 D6 42 80 0D 01 02 00 00 00 00 91 [17:40:17]Write i2c OK [17:40:17]MH_I2C_Read... [17:40:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:17]Read from MH i2c: E2 [17:40:17]MH_I2C_Read... [17:40:17]Read from MH i2c: E2 03 00 [17:40:17]MH_I2C_Read... [17:40:17]Read from MH i2c: E2 03 00 D6 42 00 90 00 8C [17:40:17]RAPDU: 90 00 [17:40:17]wFMCommunicate OK [17:40:17]wFMCommunicate request_size=255 [17:40:17]MH_SAM_APDU [17:40: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 86 93 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F7 73 01 00 35 04 06 00 [17:40:17]Write to MH i2c: E2 02 01 D7 42 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 86 93 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F7 73 01 00 35 04 06 00 00 00 28 [17:40:17]Write i2c OK [17:40:17]MH_I2C_Read... [17:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:17]Read from MH i2c: E2 [17:40:17]MH_I2C_Read... [17:40:17]Read from MH i2c: E2 03 00 [17:40:17]MH_I2C_Read... [17:40:17]Read from MH i2c: E2 03 00 D7 42 00 90 00 8D [17:40:17]RAPDU: 90 00 [17:40:17]wFMCommunicate OK [17:40:17]wFMCommunicate request_size=11 [17:40:17]MH_SAM_APDU [17:40:17]CAPDU: 80 0D 02 02 06 9F 44 6F 7C 4A 68 [17:40:17]Write to MH i2c: E2 0E 00 D8 42 80 0D 02 02 06 00 9F 44 6F 7C 4A 68 00 00 20 [17:40:17]Write i2c OK [17:40:17]MH_I2C_Read... [17:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:17]Read from MH i2c: E2 [17:40:17]MH_I2C_Read... [17:40:17]Read from MH i2c: E2 03 00 [17:40:17]MH_I2C_Read... [17:40:17]Read from MH i2c: E2 03 00 D8 42 00 90 00 8E [17:40:17]RAPDU: 90 00 [17:40:17]wFMCommunicate OK [17:40:17]wFMCommunicate request_size=4 [17:40:17]MH_SAM_APDU [17:40:17]CAPDU: 80 0D 03 02 [17:40:17]Write to MH i2c: E2 08 00 D9 42 80 0D 03 02 00 00 00 00 96 [17:40:17]Write i2c OK [17:40:17]MH_I2C_Read... [17:40:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:18]Read from MH i2c: E2 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: E2 0B 00 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: E2 0B 00 D9 42 00 2E A7 F5 13 57 63 C4 E9 90 00 DB [17:40:18]RAPDU: 2E A7 F5 13 57 63 C4 E9 90 00 [17:40:18]wFMCommunicate OK [17:40:18]SAM_PROTO_SignData done [17:40:18]FM_MakeSignedData done [17:40:18]CreateOFDProtocolMessage [17:40:18]wFMCommunicate request_size=4 [17:40:18]MH_SAM_APDU [17:40:18]CAPDU: 80 11 00 00 [17:40:18]Write to MH i2c: E2 08 00 DA 42 80 11 00 00 00 00 00 00 96 [17:40:18]Write i2c OK [17:40:18]MH_I2C_Read... [17:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:18]Read from MH i2c: E2 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: E2 17 00 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: E2 17 00 DA 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E6 [17:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:40:18]wFMCommunicate OK [17:40:18]CreateOFDProtocolMessage done [17:40:18]OFDSenderStorePacket 95223 [17:40:18]StoreOFDPacket docnum=95223 [17:40:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 1F 12 08 01 35 CF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 86 93 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F7 73 01 00 35 04 06 00 9F 44 6F 7C 4A 68 2E A7 F5 13 57 63 C4 E9 [17:40:18]CheckFolder [17:40:18]dirname=/storage/ofd_packets [17:40:18]CheckFolder done [17:40:18]ProducePacketName [17:40:18]name=ofd_packets/00095223 [17:40:18]NVStorageSaveData ofd_packets/00095223 [17:40:18]File name is /storage/ofd_packets/00095223 [17:40:18]Write 302 bytes [17:40:18]NVStorageSaveData done [17:40:18]OFDSenderStorePacket done [17:40:18]KKMCreateOFDPacket done [17:40:18]NVStorageSaveData kkm_last_timestamp [17:40:18]File name is /storage/kkm_last_timestamp [17:40:18]Write 4 bytes [17:40:18]NVStorageSaveData done [17:40:18]ExternCall_PrintAddStr [17:40:18]wPrintStart [17:40:18]Write to MH i2c: 01 00 00 DB 42 1D [17:40:18]Write i2c OK [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: 01 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: 01 07 00 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: 01 07 00 DB 42 00 80 00 00 00 FF 0F B2 [17:40:18]RasterBufferAndPrint [17:40:18]line Счет N : (1)196195 [17:40:18]line ИНН: 02508201610067 [17:40:18]line Контрольно-Кассовый Чек [17:40:18]line ПРОДАЖА [17:40:18]line ТРК (МРК, ГНК) : 23 [17:40:18]line Товар: 2710124130 [17:40:18]line SUPER 92-К-5 [17:40:18]line 6.260 * 63.90 [17:40:18]line = 400.01 [17:40:18]line НДС 12% НСП 1% [17:40:18]line > о реализуемом товаре [17:40:18]line ОКРУГЛЕНИЕ: -0.01 [17:40:18]line ИТОГО: 400.00 [17:40:18]line Внесено: 400.00 [17:40:18]line СДАЧА: 0.00 [17:40:18]line НСП 1% : 3.54 [17:40:18]line НДС 12% : 42.48 [17:40:18]line Наличными: 400.00 [17:40:18]line Безнал.: 0.00 [17:40:18]line Место: АЗС № 6 "Партнер Нефть" [17:40:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:40:18]line СНО: Общий режим [17:40:18]line Чек 153 12.03.2024 17:40 [17:40:18]line Смена: 327 ФФД: 1.0 [17:40:18]line ЗНМ: 0300000009 [17:40:18]line РНМ: 0000000000090555 [17:40:18]line Версия ККМ: 001 [17:40:18]line ФМ: 0000000000874811 [17:40:18]line ФД: 95223 [17:40:18]line ФПД: 175116277009000 [17:40:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T174022&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95223&fm=175116277009000&tin=02508201610067®Number=0000000000090555&sum=40000 [17:40:18]OFD Sender: Processing packet 95223 [packets to send 30, broken 29] [17:40:18]ProducePacketName [17:40:18]name=ofd_packets/00095223 [17:40:18]OFD Sender: To server: pG, [17:40:18]CommunicateWithHost lk.salyk.kg:30040 [17:40:18]ConnectInit lk.salyk.kg [17:40:18]written 0, free lines is 4095 [17:40:18]Connected sock=10 [17:40:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 1F 12 08 01 35 CF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 86 93 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F7 73 01 00 35 04 06 00 9F 44 6F 7C 4A 68 2E A7 F5 13 57 63 C4 E9 [17:40:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 AC 65 47 00 E3 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F7 73 01 00 F4 03 04 00 DC 3E F0 65 B6 04 01 00 00 07 93 98 CA B6 E9 26 34 [17:40:18]CommunicateWithHost err = 0 [17:40:18]CheckOFDResponse [17:40:18]1017 (14) - 77093643461234 [17:40:18]1041 (16) - 0000000000874811 [17:40:18]1040 (4) - 95223 [17:40:18]1012 (4) - 12.03.2024 11:39 [17:40:18]1206 (1) - 0 [17:40:18]OFD Sender: Remove packet 95223 [17:40:18]ProducePacketName [17:40:18]name=ofd_packets/00095223 [17:40:18]NVStorageDeleteData [17:40:18]Write to MH i2c: 01 00 00 06 43 49 [17:40:18]Write i2c OK [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: 01 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: 01 07 00 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: 01 07 00 06 43 00 80 00 00 00 52 0D 2F [17:40:18]RasterBufferAndPrint [17:40:18]line [17:40:18]line [17:40:18]line [17:40:18]line [17:40:18]line [17:40:18]written 0, free lines is 3416 [17:40:18]process_action close_receipt done [17:40:18]requested_data is exist [17:40:18]produce_requested_data [17:40:18]requested_item fm.sn is exist - process it [17:40:18]wFMCommunicate request_size=4 [17:40:18]MH_SAM_APDU [17:40:18]CAPDU: 80 11 00 00 [17:40:18]Write to MH i2c: E2 08 00 0D 43 80 11 00 00 00 00 00 00 CA [17:40:18]Write i2c OK [17:40:18]MH_I2C_Read... [17:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:18]Read from MH i2c: E2 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: E2 17 00 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: E2 17 00 0D 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1A [17:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:40:18]wFMCommunicate OK [17:40:18]requested_item fd.num is exist - process it [17:40:18]SAM_PROTO_GetFieldsCounters [17:40:18]wFMCommunicate request_size=4 [17:40:18]MH_SAM_APDU [17:40:18]CAPDU: 80 13 00 00 [17:40:18]Write to MH i2c: E2 08 00 0E 43 80 13 00 00 00 00 00 00 CD [17:40:18]Write i2c OK [17:40:18]MH_I2C_Read... [17:40:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:19]Read from MH i2c: E2 [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: E2 62 00 [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: E2 62 00 0E 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F7 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [17:40:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F7 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:19]wFMCommunicate OK [17:40:19]SAM_PROTO_GetFieldsCounters done [17:40:19]requested_item shift.num is exist - process it [17:40:19]requested_item shift.opened is exist - process it [17:40:19]req_shift_opened [17:40:19]FM_GetShiftState [17:40:19]SAM_PROTO_GetShiftState [17:40:19]wFMCommunicate request_size=4 [17:40:19]MH_SAM_APDU [17:40:19]CAPDU: 80 13 01 00 [17:40:19]Write to MH i2c: E2 08 00 0F 43 80 13 01 00 00 00 00 00 CF [17:40:19]Write i2c OK [17:40:19]MH_I2C_Read... [17:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:19]Read from MH i2c: E2 [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: E2 0E 00 [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: E2 0E 00 0F 43 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 43 [17:40:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:40:19]wFMCommunicate OK [17:40:19]SAM_PROTO_GetShiftState done [17:40:19]FM_GetShiftState done [17:40:19]req_shift_opened done [17:40:19]requested_item shift.open_date is exist - process it [17:40:19]req_shift_open_date [17:40:19]req_shift_open_date done [17:40:19]produce_requested_data done [17:40:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95223,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:40:19]process_action_free close_receipt [17:40:19]json_value_free [17:40:19]json_value_free done [17:40:19]process_json_proto returns [17:40:19]Send response to host [17:40:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95223,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:40:19]free response buf [17:40:19]execute_script done [17:40:19]execute_script returns [17:40:19]free content buf [17:40:19]Sock 8.Close socket [17:40:19]Sock 8.Thread stoped [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:17]accept exits with 9 [17:41:17]New connection [17:41:17]New thread 3066957156 created [17:41:17]Thread 3066813796 joined [17:41:17]Waiting for new connection... [17:41:17] Sock 9.Parse request [17:41:17]Sock 9.Check first char [17:41:17]Sock 9.First char is OK [17:41:17]request: POST /json_proto HTTP/1.0 [17:41:17]Method: POST [17:41:17]URL: /json_proto [17:41:17]Method is POST - this is cgi request [17:41:17]url: /json_proto [17:41:17]query_string will be loaded in cgi processing [17:41:17]execute_cgi json_proto POST (null) [17:41:17]execute_cgi path=json_proto method=POST [17:41:17]POST find Content-Length [17:41:17]Host: 172.17.62.67:8080 [17:41:17]Content-Length: 677 [17:41:17]Content-Type: application/json [17:41:17] [17:41:17]POST finish read [17:41:17]Found Content-Length = 677 [17:41:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:17]execute_script... [17:41: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)196196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:17]POST & json_proto [17:41:17]process_json_proto [17:41:17]json parsed OK: [17:41:17]protocol is kg_v1.0 [17:41:17]action value=close_receipt [17:41:17]process_action close_receipt [17:41:17]cmd_close_receipt [17:41:17]MH_GetDate [17:41:17]Write to MH i2c: F0 00 00 10 43 42 [17:41:17]Write i2c OK [17:41:17]MH_I2C_Read... [17:41:17]Read from MH i2c: F0 [17:41:17]MH_I2C_Read... [17:41:17]Read from MH i2c: F0 05 00 [17:41:17]MH_I2C_Read... [17:41:17]Read from MH i2c: F0 05 00 10 43 00 C3 93 F0 65 F2 [17:41:17]GetLastDocTimeStamp 1710265222 [17:41:17]current date 1710265283 [17:41:17]FM_GetShiftState [17:41:17]SAM_PROTO_GetShiftState [17:41:17]wFMCommunicate request_size=4 [17:41:17]MH_SAM_APDU [17:41:17]CAPDU: 80 13 01 00 [17:41:17]Write to MH i2c: E2 08 00 11 43 80 13 01 00 00 00 00 00 D1 [17:41:17]Write i2c OK [17:41:17]MH_I2C_Read... [17:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:17]Read from MH i2c: E2 [17:41:17]MH_I2C_Read... [17:41:17]Read from MH i2c: E2 0E 00 [17:41:17]MH_I2C_Read... [17:41:17]Read from MH i2c: E2 0E 00 11 43 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 45 [17:41:17]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:41:17]wFMCommunicate OK [17:41:17]SAM_PROTO_GetShiftState done [17:41:17]FM_GetShiftState done [17:41:17]opened in 1710201976 [17:41:17]opened+sec_in_day 1710288376 [17:41:17]quantity*price = 50005 [17:41:17]sum+1 = 50007 [17:41:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 154 12.03.2024 17:41 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95224 ФПД: 22225936709713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T174123&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95224&fm=22225936709713&tin=02508201610067®Number=0000000000090555&sum=50000 [17:41:18]StoreToDocumentArchive [17:41:18]shift 327 fd 95224 [17:41:18]save to /storage/0327/doc_00095224 [17:41:18]save last doc name /storage/0327/doc_00095224 to /storage/kkm_last_doc_name [17:41:18]save OK [17:41:18]Clear old archive folders... [17:41:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:18]tlvbuf is 01A34870 [17:41:18]SAM_PROTO_ClearQueue [17:41:18]wFMCommunicate request_size=4 [17:41:18]MH_SAM_APDU [17:41:18]CAPDU: 80 09 00 00 [17:41:18]Write to MH i2c: E2 08 00 1E 43 80 09 00 00 00 00 00 00 D3 [17:41:18]Write i2c OK [17:41:18]MH_I2C_Read... [17:41:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:18]Read from MH i2c: E2 [17:41:18]MH_I2C_Read... [17:41:18]Read from MH i2c: E2 03 00 [17:41:18]MH_I2C_Read... [17:41:18]Read from MH i2c: E2 03 00 1E 43 00 90 00 D5 [17:41:18]RAPDU: 90 00 [17:41:18]wFMCommunicate OK [17:41:18]SAM_PROTO_ClearQueue done [17:41:18]KKMCreateOFDPacket [17:41:18]OFDProtocolAddRootSTLVToBuf [17:41:18]FM_MakeSignedData [17:41:18]FM_MakeSignedData [17:41:18]SAM_PROTO_SignData [17:41:18]wFMCommunicate request_size=4 [17:41:18]MH_SAM_APDU [17:41:18]CAPDU: 80 0D 01 02 [17:41:18]Write to MH i2c: E2 08 00 1F 43 80 0D 01 02 00 00 00 00 DB [17:41:18]Write i2c OK [17:41:18]MH_I2C_Read... [17:41:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:18]Read from MH i2c: E2 [17:41:18]MH_I2C_Read... [17:41:18]Read from MH i2c: E2 03 00 [17:41:18]MH_I2C_Read... [17:41:18]Read from MH i2c: E2 03 00 1F 43 00 90 00 D6 [17:41:18]RAPDU: 90 00 [17:41:18]wFMCommunicate OK [17:41:18]wFMCommunicate request_size=255 [17:41:18]MH_SAM_APDU [17:41:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 C3 93 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F8 73 01 00 35 04 06 00 14 [17:41:18]Write to MH i2c: E2 02 01 20 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 C3 93 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F8 73 01 00 35 04 06 00 14 00 00 91 [17:41:18]Write i2c OK [17:41:18]MH_I2C_Read... [17:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:18]Read from MH i2c: E2 [17:41:18]MH_I2C_Read... [17:41:18]Read from MH i2c: E2 03 00 [17:41:18]MH_I2C_Read... [17:41:18]Read from MH i2c: E2 03 00 20 43 00 90 00 D7 [17:41:18]RAPDU: 90 00 [17:41:18]wFMCommunicate OK [17:41:18]wFMCommunicate request_size=10 [17:41:18]MH_SAM_APDU [17:41:18]CAPDU: 80 0D 02 02 05 36 E1 0F F8 51 [17:41:18]Write to MH i2c: E2 0D 00 21 43 80 0D 02 02 05 00 36 E1 0F F8 51 00 00 57 [17:41:18]Write i2c OK [17:41:18]MH_I2C_Read... [17:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:18]Read from MH i2c: E2 [17:41:18]MH_I2C_Read... [17:41:18]Read from MH i2c: E2 03 00 [17:41:18]MH_I2C_Read... [17:41:18]Read from MH i2c: E2 03 00 21 43 00 90 00 D8 [17:41:18]RAPDU: 90 00 [17:41:18]wFMCommunicate OK [17:41:18]wFMCommunicate request_size=4 [17:41:18]MH_SAM_APDU [17:41:18]CAPDU: 80 0D 03 02 [17:41:18]Write to MH i2c: E2 08 00 22 43 80 0D 03 02 00 00 00 00 E0 [17:41:18]Write i2c OK [17:41:18]MH_I2C_Read... [17:41:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:18]Read from MH i2c: E2 [17:41:18]MH_I2C_Read... [17:41:18]Read from MH i2c: E2 0B 00 [17:41:18]MH_I2C_Read... [17:41:18]Read from MH i2c: E2 0B 00 22 43 00 E2 82 5B DB 08 2D 50 60 90 00 60 [17:41:18]RAPDU: E2 82 5B DB 08 2D 50 60 90 00 [17:41:18]wFMCommunicate OK [17:41:18]SAM_PROTO_SignData done [17:41:18]FM_MakeSignedData done [17:41:18]CreateOFDProtocolMessage [17:41:18]wFMCommunicate request_size=4 [17:41:18]MH_SAM_APDU [17:41:18]CAPDU: 80 11 00 00 [17:41:18]Write to MH i2c: E2 08 00 23 43 80 11 00 00 00 00 00 00 E0 [17:41:18]Write i2c OK [17:41:18]MH_I2C_Read... [17:41:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:18]Read from MH i2c: E2 [17:41:18]MH_I2C_Read... [17:41:18]Read from MH i2c: E2 17 00 [17:41:18]MH_I2C_Read... [17:41:18]Read from MH i2c: E2 17 00 23 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 30 [17:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:41:18]wFMCommunicate OK [17:41:18]CreateOFDProtocolMessage done [17:41:18]OFDSenderStorePacket 95224 [17:41:18]StoreOFDPacket docnum=95224 [17:41:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 FD F8 07 01 A9 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 C3 93 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F8 73 01 00 35 04 06 00 14 36 E1 0F F8 51 E2 82 5B DB 08 2D 50 60 [17:41:18]CheckFolder [17:41:18]dirname=/storage/ofd_packets [17:41:18]CheckFolder done [17:41:18]ProducePacketName [17:41:18]name=ofd_packets/00095224 [17:41:18]NVStorageSaveData ofd_packets/00095224 [17:41:18]File name is /storage/ofd_packets/00095224 [17:41:18]Write 301 bytes [17:41:18]NVStorageSaveData done [17:41:18]OFDSenderStorePacket done [17:41:18]KKMCreateOFDPacket done [17:41:18]NVStorageSaveData kkm_last_timestamp [17:41:18]File name is /storage/kkm_last_timestamp [17:41:18]Write 4 bytes [17:41:18]NVStorageSaveData done [17:41:18]ExternCall_PrintAddStr [17:41:18]wPrintStart [17:41:18]Write to MH i2c: 01 00 00 24 43 67 [17:41:18]Write i2c OK [17:41:18]MH_I2C_Read... [17:41:18]Read from MH i2c: 01 [17:41:18]MH_I2C_Read... [17:41:18]Read from MH i2c: 01 07 00 [17:41:18]MH_I2C_Read... [17:41:18]Read from MH i2c: 01 07 00 24 43 00 80 00 00 00 FF 0F FC [17:41:18]RasterBufferAndPrint [17:41:18]line Счет N : (1)196196 [17:41:18]line ИНН: 02508201610067 [17:41:18]line Контрольно-Кассовый Чек [17:41:18]line ПРОДАЖА [17:41:18]line ТРК (МРК, ГНК) : 12 [17:41:18]line Товар: 2710124130 [17:41:18]line Аи-92-К-5 [17:41:18]line 7.950 * 62.90 [17:41:18]line = 500.06 [17:41:18]line НДС 12% НСП 1% [17:41:18]line > о реализуемом товаре [17:41:18]line ОКРУГЛЕНИЕ: -0.06 [17:41:18]line ИТОГО: 500.00 [17:41:18]line Внесено: 500.00 [17:41:18]line СДАЧА: 0.00 [17:41:18]line НСП 1% : 4.42 [17:41:18]line НДС 12% : 53.10 [17:41:18]line Наличными: 500.00 [17:41:18]line Безнал.: 0.00 [17:41:18]line Место: АЗС № 6 "Партнер Нефть" [17:41:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:41:18]line СНО: Общий режим [17:41:18]line Чек 154 12.03.2024 17:41 [17:41:18]line Смена: 327 ФФД: 1.0 [17:41:18]line ЗНМ: 0300000009 [17:41:18]line РНМ: 0000000000090555 [17:41:18]line Версия ККМ: 001 [17:41:18]line ФМ: 0000000000874811 [17:41:18]line ФД: 95224 [17:41:18]line ФПД: 22225936709713 [17:41:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T174123&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95224&fm=22225936709713&tin=02508201610067®Number=0000000000090555&sum=50000 [17:41:19]OFD Sender: Processing packet 95224 [packets to send 30, broken 29] [17:41:19]ProducePacketName [17:41:19]name=ofd_packets/00095224 [17:41:19]OFD Sender: To server: pG, [17:41:19]CommunicateWithHost lk.salyk.kg:30040 [17:41:19]ConnectInit lk.salyk.kg [17:41:19]written 0, free lines is 4095 [17:41:19]Connected sock=10 [17:41:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 FD F8 07 01 A9 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 C3 93 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F8 73 01 00 35 04 06 00 14 36 E1 0F F8 51 E2 82 5B DB 08 2D 50 60 [17:41:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 35 1E 47 00 5A 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F8 73 01 00 F4 03 04 00 19 3F F0 65 B6 04 01 00 00 8D 2F CF 5B 16 DC AA F6 [17:41:19]CommunicateWithHost err = 0 [17:41:19]CheckOFDResponse [17:41:19]1017 (14) - 77093643461234 [17:41:19]1041 (16) - 0000000000874811 [17:41:19]1040 (4) - 95224 [17:41:19]1012 (4) - 12.03.2024 11:40 [17:41:19]1206 (1) - 0 [17:41:19]OFD Sender: Remove packet 95224 [17:41:19]ProducePacketName [17:41:19]name=ofd_packets/00095224 [17:41:19]NVStorageDeleteData [17:41:19]Write to MH i2c: 01 00 00 4F 43 92 [17:41:19]Write i2c OK [17:41:19]MH_I2C_Read... [17:41:19]Read from MH i2c: 01 [17:41:19]MH_I2C_Read... [17:41:19]Read from MH i2c: 01 07 00 [17:41:19]MH_I2C_Read... [17:41:19]Read from MH i2c: 01 07 00 4F 43 00 80 00 00 00 4E 0D 74 [17:41:19]RasterBufferAndPrint [17:41:19]line [17:41:19]line [17:41:19]line [17:41:19]line [17:41:19]line [17:41:19]written 0, free lines is 3412 [17:41:19]process_action close_receipt done [17:41:19]requested_data is exist [17:41:19]produce_requested_data [17:41:19]requested_item fm.sn is exist - process it [17:41:19]wFMCommunicate request_size=4 [17:41:19]MH_SAM_APDU [17:41:19]CAPDU: 80 11 00 00 [17:41:19]Write to MH i2c: E2 08 00 56 43 80 11 00 00 00 00 00 00 13 [17:41:19]Write i2c OK [17:41:19]MH_I2C_Read... [17:41:19]Read from MH i2c: E2 [17:41:19]MH_I2C_Read... [17:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:19]Read from MH i2c: E2 17 00 [17:41:19]MH_I2C_Read... [17:41:19]Read from MH i2c: E2 17 00 56 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 63 [17:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:41:19]wFMCommunicate OK [17:41:19]requested_item fd.num is exist - process it [17:41:19]SAM_PROTO_GetFieldsCounters [17:41:19]wFMCommunicate request_size=4 [17:41:19]MH_SAM_APDU [17:41:19]CAPDU: 80 13 00 00 [17:41:19]Write to MH i2c: E2 08 00 57 43 80 13 00 00 00 00 00 00 16 [17:41:19]Write i2c OK [17:41:19]MH_I2C_Read... [17:41:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:20]Read from MH i2c: E2 [17:41:20]MH_I2C_Read... [17:41:20]Read from MH i2c: E2 62 00 [17:41:20]MH_I2C_Read... [17:41:20]Read from MH i2c: E2 62 00 57 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F8 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [17:41:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F8 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:20]wFMCommunicate OK [17:41:20]SAM_PROTO_GetFieldsCounters done [17:41:20]requested_item shift.num is exist - process it [17:41:20]requested_item shift.opened is exist - process it [17:41:20]req_shift_opened [17:41:20]FM_GetShiftState [17:41:20]SAM_PROTO_GetShiftState [17:41:20]wFMCommunicate request_size=4 [17:41:20]MH_SAM_APDU [17:41:20]CAPDU: 80 13 01 00 [17:41:20]Write to MH i2c: E2 08 00 58 43 80 13 01 00 00 00 00 00 18 [17:41:20]Write i2c OK [17:41:20]MH_I2C_Read... [17:41:20]OFD Sender: No OFD packet to send [17:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:20]Read from MH i2c: E2 [17:41:20]MH_I2C_Read... [17:41:20]Read from MH i2c: E2 0E 00 [17:41:20]MH_I2C_Read... [17:41:20]Read from MH i2c: E2 0E 00 58 43 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 8C [17:41:20]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:41:20]wFMCommunicate OK [17:41:20]SAM_PROTO_GetShiftState done [17:41:20]FM_GetShiftState done [17:41:20]req_shift_opened done [17:41:20]requested_item shift.open_date is exist - process it [17:41:20]req_shift_open_date [17:41:20]req_shift_open_date done [17:41:20]produce_requested_data done [17:41:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95224,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:41:20]process_action_free close_receipt [17:41:20]json_value_free [17:41:20]json_value_free done [17:41:20]process_json_proto returns [17:41:20]Send response to host [17:41:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95224,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:41:20]free response buf [17:41:20]execute_script done [17:41:20]execute_script returns [17:41:20]free content buf [17:41:20]Sock 9.Close socket [17:41:20]Sock 9.Thread stoped [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:15]accept exits with 8 [17:42:15]New connection [17:42:15]New thread 3066813796 created [17:42:15]Thread 3066957156 joined [17:42:15]Waiting for new connection... [17:42:15] Sock 8.Parse request [17:42:15]Sock 8.Check first char [17:42:15]Sock 8.First char is OK [17:42:15]request: POST /json_proto HTTP/1.0 [17:42:15]Method: POST [17:42:15]URL: /json_proto [17:42:15]Method is POST - this is cgi request [17:42:15]url: /json_proto [17:42:15]query_string will be loaded in cgi processing [17:42:15]execute_cgi json_proto POST (null) [17:42:15]execute_cgi path=json_proto method=POST [17:42:15]POST find Content-Length [17:42:15]Host: 172.17.62.67:8080 [17:42:15]Content-Length: 677 [17:42:15]Content-Type: application/json [17:42:15] [17:42:15]POST finish read [17:42:15]Found Content-Length = 677 [17:42:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:15]execute_script... [17:42: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)196197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:15]POST & json_proto [17:42:15]process_json_proto [17:42:15]json parsed OK: [17:42:15]protocol is kg_v1.0 [17:42:15]action value=close_receipt [17:42:15]process_action close_receipt [17:42:15]cmd_close_receipt [17:42:15]MH_GetDate [17:42:15]Write to MH i2c: F0 00 00 59 43 8B [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: F0 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: F0 05 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: F0 05 00 59 43 00 FD 93 F0 65 75 [17:42:15]GetLastDocTimeStamp 1710265283 [17:42:15]current date 1710265341 [17:42:15]FM_GetShiftState [17:42:15]SAM_PROTO_GetShiftState [17:42:15]wFMCommunicate request_size=4 [17:42:15]MH_SAM_APDU [17:42:15]CAPDU: 80 13 01 00 [17:42:15]Write to MH i2c: E2 08 00 5A 43 80 13 01 00 00 00 00 00 1A [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 0E 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 0E 00 5A 43 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 8E [17:42:15]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:42:15]wFMCommunicate OK [17:42:15]SAM_PROTO_GetShiftState done [17:42:15]FM_GetShiftState done [17:42:15]opened in 1710201976 [17:42:15]opened+sec_in_day 1710288376 [17:42:15]quantity*price = 50005 [17:42:15]sum+1 = 50007 [17:42:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 155 12.03.2024 17:42 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95225 ФПД: 84933789129923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T174221&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95225&fm=84933789129923&tin=02508201610067®Number=0000000000090555&sum=50000 [17:42:16]StoreToDocumentArchive [17:42:16]shift 327 fd 95225 [17:42:16]save to /storage/0327/doc_00095225 [17:42:16]save last doc name /storage/0327/doc_00095225 to /storage/kkm_last_doc_name [17:42:16]save OK [17:42:16]Clear old archive folders... [17:42:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:42:16]tlvbuf is 01A714A0 [17:42:16]SAM_PROTO_ClearQueue [17:42:16]wFMCommunicate request_size=4 [17:42:16]MH_SAM_APDU [17:42:16]CAPDU: 80 09 00 00 [17:42:16]Write to MH i2c: E2 08 00 67 43 80 09 00 00 00 00 00 00 1C [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:16]Read from MH i2c: E2 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 03 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 03 00 67 43 00 90 00 1E [17:42:16]RAPDU: 90 00 [17:42:16]wFMCommunicate OK [17:42:16]SAM_PROTO_ClearQueue done [17:42:16]KKMCreateOFDPacket [17:42:16]OFDProtocolAddRootSTLVToBuf [17:42:16]FM_MakeSignedData [17:42:16]FM_MakeSignedData [17:42:16]SAM_PROTO_SignData [17:42:16]wFMCommunicate request_size=4 [17:42:16]MH_SAM_APDU [17:42:16]CAPDU: 80 0D 01 02 [17:42:16]Write to MH i2c: E2 08 00 68 43 80 0D 01 02 00 00 00 00 24 [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:16]Read from MH i2c: E2 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 03 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 03 00 68 43 00 90 00 1F [17:42:16]RAPDU: 90 00 [17:42:16]wFMCommunicate OK [17:42:16]wFMCommunicate request_size=255 [17:42:16]MH_SAM_APDU [17:42:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FD 93 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F9 73 01 00 35 04 06 00 4D [17:42:16]Write to MH i2c: E2 02 01 69 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FD 93 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F9 73 01 00 35 04 06 00 4D 00 00 4F [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:16]Read from MH i2c: E2 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 03 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 03 00 69 43 00 90 00 20 [17:42:16]RAPDU: 90 00 [17:42:16]wFMCommunicate OK [17:42:16]wFMCommunicate request_size=10 [17:42:16]MH_SAM_APDU [17:42:16]CAPDU: 80 0D 02 02 05 3F 30 54 9C C3 [17:42:16]Write to MH i2c: E2 0D 00 6A 43 80 0D 02 02 05 00 3F 30 54 9C C3 00 00 53 [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:16]Read from MH i2c: E2 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 03 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 03 00 6A 43 00 90 00 21 [17:42:16]RAPDU: 90 00 [17:42:16]wFMCommunicate OK [17:42:16]wFMCommunicate request_size=4 [17:42:16]MH_SAM_APDU [17:42:16]CAPDU: 80 0D 03 02 [17:42:16]Write to MH i2c: E2 08 00 6B 43 80 0D 03 02 00 00 00 00 29 [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:16]Read from MH i2c: E2 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 0B 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 0B 00 6B 43 00 39 A3 9E 05 4C 8A 4A C7 90 00 90 [17:42:16]RAPDU: 39 A3 9E 05 4C 8A 4A C7 90 00 [17:42:16]wFMCommunicate OK [17:42:16]SAM_PROTO_SignData done [17:42:16]FM_MakeSignedData done [17:42:16]CreateOFDProtocolMessage [17:42:16]wFMCommunicate request_size=4 [17:42:16]MH_SAM_APDU [17:42:16]CAPDU: 80 11 00 00 [17:42:16]Write to MH i2c: E2 08 00 6C 43 80 11 00 00 00 00 00 00 29 [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:16]Read from MH i2c: E2 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 17 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 17 00 6C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 79 [17:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:42:16]wFMCommunicate OK [17:42:16]CreateOFDProtocolMessage done [17:42:16]OFDSenderStorePacket 95225 [17:42:16]StoreOFDPacket docnum=95225 [17:42:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2B D2 07 01 F2 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FD 93 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F9 73 01 00 35 04 06 00 4D 3F 30 54 9C C3 39 A3 9E 05 4C 8A 4A C7 [17:42:16]CheckFolder [17:42:16]dirname=/storage/ofd_packets [17:42:16]CheckFolder done [17:42:16]ProducePacketName [17:42:16]name=ofd_packets/00095225 [17:42:16]NVStorageSaveData ofd_packets/00095225 [17:42:16]File name is /storage/ofd_packets/00095225 [17:42:16]Write 301 bytes [17:42:16]NVStorageSaveData done [17:42:16]OFDSenderStorePacket done [17:42:16]KKMCreateOFDPacket done [17:42:16]NVStorageSaveData kkm_last_timestamp [17:42:16]File name is /storage/kkm_last_timestamp [17:42:16]Write 4 bytes [17:42:16]NVStorageSaveData done [17:42:16]ExternCall_PrintAddStr [17:42:16]wPrintStart [17:42:16]Write to MH i2c: 01 00 00 6D 43 B0 [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: 01 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: 01 07 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: 01 07 00 6D 43 00 80 00 00 00 FF 0F 45 [17:42:16]RasterBufferAndPrint [17:42:16]line Счет N : (1)196197 [17:42:16]line ИНН: 02508201610067 [17:42:16]line Контрольно-Кассовый Чек [17:42:16]line ПРОДАЖА [17:42:16]line ТРК (МРК, ГНК) : 42 [17:42:16]line Товар: 2710124130 [17:42:16]line Аи-92-К-5 [17:42:16]line 7.950 * 62.90 [17:42:16]line = 500.06 [17:42:16]line НДС 12% НСП 1% [17:42:16]line > о реализуемом товаре [17:42:16]line ОКРУГЛЕНИЕ: -0.06 [17:42:16]line ИТОГО: 500.00 [17:42:16]line Внесено: 500.00 [17:42:16]line СДАЧА: 0.00 [17:42:16]line НСП 1% : 4.42 [17:42:16]line НДС 12% : 53.10 [17:42:16]line Наличными: 500.00 [17:42:16]line Безнал.: 0.00 [17:42:16]line Место: АЗС № 6 "Партнер Нефть" [17:42:16]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:42:16]line СНО: Общий режим [17:42:16]line Чек 155 12.03.2024 17:42 [17:42:16]line Смена: 327 ФФД: 1.0 [17:42:16]line ЗНМ: 0300000009 [17:42:16]line РНМ: 0000000000090555 [17:42:16]line Версия ККМ: 001 [17:42:16]line ФМ: 0000000000874811 [17:42:16]line ФД: 95225 [17:42:16]line ФПД: 84933789129923 [17:42:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T174221&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95225&fm=84933789129923&tin=02508201610067®Number=0000000000090555&sum=50000 [17:42:17]OFD Sender: Processing packet 95225 [packets to send 30, broken 29] [17:42:17]ProducePacketName [17:42:17]name=ofd_packets/00095225 [17:42:17]OFD Sender: To server: pG, [17:42:17]CommunicateWithHost lk.salyk.kg:30040 [17:42:17]ConnectInit lk.salyk.kg [17:42:17]written 0, free lines is 4095 [17:42:17]Connected sock=10 [17:42:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2B D2 07 01 F2 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FD 93 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F9 73 01 00 35 04 06 00 4D 3F 30 54 9C C3 39 A3 9E 05 4C 8A 4A C7 [17:42:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 76 F1 47 00 FD 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F9 73 01 00 F4 03 04 00 53 3F F0 65 B6 04 01 00 00 10 DB 53 C7 CE 30 D8 5D [17:42:17]CommunicateWithHost err = 0 [17:42:17]CheckOFDResponse [17:42:17]1017 (14) - 77093643461234 [17:42:17]1041 (16) - 0000000000874811 [17:42:17]1040 (4) - 95225 [17:42:17]1012 (4) - 12.03.2024 11:41 [17:42:17]1206 (1) - 0 [17:42:17]OFD Sender: Remove packet 95225 [17:42:17]ProducePacketName [17:42:17]name=ofd_packets/00095225 [17:42:17]NVStorageDeleteData [17:42:17]Write to MH i2c: 01 00 00 98 43 DB [17:42:17]Write i2c OK [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: 01 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: 01 07 00 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: 01 07 00 98 43 00 80 00 00 00 46 0D B5 [17:42:17]RasterBufferAndPrint [17:42:17]line [17:42:17]line [17:42:17]line [17:42:17]line [17:42:17]line [17:42:17]written 0, free lines is 3404 [17:42:17]process_action close_receipt done [17:42:17]requested_data is exist [17:42:17]produce_requested_data [17:42:17]requested_item fm.sn is exist - process it [17:42:17]wFMCommunicate request_size=4 [17:42:17]MH_SAM_APDU [17:42:17]CAPDU: 80 11 00 00 [17:42:17]Write to MH i2c: E2 08 00 9F 43 80 11 00 00 00 00 00 00 5C [17:42:17]Write i2c OK [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: E2 [17:42:17]MH_I2C_Read... [17:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:17]Read from MH i2c: E2 17 00 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: E2 17 00 9F 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AC [17:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:42:17]wFMCommunicate OK [17:42:17]requested_item fd.num is exist - process it [17:42:17]SAM_PROTO_GetFieldsCounters [17:42:17]wFMCommunicate request_size=4 [17:42:17]MH_SAM_APDU [17:42:17]CAPDU: 80 13 00 00 [17:42:17]Write to MH i2c: E2 08 00 A0 43 80 13 00 00 00 00 00 00 5F [17:42:17]Write i2c OK [17:42:17]MH_I2C_Read... [17:42:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:17]Read from MH i2c: E2 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: E2 62 00 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: E2 62 00 A0 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F9 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [17:42:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F9 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:17]wFMCommunicate OK [17:42:17]SAM_PROTO_GetFieldsCounters done [17:42:17]requested_item shift.num is exist - process it [17:42:17]requested_item shift.opened is exist - process it [17:42:17]req_shift_opened [17:42:17]FM_GetShiftState [17:42:17]SAM_PROTO_GetShiftState [17:42:17]wFMCommunicate request_size=4 [17:42:17]MH_SAM_APDU [17:42:17]CAPDU: 80 13 01 00 [17:42:17]Write to MH i2c: E2 08 00 A1 43 80 13 01 00 00 00 00 00 61 [17:42:17]Write i2c OK [17:42:17]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 0E 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 0E 00 A1 43 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D5 [17:42:18]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:42:18]wFMCommunicate OK [17:42:18]SAM_PROTO_GetShiftState done [17:42:18]FM_GetShiftState done [17:42:18]req_shift_opened done [17:42:18]requested_item shift.open_date is exist - process it [17:42:18]req_shift_open_date [17:42:18]req_shift_open_date done [17:42:18]produce_requested_data done [17:42:18]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95225,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:42:18]process_action_free close_receipt [17:42:18]json_value_free [17:42:18]json_value_free done [17:42:18]process_json_proto returns [17:42:18]Send response to host [17:42:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95225,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:42:18]free response buf [17:42:18]execute_script done [17:42:18]execute_script returns [17:42:18]free content buf [17:42:18]Sock 8.Close socket [17:42:18]Sock 8.Thread stoped [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:21]accept exits with 9 [17:47:21]New connection [17:47:21]New thread 3066957156 created [17:47:21]Thread 3066813796 joined [17:47:21]Waiting for new connection... [17:47:21] Sock 9.Parse request [17:47:21]Sock 9.Check first char [17:47:21]Sock 9.First char is OK [17:47:21]request: POST /json_proto HTTP/1.0 [17:47:21]Method: POST [17:47:21]URL: /json_proto [17:47:21]Method is POST - this is cgi request [17:47:21]url: /json_proto [17:47:21]query_string will be loaded in cgi processing [17:47:21]execute_cgi json_proto POST (null) [17:47:21]execute_cgi path=json_proto method=POST [17:47:21]POST find Content-Length [17:47:21]Host: 172.17.62.67:8080 [17:47:21]Content-Length: 677 [17:47:21]Content-Type: application/json [17:47:21] [17:47:21]POST finish read [17:47:21]Found Content-Length = 677 [17:47:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:21]execute_script... [17: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)196198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:21]POST & json_proto [17:47:21]process_json_proto [17:47:21]json parsed OK: [17:47:21]protocol is kg_v1.0 [17:47:21]action value=close_receipt [17:47:21]process_action close_receipt [17:47:21]cmd_close_receipt [17:47:21]MH_GetDate [17:47:21]Write to MH i2c: F0 00 00 A2 43 D4 [17:47:21]Write i2c OK [17:47:21]MH_I2C_Read... [17:47:21]Read from MH i2c: F0 [17:47:21]MH_I2C_Read... [17:47:21]Read from MH i2c: F0 05 00 [17:47:21]MH_I2C_Read... [17:47:21]Read from MH i2c: F0 05 00 A2 43 00 2F 95 F0 65 F2 [17:47:21]GetLastDocTimeStamp 1710265341 [17:47:21]current date 1710265647 [17:47:21]FM_GetShiftState [17:47:21]SAM_PROTO_GetShiftState [17:47:21]wFMCommunicate request_size=4 [17:47:21]MH_SAM_APDU [17:47:21]CAPDU: 80 13 01 00 [17:47:21]Write to MH i2c: E2 08 00 A3 43 80 13 01 00 00 00 00 00 63 [17:47:21]Write i2c OK [17:47:21]MH_I2C_Read... [17:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:21]Read from MH i2c: E2 [17:47:21]MH_I2C_Read... [17:47:21]Read from MH i2c: E2 0E 00 [17:47:21]MH_I2C_Read... [17:47:21]Read from MH i2c: E2 0E 00 A3 43 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D7 [17:47:21]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:47:21]wFMCommunicate OK [17:47:21]SAM_PROTO_GetShiftState done [17:47:21]FM_GetShiftState done [17:47:21]opened in 1710201976 [17:47:21]opened+sec_in_day 1710288376 [17:47:21]quantity*price = 50005 [17:47:21]sum+1 = 50007 [17:47:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 156 12.03.2024 17:47 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95226 ФПД: 228832554877769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T174727&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95226&fm=228832554877769&tin=02508201610067®Number=0000000000090555&sum=50000 [17:47:22]StoreToDocumentArchive [17:47:22]shift 327 fd 95226 [17:47:22]save to /storage/0327/doc_00095226 [17:47:22]save last doc name /storage/0327/doc_00095226 to /storage/kkm_last_doc_name [17:47:22]save OK [17:47:22]Clear old archive folders... [17:47:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:22]tlvbuf is 01B54120 [17:47:22]SAM_PROTO_ClearQueue [17:47:22]wFMCommunicate request_size=4 [17:47:22]MH_SAM_APDU [17:47:22]CAPDU: 80 09 00 00 [17:47:22]Write to MH i2c: E2 08 00 B0 43 80 09 00 00 00 00 00 00 65 [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:22]Read from MH i2c: E2 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 03 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 03 00 B0 43 00 90 00 67 [17:47:22]RAPDU: 90 00 [17:47:22]wFMCommunicate OK [17:47:22]SAM_PROTO_ClearQueue done [17:47:22]KKMCreateOFDPacket [17:47:22]OFDProtocolAddRootSTLVToBuf [17:47:22]FM_MakeSignedData [17:47:22]FM_MakeSignedData [17:47:22]SAM_PROTO_SignData [17:47:22]wFMCommunicate request_size=4 [17:47:22]MH_SAM_APDU [17:47:22]CAPDU: 80 0D 01 02 [17:47:22]Write to MH i2c: E2 08 00 B1 43 80 0D 01 02 00 00 00 00 6D [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:22]Read from MH i2c: E2 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 03 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 03 00 B1 43 00 90 00 68 [17:47:22]RAPDU: 90 00 [17:47:22]wFMCommunicate OK [17:47:22]wFMCommunicate request_size=255 [17:47:22]MH_SAM_APDU [17: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 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 2F 95 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FA 73 01 00 35 04 06 00 D0 [17:47:22]Write to MH i2c: E2 02 01 B2 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 2F 95 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FA 73 01 00 35 04 06 00 D0 00 00 51 [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:22]Read from MH i2c: E2 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 03 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 03 00 B2 43 00 90 00 69 [17:47:22]RAPDU: 90 00 [17:47:22]wFMCommunicate OK [17:47:22]wFMCommunicate request_size=10 [17:47:22]MH_SAM_APDU [17:47:22]CAPDU: 80 0D 02 02 05 1F 3B 25 83 49 [17:47:22]Write to MH i2c: E2 0D 00 B3 43 80 0D 02 02 05 00 1F 3B 25 83 49 00 00 C5 [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:22]Read from MH i2c: E2 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 03 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 03 00 B3 43 00 90 00 6A [17:47:22]RAPDU: 90 00 [17:47:22]wFMCommunicate OK [17:47:22]wFMCommunicate request_size=4 [17:47:22]MH_SAM_APDU [17:47:22]CAPDU: 80 0D 03 02 [17:47:22]Write to MH i2c: E2 08 00 B4 43 80 0D 03 02 00 00 00 00 72 [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:22]Read from MH i2c: E2 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 0B 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 0B 00 B4 43 00 79 5C E1 18 3E 37 1F 17 90 00 EC [17:47:22]RAPDU: 79 5C E1 18 3E 37 1F 17 90 00 [17:47:22]wFMCommunicate OK [17:47:22]SAM_PROTO_SignData done [17:47:22]FM_MakeSignedData done [17:47:22]CreateOFDProtocolMessage [17:47:22]wFMCommunicate request_size=4 [17:47:22]MH_SAM_APDU [17:47:22]CAPDU: 80 11 00 00 [17:47:22]Write to MH i2c: E2 08 00 B5 43 80 11 00 00 00 00 00 00 72 [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:22]Read from MH i2c: E2 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 17 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 17 00 B5 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C2 [17:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:47:22]wFMCommunicate OK [17:47:22]CreateOFDProtocolMessage done [17:47:22]OFDSenderStorePacket 95226 [17:47:22]StoreOFDPacket docnum=95226 [17:47:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 74 F9 07 01 5B AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 2F 95 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FA 73 01 00 35 04 06 00 D0 1F 3B 25 83 49 79 5C E1 18 3E 37 1F 17 [17:47:22]CheckFolder [17:47:22]dirname=/storage/ofd_packets [17:47:22]CheckFolder done [17:47:22]ProducePacketName [17:47:22]name=ofd_packets/00095226 [17:47:22]NVStorageSaveData ofd_packets/00095226 [17:47:22]File name is /storage/ofd_packets/00095226 [17:47:22]Write 301 bytes [17:47:22]NVStorageSaveData done [17:47:22]OFDSenderStorePacket done [17:47:22]KKMCreateOFDPacket done [17:47:22]NVStorageSaveData kkm_last_timestamp [17:47:22]File name is /storage/kkm_last_timestamp [17:47:22]Write 4 bytes [17:47:22]NVStorageSaveData done [17:47:22]ExternCall_PrintAddStr [17:47:22]wPrintStart [17:47:22]Write to MH i2c: 01 00 00 B6 43 F9 [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: 01 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: 01 07 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: 01 07 00 B6 43 00 80 00 00 00 FF 0F 8E [17:47:22]RasterBufferAndPrint [17:47:22]line Счет N : (1)196198 [17:47:22]line ИНН: 02508201610067 [17:47:22]line Контрольно-Кассовый Чек [17:47:22]line ПРОДАЖА [17:47:22]line ТРК (МРК, ГНК) : 22 [17:47:22]line Товар: 2710124130 [17:47:22]line Аи-92-К-5 [17:47:22]line 7.950 * 62.90 [17:47:22]line = 500.06 [17:47:22]line НДС 12% НСП 1% [17:47:22]line > о реализуемом товаре [17:47:22]line ОКРУГЛЕНИЕ: -0.06 [17:47:22]line ИТОГО: 500.00 [17:47:22]line Внесено: 500.00 [17:47:22]line СДАЧА: 0.00 [17:47:22]line НСП 1% : 4.42 [17:47:22]line НДС 12% : 53.10 [17:47:22]line Наличными: 500.00 [17:47:22]line Безнал.: 0.00 [17:47:22]line Место: АЗС № 6 "Партнер Нефть" [17:47:22]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:47:22]line СНО: Общий режим [17:47:22]line Чек 156 12.03.2024 17:47 [17:47:22]line Смена: 327 ФФД: 1.0 [17:47:22]line ЗНМ: 0300000009 [17:47:22]line РНМ: 0000000000090555 [17:47:22]line Версия ККМ: 001 [17:47:22]line ФМ: 0000000000874811 [17:47:22]line ФД: 95226 [17:47:22]line ФПД: 228832554877769 [17:47:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T174727&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95226&fm=228832554877769&tin=02508201610067®Number=0000000000090555&sum=50000 [17:47:23]OFD Sender: Processing packet 95226 [packets to send 30, broken 29] [17:47:23]ProducePacketName [17:47:23]name=ofd_packets/00095226 [17:47:23]OFD Sender: To server: pG, [17:47:23]CommunicateWithHost lk.salyk.kg:30040 [17:47:23]ConnectInit lk.salyk.kg [17:47:23]written 0, free lines is 4095 [17:47:23]Connected sock=11 [17:47:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 74 F9 07 01 5B AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 2F 95 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FA 73 01 00 35 04 06 00 D0 1F 3B 25 83 49 79 5C E1 18 3E 37 1F 17 [17:47:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E7 7D 47 00 7B 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FA 73 01 00 F4 03 04 00 84 40 F0 65 B6 04 01 00 00 3D F9 65 E0 51 8B DE 44 [17:47:23]CommunicateWithHost err = 0 [17:47:23]CheckOFDResponse [17:47:23]1017 (14) - 77093643461234 [17:47:23]1041 (16) - 0000000000874811 [17:47:23]1040 (4) - 95226 [17:47:23]1012 (4) - 12.03.2024 11:46 [17:47:23]1206 (1) - 0 [17:47:23]OFD Sender: Remove packet 95226 [17:47:23]ProducePacketName [17:47:23]name=ofd_packets/00095226 [17:47:23]NVStorageDeleteData [17:47:23]Write to MH i2c: 01 00 00 E1 43 24 [17:47:23]Write i2c OK [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: 01 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: 01 07 00 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: 01 07 00 E1 43 00 80 00 00 00 53 0D 0B [17:47:23]RasterBufferAndPrint [17:47:23]line [17:47:23]line [17:47:23]line [17:47:23]line [17:47:23]line [17:47:23]written 0, free lines is 3417 [17:47:23]process_action close_receipt done [17:47:23]requested_data is exist [17:47:23]produce_requested_data [17:47:23]requested_item fm.sn is exist - process it [17:47:23]wFMCommunicate request_size=4 [17:47:23]MH_SAM_APDU [17:47:23]CAPDU: 80 11 00 00 [17:47:23]Write to MH i2c: E2 08 00 E8 43 80 11 00 00 00 00 00 00 A5 [17:47:23]Write i2c OK [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: E2 [17:47:23]MH_I2C_Read... [17:47:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:23]Read from MH i2c: E2 17 00 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: E2 17 00 E8 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F5 [17:47:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:47:23]wFMCommunicate OK [17:47:23]requested_item fd.num is exist - process it [17:47:23]SAM_PROTO_GetFieldsCounters [17:47:23]wFMCommunicate request_size=4 [17:47:23]MH_SAM_APDU [17:47:23]CAPDU: 80 13 00 00 [17:47:23]Write to MH i2c: E2 08 00 E9 43 80 13 00 00 00 00 00 00 A8 [17:47:23]Write i2c OK [17:47:23]MH_I2C_Read... [17:47:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:23]Read from MH i2c: E2 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: E2 62 00 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: E2 62 00 E9 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FA 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [17:47:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FA 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:23]wFMCommunicate OK [17:47:23]SAM_PROTO_GetFieldsCounters done [17:47:23]requested_item shift.num is exist - process it [17:47:23]requested_item shift.opened is exist - process it [17:47:23]req_shift_opened [17:47:23]FM_GetShiftState [17:47:23]SAM_PROTO_GetShiftState [17:47:23]wFMCommunicate request_size=4 [17:47:23]MH_SAM_APDU [17:47:23]CAPDU: 80 13 01 00 [17:47:23]Write to MH i2c: E2 08 00 EA 43 80 13 01 00 00 00 00 00 AA [17:47:23]Write i2c OK [17:47:23]MH_I2C_Read... [17:47:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:23]Read from MH i2c: E2 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: E2 0E 00 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: E2 0E 00 EA 43 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 1E [17:47:23]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:47:23]wFMCommunicate OK [17:47:23]SAM_PROTO_GetShiftState done [17:47:23]FM_GetShiftState done [17:47:23]req_shift_opened done [17:47:23]requested_item shift.open_date is exist - process it [17:47:23]req_shift_open_date [17:47:23]req_shift_open_date done [17:47:23]produce_requested_data done [17:47:23]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95226,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:47:23]process_action_free close_receipt [17:47:23]json_value_free [17:47:23]json_value_free done [17:47:23]process_json_proto returns [17:47:23]Send response to host [17:47:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95226,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:47:23]free response buf [17:47:23]execute_script done [17:47:23]execute_script returns [17:47:23]free content buf [17:47:23]Sock 9.Close socket [17:47:23]Sock 9.Thread stoped [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:36]accept exits with 8 [17:47:36]New connection [17:47:36]New thread 3066813796 created [17:47:36]Thread 3066957156 joined [17:47:36]Waiting for new connection... [17:47:36] Sock 8.Parse request [17:47:36]Sock 8.Check first char [17:47:36]Sock 8.First char is OK [17:47:36]request: POST /json_proto HTTP/1.0 [17:47:36]Method: POST [17:47:36]URL: /json_proto [17:47:36]Method is POST - this is cgi request [17:47:36]url: /json_proto [17:47:36]query_string will be loaded in cgi processing [17:47:36]execute_cgi json_proto POST (null) [17:47:36]execute_cgi path=json_proto method=POST [17:47:36]POST find Content-Length [17:47:36]Host: 172.17.62.67:8080 [17:47:36]Content-Length: 677 [17:47:36]Content-Type: application/json [17:47:36] [17:47:36]POST finish read [17:47:36]Found Content-Length = 677 [17:47:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [17:47:36]execute_script... [17:47: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)196199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [17:47:36]POST & json_proto [17:47:36]process_json_proto [17:47:36]json parsed OK: [17:47:36]protocol is kg_v1.0 [17:47:36]action value=close_receipt [17:47:36]process_action close_receipt [17:47:36]cmd_close_receipt [17:47:36]MH_GetDate [17:47:36]Write to MH i2c: F0 00 00 EB 43 1D [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: F0 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: F0 05 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: F0 05 00 EB 43 00 3F 95 F0 65 4B [17:47:36]GetLastDocTimeStamp 1710265647 [17:47:36]current date 1710265663 [17:47:36]FM_GetShiftState [17:47:36]SAM_PROTO_GetShiftState [17:47:36]wFMCommunicate request_size=4 [17:47:36]MH_SAM_APDU [17:47:36]CAPDU: 80 13 01 00 [17:47:36]Write to MH i2c: E2 08 00 EC 43 80 13 01 00 00 00 00 00 AC [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:36]Read from MH i2c: E2 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 0E 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 0E 00 EC 43 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 20 [17:47:36]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:47:36]wFMCommunicate OK [17:47:36]SAM_PROTO_GetShiftState done [17:47:36]FM_GetShiftState done [17:47:36]opened in 1710201976 [17:47:36]opened+sec_in_day 1710288376 [17:47:36]quantity*price = 30003 [17:47:36]sum+1 = 30004 [17:47:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 157 12.03.2024 17:47 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95227 ФПД: 21482962987308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T174743&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95227&fm=21482962987308&tin=02508201610067®Number=0000000000090555&sum=30000 [17:47:37]StoreToDocumentArchive [17:47:37]shift 327 fd 95227 [17:47:37]save to /storage/0327/doc_00095227 [17:47:37]save last doc name /storage/0327/doc_00095227 to /storage/kkm_last_doc_name [17:47:37]save OK [17:47:37]Clear old archive folders... [17:47:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:37]tlvbuf is 01B37180 [17:47:37]SAM_PROTO_ClearQueue [17:47:37]wFMCommunicate request_size=4 [17:47:37]MH_SAM_APDU [17:47:37]CAPDU: 80 09 00 00 [17:47:37]Write to MH i2c: E2 08 00 F9 43 80 09 00 00 00 00 00 00 AE [17:47:37]Write i2c OK [17:47:37]MH_I2C_Read... [17:47:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:37]Read from MH i2c: E2 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: E2 03 00 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: E2 03 00 F9 43 00 90 00 B0 [17:47:37]RAPDU: 90 00 [17:47:37]wFMCommunicate OK [17:47:37]SAM_PROTO_ClearQueue done [17:47:37]KKMCreateOFDPacket [17:47:37]OFDProtocolAddRootSTLVToBuf [17:47:37]FM_MakeSignedData [17:47:37]FM_MakeSignedData [17:47:37]SAM_PROTO_SignData [17:47:37]wFMCommunicate request_size=4 [17:47:37]MH_SAM_APDU [17:47:37]CAPDU: 80 0D 01 02 [17:47:37]Write to MH i2c: E2 08 00 FA 43 80 0D 01 02 00 00 00 00 B6 [17:47:37]Write i2c OK [17:47:37]MH_I2C_Read... [17:47:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:37]Read from MH i2c: E2 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: E2 03 00 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: E2 03 00 FA 43 00 90 00 B1 [17:47:37]RAPDU: 90 00 [17:47:37]wFMCommunicate OK [17:47:37]wFMCommunicate request_size=255 [17:47:37]MH_SAM_APDU [17:47:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 9D 00 00 00 F4 03 04 00 3F 95 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FB 73 01 00 35 04 06 00 13 [17:47:37]Write to MH i2c: E2 02 01 FB 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 9D 00 00 00 F4 03 04 00 3F 95 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FB 73 01 00 35 04 06 00 13 00 00 24 [17:47:37]Write i2c OK [17:47:37]MH_I2C_Read... [17:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:38]Read from MH i2c: E2 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: E2 03 00 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: E2 03 00 FB 43 00 90 00 B2 [17:47:38]RAPDU: 90 00 [17:47:38]wFMCommunicate OK [17:47:38]wFMCommunicate request_size=10 [17:47:38]MH_SAM_APDU [17:47:38]CAPDU: 80 0D 02 02 05 89 E4 60 A9 2C [17:47:38]Write to MH i2c: E2 0D 00 FC 43 80 0D 02 02 05 00 89 E4 60 A9 2C 00 00 65 [17:47:38]Write i2c OK [17:47:38]MH_I2C_Read... [17:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:38]Read from MH i2c: E2 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: E2 03 00 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: E2 03 00 FC 43 00 90 00 B3 [17:47:38]RAPDU: 90 00 [17:47:38]wFMCommunicate OK [17:47:38]wFMCommunicate request_size=4 [17:47:38]MH_SAM_APDU [17:47:38]CAPDU: 80 0D 03 02 [17:47:38]Write to MH i2c: E2 08 00 FD 43 80 0D 03 02 00 00 00 00 BB [17:47:38]Write i2c OK [17:47:38]MH_I2C_Read... [17:47:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:38]Read from MH i2c: E2 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: E2 0B 00 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: E2 0B 00 FD 43 00 FE 30 BE 28 0E F7 7F E6 90 00 3A [17:47:38]RAPDU: FE 30 BE 28 0E F7 7F E6 90 00 [17:47:38]wFMCommunicate OK [17:47:38]SAM_PROTO_SignData done [17:47:38]FM_MakeSignedData done [17:47:38]CreateOFDProtocolMessage [17:47:38]wFMCommunicate request_size=4 [17:47:38]MH_SAM_APDU [17:47:38]CAPDU: 80 11 00 00 [17:47:38]Write to MH i2c: E2 08 00 FE 43 80 11 00 00 00 00 00 00 BB [17:47:38]Write i2c OK [17:47:38]MH_I2C_Read... [17:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:38]Read from MH i2c: E2 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: E2 17 00 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: E2 17 00 FE 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0B [17:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:47:38]wFMCommunicate OK [17:47:38]CreateOFDProtocolMessage done [17:47:38]OFDSenderStorePacket 95227 [17:47:38]StoreOFDPacket docnum=95227 [17:47:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F2 5D 07 01 73 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 9D 00 00 00 F4 03 04 00 3F 95 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FB 73 01 00 35 04 06 00 13 89 E4 60 A9 2C FE 30 BE 28 0E F7 7F E6 [17:47:38]CheckFolder [17:47:38]dirname=/storage/ofd_packets [17:47:38]CheckFolder done [17:47:38]ProducePacketName [17:47:38]name=ofd_packets/00095227 [17:47:38]NVStorageSaveData ofd_packets/00095227 [17:47:38]File name is /storage/ofd_packets/00095227 [17:47:38]Write 301 bytes [17:47:38]NVStorageSaveData done [17:47:38]OFDSenderStorePacket done [17:47:38]KKMCreateOFDPacket done [17:47:38]NVStorageSaveData kkm_last_timestamp [17:47:38]File name is /storage/kkm_last_timestamp [17:47:38]Write 4 bytes [17:47:38]NVStorageSaveData done [17:47:38]ExternCall_PrintAddStr [17:47:38]wPrintStart [17:47:38]Write to MH i2c: 01 00 00 FF 43 42 [17:47:38]Write i2c OK [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: 01 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: 01 07 00 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: 01 07 00 FF 43 00 80 00 00 00 FF 0F D7 [17:47:38]RasterBufferAndPrint [17:47:38]line Счет N : (1)196199 [17:47:38]line ИНН: 02508201610067 [17:47:38]line Контрольно-Кассовый Чек [17:47:38]line ПРОДАЖА [17:47:38]line ТРК (МРК, ГНК) : 12 [17:47:38]line Товар: 2710124130 [17:47:38]line Аи-92-К-5 [17:47:38]line 4.770 * 62.90 [17:47:38]line = 300.03 [17:47:38]line НДС 12% НСП 1% [17:47:38]line > о реализуемом товаре [17:47:38]line ОКРУГЛЕНИЕ: -0.03 [17:47:38]line ИТОГО: 300.00 [17:47:38]line Внесено: 300.00 [17:47:38]line СДАЧА: 0.00 [17:47:38]line НСП 1% : 2.65 [17:47:38]line НДС 12% : 31.86 [17:47:38]line Наличными: 300.00 [17:47:38]line Безнал.: 0.00 [17:47:38]line Место: АЗС № 6 "Партнер Нефть" [17:47:38]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:47:38]line СНО: Общий режим [17:47:38]line Чек 157 12.03.2024 17:47 [17:47:38]line Смена: 327 ФФД: 1.0 [17:47:38]line ЗНМ: 0300000009 [17:47:38]line РНМ: 0000000000090555 [17:47:38]line Версия ККМ: 001 [17:47:38]line ФМ: 0000000000874811 [17:47:38]line ФД: 95227 [17:47:38]line ФПД: 21482962987308 [17:47:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T174743&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95227&fm=21482962987308&tin=02508201610067®Number=0000000000090555&sum=30000 [17:47:38]OFD Sender: Processing packet 95227 [packets to send 30, broken 29] [17:47:38]ProducePacketName [17:47:38]name=ofd_packets/00095227 [17:47:38]OFD Sender: To server: pG, [17:47:38]CommunicateWithHost lk.salyk.kg:30040 [17:47:38]ConnectInit lk.salyk.kg [17:47:38]written 0, free lines is 4095 [17:47:38]Connected sock=11 [17:47:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F2 5D 07 01 73 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 9D 00 00 00 F4 03 04 00 3F 95 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FB 73 01 00 35 04 06 00 13 89 E4 60 A9 2C FE 30 BE 28 0E F7 7F E6 [17:47:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 DB 4D 47 00 9E BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FB 73 01 00 F4 03 04 00 94 40 F0 65 B6 04 01 00 00 44 2B 55 70 57 95 8A D3 [17:47:39]CommunicateWithHost err = 0 [17:47:39]CheckOFDResponse [17:47:39]1017 (14) - 77093643461234 [17:47:39]1041 (16) - 0000000000874811 [17:47:39]1040 (4) - 95227 [17:47:39]1012 (4) - 12.03.2024 11:46 [17:47:39]1206 (1) - 0 [17:47:39]OFD Sender: Remove packet 95227 [17:47:39]ProducePacketName [17:47:39]name=ofd_packets/00095227 [17:47:39]NVStorageDeleteData [17:47:39]Write to MH i2c: 01 00 00 2A 44 6E [17:47:39]Write i2c OK [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: 01 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: 01 07 00 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: 01 07 00 2A 44 00 80 00 00 00 5C 0D 5E [17:47:39]RasterBufferAndPrint [17:47:39]line [17:47:39]line [17:47:39]line [17:47:39]line [17:47:39]line [17:47:39]written 0, free lines is 3425 [17:47:39]process_action close_receipt done [17:47:39]requested_data is exist [17:47:39]produce_requested_data [17:47:39]requested_item fm.sn is exist - process it [17:47:39]wFMCommunicate request_size=4 [17:47:39]MH_SAM_APDU [17:47:39]CAPDU: 80 11 00 00 [17:47:39]Write to MH i2c: E2 08 00 31 44 80 11 00 00 00 00 00 00 EF [17:47:39]Write i2c OK [17:47:39]MH_I2C_Read... [17:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:39]Read from MH i2c: E2 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 17 00 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 17 00 31 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3F [17:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:47:39]wFMCommunicate OK [17:47:39]requested_item fd.num is exist - process it [17:47:39]SAM_PROTO_GetFieldsCounters [17:47:39]wFMCommunicate request_size=4 [17:47:39]MH_SAM_APDU [17:47:39]CAPDU: 80 13 00 00 [17:47:39]Write to MH i2c: E2 08 00 32 44 80 13 00 00 00 00 00 00 F2 [17:47:39]Write i2c OK [17:47:39]MH_I2C_Read... [17:47:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:39]Read from MH i2c: E2 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 62 00 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 62 00 32 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FB 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [17:47:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FB 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:39]wFMCommunicate OK [17:47:39]SAM_PROTO_GetFieldsCounters done [17:47:39]requested_item shift.num is exist - process it [17:47:39]requested_item shift.opened is exist - process it [17:47:39]req_shift_opened [17:47:39]FM_GetShiftState [17:47:39]SAM_PROTO_GetShiftState [17:47:39]wFMCommunicate request_size=4 [17:47:39]MH_SAM_APDU [17:47:39]CAPDU: 80 13 01 00 [17:47:39]Write to MH i2c: E2 08 00 33 44 80 13 01 00 00 00 00 00 F4 [17:47:39]Write i2c OK [17:47:39]MH_I2C_Read... [17:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:39]Read from MH i2c: E2 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 0E 00 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 0E 00 33 44 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 68 [17:47:39]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:47:39]wFMCommunicate OK [17:47:39]SAM_PROTO_GetShiftState done [17:47:39]FM_GetShiftState done [17:47:39]req_shift_opened done [17:47:39]requested_item shift.open_date is exist - process it [17:47:39]req_shift_open_date [17:47:39]req_shift_open_date done [17:47:39]produce_requested_data done [17:47:39]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95227,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:47:39]process_action_free close_receipt [17:47:39]json_value_free [17:47:39]json_value_free done [17:47:39]process_json_proto returns [17:47:39]Send response to host [17:47:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95227,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:47:39]free response buf [17:47:39]execute_script done [17:47:39]execute_script returns [17:47:39]free content buf [17:47:39]Sock 8.Close socket [17:47:39]Sock 8.Thread stoped [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:46]accept exits with 9 [17:50:46]New connection [17:50:46]New thread 3066957156 created [17:50:46]Thread 3066813796 joined [17:50:46]Waiting for new connection... [17:50:46] Sock 9.Parse request [17:50:46]Sock 9.Check first char [17:50:46]Sock 9.First char is OK [17:50:46]request: POST /json_proto HTTP/1.0 [17:50:46]Method: POST [17:50:46]URL: /json_proto [17:50:46]Method is POST - this is cgi request [17:50:46]url: /json_proto [17:50:46]query_string will be loaded in cgi processing [17:50:46]execute_cgi json_proto POST (null) [17:50:46]execute_cgi path=json_proto method=POST [17:50:46]POST find Content-Length [17:50:46]Host: 172.17.62.67:8080 [17:50:46]Content-Length: 677 [17:50:46]Content-Type: application/json [17:50:46] [17:50:46]POST finish read [17:50:46]Found Content-Length = 677 [17:50:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 1.590, "sum" : 100.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:46]execute_script... [17:50:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 1.590, "sum" : 100.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:46]POST & json_proto [17:50:46]process_json_proto [17:50:46]json parsed OK: [17:50:46]protocol is kg_v1.0 [17:50:46]action value=close_receipt [17:50:46]process_action close_receipt [17:50:46]cmd_close_receipt [17:50:46]MH_GetDate [17:50:46]Write to MH i2c: F0 00 00 34 44 67 [17:50:46]Write i2c OK [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: F0 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: F0 05 00 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: F0 05 00 34 44 00 FC 95 F0 65 52 [17:50:46]GetLastDocTimeStamp 1710265663 [17:50:46]current date 1710265852 [17:50:46]FM_GetShiftState [17:50:46]SAM_PROTO_GetShiftState [17:50:46]wFMCommunicate request_size=4 [17:50:46]MH_SAM_APDU [17:50:46]CAPDU: 80 13 01 00 [17:50:46]Write to MH i2c: E2 08 00 35 44 80 13 01 00 00 00 00 00 F6 [17:50:46]Write i2c OK [17:50:46]MH_I2C_Read... [17:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:46]Read from MH i2c: E2 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 0E 00 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 0E 00 35 44 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 6A [17:50:46]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:50:46]wFMCommunicate OK [17:50:46]SAM_PROTO_GetShiftState done [17:50:46]FM_GetShiftState done [17:50:46]opened in 1710201976 [17:50:46]opened+sec_in_day 1710288376 [17:50:46]quantity*price = 10001 [17:50:46]sum+1 = 10002 [17:50:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 158 12.03.2024 17:50 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95228 ФПД: 279904467727846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T175052&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95228&fm=279904467727846&tin=02508201610067®Number=0000000000090555&sum=10000 [17:50:47]StoreToDocumentArchive [17:50:47]shift 327 fd 95228 [17:50:47]save to /storage/0327/doc_00095228 [17:50:47]save last doc name /storage/0327/doc_00095228 to /storage/kkm_last_doc_name [17:50:47]save OK [17:50:47]Clear old archive folders... [17:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:47]tlvbuf is 019FCB10 [17:50:47]SAM_PROTO_ClearQueue [17:50:47]wFMCommunicate request_size=4 [17:50:47]MH_SAM_APDU [17:50:47]CAPDU: 80 09 00 00 [17:50:47]Write to MH i2c: E2 08 00 42 44 80 09 00 00 00 00 00 00 F8 [17:50:47]Write i2c OK [17:50:47]MH_I2C_Read... [17:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:47]Read from MH i2c: E2 [17:50:47]MH_I2C_Read... [17:50:47]Read from MH i2c: E2 03 00 [17:50:47]MH_I2C_Read... [17:50:47]Read from MH i2c: E2 03 00 42 44 00 90 00 FA [17:50:47]RAPDU: 90 00 [17:50:47]wFMCommunicate OK [17:50:47]SAM_PROTO_ClearQueue done [17:50:47]KKMCreateOFDPacket [17:50:47]OFDProtocolAddRootSTLVToBuf [17:50:47]FM_MakeSignedData [17:50:47]FM_MakeSignedData [17:50:47]SAM_PROTO_SignData [17:50:47]wFMCommunicate request_size=4 [17:50:47]MH_SAM_APDU [17:50:47]CAPDU: 80 0D 01 02 [17:50:47]Write to MH i2c: E2 08 00 43 44 80 0D 01 02 00 00 00 00 00 [17:50:47]Write i2c OK [17:50:47]MH_I2C_Read... [17:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:47]Read from MH i2c: E2 [17:50:47]MH_I2C_Read... [17:50:47]Read from MH i2c: E2 03 00 [17:50:47]MH_I2C_Read... [17:50:47]Read from MH i2c: E2 03 00 43 44 00 90 00 FB [17:50:47]RAPDU: 90 00 [17:50:47]wFMCommunicate OK [17:50:47]wFMCommunicate request_size=255 [17:50:47]MH_SAM_APDU [17:50:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 FC 95 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FC 73 01 00 35 04 06 00 FE [17:50:47]Write to MH i2c: E2 02 01 44 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 FC 95 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FC 73 01 00 35 04 06 00 FE 00 00 4E [17:50:47]Write i2c OK [17:50:47]MH_I2C_Read... [17:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:48]Read from MH i2c: E2 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: E2 03 00 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: E2 03 00 44 44 00 90 00 FC [17:50:48]RAPDU: 90 00 [17:50:48]wFMCommunicate OK [17:50:48]wFMCommunicate request_size=10 [17:50:48]MH_SAM_APDU [17:50:48]CAPDU: 80 0D 02 02 05 92 56 5E B5 E6 [17:50:48]Write to MH i2c: E2 0D 00 45 44 80 0D 02 02 05 00 92 56 5E B5 E6 00 00 EE [17:50:48]Write i2c OK [17:50:48]MH_I2C_Read... [17:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:48]Read from MH i2c: E2 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: E2 03 00 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: E2 03 00 45 44 00 90 00 FD [17:50:48]RAPDU: 90 00 [17:50:48]wFMCommunicate OK [17:50:48]wFMCommunicate request_size=4 [17:50:48]MH_SAM_APDU [17:50:48]CAPDU: 80 0D 03 02 [17:50:48]Write to MH i2c: E2 08 00 46 44 80 0D 03 02 00 00 00 00 05 [17:50:48]Write i2c OK [17:50:48]MH_I2C_Read... [17:50:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:48]Read from MH i2c: E2 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: E2 0B 00 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: E2 0B 00 46 44 00 89 CB 2E 39 1D 46 B6 97 90 00 71 [17:50:48]RAPDU: 89 CB 2E 39 1D 46 B6 97 90 00 [17:50:48]wFMCommunicate OK [17:50:48]SAM_PROTO_SignData done [17:50:48]FM_MakeSignedData done [17:50:48]CreateOFDProtocolMessage [17:50:48]wFMCommunicate request_size=4 [17:50:48]MH_SAM_APDU [17:50:48]CAPDU: 80 11 00 00 [17:50:48]Write to MH i2c: E2 08 00 47 44 80 11 00 00 00 00 00 00 05 [17:50:48]Write i2c OK [17:50:48]MH_I2C_Read... [17:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:48]Read from MH i2c: E2 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: E2 17 00 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: E2 17 00 47 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 55 [17:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:50:48]wFMCommunicate OK [17:50:48]CreateOFDProtocolMessage done [17:50:48]OFDSenderStorePacket 95228 [17:50:48]StoreOFDPacket docnum=95228 [17:50:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 26 F2 07 01 9A 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 FC 95 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FC 73 01 00 35 04 06 00 FE 92 56 5E B5 E6 89 CB 2E 39 1D 46 B6 97 [17:50:48]CheckFolder [17:50:48]dirname=/storage/ofd_packets [17:50:48]CheckFolder done [17:50:48]ProducePacketName [17:50:48]name=ofd_packets/00095228 [17:50:48]NVStorageSaveData ofd_packets/00095228 [17:50:48]File name is /storage/ofd_packets/00095228 [17:50:48]Write 301 bytes [17:50:48]NVStorageSaveData done [17:50:48]OFDSenderStorePacket done [17:50:48]KKMCreateOFDPacket done [17:50:48]NVStorageSaveData kkm_last_timestamp [17:50:48]File name is /storage/kkm_last_timestamp [17:50:48]Write 4 bytes [17:50:48]NVStorageSaveData done [17:50:48]ExternCall_PrintAddStr [17:50:48]wPrintStart [17:50:48]Write to MH i2c: 01 00 00 48 44 8C [17:50:48]Write i2c OK [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: 01 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: 01 07 00 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: 01 07 00 48 44 00 80 00 00 00 FF 0F 21 [17:50:48]RasterBufferAndPrint [17:50:48]line Счет N : (1)196200 [17:50:48]line ИНН: 02508201610067 [17:50:48]line Контрольно-Кассовый Чек [17:50:48]line ПРОДАЖА [17:50:48]line ТРК (МРК, ГНК) : 12 [17:50:48]line Товар: 2710124130 [17:50:48]line Аи-92-К-5 [17:50:48]line 1.590 * 62.90 [17:50:48]line = 100.01 [17:50:48]line НДС 12% НСП 1% [17:50:48]line > о реализуемом товаре [17:50:48]line ОКРУГЛЕНИЕ: -0.01 [17:50:48]line ИТОГО: 100.00 [17:50:48]line Внесено: 100.00 [17:50:48]line СДАЧА: 0.00 [17:50:48]line НСП 1% : 0.88 [17:50:48]line НДС 12% : 10.62 [17:50:48]line Наличными: 100.00 [17:50:48]line Безнал.: 0.00 [17:50:48]line Место: АЗС № 6 "Партнер Нефть" [17:50:48]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:50:48]line СНО: Общий режим [17:50:48]line Чек 158 12.03.2024 17:50 [17:50:48]line Смена: 327 ФФД: 1.0 [17:50:48]line ЗНМ: 0300000009 [17:50:48]line РНМ: 0000000000090555 [17:50:48]line Версия ККМ: 001 [17:50:48]line ФМ: 0000000000874811 [17:50:48]line ФД: 95228 [17:50:48]line ФПД: 279904467727846 [17:50:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T175052&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95228&fm=279904467727846&tin=02508201610067®Number=0000000000090555&sum=10000 [17:50:48]OFD Sender: Processing packet 95228 [packets to send 30, broken 29] [17:50:48]ProducePacketName [17:50:48]name=ofd_packets/00095228 [17:50:48]OFD Sender: To server: pG, [17:50:48]CommunicateWithHost lk.salyk.kg:30040 [17:50:48]ConnectInit lk.salyk.kg [17:50:48]written 0, free lines is 4095 [17:50:48]Connected sock=10 [17:50:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 26 F2 07 01 9A 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 FC 95 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FC 73 01 00 35 04 06 00 FE 92 56 5E B5 E6 89 CB 2E 39 1D 46 B6 97 [17:50:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 95 BE 47 00 91 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FC 73 01 00 F4 03 04 00 52 41 F0 65 B6 04 01 00 00 27 41 D8 09 00 6F B2 CD [17:50:48]CommunicateWithHost err = 0 [17:50:48]CheckOFDResponse [17:50:48]1017 (14) - 77093643461234 [17:50:48]1041 (16) - 0000000000874811 [17:50:48]1040 (4) - 95228 [17:50:48]1012 (4) - 12.03.2024 11:49 [17:50:48]1206 (1) - 0 [17:50:48]OFD Sender: Remove packet 95228 [17:50:48]ProducePacketName [17:50:48]name=ofd_packets/00095228 [17:50:48]NVStorageDeleteData [17:50:49]Write to MH i2c: 01 00 00 73 44 B7 [17:50:49]Write i2c OK [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: 01 [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: 01 07 00 [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: 01 07 00 73 44 00 80 00 00 00 53 0D 9E [17:50:49]RasterBufferAndPrint [17:50:49]line [17:50:49]line [17:50:49]line [17:50:49]line [17:50:49]line [17:50:49]written 0, free lines is 3417 [17:50:49]process_action close_receipt done [17:50:49]requested_data is exist [17:50:49]produce_requested_data [17:50:49]requested_item fm.sn is exist - process it [17:50:49]wFMCommunicate request_size=4 [17:50:49]MH_SAM_APDU [17:50:49]CAPDU: 80 11 00 00 [17:50:49]Write to MH i2c: E2 08 00 7A 44 80 11 00 00 00 00 00 00 38 [17:50:49]Write i2c OK [17:50:49]MH_I2C_Read... [17:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:49]Read from MH i2c: E2 [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: E2 17 00 [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: E2 17 00 7A 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 88 [17:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:50:49]wFMCommunicate OK [17:50:49]requested_item fd.num is exist - process it [17:50:49]SAM_PROTO_GetFieldsCounters [17:50:49]wFMCommunicate request_size=4 [17:50:49]MH_SAM_APDU [17:50:49]CAPDU: 80 13 00 00 [17:50:49]Write to MH i2c: E2 08 00 7B 44 80 13 00 00 00 00 00 00 3B [17:50:49]Write i2c OK [17:50:49]MH_I2C_Read... [17:50:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:49]Read from MH i2c: E2 [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: E2 62 00 [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: E2 62 00 7B 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FC 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [17:50:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FC 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:49]wFMCommunicate OK [17:50:49]SAM_PROTO_GetFieldsCounters done [17:50:49]requested_item shift.num is exist - process it [17:50:49]requested_item shift.opened is exist - process it [17:50:49]req_shift_opened [17:50:49]FM_GetShiftState [17:50:49]SAM_PROTO_GetShiftState [17:50:49]wFMCommunicate request_size=4 [17:50:49]MH_SAM_APDU [17:50:49]CAPDU: 80 13 01 00 [17:50:49]Write to MH i2c: E2 08 00 7C 44 80 13 01 00 00 00 00 00 3D [17:50:49]Write i2c OK [17:50:49]MH_I2C_Read... [17:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:49]Read from MH i2c: E2 [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: E2 0E 00 [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: E2 0E 00 7C 44 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B1 [17:50:49]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:50:49]wFMCommunicate OK [17:50:49]SAM_PROTO_GetShiftState done [17:50:49]FM_GetShiftState done [17:50:49]req_shift_opened done [17:50:49]requested_item shift.open_date is exist - process it [17:50:49]req_shift_open_date [17:50:49]req_shift_open_date done [17:50:49]produce_requested_data done [17:50:49]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95228,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:50:49]process_action_free close_receipt [17:50:49]json_value_free [17:50:49]json_value_free done [17:50:49]process_json_proto returns [17:50:49]Send response to host [17:50:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95228,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:50:49]free response buf [17:50:49]execute_script done [17:50:49]execute_script returns [17:50:49]free content buf [17:50:49]Sock 9.Close socket [17:50:49]Sock 9.Thread stoped [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:57]accept exits with 8 [17:56:57]New connection [17:56:57]New thread 3066813796 created [17:56:57]Thread 3066957156 joined [17:56:57]Waiting for new connection... [17:56:57] Sock 8.Parse request [17:56:57]Sock 8.Check first char [17:56:57]Sock 8.First char is OK [17:56:57]request: POST /json_proto HTTP/1.0 [17:56:57]Method: POST [17:56:57]URL: /json_proto [17:56:57]Method is POST - this is cgi request [17:56:57]url: /json_proto [17:56:57]query_string will be loaded in cgi processing [17:56:57]execute_cgi json_proto POST (null) [17:56:57]execute_cgi path=json_proto method=POST [17:56:57]POST find Content-Length [17:56:57]Host: 172.17.62.67:8080 [17:56:57]Content-Length: 677 [17:56:57]Content-Type: application/json [17:56:57] [17:56:57]POST finish read [17:56:57]Found Content-Length = 677 [17:56:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 4.320, "sum" : 300.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:57]execute_script... [17:56: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)196201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 4.320, "sum" : 300.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:57]POST & json_proto [17:56:57]process_json_proto [17:56:57]json parsed OK: [17:56:57]protocol is kg_v1.0 [17:56:57]action value=close_receipt [17:56:57]process_action close_receipt [17:56:57]cmd_close_receipt [17:56:57]MH_GetDate [17:56:57]Write to MH i2c: F0 00 00 7D 44 B0 [17:56:57]Write i2c OK [17:56:57]MH_I2C_Read... [17:56:57]Read from MH i2c: F0 [17:56:57]MH_I2C_Read... [17:56:57]Read from MH i2c: F0 05 00 [17:56:57]MH_I2C_Read... [17:56:57]Read from MH i2c: F0 05 00 7D 44 00 6F 97 F0 65 10 [17:56:57]GetLastDocTimeStamp 1710265852 [17:56:57]current date 1710266223 [17:56:57]FM_GetShiftState [17:56:57]SAM_PROTO_GetShiftState [17:56:57]wFMCommunicate request_size=4 [17:56:57]MH_SAM_APDU [17:56:57]CAPDU: 80 13 01 00 [17:56:57]Write to MH i2c: E2 08 00 7E 44 80 13 01 00 00 00 00 00 3F [17:56:57]Write i2c OK [17:56:57]MH_I2C_Read... [17:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:57]Read from MH i2c: E2 [17:56:57]MH_I2C_Read... [17:56:57]Read from MH i2c: E2 0E 00 [17:56:57]MH_I2C_Read... [17:56:57]Read from MH i2c: E2 0E 00 7E 44 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B3 [17:56:57]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:56:57]wFMCommunicate OK [17:56:57]SAM_PROTO_GetShiftState done [17:56:57]FM_GetShiftState done [17:56:57]opened in 1710201976 [17:56:57]opened+sec_in_day 1710288376 [17:56:57]quantity*price = 30024 [17:56:57]sum+1 = 30025 [17:56:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 159 12.03.2024 17:57 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95229 ФПД: 30322715433759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T175703&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95229&fm=30322715433759&tin=02508201610067®Number=0000000000090555&sum=30000 [17:56:58]StoreToDocumentArchive [17:56:58]shift 327 fd 95229 [17:56:58]save to /storage/0327/doc_00095229 [17:56:58]save last doc name /storage/0327/doc_00095229 to /storage/kkm_last_doc_name [17:56:58]save OK [17:56:58]Clear old archive folders... [17:56:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:56:58]tlvbuf is 01A5F570 [17:56:58]SAM_PROTO_ClearQueue [17:56:58]wFMCommunicate request_size=4 [17:56:58]MH_SAM_APDU [17:56:58]CAPDU: 80 09 00 00 [17:56:58]Write to MH i2c: E2 08 00 8B 44 80 09 00 00 00 00 00 00 41 [17:56:58]Write i2c OK [17:56:58]MH_I2C_Read... [17:56:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:58]Read from MH i2c: E2 [17:56:58]MH_I2C_Read... [17:56:58]Read from MH i2c: E2 03 00 [17:56:58]MH_I2C_Read... [17:56:58]Read from MH i2c: E2 03 00 8B 44 00 90 00 43 [17:56:58]RAPDU: 90 00 [17:56:58]wFMCommunicate OK [17:56:58]SAM_PROTO_ClearQueue done [17:56:58]KKMCreateOFDPacket [17:56:58]OFDProtocolAddRootSTLVToBuf [17:56:58]FM_MakeSignedData [17:56:58]FM_MakeSignedData [17:56:58]SAM_PROTO_SignData [17:56:58]wFMCommunicate request_size=4 [17:56:58]MH_SAM_APDU [17:56:58]CAPDU: 80 0D 01 02 [17:56:58]Write to MH i2c: E2 08 00 8C 44 80 0D 01 02 00 00 00 00 49 [17:56:58]Write i2c OK [17:56:58]MH_I2C_Read... [17:56:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:58]Read from MH i2c: E2 [17:56:58]MH_I2C_Read... [17:56:58]Read from MH i2c: E2 03 00 [17:56:58]MH_I2C_Read... [17:56:58]Read from MH i2c: E2 03 00 8C 44 00 90 00 44 [17:56:58]RAPDU: 90 00 [17:56:58]wFMCommunicate OK [17:56:58]wFMCommunicate request_size=255 [17:56:58]MH_SAM_APDU [17:56: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 E0 10 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 48 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 6F 97 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FD 73 01 00 35 04 06 00 1B [17:56:58]Write to MH i2c: E2 02 01 8D 44 80 0D 02 02 FA 00 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 E0 10 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 48 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 6F 97 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FD 73 01 00 35 04 06 00 1B 00 00 E4 [17:56:58]Write i2c OK [17:56:58]MH_I2C_Read... [17:56:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:58]Read from MH i2c: E2 [17:56:58]MH_I2C_Read... [17:56:58]Read from MH i2c: E2 03 00 [17:56:58]MH_I2C_Read... [17:56:58]Read from MH i2c: E2 03 00 8D 44 00 90 00 45 [17:56:58]RAPDU: 90 00 [17:56:58]wFMCommunicate OK [17:56:58]wFMCommunicate request_size=10 [17:56:58]MH_SAM_APDU [17:56:58]CAPDU: 80 0D 02 02 05 94 0E AE 9B 1F [17:56:58]Write to MH i2c: E2 0D 00 8E 44 80 0D 02 02 05 00 94 0E AE 9B 1F 00 00 60 [17:56:58]Write i2c OK [17:56:58]MH_I2C_Read... [17:56:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:58]Read from MH i2c: E2 [17:56:58]MH_I2C_Read... [17:56:58]Read from MH i2c: E2 03 00 [17:56:58]MH_I2C_Read... [17:56:58]Read from MH i2c: E2 03 00 8E 44 00 90 00 46 [17:56:58]RAPDU: 90 00 [17:56:58]wFMCommunicate OK [17:56:58]wFMCommunicate request_size=4 [17:56:58]MH_SAM_APDU [17:56:58]CAPDU: 80 0D 03 02 [17:56:58]Write to MH i2c: E2 08 00 8F 44 80 0D 03 02 00 00 00 00 4E [17:56:58]Write i2c OK [17:56:58]MH_I2C_Read... [17:56:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:58]Read from MH i2c: E2 [17:56:58]MH_I2C_Read... [17:56:58]Read from MH i2c: E2 0B 00 [17:56:58]MH_I2C_Read... [17:56:58]Read from MH i2c: E2 0B 00 8F 44 00 67 E4 FB 3F AB F7 A1 C6 90 00 DD [17:56:58]RAPDU: 67 E4 FB 3F AB F7 A1 C6 90 00 [17:56:58]wFMCommunicate OK [17:56:58]SAM_PROTO_SignData done [17:56:58]FM_MakeSignedData done [17:56:58]CreateOFDProtocolMessage [17:56:58]wFMCommunicate request_size=4 [17:56:58]MH_SAM_APDU [17:56:58]CAPDU: 80 11 00 00 [17:56:58]Write to MH i2c: E2 08 00 90 44 80 11 00 00 00 00 00 00 4E [17:56:58]Write i2c OK [17:56:58]MH_I2C_Read... [17:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:59]Read from MH i2c: E2 [17:56:59]MH_I2C_Read... [17:56:59]Read from MH i2c: E2 17 00 [17:56:59]MH_I2C_Read... [17:56:59]Read from MH i2c: E2 17 00 90 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9E [17:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:56:59]wFMCommunicate OK [17:56:59]CreateOFDProtocolMessage done [17:56:59]OFDSenderStorePacket 95229 [17:56:59]StoreOFDPacket docnum=95229 [17:56:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C5 74 07 01 2A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 10 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 48 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 6F 97 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FD 73 01 00 35 04 06 00 1B 94 0E AE 9B 1F 67 E4 FB 3F AB F7 A1 C6 [17:56:59]CheckFolder [17:56:59]dirname=/storage/ofd_packets [17:56:59]CheckFolder done [17:56:59]ProducePacketName [17:56:59]name=ofd_packets/00095229 [17:56:59]NVStorageSaveData ofd_packets/00095229 [17:56:59]File name is /storage/ofd_packets/00095229 [17:56:59]Write 301 bytes [17:56:59]NVStorageSaveData done [17:56:59]OFDSenderStorePacket done [17:56:59]KKMCreateOFDPacket done [17:56:59]NVStorageSaveData kkm_last_timestamp [17:56:59]File name is /storage/kkm_last_timestamp [17:56:59]Write 4 bytes [17:56:59]NVStorageSaveData done [17:56:59]ExternCall_PrintAddStr [17:56:59]wPrintStart [17:56:59]Write to MH i2c: 01 00 00 91 44 D5 [17:56:59]Write i2c OK [17:56:59]MH_I2C_Read... [17:56:59]Read from MH i2c: 01 [17:56:59]MH_I2C_Read... [17:56:59]Read from MH i2c: 01 07 00 [17:56:59]MH_I2C_Read... [17:56:59]Read from MH i2c: 01 07 00 91 44 00 80 00 00 00 FF 0F 6A [17:56:59]RasterBufferAndPrint [17:56:59]line Счет N : (1)196201 [17:56:59]line ИНН: 02508201610067 [17:56:59]line Контрольно-Кассовый Чек [17:56:59]line ПРОДАЖА [17:56:59]line ТРК (МРК, ГНК) : 11 [17:56:59]line Товар: 2710124500 [17:56:59]line Аи-95-К-5 [17:56:59]line 4.320 * 69.50 [17:56:59]line = 300.24 [17:56:59]line НДС 12% НСП 1% [17:56:59]line > о реализуемом товаре [17:56:59]line ОКРУГЛЕНИЕ: -0.24 [17:56:59]line ИТОГО: 300.00 [17:56:59]line Внесено: 300.00 [17:56:59]line СДАЧА: 0.00 [17:56:59]line НСП 1% : 2.66 [17:56:59]line НДС 12% : 31.88 [17:56:59]line Наличными: 300.00 [17:56:59]line Безнал.: 0.00 [17:56:59]line Место: АЗС № 6 "Партнер Нефть" [17:56:59]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:56:59]line СНО: Общий режим [17:56:59]line Чек 159 12.03.2024 17:57 [17:56:59]line Смена: 327 ФФД: 1.0 [17:56:59]line ЗНМ: 0300000009 [17:56:59]line РНМ: 0000000000090555 [17:56:59]line Версия ККМ: 001 [17:56:59]line ФМ: 0000000000874811 [17:56:59]line ФД: 95229 [17:56:59]line ФПД: 30322715433759 [17:56:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T175703&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95229&fm=30322715433759&tin=02508201610067®Number=0000000000090555&sum=30000 [17:56:59]written 0, free lines is 4095 [17:56:59]OFD Sender: Processing packet 95229 [packets to send 30, broken 29] [17:56:59]ProducePacketName [17:56:59]name=ofd_packets/00095229 [17:56:59]OFD Sender: To server: pG, [17:56:59]CommunicateWithHost lk.salyk.kg:30040 [17:56:59]ConnectInit lk.salyk.kg [17:56:59]Connected sock=10 [17:56:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C5 74 07 01 2A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 10 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 48 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 6F 97 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FD 73 01 00 35 04 06 00 1B 94 0E AE 9B 1F 67 E4 FB 3F AB F7 A1 C6 [17:56:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 84 17 47 00 0F 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FD 73 01 00 F4 03 04 00 C4 42 F0 65 B6 04 01 00 00 63 E3 41 87 5C CC 7B 05 [17:56:59]CommunicateWithHost err = 0 [17:56:59]CheckOFDResponse [17:56:59]1017 (14) - 77093643461234 [17:56:59]1041 (16) - 0000000000874811 [17:56:59]1040 (4) - 95229 [17:56:59]1012 (4) - 12.03.2024 11:55 [17:56:59]1206 (1) - 0 [17:56:59]OFD Sender: Remove packet 95229 [17:56:59]ProducePacketName [17:56:59]name=ofd_packets/00095229 [17:56:59]NVStorageDeleteData [17:56:59]Write to MH i2c: 01 00 00 BC 44 00 [17:56:59]Write i2c OK [17:56:59]MH_I2C_Read... [17:56:59]Read from MH i2c: 01 [17:56:59]MH_I2C_Read... [17:56:59]Read from MH i2c: 01 07 00 [17:56:59]MH_I2C_Read... [17:56:59]Read from MH i2c: 01 07 00 BC 44 00 80 00 00 00 54 0D E8 [17:56:59]RasterBufferAndPrint [17:56:59]line [17:56:59]line [17:56:59]line [17:56:59]line [17:56:59]line [17:56:59]written 0, free lines is 3417 [17:56:59]process_action close_receipt done [17:56:59]requested_data is exist [17:56:59]produce_requested_data [17:56:59]requested_item fm.sn is exist - process it [17:56:59]wFMCommunicate request_size=4 [17:56:59]MH_SAM_APDU [17:56:59]CAPDU: 80 11 00 00 [17:56:59]Write to MH i2c: E2 08 00 C3 44 80 11 00 00 00 00 00 00 81 [17:56:59]Write i2c OK [17:56:59]MH_I2C_Read... [17:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:59]Read from MH i2c: E2 [17:56:59]MH_I2C_Read... [17:56:59]Read from MH i2c: E2 17 00 [17:56:59]MH_I2C_Read... [17:56:59]Read from MH i2c: E2 17 00 C3 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D1 [17:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:56:59]wFMCommunicate OK [17:56:59]requested_item fd.num is exist - process it [17:56:59]SAM_PROTO_GetFieldsCounters [17:56:59]wFMCommunicate request_size=4 [17:56:59]MH_SAM_APDU [17:56:59]CAPDU: 80 13 00 00 [17:56:59]Write to MH i2c: E2 08 00 C4 44 80 13 00 00 00 00 00 00 84 [17:56:59]Write i2c OK [17:56:59]MH_I2C_Read... [17:56:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:59]Read from MH i2c: E2 [17:56:59]MH_I2C_Read... [17:56:59]Read from MH i2c: E2 62 00 [17:56:59]MH_I2C_Read... [17:56:59]Read from MH i2c: E2 62 00 C4 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FD 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [17:56:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FD 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:59]wFMCommunicate OK [17:56:59]SAM_PROTO_GetFieldsCounters done [17:56:59]requested_item shift.num is exist - process it [17:56:59]requested_item shift.opened is exist - process it [17:56:59]req_shift_opened [17:56:59]FM_GetShiftState [17:56:59]SAM_PROTO_GetShiftState [17:56:59]wFMCommunicate request_size=4 [17:56:59]MH_SAM_APDU [17:56:59]CAPDU: 80 13 01 00 [17:56:59]Write to MH i2c: E2 08 00 C5 44 80 13 01 00 00 00 00 00 86 [17:56:59]Write i2c OK [17:56:59]MH_I2C_Read... [17:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:59]Read from MH i2c: E2 [17:56:59]MH_I2C_Read... [17:56:59]Read from MH i2c: E2 0E 00 [17:56:59]MH_I2C_Read... [17:56:59]Read from MH i2c: E2 0E 00 C5 44 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 FA [17:56:59]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:56:59]wFMCommunicate OK [17:56:59]SAM_PROTO_GetShiftState done [17:56:59]FM_GetShiftState done [17:56:59]req_shift_opened done [17:56:59]requested_item shift.open_date is exist - process it [17:56:59]req_shift_open_date [17:56:59]req_shift_open_date done [17:56:59]produce_requested_data done [17:56:59]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95229,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:56:59]process_action_free close_receipt [17:56:59]json_value_free [17:56:59]json_value_free done [17:56:59]process_json_proto returns [17:56:59]Send response to host [17:56:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95229,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:56:59]free response buf [17:56:59]execute_script done [17:56:59]execute_script returns [17:56:59]free content buf [17:56:59]Sock 8.Close socket [17:56:59]Sock 8.Thread stoped [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]accept exits with 9 [17:57:44]New connection [17:57:44]New thread 3066957156 created [17:57:44]Thread 3066813796 joined [17:57:44]Waiting for new connection... [17:57:44] Sock 9.Parse request [17:57:44]Sock 9.Check first char [17:57:44]Sock 9.First char is OK [17:57:44]request: POST /json_proto HTTP/1.0 [17:57:44]Method: POST [17:57:44]URL: /json_proto [17:57:44]Method is POST - this is cgi request [17:57:44]url: /json_proto [17:57:44]query_string will be loaded in cgi processing [17:57:44]execute_cgi json_proto POST (null) [17:57:44]execute_cgi path=json_proto method=POST [17:57:44]POST find Content-Length [17:57:44]Host: 172.17.62.67:8080 [17:57:44]Content-Length: 678 [17:57:44]Content-Type: application/json [17:57:44] [17:57:44]POST finish read [17:57:44]Found Content-Length = 678 [17:57:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "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" ] } } [17:57:44]execute_script... [17:57: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)196203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "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" ] } } [17:57:44]POST & json_proto [17:57:44]process_json_proto [17:57:44]json parsed OK: [17:57:44]protocol is kg_v1.0 [17:57:44]action value=close_receipt [17:57:44]process_action close_receipt [17:57:44]cmd_close_receipt [17:57:44]MH_GetDate [17:57:44]Write to MH i2c: F0 00 00 C6 44 F9 [17:57:44]Write i2c OK [17:57:44]MH_I2C_Read... [17:57:44]Read from MH i2c: F0 [17:57:44]MH_I2C_Read... [17:57:44]Read from MH i2c: F0 05 00 [17:57:44]MH_I2C_Read... [17:57:44]Read from MH i2c: F0 05 00 C6 44 00 9E 97 F0 65 88 [17:57:44]GetLastDocTimeStamp 1710266223 [17:57:44]current date 1710266270 [17:57:44]FM_GetShiftState [17:57:44]SAM_PROTO_GetShiftState [17:57:44]wFMCommunicate request_size=4 [17:57:44]MH_SAM_APDU [17:57:44]CAPDU: 80 13 01 00 [17:57:44]Write to MH i2c: E2 08 00 C7 44 80 13 01 00 00 00 00 00 88 [17:57:44]Write i2c OK [17:57:44]MH_I2C_Read... [17:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:44]Read from MH i2c: E2 [17:57:44]MH_I2C_Read... [17:57:44]Read from MH i2c: E2 0E 00 [17:57:44]MH_I2C_Read... [17:57:44]Read from MH i2c: E2 0E 00 C7 44 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 FC [17:57:44]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:57:44]wFMCommunicate OK [17:57:44]SAM_PROTO_GetShiftState done [17:57:44]FM_GetShiftState done [17:57:44]opened in 1710201976 [17:57:44]opened+sec_in_day 1710288376 [17:57:44]quantity*price = 70007 [17:57:44]sum+1 = 70009 [17:57:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 160 12.03.2024 17:57 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95230 ФПД: 109564963188265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T175751&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95230&fm=109564963188265&tin=02508201610067®Number=0000000000090555&sum=70000 [17:57:45]StoreToDocumentArchive [17:57:45]shift 327 fd 95230 [17:57:45]save to /storage/0327/doc_00095230 [17:57:45]save last doc name /storage/0327/doc_00095230 to /storage/kkm_last_doc_name [17:57:45]save OK [17:57:45]Clear old archive folders... [17:57:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:57:45]tlvbuf is 01A8DB30 [17:57:45]SAM_PROTO_ClearQueue [17:57:45]wFMCommunicate request_size=4 [17:57:45]MH_SAM_APDU [17:57:45]CAPDU: 80 09 00 00 [17:57:45]Write to MH i2c: E2 08 00 D4 44 80 09 00 00 00 00 00 00 8A [17:57:45]Write i2c OK [17:57:45]MH_I2C_Read... [17:57:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:45]Read from MH i2c: E2 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: E2 03 00 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: E2 03 00 D4 44 00 90 00 8C [17:57:45]RAPDU: 90 00 [17:57:45]wFMCommunicate OK [17:57:45]SAM_PROTO_ClearQueue done [17:57:45]KKMCreateOFDPacket [17:57:45]OFDProtocolAddRootSTLVToBuf [17:57:45]FM_MakeSignedData [17:57:45]FM_MakeSignedData [17:57:45]SAM_PROTO_SignData [17:57:45]wFMCommunicate request_size=4 [17:57:45]MH_SAM_APDU [17:57:45]CAPDU: 80 0D 01 02 [17:57:45]Write to MH i2c: E2 08 00 D5 44 80 0D 01 02 00 00 00 00 92 [17:57:45]Write i2c OK [17:57:45]MH_I2C_Read... [17:57:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:45]Read from MH i2c: E2 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: E2 03 00 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: E2 03 00 D5 44 00 90 00 8D [17:57:45]RAPDU: 90 00 [17:57:45]wFMCommunicate OK [17:57:45]wFMCommunicate request_size=255 [17:57:45]MH_SAM_APDU [17:57:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 A0 00 00 00 F4 03 04 00 9F 97 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FE 73 01 00 35 04 06 00 63 [17:57:45]Write to MH i2c: E2 02 01 D6 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 A0 00 00 00 F4 03 04 00 9F 97 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FE 73 01 00 35 04 06 00 63 00 00 51 [17:57:45]Write i2c OK [17:57:45]MH_I2C_Read... [17:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:46]Read from MH i2c: E2 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 03 00 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 03 00 D6 44 00 90 00 8E [17:57:46]RAPDU: 90 00 [17:57:46]wFMCommunicate OK [17:57:46]wFMCommunicate request_size=10 [17:57:46]MH_SAM_APDU [17:57:46]CAPDU: 80 0D 02 02 05 A6 14 B5 EE 29 [17:57:46]Write to MH i2c: E2 0D 00 D7 44 80 0D 02 02 05 00 A6 14 B5 EE 29 00 00 25 [17:57:46]Write i2c OK [17:57:46]MH_I2C_Read... [17:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:46]Read from MH i2c: E2 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 03 00 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 03 00 D7 44 00 90 00 8F [17:57:46]RAPDU: 90 00 [17:57:46]wFMCommunicate OK [17:57:46]wFMCommunicate request_size=4 [17:57:46]MH_SAM_APDU [17:57:46]CAPDU: 80 0D 03 02 [17:57:46]Write to MH i2c: E2 08 00 D8 44 80 0D 03 02 00 00 00 00 97 [17:57:46]Write i2c OK [17:57:46]MH_I2C_Read... [17:57:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:46]Read from MH i2c: E2 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 0B 00 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 0B 00 D8 44 00 D8 F0 D7 0F DD 53 01 87 90 00 FE [17:57:46]RAPDU: D8 F0 D7 0F DD 53 01 87 90 00 [17:57:46]wFMCommunicate OK [17:57:46]SAM_PROTO_SignData done [17:57:46]FM_MakeSignedData done [17:57:46]CreateOFDProtocolMessage [17:57:46]wFMCommunicate request_size=4 [17:57:46]MH_SAM_APDU [17:57:46]CAPDU: 80 11 00 00 [17:57:46]Write to MH i2c: E2 08 00 D9 44 80 11 00 00 00 00 00 00 97 [17:57:46]Write i2c OK [17:57:46]MH_I2C_Read... [17:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:46]Read from MH i2c: E2 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 17 00 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 17 00 D9 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E7 [17:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:57:46]wFMCommunicate OK [17:57:46]CreateOFDProtocolMessage done [17:57:46]OFDSenderStorePacket 95230 [17:57:46]StoreOFDPacket docnum=95230 [17:57:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 04 73 07 01 7E D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 A0 00 00 00 F4 03 04 00 9F 97 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FE 73 01 00 35 04 06 00 63 A6 14 B5 EE 29 D8 F0 D7 0F DD 53 01 87 [17:57:46]CheckFolder [17:57:46]dirname=/storage/ofd_packets [17:57:46]CheckFolder done [17:57:46]ProducePacketName [17:57:46]name=ofd_packets/00095230 [17:57:46]NVStorageSaveData ofd_packets/00095230 [17:57:46]File name is /storage/ofd_packets/00095230 [17:57:46]Write 301 bytes [17:57:46]NVStorageSaveData done [17:57:46]OFDSenderStorePacket done [17:57:46]KKMCreateOFDPacket done [17:57:46]NVStorageSaveData kkm_last_timestamp [17:57:46]File name is /storage/kkm_last_timestamp [17:57:46]Write 4 bytes [17:57:46]NVStorageSaveData done [17:57:46]ExternCall_PrintAddStr [17:57:46]wPrintStart [17:57:46]Write to MH i2c: 01 00 00 DA 44 1E [17:57:46]Write i2c OK [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: 01 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: 01 07 00 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: 01 07 00 DA 44 00 80 00 00 00 FF 0F B3 [17:57:46]RasterBufferAndPrint [17:57:46]line Счет N : (1)196203 [17:57:46]line ИНН: 02508201610067 [17:57:46]line Контрольно-Кассовый Чек [17:57:46]line ПРОДАЖА [17:57:46]line ТРК (МРК, ГНК) : 12 [17:57:46]line Товар: 2710124130 [17:57:46]line Аи-92-К-5 [17:57:46]line 11.130 * 62.90 [17:57:46]line = 700.08 [17:57:46]line НДС 12% НСП 1% [17:57:46]line > о реализуемом товаре [17:57:46]line ОКРУГЛЕНИЕ: -0.08 [17:57:46]line ИТОГО: 700.00 [17:57:46]line Внесено: 700.00 [17:57:46]line СДАЧА: 0.00 [17:57:46]line НСП 1% : 6.19 [17:57:46]line НДС 12% : 74.34 [17:57:46]line Наличными: 700.00 [17:57:46]line Безнал.: 0.00 [17:57:46]line Место: АЗС № 6 "Партнер Нефть" [17:57:46]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:57:46]line СНО: Общий режим [17:57:46]line Чек 160 12.03.2024 17:57 [17:57:46]line Смена: 327 ФФД: 1.0 [17:57:46]line ЗНМ: 0300000009 [17:57:46]line РНМ: 0000000000090555 [17:57:46]line Версия ККМ: 001 [17:57:46]line ФМ: 0000000000874811 [17:57:46]line ФД: 95230 [17:57:46]line ФПД: 109564963188265 [17:57:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T175751&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95230&fm=109564963188265&tin=02508201610067®Number=0000000000090555&sum=70000 [17:57:46]written 0, free lines is 4095 [17:57:46]OFD Sender: Processing packet 95230 [packets to send 30, broken 29] [17:57:46]ProducePacketName [17:57:46]name=ofd_packets/00095230 [17:57:46]OFD Sender: To server: pG, [17:57:46]CommunicateWithHost lk.salyk.kg:30040 [17:57:46]ConnectInit lk.salyk.kg [17:57:46]Connected sock=11 [17:57:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 04 73 07 01 7E D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 A0 00 00 00 F4 03 04 00 9F 97 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FE 73 01 00 35 04 06 00 63 A6 14 B5 EE 29 D8 F0 D7 0F DD 53 01 87 [17:57:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 7F 89 47 00 4D 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FE 73 01 00 F4 03 04 00 F4 42 F0 65 B6 04 01 00 00 79 5E 1B 73 68 AA EE 27 [17:57:46]CommunicateWithHost err = 0 [17:57:46]CheckOFDResponse [17:57:46]1017 (14) - 77093643461234 [17:57:46]1041 (16) - 0000000000874811 [17:57:46]1040 (4) - 95230 [17:57:46]1012 (4) - 12.03.2024 11:56 [17:57:46]1206 (1) - 0 [17:57:46]OFD Sender: Remove packet 95230 [17:57:46]ProducePacketName [17:57:46]name=ofd_packets/00095230 [17:57:46]NVStorageDeleteData [17:57:47]Write to MH i2c: 01 00 00 05 45 4A [17:57:47]Write i2c OK [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: 01 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: 01 07 00 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: 01 07 00 05 45 00 80 00 00 00 4D 0D 2B [17:57:47]RasterBufferAndPrint [17:57:47]line [17:57:47]line [17:57:47]line [17:57:47]line [17:57:47]line [17:57:47]written 0, free lines is 3411 [17:57:47]process_action close_receipt done [17:57:47]requested_data is exist [17:57:47]produce_requested_data [17:57:47]requested_item fm.sn is exist - process it [17:57:47]wFMCommunicate request_size=4 [17:57:47]MH_SAM_APDU [17:57:47]CAPDU: 80 11 00 00 [17:57:47]Write to MH i2c: E2 08 00 0C 45 80 11 00 00 00 00 00 00 CB [17:57:47]Write i2c OK [17:57:47]MH_I2C_Read... [17:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:47]Read from MH i2c: E2 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 17 00 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 17 00 0C 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1B [17:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:57:47]wFMCommunicate OK [17:57:47]requested_item fd.num is exist - process it [17:57:47]SAM_PROTO_GetFieldsCounters [17:57:47]wFMCommunicate request_size=4 [17:57:47]MH_SAM_APDU [17:57:47]CAPDU: 80 13 00 00 [17:57:47]Write to MH i2c: E2 08 00 0D 45 80 13 00 00 00 00 00 00 CE [17:57:47]Write i2c OK [17:57:47]MH_I2C_Read... [17:57:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:47]Read from MH i2c: E2 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 62 00 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 62 00 0D 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FE 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [17:57:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FE 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:47]wFMCommunicate OK [17:57:47]SAM_PROTO_GetFieldsCounters done [17:57:47]requested_item shift.num is exist - process it [17:57:47]requested_item shift.opened is exist - process it [17:57:47]req_shift_opened [17:57:47]FM_GetShiftState [17:57:47]SAM_PROTO_GetShiftState [17:57:47]wFMCommunicate request_size=4 [17:57:47]MH_SAM_APDU [17:57:47]CAPDU: 80 13 01 00 [17:57:47]Write to MH i2c: E2 08 00 0E 45 80 13 01 00 00 00 00 00 D0 [17:57:47]Write i2c OK [17:57:47]MH_I2C_Read... [17:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:47]Read from MH i2c: E2 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 0E 00 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 0E 00 0E 45 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 44 [17:57:47]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:57:47]wFMCommunicate OK [17:57:47]SAM_PROTO_GetShiftState done [17:57:47]FM_GetShiftState done [17:57:47]req_shift_opened done [17:57:47]requested_item shift.open_date is exist - process it [17:57:47]req_shift_open_date [17:57:47]req_shift_open_date done [17:57:47]produce_requested_data done [17:57:47]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95230,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:57:47]process_action_free close_receipt [17:57:47]json_value_free [17:57:47]json_value_free done [17:57:47]process_json_proto returns [17:57:47]Send response to host [17:57:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95230,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:57:47]free response buf [17:57:47]execute_script done [17:57:47]execute_script returns [17:57:47]free content buf [17:57:47]Sock 9.Close socket [17:57:47]Sock 9.Thread stoped [17:57:47]OFD Sender: No OFD packet to send [17:57:50]accept exits with 8 [17:57:50]New connection [17:57:50]New thread 3066813796 created [17:57:50]Thread 3066957156 joined [17:57:50]Waiting for new connection... [17:57:50] Sock 8.Parse request [17:57:50]Sock 8.Check first char [17:57:50]Sock 8.First char is OK [17:57:50]request: POST /json_proto HTTP/1.0 [17:57:50]Method: POST [17:57:50]URL: /json_proto [17:57:50]Method is POST - this is cgi request [17:57:50]url: /json_proto [17:57:50]query_string will be loaded in cgi processing [17:57:50]execute_cgi json_proto POST (null) [17:57:50]execute_cgi path=json_proto method=POST [17:57:50]POST find Content-Length [17:57:50]Host: 172.17.62.67:8080 [17:57:50]Content-Length: 1203 [17:57:50]Content-Type: application/json [17:57:50] [17:57:50]POST finish read [17:57:50]Found Content-Length = 1203 [17:57:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196202\u000A12.03.2024 17:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3484860.58\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:50]execute_script... [17:57:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196202\u000A12.03.2024 17:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3484860.58\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:50]POST & json_proto [17:57:50]process_json_proto [17:57:50]json parsed OK: [17:57:50]protocol is kg_v1.0 [17:57:50]action value=print_text [17:57:50]process_action print_text [17:57:50]cmd_print_text [17:57:50]ExternCall_PrintAddStr [17:57:50]wPrintStart [17:57:50]Write to MH i2c: 01 00 00 0F 45 54 [17:57:50]Write i2c OK [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: 01 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: 01 07 00 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: 01 07 00 0F 45 00 80 00 00 00 FF 0F E9 [17:57:50]RasterBufferAndPrint [17:57:50]line *****ТОВАРНЫЙ ЧЕК***** [17:57:50]line АЗС 6 [17:57:50]line Партнер нефть [17:57:50]line 02508201610067 [17:57:50]line Кассир : Мыктыбекова И. [17:57:50]line Счет N : (1)196202 [17:57:50]line 12.03.2024 17:52 [17:57:50]line ПРОДАЖА [17:57:50]line ТРК (МРК, ГНК): 32 [17:57:50]line Вид ГСМ : 2710124130 [17:57:50]line Аи-92-К-5 [17:57:50]line 10.000 x 62.90 [17:57:50]line ИТОГ: 629.00 [17:57:50]line Тип оплаты: Талоны: Партнер нефть [17:57:50]line 3484860.58 [17:57:50]line ______________________ [17:57:50]line (подпись) [17:57:50]written 0, free lines is 4095 [17:57:50]Write to MH i2c: 01 00 00 23 45 68 [17:57:50]Write i2c OK [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: 01 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: 01 07 00 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: 01 07 00 23 45 00 80 00 00 00 6B 0E 68 [17:57:50]RasterBufferAndPrint [17:57:50]line [17:57:50]line [17:57:50]line [17:57:50]line [17:57:50]line [17:57:50]written 0, free lines is 3698 [17:57:50]process_action print_text done [17:57:50]requested_data is exist [17:57:50]produce_requested_data [17:57:50]requested_item fm.sn is exist - process it [17:57:50]wFMCommunicate request_size=4 [17:57:50]MH_SAM_APDU [17:57:50]CAPDU: 80 11 00 00 [17:57:50]Write to MH i2c: E2 08 00 2A 45 80 11 00 00 00 00 00 00 E9 [17:57:50]Write i2c OK [17:57:50]MH_I2C_Read... [17:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:50]Read from MH i2c: E2 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: E2 17 00 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: E2 17 00 2A 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 39 [17:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:57:50]wFMCommunicate OK [17:57:50]requested_item fd.num is exist - process it [17:57:50]SAM_PROTO_GetFieldsCounters [17:57:50]wFMCommunicate request_size=4 [17:57:50]MH_SAM_APDU [17:57:50]CAPDU: 80 13 00 00 [17:57:50]Write to MH i2c: E2 08 00 2B 45 80 13 00 00 00 00 00 00 EC [17:57:50]Write i2c OK [17:57:50]MH_I2C_Read... [17:57:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:50]Read from MH i2c: E2 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: E2 62 00 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: E2 62 00 2B 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FE 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [17:57:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FE 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:50]wFMCommunicate OK [17:57:50]SAM_PROTO_GetFieldsCounters done [17:57:50]requested_item shift.num is exist - process it [17:57:50]requested_item shift.opened is exist - process it [17:57:50]req_shift_opened [17:57:50]FM_GetShiftState [17:57:50]SAM_PROTO_GetShiftState [17:57:50]wFMCommunicate request_size=4 [17:57:50]MH_SAM_APDU [17:57:50]CAPDU: 80 13 01 00 [17:57:50]Write to MH i2c: E2 08 00 2C 45 80 13 01 00 00 00 00 00 EE [17:57:50]Write i2c OK [17:57:50]MH_I2C_Read... [17:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:50]Read from MH i2c: E2 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: E2 0E 00 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: E2 0E 00 2C 45 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 62 [17:57:50]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [17:57:50]wFMCommunicate OK [17:57:50]SAM_PROTO_GetShiftState done [17:57:50]FM_GetShiftState done [17:57:50]req_shift_opened done [17:57:50]requested_item shift.open_date is exist - process it [17:57:50]req_shift_open_date [17:57:50]req_shift_open_date done [17:57:50]produce_requested_data done [17:57:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95230,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [17:57:50]process_action_free print_text [17:57:50]json_value_free [17:57:50]json_value_free done [17:57:50]process_json_proto returns [17:57:50]Send response to host [17:57:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95230,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [17:57:50]free response buf [17:57:50]execute_script done [17:57:50]execute_script returns [17:57:50]free content buf [17:57:50]Sock 8.Close socket [17:57:50]Sock 8.Thread stoped [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:19]accept exits with 9 [18:00:19]New connection [18:00:19]New thread 3066957156 created [18:00:19]Thread 3066813796 joined [18:00:19]Waiting for new connection... [18:00:19] Sock 9.Parse request [18:00:19]Sock 9.Check first char [18:00:19]Sock 9.First char is OK [18:00:19]request: POST /json_proto HTTP/1.0 [18:00:19]Method: POST [18:00:19]URL: /json_proto [18:00:19]Method is POST - this is cgi request [18:00:19]url: /json_proto [18:00:19]query_string will be loaded in cgi processing [18:00:19]execute_cgi json_proto POST (null) [18:00:19]execute_cgi path=json_proto method=POST [18:00:19]POST find Content-Length [18:00:19]Host: 172.17.62.67:8080 [18:00:19]Content-Length: 1204 [18:00:19]Content-Type: application/json [18:00:19] [18:00:19]POST finish read [18:00:19]Found Content-Length = 1204 [18:00: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196204\u000A12.03.2024 17:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A3825728.27\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:19]execute_script... [18:00: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196204\u000A12.03.2024 17:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A3825728.27\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:19]POST & json_proto [18:00:19]process_json_proto [18:00:19]json parsed OK: [18:00:19]protocol is kg_v1.0 [18:00:19]action value=print_text [18:00:19]process_action print_text [18:00:19]cmd_print_text [18:00:19]ExternCall_PrintAddStr [18:00:19]wPrintStart [18:00:19]Write to MH i2c: 01 00 00 2D 45 72 [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: 01 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: 01 07 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: 01 07 00 2D 45 00 80 00 00 00 FF 0F 07 [18:00:19]RasterBufferAndPrint [18:00:19]line *****ТОВАРНЫЙ ЧЕК***** [18:00:19]line АЗС 6 [18:00:19]line Партнер нефть [18:00:19]line 02508201610067 [18:00:19]line Кассир : Мыктыбекова И. [18:00:19]line Счет N : (1)196204 [18:00:19]line 12.03.2024 17:54 [18:00:19]line ПРОДАЖА [18:00:19]line ТРК (МРК, ГНК): 12 [18:00:19]line Вид ГСМ : 2710124130 [18:00:19]line Аи-92-К-5 [18:00:19]line 20.000 x 62.90 [18:00:19]line ИТОГ: 1258.00 [18:00:19]line Тип оплаты: Талоны: Партнер нефть [18:00:19]line 3825728.27 [18:00:19]line ______________________ [18:00:19]line (подпись) [18:00:19]written 0, free lines is 4095 [18:00:19]Write to MH i2c: 01 00 00 41 45 86 [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: 01 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: 01 07 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: 01 07 00 41 45 00 80 00 00 00 6B 0E 86 [18:00:19]RasterBufferAndPrint [18:00:19]line [18:00:19]line [18:00:19]line [18:00:19]line [18:00:19]line [18:00:19]written 0, free lines is 3694 [18:00:19]process_action print_text done [18:00:19]requested_data is exist [18:00:19]produce_requested_data [18:00:19]requested_item fm.sn is exist - process it [18:00:19]wFMCommunicate request_size=4 [18:00:19]MH_SAM_APDU [18:00:19]CAPDU: 80 11 00 00 [18:00:19]Write to MH i2c: E2 08 00 48 45 80 11 00 00 00 00 00 00 07 [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:19]Read from MH i2c: E2 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 17 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 17 00 48 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 57 [18:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:00:19]wFMCommunicate OK [18:00:19]requested_item fd.num is exist - process it [18:00:19]SAM_PROTO_GetFieldsCounters [18:00:19]wFMCommunicate request_size=4 [18:00:19]MH_SAM_APDU [18:00:19]CAPDU: 80 13 00 00 [18:00:19]Write to MH i2c: E2 08 00 49 45 80 13 00 00 00 00 00 00 0A [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:19]Read from MH i2c: E2 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 62 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 62 00 49 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FE 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [18:00:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FE 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:00:19]wFMCommunicate OK [18:00:19]SAM_PROTO_GetFieldsCounters done [18:00:19]requested_item shift.num is exist - process it [18:00:19]requested_item shift.opened is exist - process it [18:00:19]req_shift_opened [18:00:19]FM_GetShiftState [18:00:19]SAM_PROTO_GetShiftState [18:00:19]wFMCommunicate request_size=4 [18:00:19]MH_SAM_APDU [18:00:19]CAPDU: 80 13 01 00 [18:00:19]Write to MH i2c: E2 08 00 4A 45 80 13 01 00 00 00 00 00 0C [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:19]Read from MH i2c: E2 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 0E 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 0E 00 4A 45 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 80 [18:00:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:00:19]wFMCommunicate OK [18:00:19]SAM_PROTO_GetShiftState done [18:00:19]FM_GetShiftState done [18:00:19]req_shift_opened done [18:00:19]requested_item shift.open_date is exist - process it [18:00:19]req_shift_open_date [18:00:19]req_shift_open_date done [18:00:19]produce_requested_data done [18:00:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95230,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:00:19]process_action_free print_text [18:00:19]json_value_free [18:00:19]json_value_free done [18:00:19]process_json_proto returns [18:00:19]Send response to host [18:00:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95230,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:00:19]free response buf [18:00:19]execute_script done [18:00:19]execute_script returns [18:00:19]free content buf [18:00:19]Sock 9.Close socket [18:00:19]Sock 9.Thread stoped [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:16]accept exits with 8 [18:01:16]New connection [18:01:16]New thread 3066813796 created [18:01:16]Thread 3066957156 joined [18:01:16]Waiting for new connection... [18:01:16] Sock 8.Parse request [18:01:16]Sock 8.Check first char [18:01:16]Sock 8.First char is OK [18:01:16]request: POST /json_proto HTTP/1.0 [18:01:16]Method: POST [18:01:16]URL: /json_proto [18:01:16]Method is POST - this is cgi request [18:01:16]url: /json_proto [18:01:16]query_string will be loaded in cgi processing [18:01:16]execute_cgi json_proto POST (null) [18:01:16]execute_cgi path=json_proto method=POST [18:01:16]POST find Content-Length [18:01:16]Host: 172.17.62.67:8080 [18:01:16]Content-Length: 674 [18:01:16]Content-Type: application/json [18:01:16] [18:01:16]POST finish read [18:01:16]Found Content-Length = 674 [18:01:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:16]execute_script... [18:01: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)196205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:16]POST & json_proto [18:01:16]process_json_proto [18:01:16]json parsed OK: [18:01:16]protocol is kg_v1.0 [18:01:16]action value=close_receipt [18:01:16]process_action close_receipt [18:01:16]cmd_close_receipt [18:01:16]MH_GetDate [18:01:16]Write to MH i2c: F0 00 00 4B 45 7F [18:01:16]Write i2c OK [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: F0 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: F0 05 00 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: F0 05 00 4B 45 00 72 98 F0 65 E3 [18:01:16]GetLastDocTimeStamp 1710266271 [18:01:16]current date 1710266482 [18:01:16]FM_GetShiftState [18:01:16]SAM_PROTO_GetShiftState [18:01:16]wFMCommunicate request_size=4 [18:01:16]MH_SAM_APDU [18:01:16]CAPDU: 80 13 01 00 [18:01:16]Write to MH i2c: E2 08 00 4C 45 80 13 01 00 00 00 00 00 0E [18:01:16]Write i2c OK [18:01:16]MH_I2C_Read... [18:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:16]Read from MH i2c: E2 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: E2 0E 00 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: E2 0E 00 4C 45 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 82 [18:01:16]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:01:16]wFMCommunicate OK [18:01:16]SAM_PROTO_GetShiftState done [18:01:16]FM_GetShiftState done [18:01:16]opened in 1710201976 [18:01:16]opened+sec_in_day 1710288376 [18:01:16]quantity*price = 50055 [18:01:16]sum+1 = 50056 [18:01:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 161 12.03.2024 18:01 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95231 ФПД: 193010200956591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T180122&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95231&fm=193010200956591&tin=02508201610067®Number=0000000000090555&sum=50000 [18:01:17]StoreToDocumentArchive [18:01:17]shift 327 fd 95231 [18:01:17]save to /storage/0327/doc_00095231 [18:01:17]save last doc name /storage/0327/doc_00095231 to /storage/kkm_last_doc_name [18:01:17]save OK [18:01:17]Clear old archive folders... [18:01:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:01:17]tlvbuf is 01AF9CF0 [18:01:17]SAM_PROTO_ClearQueue [18:01:17]wFMCommunicate request_size=4 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 09 00 00 [18:01:17]Write to MH i2c: E2 08 00 59 45 80 09 00 00 00 00 00 00 10 [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 59 45 00 90 00 12 [18:01:17]RAPDU: 90 00 [18:01:17]wFMCommunicate OK [18:01:17]SAM_PROTO_ClearQueue done [18:01:17]KKMCreateOFDPacket [18:01:17]OFDProtocolAddRootSTLVToBuf [18:01:17]FM_MakeSignedData [18:01:17]FM_MakeSignedData [18:01:17]SAM_PROTO_SignData [18:01:17]wFMCommunicate request_size=4 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 0D 01 02 [18:01:17]Write to MH i2c: E2 08 00 5A 45 80 0D 01 02 00 00 00 00 18 [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 5A 45 00 90 00 13 [18:01:17]RAPDU: 90 00 [18:01:17]wFMCommunicate OK [18:01:17]wFMCommunicate request_size=255 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 72 98 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FF 73 01 00 35 04 06 00 AF 8A B0 77 [18:01:17]Write to MH i2c: E2 02 01 5B 45 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 72 98 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FF 73 01 00 35 04 06 00 AF 8A B0 77 00 00 0C [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]OFD Sender: No OFD packet to send [18:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 5B 45 00 90 00 14 [18:01:17]RAPDU: 90 00 [18:01:17]wFMCommunicate OK [18:01:17]wFMCommunicate request_size=7 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 0D 02 02 02 4E AF [18:01:17]Write to MH i2c: E2 0A 00 5C 45 80 0D 02 02 02 00 4E AF 00 00 1C [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 5C 45 00 90 00 15 [18:01:17]RAPDU: 90 00 [18:01:17]wFMCommunicate OK [18:01:17]wFMCommunicate request_size=4 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 0D 03 02 [18:01:17]Write to MH i2c: E2 08 00 5D 45 80 0D 03 02 00 00 00 00 1D [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 0B 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 0B 00 5D 45 00 26 E1 B8 3A D3 AD 5F E2 90 00 D8 [18:01:17]RAPDU: 26 E1 B8 3A D3 AD 5F E2 90 00 [18:01:17]wFMCommunicate OK [18:01:17]SAM_PROTO_SignData done [18:01:17]FM_MakeSignedData done [18:01:17]CreateOFDProtocolMessage [18:01:17]wFMCommunicate request_size=4 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 11 00 00 [18:01:17]Write to MH i2c: E2 08 00 5E 45 80 11 00 00 00 00 00 00 1D [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 17 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 17 00 5E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6D [18:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:01:17]wFMCommunicate OK [18:01:17]CreateOFDProtocolMessage done [18:01:17]OFDSenderStorePacket 95231 [18:01:17]StoreOFDPacket docnum=95231 [18:01:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 DA D6 04 01 0D 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 72 98 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FF 73 01 00 35 04 06 00 AF 8A B0 77 4E AF 26 E1 B8 3A D3 AD 5F E2 [18:01:17]CheckFolder [18:01:17]dirname=/storage/ofd_packets [18:01:17]CheckFolder done [18:01:17]ProducePacketName [18:01:17]name=ofd_packets/00095231 [18:01:17]NVStorageSaveData ofd_packets/00095231 [18:01:17]File name is /storage/ofd_packets/00095231 [18:01:17]Write 298 bytes [18:01:17]NVStorageSaveData done [18:01:17]OFDSenderStorePacket done [18:01:17]KKMCreateOFDPacket done [18:01:17]NVStorageSaveData kkm_last_timestamp [18:01:17]File name is /storage/kkm_last_timestamp [18:01:17]Write 4 bytes [18:01:17]NVStorageSaveData done [18:01:17]ExternCall_PrintAddStr [18:01:17]wPrintStart [18:01:17]Write to MH i2c: 01 00 00 5F 45 A4 [18:01:17]OFD Sender: Processing packet 95231 [packets to send 30, broken 29] [18:01:17]ProducePacketName [18:01:17]name=ofd_packets/00095231 [18:01:17]OFD Sender: To server: pG, [18:01:17]CommunicateWithHost lk.salyk.kg:30040 [18:01:17]ConnectInit lk.salyk.kg [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: 01 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: 01 07 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: 01 07 00 5F 45 00 80 00 00 00 FF 0F 39 [18:01:17]RasterBufferAndPrint [18:01:17]line Счет N : (1)196205 [18:01:17]line ИНН: 02508201610067 [18:01:17]line Контрольно-Кассовый Чек [18:01:17]line ПРОДАЖА [18:01:17]line ТРК (МРК, ГНК) : 51 [18:01:17]line Товар: 2710194210 [18:01:17]line ДТ-К-5 [18:01:17]line 7.060 * 70.90 [18:01:17]line = 500.55 [18:01:17]line НДС 12% НСП 1% [18:01:17]line > о реализуемом товаре [18:01:17]line ОКРУГЛЕНИЕ: -0.55 [18:01:17]line ИТОГО: 500.00 [18:01:17]line Внесено: 500.00 [18:01:17]line СДАЧА: 0.00 [18:01:17]line НСП 1% : 4.43 [18:01:17]line НДС 12% : 53.16 [18:01:17]line Наличными: 500.00 [18:01:17]line Безнал.: 0.00 [18:01:17]line Место: АЗС № 6 "Партнер Нефть" [18:01:17]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:01:17]line СНО: Общий режим [18:01:17]line Чек 161 12.03.2024 18:01 [18:01:17]line Смена: 327 ФФД: 1.0 [18:01:17]line ЗНМ: 0300000009 [18:01:17]line РНМ: 0000000000090555 [18:01:17]line Версия ККМ: 001 [18:01:17]line ФМ: 0000000000874811 [18:01:17]line ФД: 95231 [18:01:17]line ФПД: 193010200956591 [18:01:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T180122&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95231&fm=193010200956591&tin=02508201610067®Number=0000000000090555&sum=50000 [18:01:18]Connected sock=9 [18:01:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 written 0, free lines is 4095 [18:01:18]30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 DA D6 04 01 0D 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 72 98 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FF 73 01 00 35 04 06 00 AF 8A B0 77 4E AF 26 E1 B8 3A D3 AD 5F E2 [18:01:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 0D DC 47 00 2E 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FF 73 01 00 F4 03 04 00 C7 43 F0 65 B6 04 01 00 00 28 E4 2E 32 02 AC 14 90 [18:01:18]CommunicateWithHost err = 0 [18:01:18]CheckOFDResponse [18:01:18]1017 (14) - 77093643461234 [18:01:18]1041 (16) - 0000000000874811 [18:01:18]1040 (4) - 95231 [18:01:18]1012 (4) - 12.03.2024 12:00 [18:01:18]1206 (1) - 0 [18:01:18]OFD Sender: Remove packet 95231 [18:01:18]ProducePacketName [18:01:18]name=ofd_packets/00095231 [18:01:18]NVStorageDeleteData [18:01:18]Write to MH i2c: 01 00 00 8A 45 CF [18:01:18]Write i2c OK [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: 01 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: 01 07 00 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: 01 07 00 8A 45 00 80 00 00 00 47 0D AA [18:01:18]RasterBufferAndPrint [18:01:18]line [18:01:18]line [18:01:18]line [18:01:18]line [18:01:18]line [18:01:18]written 0, free lines is 3407 [18:01:18]process_action close_receipt done [18:01:18]requested_data is exist [18:01:18]produce_requested_data [18:01:18]requested_item fm.sn is exist - process it [18:01:18]wFMCommunicate request_size=4 [18:01:18]MH_SAM_APDU [18:01:18]CAPDU: 80 11 00 00 [18:01:18]Write to MH i2c: E2 08 00 91 45 80 11 00 00 00 00 00 00 50 [18:01:18]Write i2c OK [18:01:18]MH_I2C_Read... [18:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:18]Read from MH i2c: E2 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: E2 17 00 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: E2 17 00 91 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A0 [18:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:01:18]wFMCommunicate OK [18:01:18]requested_item fd.num is exist - process it [18:01:18]SAM_PROTO_GetFieldsCounters [18:01:18]wFMCommunicate request_size=4 [18:01:18]MH_SAM_APDU [18:01:18]CAPDU: 80 13 00 00 [18:01:18]Write to MH i2c: E2 08 00 92 45 80 13 00 00 00 00 00 00 53 [18:01:18]Write i2c OK [18:01:18]MH_I2C_Read... [18:01:18]OFD Sender: No OFD packet to send [18:01:18]Read from MH i2c: E2 [18:01:18]MH_I2C_Read... [18:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:18]Read from MH i2c: E2 62 00 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: E2 62 00 92 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FF 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [18:01:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FF 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:18]wFMCommunicate OK [18:01:18]SAM_PROTO_GetFieldsCounters done [18:01:18]requested_item shift.num is exist - process it [18:01:18]requested_item shift.opened is exist - process it [18:01:18]req_shift_opened [18:01:18]FM_GetShiftState [18:01:18]SAM_PROTO_GetShiftState [18:01:18]wFMCommunicate request_size=4 [18:01:18]MH_SAM_APDU [18:01:18]CAPDU: 80 13 01 00 [18:01:18]Write to MH i2c: E2 08 00 93 45 80 13 01 00 00 00 00 00 55 [18:01:18]Write i2c OK [18:01:18]MH_I2C_Read... [18:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:19]Read from MH i2c: E2 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 0E 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 0E 00 93 45 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C9 [18:01:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:01:19]wFMCommunicate OK [18:01:19]SAM_PROTO_GetShiftState done [18:01:19]FM_GetShiftState done [18:01:19]req_shift_opened done [18:01:19]requested_item shift.open_date is exist - process it [18:01:19]req_shift_open_date [18:01:19]req_shift_open_date done [18:01:19]produce_requested_data done [18:01:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95231,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:01:19]process_action_free close_receipt [18:01:19]json_value_free [18:01:19]json_value_free done [18:01:19]process_json_proto returns [18:01:19]Send response to host [18:01:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95231,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:01:19]free response buf [18:01:19]execute_script done [18:01:19]execute_script returns [18:01:19]free content buf [18:01:19]Sock 8.Close socket [18:01:19]Sock 8.Thread stoped [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:28]accept exits with 10 [18:03:28]New connection [18:03:28]New thread 3066957156 created [18:03:28]Thread 3066813796 joined [18:03:28]Waiting for new connection... [18:03:28] Sock 10.Parse request [18:03:28]Sock 10.Check first char [18:03:28]Sock 10.First char is OK [18:03:28]request: POST /json_proto HTTP/1.0 [18:03:28]Method: POST [18:03:28]URL: /json_proto [18:03:28]Method is POST - this is cgi request [18:03:28]url: /json_proto [18:03:28]query_string will be loaded in cgi processing [18:03:28]execute_cgi json_proto POST (null) [18:03:28]execute_cgi path=json_proto method=POST [18:03:28]POST find Content-Length [18:03:28]Host: 172.17.62.67:8080 [18:03:28]Content-Length: 1211 [18:03:28]Content-Type: application/json [18:03:28] [18:03:28]POST finish read [18:03:28]Found Content-Length = 1211 [18:03:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196206\u000A12.03.2024 17:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1572.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\u000A03302\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:28]execute_script... [18:03:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196206\u000A12.03.2024 17:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1572.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\u000A03302\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:28]POST & json_proto [18:03:28]process_json_proto [18:03:28]json parsed OK: [18:03:28]protocol is kg_v1.0 [18:03:28]action value=print_text [18:03:28]process_action print_text [18:03:28]cmd_print_text [18:03:28]ExternCall_PrintAddStr [18:03:28]wPrintStart [18:03:28]Write to MH i2c: 01 00 00 94 45 D9 [18:03:28]Write i2c OK [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: 01 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: 01 07 00 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: 01 07 00 94 45 00 80 00 00 00 FF 0F 6E [18:03:28]RasterBufferAndPrint [18:03:28]line *****ТОВАРНЫЙ ЧЕК***** [18:03:28]line АЗС 6 [18:03:28]line Партнер нефть [18:03:28]line 02508201610067 [18:03:28]line Кассир : Мыктыбекова И. [18:03:28]line Счет N : (1)196206 [18:03:28]line 12.03.2024 17:57 [18:03:28]line ПРОДАЖА [18:03:28]line ТРК (МРК, ГНК): 12 [18:03:28]line Вид ГСМ : 2710124130 [18:03:28]line Аи-92-К-5 [18:03:28]line 25.000 x 62.90 [18:03:28]line ИТОГ: 1572.50 [18:03:28]line Тип оплаты: Талоны: Топливная Карта [18:03:28]line 03302 [18:03:28]line ______________________ [18:03:28]line (подпись) [18:03:28]written 0, free lines is 4095 [18:03:28]Write to MH i2c: 01 00 00 A8 45 ED [18:03:28]Write i2c OK [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: 01 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: 01 07 00 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: 01 07 00 A8 45 00 80 00 00 00 66 0E E8 [18:03:28]RasterBufferAndPrint [18:03:28]line [18:03:28]line [18:03:28]line [18:03:28]line [18:03:28]line [18:03:28]written 0, free lines is 3690 [18:03:28]process_action print_text done [18:03:28]requested_data is exist [18:03:28]produce_requested_data [18:03:28]requested_item fm.sn is exist - process it [18:03:28]wFMCommunicate request_size=4 [18:03:28]MH_SAM_APDU [18:03:28]CAPDU: 80 11 00 00 [18:03:28]Write to MH i2c: E2 08 00 AF 45 80 11 00 00 00 00 00 00 6E [18:03:28]Write i2c OK [18:03:28]MH_I2C_Read... [18:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:28]Read from MH i2c: E2 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: E2 17 00 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: E2 17 00 AF 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BE [18:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:03:28]wFMCommunicate OK [18:03:28]requested_item fd.num is exist - process it [18:03:28]SAM_PROTO_GetFieldsCounters [18:03:28]wFMCommunicate request_size=4 [18:03:28]MH_SAM_APDU [18:03:28]CAPDU: 80 13 00 00 [18:03:28]Write to MH i2c: E2 08 00 B0 45 80 13 00 00 00 00 00 00 71 [18:03:28]Write i2c OK [18:03:28]MH_I2C_Read... [18:03:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:28]Read from MH i2c: E2 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: E2 62 00 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: E2 62 00 B0 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FF 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [18:03:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FF 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:28]wFMCommunicate OK [18:03:28]SAM_PROTO_GetFieldsCounters done [18:03:28]requested_item shift.num is exist - process it [18:03:28]requested_item shift.opened is exist - process it [18:03:28]req_shift_opened [18:03:28]FM_GetShiftState [18:03:28]SAM_PROTO_GetShiftState [18:03:28]wFMCommunicate request_size=4 [18:03:28]MH_SAM_APDU [18:03:28]CAPDU: 80 13 01 00 [18:03:28]Write to MH i2c: E2 08 00 B1 45 80 13 01 00 00 00 00 00 73 [18:03:28]Write i2c OK [18:03:28]MH_I2C_Read... [18:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:28]Read from MH i2c: E2 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: E2 0E 00 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: E2 0E 00 B1 45 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 E7 [18:03:28]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:03:28]wFMCommunicate OK [18:03:28]SAM_PROTO_GetShiftState done [18:03:28]FM_GetShiftState done [18:03:28]req_shift_opened done [18:03:28]requested_item shift.open_date is exist - process it [18:03:28]req_shift_open_date [18:03:28]req_shift_open_date done [18:03:28]produce_requested_data done [18:03:28]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95231,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:03:28]process_action_free print_text [18:03:28]json_value_free [18:03:28]json_value_free done [18:03:28]process_json_proto returns [18:03:28]Send response to host [18:03:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95231,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:03:28]free response buf [18:03:28]execute_script done [18:03:28]execute_script returns [18:03:28]free content buf [18:03:28]Sock 10.Close socket [18:03:28]Sock 10.Thread stoped [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:08]accept exits with 8 [18:04:08]New connection [18:04:08]New thread 3066813796 created [18:04:08]Thread 3066957156 joined [18:04:08]Waiting for new connection... [18:04:08] Sock 8.Parse request [18:04:08]Sock 8.Check first char [18:04:08]Sock 8.First char is OK [18:04:08]request: POST /json_proto HTTP/1.0 [18:04:08]Method: POST [18:04:08]URL: /json_proto [18:04:08]Method is POST - this is cgi request [18:04:08]url: /json_proto [18:04:08]query_string will be loaded in cgi processing [18:04:08]execute_cgi json_proto POST (null) [18:04:08]execute_cgi path=json_proto method=POST [18:04:08]POST find Content-Length [18:04:08]Host: 172.17.62.67:8080 [18:04:08]Content-Length: 678 [18:04:08]Content-Type: application/json [18:04:08] [18:04:08]POST finish read [18:04:08]Found Content-Length = 678 [18:04:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.180, "sum" : 640.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:08]execute_script... [18:04: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)196207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.180, "sum" : 640.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:08]POST & json_proto [18:04:08]process_json_proto [18:04:08]json parsed OK: [18:04:08]protocol is kg_v1.0 [18:04:08]action value=close_receipt [18:04:08]process_action close_receipt [18:04:08]cmd_close_receipt [18:04:08]MH_GetDate [18:04:08]Write to MH i2c: F0 00 00 B2 45 E6 [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: F0 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: F0 05 00 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: F0 05 00 B2 45 00 1E 99 F0 65 F7 [18:04:08]GetLastDocTimeStamp 1710266482 [18:04:08]current date 1710266654 [18:04:08]FM_GetShiftState [18:04:08]SAM_PROTO_GetShiftState [18:04:08]wFMCommunicate request_size=4 [18:04:08]MH_SAM_APDU [18:04:08]CAPDU: 80 13 01 00 [18:04:08]Write to MH i2c: E2 08 00 B3 45 80 13 01 00 00 00 00 00 75 [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:08]Read from MH i2c: E2 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: E2 0E 00 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: E2 0E 00 B3 45 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 E9 [18:04:08]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:04:08]wFMCommunicate OK [18:04:08]SAM_PROTO_GetShiftState done [18:04:08]FM_GetShiftState done [18:04:08]opened in 1710201976 [18:04:08]opened+sec_in_day 1710288376 [18:04:08]quantity*price = 64032 [18:04:08]sum+1 = 64033 [18:04:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 68.00 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 162 12.03.2024 18:04 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95232 ФПД: 30871062388063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T180414&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95232&fm=30871062388063&tin=02508201610067®Number=0000000000090555&sum=64000 [18:04:09]StoreToDocumentArchive [18:04:09]shift 327 fd 95232 [18:04:09]save to /storage/0327/doc_00095232 [18:04:09]save last doc name /storage/0327/doc_00095232 to /storage/kkm_last_doc_name [18:04:09]save OK [18:04:09]Clear old archive folders... [18:04:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:09]tlvbuf is 01A2A990 [18:04:09]SAM_PROTO_ClearQueue [18:04:09]wFMCommunicate request_size=4 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 09 00 00 [18:04:09]Write to MH i2c: E2 08 00 C0 45 80 09 00 00 00 00 00 00 77 [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 C0 45 00 90 00 79 [18:04:09]RAPDU: 90 00 [18:04:09]wFMCommunicate OK [18:04:09]SAM_PROTO_ClearQueue done [18:04:09]KKMCreateOFDPacket [18:04:09]OFDProtocolAddRootSTLVToBuf [18:04:09]FM_MakeSignedData [18:04:09]FM_MakeSignedData [18:04:09]SAM_PROTO_SignData [18:04:09]wFMCommunicate request_size=4 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 0D 01 02 [18:04:09]Write to MH i2c: E2 08 00 C1 45 80 0D 01 02 00 00 00 00 7F [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 C1 45 00 90 00 7A [18:04:09]RAPDU: 90 00 [18:04:09]wFMCommunicate OK [18:04:09]wFMCommunicate request_size=255 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 1E 99 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 00 74 01 00 35 04 06 00 1C [18:04:09]Write to MH i2c: E2 02 01 C2 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 1E 99 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 00 74 01 00 35 04 06 00 1C 00 00 92 [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 C2 45 00 90 00 7B [18:04:09]RAPDU: 90 00 [18:04:09]wFMCommunicate OK [18:04:09]wFMCommunicate request_size=10 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 0D 02 02 05 13 BA B5 1D 5F [18:04:09]Write to MH i2c: E2 0D 00 C3 45 80 0D 02 02 05 00 13 BA B5 1D 5F 00 00 8A [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 C3 45 00 90 00 7C [18:04:09]RAPDU: 90 00 [18:04:09]wFMCommunicate OK [18:04:09]wFMCommunicate request_size=4 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 0D 03 02 [18:04:09]Write to MH i2c: E2 08 00 C4 45 80 0D 03 02 00 00 00 00 84 [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 0B 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 0B 00 C4 45 00 70 B6 C5 8A 99 C5 39 BC 90 00 4D [18:04:09]RAPDU: 70 B6 C5 8A 99 C5 39 BC 90 00 [18:04:09]wFMCommunicate OK [18:04:09]SAM_PROTO_SignData done [18:04:09]FM_MakeSignedData done [18:04:09]CreateOFDProtocolMessage [18:04:09]wFMCommunicate request_size=4 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 11 00 00 [18:04:09]Write to MH i2c: E2 08 00 C5 45 80 11 00 00 00 00 00 00 84 [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 17 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 17 00 C5 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D4 [18:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:04:09]wFMCommunicate OK [18:04:09]CreateOFDProtocolMessage done [18:04:09]OFDSenderStorePacket 95232 [18:04:09]StoreOFDPacket docnum=95232 [18:04:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C9 05 07 01 45 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 1E 99 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 00 74 01 00 35 04 06 00 1C 13 BA B5 1D 5F 70 B6 C5 8A 99 C5 39 BC [18:04:09]CheckFolder [18:04:09]dirname=/storage/ofd_packets [18:04:09]CheckFolder done [18:04:09]ProducePacketName [18:04:09]name=ofd_packets/00095232 [18:04:09]NVStorageSaveData ofd_packets/00095232 [18:04:09]File name is /storage/ofd_packets/00095232 [18:04:09]Write 301 bytes [18:04:09]NVStorageSaveData done [18:04:09]OFDSenderStorePacket done [18:04:09]KKMCreateOFDPacket done [18:04:09]NVStorageSaveData kkm_last_timestamp [18:04:09]File name is /storage/kkm_last_timestamp [18:04:09]Write 4 bytes [18:04:09]NVStorageSaveData done [18:04:09]ExternCall_PrintAddStr [18:04:09]wPrintStart [18:04:09]Write to MH i2c: 01 00 00 C6 45 0B [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: 01 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: 01 07 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: 01 07 00 C6 45 00 80 00 00 00 FF 0F A0 [18:04:09]RasterBufferAndPrint [18:04:09]line Счет N : (1)196207 [18:04:09]line ИНН: 02508201610067 [18:04:09]line Контрольно-Кассовый Чек [18:04:09]line ПРОДАЖА [18:04:09]line ТРК (МРК, ГНК) : 32 [18:04:09]line Товар: 2710124130 [18:04:09]line Аи-92-К-5 [18:04:09]line 10.180 * 62.90 [18:04:09]line = 640.32 [18:04:09]line НДС 12% НСП 1% [18:04:09]line > о реализуемом товаре [18:04:09]line ОКРУГЛЕНИЕ: -0.32 [18:04:09]line ИТОГО: 640.00 [18:04:09]line Внесено: 640.00 [18:04:09]line СДАЧА: 0.00 [18:04:09]line НСП 1% : 5.67 [18:04:09]line НДС 12% : 68.00 [18:04:09]line Наличными: 640.00 [18:04:09]line Безнал.: 0.00 [18:04:09]line Место: АЗС № 6 "Партнер Нефть" [18:04:09]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:04:09]line СНО: Общий режим [18:04:09]line Чек 162 12.03.2024 18:04 [18:04:09]line Смена: 327 ФФД: 1.0 [18:04:09]line ЗНМ: 0300000009 [18:04:09]line РНМ: 0000000000090555 [18:04:09]line Версия ККМ: 001 [18:04:09]line ФМ: 0000000000874811 [18:04:09]line ФД: 95232 [18:04:09]line ФПД: 30871062388063 [18:04:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T180414&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95232&fm=30871062388063&tin=02508201610067®Number=0000000000090555&sum=64000 [18:04:10]OFD Sender: Processing packet 95232 [packets to send 30, broken 29] [18:04:10]ProducePacketName [18:04:10]name=ofd_packets/00095232 [18:04:10]OFD Sender: To server: pG, [18:04:10]CommunicateWithHost lk.salyk.kg:30040 [18:04:10]ConnectInit lk.salyk.kg [18:04:10]written 0, free lines is 4095 [18:04:10]Connected sock=10 [18:04:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C9 05 07 01 45 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 1E 99 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 00 74 01 00 35 04 06 00 1C 13 BA B5 1D 5F 70 B6 C5 8A 99 C5 39 BC [18:04:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 3C 88 47 00 AE A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 00 74 01 00 F4 03 04 00 74 44 F0 65 B6 04 01 00 00 6E 2E 11 62 5E 07 67 EC [18:04:10]CommunicateWithHost err = 0 [18:04:10]CheckOFDResponse [18:04:10]1017 (14) - 77093643461234 [18:04:10]1041 (16) - 0000000000874811 [18:04:10]1040 (4) - 95232 [18:04:10]1012 (4) - 12.03.2024 12:03 [18:04:10]1206 (1) - 0 [18:04:10]OFD Sender: Remove packet 95232 [18:04:10]ProducePacketName [18:04:10]name=ofd_packets/00095232 [18:04:10]NVStorageDeleteData [18:04:10]Write to MH i2c: 01 00 00 F1 45 36 [18:04:10]Write i2c OK [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: 01 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: 01 07 00 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: 01 07 00 F1 45 00 80 00 00 00 55 0D 1F [18:04:10]RasterBufferAndPrint [18:04:10]line [18:04:10]line [18:04:10]line [18:04:10]line [18:04:10]line [18:04:10]written 0, free lines is 3417 [18:04:10]process_action close_receipt done [18:04:10]requested_data is exist [18:04:10]produce_requested_data [18:04:10]requested_item fm.sn is exist - process it [18:04:10]wFMCommunicate request_size=4 [18:04:10]MH_SAM_APDU [18:04:10]CAPDU: 80 11 00 00 [18:04:10]Write to MH i2c: E2 08 00 F8 45 80 11 00 00 00 00 00 00 B7 [18:04:10]Write i2c OK [18:04:10]MH_I2C_Read... [18:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:10]Read from MH i2c: E2 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 17 00 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 17 00 F8 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 07 [18:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:04:10]wFMCommunicate OK [18:04:10]requested_item fd.num is exist - process it [18:04:10]SAM_PROTO_GetFieldsCounters [18:04:10]wFMCommunicate request_size=4 [18:04:10]MH_SAM_APDU [18:04:10]CAPDU: 80 13 00 00 [18:04:10]Write to MH i2c: E2 08 00 F9 45 80 13 00 00 00 00 00 00 BA [18:04:10]Write i2c OK [18:04:10]MH_I2C_Read... [18:04:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:10]Read from MH i2c: E2 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 62 00 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 62 00 F9 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 00 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [18:04:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 00 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:10]wFMCommunicate OK [18:04:10]SAM_PROTO_GetFieldsCounters done [18:04:10]requested_item shift.num is exist - process it [18:04:10]requested_item shift.opened is exist - process it [18:04:10]req_shift_opened [18:04:10]FM_GetShiftState [18:04:10]SAM_PROTO_GetShiftState [18:04:10]wFMCommunicate request_size=4 [18:04:10]MH_SAM_APDU [18:04:10]CAPDU: 80 13 01 00 [18:04:10]Write to MH i2c: E2 08 00 FA 45 80 13 01 00 00 00 00 00 BC [18:04:10]Write i2c OK [18:04:10]MH_I2C_Read... [18:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:10]Read from MH i2c: E2 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 0E 00 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 0E 00 FA 45 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 30 [18:04:11]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:04:11]wFMCommunicate OK [18:04:11]SAM_PROTO_GetShiftState done [18:04:11]FM_GetShiftState done [18:04:11]req_shift_opened done [18:04:11]requested_item shift.open_date is exist - process it [18:04:11]req_shift_open_date [18:04:11]req_shift_open_date done [18:04:11]produce_requested_data done [18:04:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95232,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:04:11]process_action_free close_receipt [18:04:11]json_value_free [18:04:11]json_value_free done [18:04:11]process_json_proto returns [18:04:11]Send response to host [18:04:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95232,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:04:11]free response buf [18:04:11]execute_script done [18:04:11]execute_script returns [18:04:11]free content buf [18:04:11]Sock 8.Close socket [18:04:11]Sock 8.Thread stoped [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:20]accept exits with 9 [18:11:20]New connection [18:11:20]New thread 3066957156 created [18:11:20]Thread 3066813796 joined [18:11:20]Waiting for new connection... [18:11:20] Sock 9.Parse request [18:11:20]Sock 9.Check first char [18:11:20]Sock 9.First char is OK [18:11:20]request: POST /json_proto HTTP/1.0 [18:11:20]Method: POST [18:11:20]URL: /json_proto [18:11:20]Method is POST - this is cgi request [18:11:20]url: /json_proto [18:11:20]query_string will be loaded in cgi processing [18:11:20]execute_cgi json_proto POST (null) [18:11:20]execute_cgi path=json_proto method=POST [18:11:20]POST find Content-Length [18:11:20]Host: 172.17.62.67:8080 [18:11:20]Content-Length: 682 [18:11:20]Content-Type: application/json [18:11:20] [18:11:20]POST finish read [18:11:20]Found Content-Length = 682 [18:11:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:20]execute_script... [18:11: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)196208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:20]POST & json_proto [18:11:20]process_json_proto [18:11:20]json parsed OK: [18:11:20]protocol is kg_v1.0 [18:11:20]action value=close_receipt [18:11:20]process_action close_receipt [18:11:20]cmd_close_receipt [18:11:20]MH_GetDate [18:11:20]Write to MH i2c: F0 00 00 FB 45 2F [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: F0 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: F0 05 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: F0 05 00 FB 45 00 CF 9A F0 65 F2 [18:11:20]GetLastDocTimeStamp 1710266654 [18:11:20]current date 1710267087 [18:11:20]FM_GetShiftState [18:11:20]SAM_PROTO_GetShiftState [18:11:20]wFMCommunicate request_size=4 [18:11:20]MH_SAM_APDU [18:11:20]CAPDU: 80 13 01 00 [18:11:20]Write to MH i2c: E2 08 00 FC 45 80 13 01 00 00 00 00 00 BE [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 0E 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 0E 00 FC 45 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 32 [18:11:20]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:11:20]wFMCommunicate OK [18:11:20]SAM_PROTO_GetShiftState done [18:11:20]FM_GetShiftState done [18:11:20]opened in 1710201976 [18:11:20]opened+sec_in_day 1710288376 [18:11:20]quantity*price = 100011 [18:11:20]sum+1 = 100012 [18:11:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 163 12.03.2024 18:11 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95233 ФПД: 212208024283538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T181127&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95233&fm=212208024283538&tin=02508201610067®Number=0000000000090555&sum=100000 [18:11:22]StoreToDocumentArchive [18:11:22]shift 327 fd 95233 [18:11:22]save to /storage/0327/doc_00095233 [18:11:22]save last doc name /storage/0327/doc_00095233 to /storage/kkm_last_doc_name [18:11:22]save OK [18:11:22]Clear old archive folders... [18:11:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:22]tlvbuf is 01A5F5A0 [18:11:22]SAM_PROTO_ClearQueue [18:11:22]wFMCommunicate request_size=4 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 09 00 00 [18:11:22]Write to MH i2c: E2 08 00 09 46 80 09 00 00 00 00 00 00 C1 [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 03 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 03 00 09 46 00 90 00 C3 [18:11:22]RAPDU: 90 00 [18:11:22]wFMCommunicate OK [18:11:22]SAM_PROTO_ClearQueue done [18:11:22]KKMCreateOFDPacket [18:11:22]OFDProtocolAddRootSTLVToBuf [18:11:22]FM_MakeSignedData [18:11:22]FM_MakeSignedData [18:11:22]SAM_PROTO_SignData [18:11:22]wFMCommunicate request_size=4 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 0D 01 02 [18:11:22]Write to MH i2c: E2 08 00 0A 46 80 0D 01 02 00 00 00 00 C9 [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 03 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 03 00 0A 46 00 90 00 C4 [18:11:22]RAPDU: 90 00 [18:11:22]wFMCommunicate OK [18:11:22]wFMCommunicate request_size=255 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 CF 9A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 01 74 01 00 35 04 06 00 C1 [18:11:22]Write to MH i2c: E2 02 01 0B 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 CF 9A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 01 74 01 00 35 04 06 00 C1 00 00 51 [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 03 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 03 00 0B 46 00 90 00 C5 [18:11:22]RAPDU: 90 00 [18:11:22]wFMCommunicate OK [18:11:22]wFMCommunicate request_size=10 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 0D 02 02 05 00 87 E7 E9 92 [18:11:22]Write to MH i2c: E2 0D 00 0C 46 80 0D 02 02 05 00 00 87 E7 E9 92 00 00 BF [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 03 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 03 00 0C 46 00 90 00 C6 [18:11:22]RAPDU: 90 00 [18:11:22]wFMCommunicate OK [18:11:22]wFMCommunicate request_size=4 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 0D 03 02 [18:11:22]Write to MH i2c: E2 08 00 0D 46 80 0D 03 02 00 00 00 00 CE [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 0B 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 0B 00 0D 46 00 07 AD 86 81 7B F1 B8 A7 90 00 55 [18:11:22]RAPDU: 07 AD 86 81 7B F1 B8 A7 90 00 [18:11:22]wFMCommunicate OK [18:11:22]SAM_PROTO_SignData done [18:11:22]FM_MakeSignedData done [18:11:22]CreateOFDProtocolMessage [18:11:22]wFMCommunicate request_size=4 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 11 00 00 [18:11:22]Write to MH i2c: E2 08 00 0E 46 80 11 00 00 00 00 00 00 CE [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 17 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 17 00 0E 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1E [18:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:11:22]wFMCommunicate OK [18:11:22]CreateOFDProtocolMessage done [18:11:22]OFDSenderStorePacket 95233 [18:11:22]StoreOFDPacket docnum=95233 [18:11:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 52 B0 07 01 42 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 CF 9A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 01 74 01 00 35 04 06 00 C1 00 87 E7 E9 92 07 AD 86 81 7B F1 B8 A7 [18:11:22]CheckFolder [18:11:22]dirname=/storage/ofd_packets [18:11:22]CheckFolder done [18:11:22]ProducePacketName [18:11:22]name=ofd_packets/00095233 [18:11:22]NVStorageSaveData ofd_packets/00095233 [18:11:22]File name is /storage/ofd_packets/00095233 [18:11:22]Write 301 bytes [18:11:22]NVStorageSaveData done [18:11:22]OFDSenderStorePacket done [18:11:22]KKMCreateOFDPacket done [18:11:22]NVStorageSaveData kkm_last_timestamp [18:11:22]File name is /storage/kkm_last_timestamp [18:11:22]Write 4 bytes [18:11:22]NVStorageSaveData done [18:11:22]ExternCall_PrintAddStr [18:11:22]wPrintStart [18:11:22]Write to MH i2c: 01 00 00 0F 46 55 [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: 01 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: 01 07 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: 01 07 00 0F 46 00 80 00 00 00 FF 0F EA [18:11:22]RasterBufferAndPrint [18:11:22]line Счет N : (1)196208 [18:11:22]line ИНН: 02508201610067 [18:11:22]line Контрольно-Кассовый Чек [18:11:22]line ПРОДАЖА [18:11:22]line ТРК (МРК, ГНК) : 12 [18:11:22]line Товар: 2710124130 [18:11:22]line Аи-92-К-5 [18:11:22]line 15.900 * 62.90 [18:11:22]line = 1000.11 [18:11:22]line НДС 12% НСП 1% [18:11:22]line > о реализуемом товаре [18:11:22]line ОКРУГЛЕНИЕ: -0.11 [18:11:22]line ИТОГО: 1000.00 [18:11:22]line Внесено: 1000.00 [18:11:22]line СДАЧА: 0.00 [18:11:22]line НСП 1% : 8.85 [18:11:22]line НДС 12% : 106.21 [18:11:22]line Наличными: 1000.00 [18:11:22]line Безнал.: 0.00 [18:11:22]line Место: АЗС № 6 "Партнер Нефть" [18:11:22]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:11:22]line СНО: Общий режим [18:11:22]line Чек 163 12.03.2024 18:11 [18:11:22]line Смена: 327 ФФД: 1.0 [18:11:22]line ЗНМ: 0300000009 [18:11:22]line РНМ: 0000000000090555 [18:11:22]line Версия ККМ: 001 [18:11:22]line ФМ: 0000000000874811 [18:11:22]line ФД: 95233 [18:11:22]line ФПД: 212208024283538 [18:11:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T181127&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95233&fm=212208024283538&tin=02508201610067®Number=0000000000090555&sum=100000 [18:11:22]OFD Sender: Processing packet 95233 [packets to send 30, broken 29] [18:11:22]ProducePacketName [18:11:22]name=ofd_packets/00095233 [18:11:22]OFD Sender: To server: pG, [18:11:22]CommunicateWithHost lk.salyk.kg:30040 [18:11:23]ConnectInit lk.salyk.kg [18:11:23]written 0, free lines is 4095 [18:11:23]Connected sock=10 [18:11:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 52 B0 07 01 42 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 CF 9A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 01 74 01 00 35 04 06 00 C1 00 87 E7 E9 92 07 AD 86 81 7B F1 B8 A7 [18:11:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 1C 52 47 00 05 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 01 74 01 00 F4 03 04 00 24 46 F0 65 B6 04 01 00 00 3C AB EE ED 66 5D 87 C0 [18:11:23]CommunicateWithHost err = 0 [18:11:23]CheckOFDResponse [18:11:23]1017 (14) - 77093643461234 [18:11:23]1041 (16) - 0000000000874811 [18:11:23]1040 (4) - 95233 [18:11:23]1012 (4) - 12.03.2024 12:10 [18:11:23]1206 (1) - 0 [18:11:23]OFD Sender: Remove packet 95233 [18:11:23]ProducePacketName [18:11:23]name=ofd_packets/00095233 [18:11:23]NVStorageDeleteData [18:11:23]Write to MH i2c: 01 00 00 3A 46 80 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: 01 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: 01 07 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: 01 07 00 3A 46 00 80 00 00 00 58 0D 6C [18:11:23]RasterBufferAndPrint [18:11:23]line [18:11:23]line [18:11:23]line [18:11:23]line [18:11:23]line [18:11:23]written 0, free lines is 3422 [18:11:23]process_action close_receipt done [18:11:23]requested_data is exist [18:11:23]produce_requested_data [18:11:23]requested_item fm.sn is exist - process it [18:11:23]wFMCommunicate request_size=4 [18:11:23]MH_SAM_APDU [18:11:23]CAPDU: 80 11 00 00 [18:11:23]Write to MH i2c: E2 08 00 41 46 80 11 00 00 00 00 00 00 01 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 [18:11:23]MH_I2C_Read... [18:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:23]Read from MH i2c: E2 17 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 17 00 41 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 51 [18:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:11:23]wFMCommunicate OK [18:11:23]requested_item fd.num is exist - process it [18:11:23]SAM_PROTO_GetFieldsCounters [18:11:23]wFMCommunicate request_size=4 [18:11:23]MH_SAM_APDU [18:11:23]CAPDU: 80 13 00 00 [18:11:23]Write to MH i2c: E2 08 00 42 46 80 13 00 00 00 00 00 00 04 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:23]Read from MH i2c: E2 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 62 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 62 00 42 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 01 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [18:11:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 01 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:23]wFMCommunicate OK [18:11:23]SAM_PROTO_GetFieldsCounters done [18:11:23]requested_item shift.num is exist - process it [18:11:23]requested_item shift.opened is exist - process it [18:11:23]req_shift_opened [18:11:23]FM_GetShiftState [18:11:23]SAM_PROTO_GetShiftState [18:11:23]wFMCommunicate request_size=4 [18:11:23]MH_SAM_APDU [18:11:23]CAPDU: 80 13 01 00 [18:11:23]Write to MH i2c: E2 08 00 43 46 80 13 01 00 00 00 00 00 06 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 [18:11:23]MH_I2C_Read... [18:11:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:23]OFD Sender: No OFD packet to send [18:11:23]Read from MH i2c: E2 0E 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 0E 00 43 46 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 7A [18:11:23]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:11:23]wFMCommunicate OK [18:11:23]SAM_PROTO_GetShiftState done [18:11:23]FM_GetShiftState done [18:11:23]req_shift_opened done [18:11:23]requested_item shift.open_date is exist - process it [18:11:23]req_shift_open_date [18:11:23]req_shift_open_date done [18:11:23]produce_requested_data done [18:11:23]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95233,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:11:23]process_action_free close_receipt [18:11:23]json_value_free [18:11:23]json_value_free done [18:11:23]process_json_proto returns [18:11:23]Send response to host [18:11:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95233,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:11:23]free response buf [18:11:23]execute_script done [18:11:23]execute_script returns [18:11:23]free content buf [18:11:23]Sock 9.Close socket [18:11:23]Sock 9.Thread stoped [18:11:28]OFD Sender: No OFD packet to send [18:11:31]accept exits with 8 [18:11:31]New connection [18:11:31]New thread 3066813796 created [18:11:31]Thread 3066957156 joined [18:11:31]Waiting for new connection... [18:11:31] Sock 8.Parse request [18:11:31]Sock 8.Check first char [18:11:31]Sock 8.First char is OK [18:11:31]request: POST /json_proto HTTP/1.0 [18:11:31]Method: POST [18:11:31]URL: /json_proto [18:11:31]Method is POST - this is cgi request [18:11:31]url: /json_proto [18:11:31]query_string will be loaded in cgi processing [18:11:31]execute_cgi json_proto POST (null) [18:11:31]execute_cgi path=json_proto method=POST [18:11:31]POST find Content-Length [18:11:31]Host: 172.17.62.67:8080 [18:11:31]Content-Length: 677 [18:11:31]Content-Type: application/json [18:11:31] [18:11:31]POST finish read [18:11:31]Found Content-Length = 677 [18:11:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:31]execute_script... [18:11: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)196209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:31]POST & json_proto [18:11:31]process_json_proto [18:11:31]json parsed OK: [18:11:31]protocol is kg_v1.0 [18:11:31]action value=close_receipt [18:11:31]process_action close_receipt [18:11:31]cmd_close_receipt [18:11:31]MH_GetDate [18:11:31]Write to MH i2c: F0 00 00 44 46 79 [18:11:31]Write i2c OK [18:11:31]MH_I2C_Read... [18:11:31]Read from MH i2c: F0 [18:11:31]MH_I2C_Read... [18:11:31]Read from MH i2c: F0 05 00 [18:11:31]MH_I2C_Read... [18:11:31]Read from MH i2c: F0 05 00 44 46 00 DA 9A F0 65 47 [18:11:31]GetLastDocTimeStamp 1710267087 [18:11:31]current date 1710267098 [18:11:31]FM_GetShiftState [18:11:31]SAM_PROTO_GetShiftState [18:11:31]wFMCommunicate request_size=4 [18:11:31]MH_SAM_APDU [18:11:31]CAPDU: 80 13 01 00 [18:11:31]Write to MH i2c: E2 08 00 45 46 80 13 01 00 00 00 00 00 08 [18:11:31]Write i2c OK [18:11:31]MH_I2C_Read... [18:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:31]Read from MH i2c: E2 [18:11:31]MH_I2C_Read... [18:11:31]Read from MH i2c: E2 0E 00 [18:11:31]MH_I2C_Read... [18:11:31]Read from MH i2c: E2 0E 00 45 46 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 7C [18:11:31]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:11:31]wFMCommunicate OK [18:11:31]SAM_PROTO_GetShiftState done [18:11:31]FM_GetShiftState done [18:11:31]opened in 1710201976 [18:11:31]opened+sec_in_day 1710288376 [18:11:31]quantity*price = 60006 [18:11:31]sum+1 = 60008 [18:11:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 164 12.03.2024 18:11 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95234 ФПД: 36560238420029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T181138&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95234&fm=36560238420029&tin=02508201610067®Number=0000000000090555&sum=60000 [18:11:32]StoreToDocumentArchive [18:11:32]shift 327 fd 95234 [18:11:32]save to /storage/0327/doc_00095234 [18:11:32]save last doc name /storage/0327/doc_00095234 to /storage/kkm_last_doc_name [18:11:32]save OK [18:11:32]Clear old archive folders... [18:11:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:32]tlvbuf is 01B3CCB0 [18:11:32]SAM_PROTO_ClearQueue [18:11:32]wFMCommunicate request_size=4 [18:11:32]MH_SAM_APDU [18:11:32]CAPDU: 80 09 00 00 [18:11:32]Write to MH i2c: E2 08 00 52 46 80 09 00 00 00 00 00 00 0A [18:11:32]Write i2c OK [18:11:32]MH_I2C_Read... [18:11:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:32]Read from MH i2c: E2 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: E2 03 00 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: E2 03 00 52 46 00 90 00 0C [18:11:32]RAPDU: 90 00 [18:11:32]wFMCommunicate OK [18:11:32]SAM_PROTO_ClearQueue done [18:11:32]KKMCreateOFDPacket [18:11:32]OFDProtocolAddRootSTLVToBuf [18:11:32]FM_MakeSignedData [18:11:32]FM_MakeSignedData [18:11:32]SAM_PROTO_SignData [18:11:32]wFMCommunicate request_size=4 [18:11:32]MH_SAM_APDU [18:11:32]CAPDU: 80 0D 01 02 [18:11:32]Write to MH i2c: E2 08 00 53 46 80 0D 01 02 00 00 00 00 12 [18:11:32]Write i2c OK [18:11:32]MH_I2C_Read... [18:11:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:32]Read from MH i2c: E2 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: E2 03 00 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: E2 03 00 53 46 00 90 00 0D [18:11:32]RAPDU: 90 00 [18:11:32]wFMCommunicate OK [18:11:32]wFMCommunicate request_size=255 [18:11:32]MH_SAM_APDU [18:11:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 DA 9A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 02 74 01 00 35 04 06 00 21 [18:11:32]Write to MH i2c: E2 02 01 54 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 DA 9A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 02 74 01 00 35 04 06 00 21 00 00 6E [18:11:32]Write i2c OK [18:11:32]MH_I2C_Read... [18:11:33]Read from MH i2c: E2 [18:11:33]MH_I2C_Read... [18:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:33]Read from MH i2c: E2 03 00 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: E2 03 00 54 46 00 90 00 0E [18:11:33]RAPDU: 90 00 [18:11:33]wFMCommunicate OK [18:11:33]wFMCommunicate request_size=10 [18:11:33]MH_SAM_APDU [18:11:33]CAPDU: 80 0D 02 02 05 40 58 06 20 3D [18:11:33]Write to MH i2c: E2 0D 00 55 46 80 0D 02 02 05 00 40 58 06 20 3D 00 00 1A [18:11:33]Write i2c OK [18:11:33]MH_I2C_Read... [18:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:33]Read from MH i2c: E2 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: E2 03 00 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: E2 03 00 55 46 00 90 00 0F [18:11:33]RAPDU: 90 00 [18:11:33]wFMCommunicate OK [18:11:33]wFMCommunicate request_size=4 [18:11:33]MH_SAM_APDU [18:11:33]CAPDU: 80 0D 03 02 [18:11:33]Write to MH i2c: E2 08 00 56 46 80 0D 03 02 00 00 00 00 17 [18:11:33]Write i2c OK [18:11:33]MH_I2C_Read... [18:11:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:33]Read from MH i2c: E2 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: E2 0B 00 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: E2 0B 00 56 46 00 26 CF 7F 1A 05 2F FC B0 90 00 86 [18:11:33]RAPDU: 26 CF 7F 1A 05 2F FC B0 90 00 [18:11:33]wFMCommunicate OK [18:11:33]SAM_PROTO_SignData done [18:11:33]FM_MakeSignedData done [18:11:33]CreateOFDProtocolMessage [18:11:33]wFMCommunicate request_size=4 [18:11:33]MH_SAM_APDU [18:11:33]CAPDU: 80 11 00 00 [18:11:33]Write to MH i2c: E2 08 00 57 46 80 11 00 00 00 00 00 00 17 [18:11:33]Write i2c OK [18:11:33]MH_I2C_Read... [18:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:33]Read from MH i2c: E2 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: E2 17 00 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: E2 17 00 57 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 67 [18:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:11:33]wFMCommunicate OK [18:11:33]CreateOFDProtocolMessage done [18:11:33]OFDSenderStorePacket 95234 [18:11:33]StoreOFDPacket docnum=95234 [18:11:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 52 01 07 01 E6 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 DA 9A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 02 74 01 00 35 04 06 00 21 40 58 06 20 3D 26 CF 7F 1A 05 2F FC B0 [18:11:33]CheckFolder [18:11:33]dirname=/storage/ofd_packets [18:11:33]CheckFolder done [18:11:33]ProducePacketName [18:11:33]name=ofd_packets/00095234 [18:11:33]NVStorageSaveData ofd_packets/00095234 [18:11:33]File name is /storage/ofd_packets/00095234 [18:11:33]Write 301 bytes [18:11:33]NVStorageSaveData done [18:11:33]OFDSenderStorePacket done [18:11:33]KKMCreateOFDPacket done [18:11:33]NVStorageSaveData kkm_last_timestamp [18:11:33]File name is /storage/kkm_last_timestamp [18:11:33]Write 4 bytes [18:11:33]NVStorageSaveData done [18:11:33]ExternCall_PrintAddStr [18:11:33]wPrintStart [18:11:33]Write to MH i2c: 01 00 00 58 46 9E [18:11:33]Write i2c OK [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: 01 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: 01 07 00 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: 01 07 00 58 46 00 80 00 00 00 FF 0F 33 [18:11:33]RasterBufferAndPrint [18:11:33]line Счет N : (1)196209 [18:11:33]line ИНН: 02508201610067 [18:11:33]line Контрольно-Кассовый Чек [18:11:33]line ПРОДАЖА [18:11:33]line ТРК (МРК, ГНК) : 42 [18:11:33]line Товар: 2710124130 [18:11:33]line Аи-92-К-5 [18:11:33]line 9.540 * 62.90 [18:11:33]line = 600.07 [18:11:33]line НДС 12% НСП 1% [18:11:33]line > о реализуемом товаре [18:11:33]line ОКРУГЛЕНИЕ: -0.07 [18:11:33]line ИТОГО: 600.00 [18:11:33]line Внесено: 600.00 [18:11:33]line СДАЧА: 0.00 [18:11:33]line НСП 1% : 5.31 [18:11:33]line НДС 12% : 63.72 [18:11:33]line Наличными: 600.00 [18:11:33]line Безнал.: 0.00 [18:11:33]line Место: АЗС № 6 "Партнер Нефть" [18:11:33]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:11:33]line СНО: Общий режим [18:11:33]line Чек 164 12.03.2024 18:11 [18:11:33]line Смена: 327 ФФД: 1.0 [18:11:33]line ЗНМ: 0300000009 [18:11:33]line РНМ: 0000000000090555 [18:11:33]line Версия ККМ: 001 [18:11:33]line ФМ: 0000000000874811 [18:11:33]line ФД: 95234 [18:11:33]line ФПД: 36560238420029 [18:11:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T181138&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95234&fm=36560238420029&tin=02508201610067®Number=0000000000090555&sum=60000 [18:11:33]written 0, free lines is 4095 [18:11:33]OFD Sender: Processing packet 95234 [packets to send 30, broken 29] [18:11:33]ProducePacketName [18:11:33]name=ofd_packets/00095234 [18:11:33]OFD Sender: To server: pG, [18:11:33]CommunicateWithHost lk.salyk.kg:30040 [18:11:33]ConnectInit lk.salyk.kg [18:11:33]Connected sock=10 [18:11:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 52 01 07 01 E6 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 DA 9A F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 02 74 01 00 35 04 06 00 21 40 58 06 20 3D 26 CF 7F 1A 05 2F FC B0 [18:11:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 19 34 47 00 BC 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 02 74 01 00 F4 03 04 00 2F 46 F0 65 B6 04 01 00 00 A5 7A 77 25 BE 12 43 56 [18:11:33]CommunicateWithHost err = 0 [18:11:33]CheckOFDResponse [18:11:33]1017 (14) - 77093643461234 [18:11:33]1041 (16) - 0000000000874811 [18:11:33]1040 (4) - 95234 [18:11:33]1012 (4) - 12.03.2024 12:10 [18:11:33]1206 (1) - 0 [18:11:33]OFD Sender: Remove packet 95234 [18:11:33]ProducePacketName [18:11:33]name=ofd_packets/00095234 [18:11:33]NVStorageDeleteData [18:11:33]Write to MH i2c: 01 00 00 83 46 C9 [18:11:33]Write i2c OK [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: 01 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: 01 07 00 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: 01 07 00 83 46 00 80 00 00 00 5E 0D BB [18:11:33]RasterBufferAndPrint [18:11:33]line [18:11:33]line [18:11:33]line [18:11:33]line [18:11:33]line [18:11:33]written 0, free lines is 3432 [18:11:33]process_action close_receipt done [18:11:33]requested_data is exist [18:11:33]produce_requested_data [18:11:33]requested_item fm.sn is exist - process it [18:11:33]wFMCommunicate request_size=4 [18:11:33]MH_SAM_APDU [18:11:33]CAPDU: 80 11 00 00 [18:11:33]Write to MH i2c: E2 08 00 8A 46 80 11 00 00 00 00 00 00 4A [18:11:33]Write i2c OK [18:11:33]MH_I2C_Read... [18:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:33]Read from MH i2c: E2 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: E2 17 00 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: E2 17 00 8A 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9A [18:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:11:33]wFMCommunicate OK [18:11:33]requested_item fd.num is exist - process it [18:11:33]SAM_PROTO_GetFieldsCounters [18:11:33]wFMCommunicate request_size=4 [18:11:33]MH_SAM_APDU [18:11:33]CAPDU: 80 13 00 00 [18:11:33]Write to MH i2c: E2 08 00 8B 46 80 13 00 00 00 00 00 00 4D [18:11:33]Write i2c OK [18:11:33]MH_I2C_Read... [18:11:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:34]Read from MH i2c: E2 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 62 00 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 62 00 8B 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 02 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [18:11:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 02 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:34]wFMCommunicate OK [18:11:34]SAM_PROTO_GetFieldsCounters done [18:11:34]requested_item shift.num is exist - process it [18:11:34]requested_item shift.opened is exist - process it [18:11:34]req_shift_opened [18:11:34]FM_GetShiftState [18:11:34]SAM_PROTO_GetShiftState [18:11:34]wFMCommunicate request_size=4 [18:11:34]MH_SAM_APDU [18:11:34]CAPDU: 80 13 01 00 [18:11:34]Write to MH i2c: E2 08 00 8C 46 80 13 01 00 00 00 00 00 4F [18:11:34]Write i2c OK [18:11:34]MH_I2C_Read... [18:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:34]Read from MH i2c: E2 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 0E 00 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 0E 00 8C 46 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C3 [18:11:34]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:11:34]wFMCommunicate OK [18:11:34]SAM_PROTO_GetShiftState done [18:11:34]FM_GetShiftState done [18:11:34]req_shift_opened done [18:11:34]requested_item shift.open_date is exist - process it [18:11:34]req_shift_open_date [18:11:34]req_shift_open_date done [18:11:34]produce_requested_data done [18:11:34]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95234,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:11:34]process_action_free close_receipt [18:11:34]json_value_free [18:11:34]json_value_free done [18:11:34]process_json_proto returns [18:11:34]Send response to host [18:11:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95234,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:11:34]free response buf [18:11:34]execute_script done [18:11:34]execute_script returns [18:11:34]free content buf [18:11:34]Sock 8.Close socket [18:11:34]Sock 8.Thread stoped [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:33]accept exits with 9 [18:12:33]New connection [18:12:33]New thread 3066957156 created [18:12:33]Thread 3066813796 joined [18:12:33]Waiting for new connection... [18:12:33] Sock 9.Parse request [18:12:33]Sock 9.Check first char [18:12:33]Sock 9.First char is OK [18:12:33]request: POST /json_proto HTTP/1.0 [18:12:33]Method: POST [18:12:33]URL: /json_proto [18:12:33]Method is POST - this is cgi request [18:12:33]url: /json_proto [18:12:33]query_string will be loaded in cgi processing [18:12:33]execute_cgi json_proto POST (null) [18:12:33]execute_cgi path=json_proto method=POST [18:12:33]POST find Content-Length [18:12:33]Host: 172.17.62.67:8080 [18:12:33]Content-Length: 733 [18:12:33]Content-Type: application/json [18:12:33] [18:12:33]POST finish read [18:12:33]Found Content-Length = 733 [18:12:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95234, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:33]execute_script... [18:12:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95234, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:33]POST & json_proto [18:12:33]process_json_proto [18:12:33]json parsed OK: [18:12:33]protocol is kg_v1.0 [18:12:33]action value=close_receipt [18:12:33]process_action close_receipt [18:12:33]cmd_close_receipt [18:12:33]MH_GetDate [18:12:33]Write to MH i2c: F0 00 00 8D 46 C2 [18:12:33]Write i2c OK [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: F0 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: F0 05 00 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: F0 05 00 8D 46 00 18 9B F0 65 CF [18:12:33]GetLastDocTimeStamp 1710267098 [18:12:33]current date 1710267160 [18:12:33]FM_GetShiftState [18:12:33]SAM_PROTO_GetShiftState [18:12:33]wFMCommunicate request_size=4 [18:12:33]MH_SAM_APDU [18:12:33]CAPDU: 80 13 01 00 [18:12:33]Write to MH i2c: E2 08 00 8E 46 80 13 01 00 00 00 00 00 51 [18:12:33]Write i2c OK [18:12:33]MH_I2C_Read... [18:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:33]Read from MH i2c: E2 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 0E 00 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 0E 00 8E 46 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C5 [18:12:33]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:12:33]wFMCommunicate OK [18:12:33]SAM_PROTO_GetShiftState done [18:12:33]FM_GetShiftState done [18:12:33]opened in 1710201976 [18:12:33]opened+sec_in_day 1710288376 [18:12:33]quantity*price = 60006 [18:12:33]sum+1 = 60008 [18:12:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 165 12.03.2024 18:12 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95234 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95235 ФПД: 135522771850767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T181240&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95235&fm=135522771850767&tin=02508201610067®Number=0000000000090555&sum=60000 [18:12:34]StoreToDocumentArchive [18:12:34]shift 327 fd 95235 [18:12:34]save to /storage/0327/doc_00095235 [18:12:34]save last doc name /storage/0327/doc_00095235 to /storage/kkm_last_doc_name [18:12:34]save OK [18:12:34]Clear old archive folders... [18:12:34]ProcessDocumentItem done err = 0, tmpTLVsize=279 [18:12:34]tlvbuf is 01A8DDA0 [18:12:34]SAM_PROTO_ClearQueue [18:12:34]wFMCommunicate request_size=4 [18:12:34]MH_SAM_APDU [18:12:34]CAPDU: 80 09 00 00 [18:12:34]Write to MH i2c: E2 08 00 9D 46 80 09 00 00 00 00 00 00 55 [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:34]Read from MH i2c: E2 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E2 03 00 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E2 03 00 9D 46 00 90 00 57 [18:12:34]RAPDU: 90 00 [18:12:34]wFMCommunicate OK [18:12:34]SAM_PROTO_ClearQueue done [18:12:34]KKMCreateOFDPacket [18:12:34]OFDProtocolAddRootSTLVToBuf [18:12:34]FM_MakeSignedData [18:12:34]FM_MakeSignedData [18:12:34]SAM_PROTO_SignData [18:12:34]wFMCommunicate request_size=4 [18:12:34]MH_SAM_APDU [18:12:34]CAPDU: 80 0D 01 02 [18:12:34]Write to MH i2c: E2 08 00 9E 46 80 0D 01 02 00 00 00 00 5D [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:35]Read from MH i2c: E2 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 03 00 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 03 00 9E 46 00 90 00 58 [18:12:35]RAPDU: 90 00 [18:12:35]wFMCommunicate OK [18:12:35]wFMCommunicate request_size=255 [18:12:35]MH_SAM_APDU [18:12:35]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 18 9B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 02 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 [18:12:35]Write to MH i2c: E2 02 01 9F 46 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 18 9B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 02 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 00 00 3A [18:12:35]Write i2c OK [18:12:35]MH_I2C_Read... [18:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:35]Read from MH i2c: E2 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 03 00 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 03 00 9F 46 00 90 00 59 [18:12:35]RAPDU: 90 00 [18:12:35]wFMCommunicate OK [18:12:35]wFMCommunicate request_size=38 [18:12:35]MH_SAM_APDU [18:12:35]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 03 74 01 00 35 04 06 00 7B 41 DA AC D6 0F [18:12:35]Write to MH i2c: E2 29 00 A0 46 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 03 74 01 00 35 04 06 00 7B 41 DA AC D6 0F 00 00 85 [18:12:35]Write i2c OK [18:12:35]MH_I2C_Read... [18:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:35]Read from MH i2c: E2 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 03 00 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 03 00 A0 46 00 90 00 5A [18:12:35]RAPDU: 90 00 [18:12:35]wFMCommunicate OK [18:12:35]wFMCommunicate request_size=4 [18:12:35]MH_SAM_APDU [18:12:35]CAPDU: 80 0D 03 02 [18:12:35]Write to MH i2c: E2 08 00 A1 46 80 0D 03 02 00 00 00 00 62 [18:12:35]Write i2c OK [18:12:35]MH_I2C_Read... [18:12:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:35]Read from MH i2c: E2 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 0B 00 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 0B 00 A1 46 00 4B 3B 57 33 E3 56 0E 0F 90 00 C9 [18:12:35]RAPDU: 4B 3B 57 33 E3 56 0E 0F 90 00 [18:12:35]wFMCommunicate OK [18:12:35]SAM_PROTO_SignData done [18:12:35]FM_MakeSignedData done [18:12:35]CreateOFDProtocolMessage [18:12:35]wFMCommunicate request_size=4 [18:12:35]MH_SAM_APDU [18:12:35]CAPDU: 80 11 00 00 [18:12:35]Write to MH i2c: E2 08 00 A2 46 80 11 00 00 00 00 00 00 62 [18:12:35]Write i2c OK [18:12:35]MH_I2C_Read... [18:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:35]Read from MH i2c: E2 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 17 00 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 17 00 A2 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B2 [18:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:12:35]wFMCommunicate OK [18:12:35]CreateOFDProtocolMessage done [18:12:35]OFDSenderStorePacket 95235 [18:12:35]StoreOFDPacket docnum=95235 [18:12:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 E7 FA 23 01 D7 1A 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 18 9B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 02 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 03 74 01 00 35 04 06 00 7B 41 DA AC D6 0F 4B 3B 57 33 E3 56 0E 0F [18:12:35]CheckFolder [18:12:35]dirname=/storage/ofd_packets [18:12:35]CheckFolder done [18:12:35]ProducePacketName [18:12:35]name=ofd_packets/00095235 [18:12:35]NVStorageSaveData ofd_packets/00095235 [18:12:35]File name is /storage/ofd_packets/00095235 [18:12:35]Write 329 bytes [18:12:35]NVStorageSaveData done [18:12:35]OFDSenderStorePacket done [18:12:35]KKMCreateOFDPacket done [18:12:35]NVStorageSaveData kkm_last_timestamp [18:12:35]File name is /storage/kkm_last_timestamp [18:12:35]Write 4 bytes [18:12:35]NVStorageSaveData done [18:12:35]ExternCall_PrintAddStr [18:12:35]wPrintStart [18:12:35]Write to MH i2c: 01 00 00 A3 46 E9 [18:12:35]Write i2c OK [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: 01 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: 01 07 00 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: 01 07 00 A3 46 00 80 00 00 00 FF 0F 7E [18:12:35]RasterBufferAndPrint [18:12:35]line Счет N : (1)196209 [18:12:35]line ИНН: 02508201610067 [18:12:35]line Контрольно-Кассовый Чек [18:12:35]line ВОЗВРАТ ПРОДАЖИ [18:12:35]line ТРК (МРК, ГНК) : 42 [18:12:35]line Товар: 2710124130 [18:12:35]line Аи-92-К-5 [18:12:35]line 9.540 * 62.90 [18:12:35]line = 600.07 [18:12:35]line НДС 12% НСП 1% [18:12:35]line > о реализуемом товаре [18:12:35]line ОКРУГЛЕНИЕ: -0.07 [18:12:35]line ИТОГО: 600.00 [18:12:35]line НСП 1% : 5.31 [18:12:35]line НДС 12% : 63.72 [18:12:35]line Наличными: 600.00 [18:12:35]line Безнал.: 0.00 [18:12:35]line Место: АЗС № 6 "Партнер Нефть" [18:12:35]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:12:35]line СНО: Общий режим [18:12:35]line Чек 165 12.03.2024 18:12 [18:12:35]line Смена: 327 ФФД: 1.0 [18:12:35]line ЗНМ: 0300000009 [18:12:35]line РНМ: 0000000000090555 [18:12:35]line Версия ККМ: 001 [18:12:35]line ФД осн.: 95234 [18:12:35]line ФМ осн.: 0000000000874811 [18:12:35]line ФМ: 0000000000874811 [18:12:35]line ФД: 95235 [18:12:35]line ФПД: 135522771850767 [18:12:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T181240&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95235&fm=135522771850767&tin=02508201610067®Number=0000000000090555&sum=60000 [18:12:35]OFD Sender: Processing packet 95235 [packets to send 30, broken 29] [18:12:35]ProducePacketName [18:12:35]name=ofd_packets/00095235 [18:12:35]OFD Sender: To server: pG, [18:12:35]CommunicateWithHost lk.salyk.kg:30040 [18:12:35]ConnectInit lk.salyk.kg [18:12:35]written 0, free lines is 4095 [18:12:35]Connected sock=10 [18:12:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 E7 FA 23 01 D7 1A 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 18 9B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 02 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 03 74 01 00 35 04 06 00 7B 41 DA AC D6 0F 4B 3B 57 33 E3 56 0E 0F [18:12:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B2 8D 47 00 EE A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 03 74 01 00 F4 03 04 00 6D 46 F0 65 B6 04 01 00 00 95 ED D5 96 95 18 B6 C3 [18:12:36]CommunicateWithHost err = 0 [18:12:36]CheckOFDResponse [18:12:36]1017 (14) - 77093643461234 [18:12:36]1041 (16) - 0000000000874811 [18:12:36]1040 (4) - 95235 [18:12:36]1012 (4) - 12.03.2024 12:11 [18:12:36]1206 (1) - 0 [18:12:36]OFD Sender: Remove packet 95235 [18:12:36]ProducePacketName [18:12:36]name=ofd_packets/00095235 [18:12:36]NVStorageDeleteData [18:12:36]Write to MH i2c: 01 00 00 CE 46 14 [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: 01 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: 01 07 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: 01 07 00 CE 46 00 80 00 00 00 5C 0D 04 [18:12:36]RasterBufferAndPrint [18:12:36]line [18:12:36]line [18:12:36]line [18:12:36]line [18:12:36]line [18:12:36]written 0, free lines is 3428 [18:12:36]process_action close_receipt done [18:12:36]requested_data is exist [18:12:36]produce_requested_data [18:12:36]requested_item fm.sn is exist - process it [18:12:36]wFMCommunicate request_size=4 [18:12:36]MH_SAM_APDU [18:12:36]CAPDU: 80 11 00 00 [18:12:36]Write to MH i2c: E2 08 00 D5 46 80 11 00 00 00 00 00 00 95 [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:36]Read from MH i2c: E2 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 17 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 17 00 D5 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E5 [18:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:12:36]wFMCommunicate OK [18:12:36]requested_item fd.num is exist - process it [18:12:36]SAM_PROTO_GetFieldsCounters [18:12:36]wFMCommunicate request_size=4 [18:12:36]MH_SAM_APDU [18:12:36]CAPDU: 80 13 00 00 [18:12:36]Write to MH i2c: E2 08 00 D6 46 80 13 00 00 00 00 00 00 98 [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:36]Read from MH i2c: E2 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 62 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 62 00 D6 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 03 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [18:12:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 03 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:36]wFMCommunicate OK [18:12:36]SAM_PROTO_GetFieldsCounters done [18:12:36]requested_item shift.num is exist - process it [18:12:36]requested_item shift.opened is exist - process it [18:12:36]req_shift_opened [18:12:36]FM_GetShiftState [18:12:36]SAM_PROTO_GetShiftState [18:12:36]wFMCommunicate request_size=4 [18:12:36]MH_SAM_APDU [18:12:36]CAPDU: 80 13 01 00 [18:12:36]Write to MH i2c: E2 08 00 D7 46 80 13 01 00 00 00 00 00 9A [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]OFD Sender: No OFD packet to send [18:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:36]Read from MH i2c: E2 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 0E 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 0E 00 D7 46 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 0E [18:12:36]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:12:36]wFMCommunicate OK [18:12:36]SAM_PROTO_GetShiftState done [18:12:36]FM_GetShiftState done [18:12:36]req_shift_opened done [18:12:36]requested_item shift.open_date is exist - process it [18:12:36]req_shift_open_date [18:12:36]req_shift_open_date done [18:12:36]produce_requested_data done [18:12:36]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95235,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:12:36]process_action_free close_receipt [18:12:36]json_value_free [18:12:36]json_value_free done [18:12:36]process_json_proto returns [18:12:36]Send response to host [18:12:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95235,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:12:36]free response buf [18:12:36]execute_script done [18:12:36]execute_script returns [18:12:36]free content buf [18:12:36]Sock 9.Close socket [18:12:36]Sock 9.Thread stoped [18:12:41]OFD Sender: No OFD packet to send [18:12:43]accept exits with 8 [18:12:43]New connection [18:12:43]New thread 3066813796 created [18:12:43]Thread 3066957156 joined [18:12:43]Waiting for new connection... [18:12:43] Sock 8.Parse request [18:12:43]Sock 8.Check first char [18:12:43]Sock 8.First char is OK [18:12:43]request: POST /json_proto HTTP/1.0 [18:12:43]Method: POST [18:12:43]URL: /json_proto [18:12:43]Method is POST - this is cgi request [18:12:43]url: /json_proto [18:12:43]query_string will be loaded in cgi processing [18:12:43]execute_cgi json_proto POST (null) [18:12:43]execute_cgi path=json_proto method=POST [18:12:43]POST find Content-Length [18:12:43]Host: 172.17.62.67:8080 [18:12:43]Content-Length: 677 [18:12:43]Content-Type: application/json [18:12:43] [18:12:43]POST finish read [18:12:43]Found Content-Length = 677 [18:12:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:43]execute_script... [18:12:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:43]POST & json_proto [18:12:43]process_json_proto [18:12:43]json parsed OK: [18:12:43]protocol is kg_v1.0 [18:12:43]action value=close_receipt [18:12:43]process_action close_receipt [18:12:43]cmd_close_receipt [18:12:43]MH_GetDate [18:12:43]Write to MH i2c: F0 00 00 D8 46 0D [18:12:43]Write i2c OK [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: F0 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: F0 05 00 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: F0 05 00 D8 46 00 21 9B F0 65 23 [18:12:43]GetLastDocTimeStamp 1710267160 [18:12:43]current date 1710267169 [18:12:43]FM_GetShiftState [18:12:43]SAM_PROTO_GetShiftState [18:12:43]wFMCommunicate request_size=4 [18:12:43]MH_SAM_APDU [18:12:43]CAPDU: 80 13 01 00 [18:12:43]Write to MH i2c: E2 08 00 D9 46 80 13 01 00 00 00 00 00 9C [18:12:43]Write i2c OK [18:12:43]MH_I2C_Read... [18:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:43]Read from MH i2c: E2 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: E2 0E 00 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: E2 0E 00 D9 46 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 10 [18:12:43]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:12:43]wFMCommunicate OK [18:12:43]SAM_PROTO_GetShiftState done [18:12:43]FM_GetShiftState done [18:12:43]opened in 1710201976 [18:12:43]opened+sec_in_day 1710288376 [18:12:43]quantity*price = 60006 [18:12:43]sum+1 = 60008 [18:12:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 166 12.03.2024 18:12 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95236 ФПД: 21301182928691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T181249&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95236&fm=21301182928691&tin=02508201610067®Number=0000000000090555&sum=60000 [18:12:44]StoreToDocumentArchive [18:12:44]shift 327 fd 95236 [18:12:44]save to /storage/0327/doc_00095236 [18:12:44]save last doc name /storage/0327/doc_00095236 to /storage/kkm_last_doc_name [18:12:44]save OK [18:12:44]Clear old archive folders... [18:12:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:12:44]tlvbuf is 01B37190 [18:12:44]SAM_PROTO_ClearQueue [18:12:44]wFMCommunicate request_size=4 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 09 00 00 [18:12:44]Write to MH i2c: E2 08 00 E6 46 80 09 00 00 00 00 00 00 9E [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 E6 46 00 90 00 A0 [18:12:44]RAPDU: 90 00 [18:12:44]wFMCommunicate OK [18:12:44]SAM_PROTO_ClearQueue done [18:12:44]KKMCreateOFDPacket [18:12:44]OFDProtocolAddRootSTLVToBuf [18:12:44]FM_MakeSignedData [18:12:44]FM_MakeSignedData [18:12:44]SAM_PROTO_SignData [18:12:44]wFMCommunicate request_size=4 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 0D 01 02 [18:12:44]Write to MH i2c: E2 08 00 E7 46 80 0D 01 02 00 00 00 00 A6 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 E7 46 00 90 00 A1 [18:12:44]RAPDU: 90 00 [18:12:44]wFMCommunicate OK [18:12:44]wFMCommunicate request_size=255 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 21 9B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 04 74 01 00 35 04 06 00 13 [18:12:44]Write to MH i2c: E2 02 01 E8 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 21 9B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 04 74 01 00 35 04 06 00 13 00 00 40 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:45]Read from MH i2c: E2 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 03 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 03 00 E8 46 00 90 00 A2 [18:12:45]RAPDU: 90 00 [18:12:45]wFMCommunicate OK [18:12:45]wFMCommunicate request_size=10 [18:12:45]MH_SAM_APDU [18:12:45]CAPDU: 80 0D 02 02 05 5F 91 71 17 33 [18:12:45]Write to MH i2c: E2 0D 00 E9 46 80 0D 02 02 05 00 5F 91 71 17 33 00 00 5E [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:45]Read from MH i2c: E2 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 03 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 03 00 E9 46 00 90 00 A3 [18:12:45]RAPDU: 90 00 [18:12:45]wFMCommunicate OK [18:12:45]wFMCommunicate request_size=4 [18:12:45]MH_SAM_APDU [18:12:45]CAPDU: 80 0D 03 02 [18:12:45]Write to MH i2c: E2 08 00 EA 46 80 0D 03 02 00 00 00 00 AB [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:45]Read from MH i2c: E2 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 0B 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 0B 00 EA 46 00 07 14 0F AB 03 71 D0 F7 90 00 BC [18:12:45]RAPDU: 07 14 0F AB 03 71 D0 F7 90 00 [18:12:45]wFMCommunicate OK [18:12:45]SAM_PROTO_SignData done [18:12:45]FM_MakeSignedData done [18:12:45]CreateOFDProtocolMessage [18:12:45]wFMCommunicate request_size=4 [18:12:45]MH_SAM_APDU [18:12:45]CAPDU: 80 11 00 00 [18:12:45]Write to MH i2c: E2 08 00 EB 46 80 11 00 00 00 00 00 00 AB [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:45]Read from MH i2c: E2 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 17 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 17 00 EB 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FB [18:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:12:45]wFMCommunicate OK [18:12:45]CreateOFDProtocolMessage done [18:12:45]OFDSenderStorePacket 95236 [18:12:45]StoreOFDPacket docnum=95236 [18:12:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 01 37 07 01 3B 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 21 9B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 04 74 01 00 35 04 06 00 13 5F 91 71 17 33 07 14 0F AB 03 71 D0 F7 [18:12:45]CheckFolder [18:12:45]dirname=/storage/ofd_packets [18:12:45]CheckFolder done [18:12:45]ProducePacketName [18:12:45]name=ofd_packets/00095236 [18:12:45]NVStorageSaveData ofd_packets/00095236 [18:12:45]File name is /storage/ofd_packets/00095236 [18:12:45]Write 301 bytes [18:12:45]NVStorageSaveData done [18:12:45]OFDSenderStorePacket done [18:12:45]KKMCreateOFDPacket done [18:12:45]NVStorageSaveData kkm_last_timestamp [18:12:45]File name is /storage/kkm_last_timestamp [18:12:45]Write 4 bytes [18:12:45]NVStorageSaveData done [18:12:45]ExternCall_PrintAddStr [18:12:45]wPrintStart [18:12:45]Write to MH i2c: 01 00 00 EC 46 32 [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: 01 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: 01 07 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: 01 07 00 EC 46 00 80 00 00 00 FF 0F C7 [18:12:45]RasterBufferAndPrint [18:12:45]line Счет N : (1)196210 [18:12:45]line ИНН: 02508201610067 [18:12:45]line Контрольно-Кассовый Чек [18:12:45]line ПРОДАЖА [18:12:45]line ТРК (МРК, ГНК) : 32 [18:12:45]line Товар: 2710124130 [18:12:45]line Аи-92-К-5 [18:12:45]line 9.540 * 62.90 [18:12:45]line = 600.07 [18:12:45]line НДС 12% НСП 1% [18:12:45]line > о реализуемом товаре [18:12:45]line ОКРУГЛЕНИЕ: -0.07 [18:12:45]line ИТОГО: 600.00 [18:12:45]line Внесено: 600.00 [18:12:45]line СДАЧА: 0.00 [18:12:45]line НСП 1% : 5.31 [18:12:45]line НДС 12% : 63.72 [18:12:45]line Наличными: 600.00 [18:12:45]line Безнал.: 0.00 [18:12:45]line Место: АЗС № 6 "Партнер Нефть" [18:12:45]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:12:45]line СНО: Общий режим [18:12:45]line Чек 166 12.03.2024 18:12 [18:12:45]line Смена: 327 ФФД: 1.0 [18:12:45]line ЗНМ: 0300000009 [18:12:45]line РНМ: 0000000000090555 [18:12:45]line Версия ККМ: 001 [18:12:45]line ФМ: 0000000000874811 [18:12:45]line ФД: 95236 [18:12:45]line ФПД: 21301182928691 [18:12:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T181249&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95236&fm=21301182928691&tin=02508201610067®Number=0000000000090555&sum=60000 [18:12:45]written 0, free lines is 4095 [18:12:45]OFD Sender: Processing packet 95236 [packets to send 30, broken 29] [18:12:45]ProducePacketName [18:12:45]name=ofd_packets/00095236 [18:12:45]OFD Sender: To server: pG, [18:12:45]CommunicateWithHost lk.salyk.kg:30040 [18:12:45]ConnectInit lk.salyk.kg [18:12:45]Connected sock=10 [18:12:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 01 37 07 01 3B 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 21 9B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 04 74 01 00 35 04 06 00 13 5F 91 71 17 33 07 14 0F AB 03 71 D0 F7 [18:12:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 2C 2F 47 00 8A AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 04 74 01 00 F4 03 04 00 77 46 F0 65 B6 04 01 00 00 29 46 46 48 C3 5F 00 21 [18:12:45]CommunicateWithHost err = 0 [18:12:45]CheckOFDResponse [18:12:45]1017 (14) - 77093643461234 [18:12:45]1041 (16) - 0000000000874811 [18:12:45]1040 (4) - 95236 [18:12:45]1012 (4) - 12.03.2024 12:11 [18:12:45]1206 (1) - 0 [18:12:45]OFD Sender: Remove packet 95236 [18:12:45]ProducePacketName [18:12:45]name=ofd_packets/00095236 [18:12:45]NVStorageDeleteData [18:12:45]Write to MH i2c: 01 00 00 17 47 5E [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: 01 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: 01 07 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: 01 07 00 17 47 00 80 00 00 00 57 0D 49 [18:12:45]RasterBufferAndPrint [18:12:45]line [18:12:45]line [18:12:45]line [18:12:45]line [18:12:45]line [18:12:45]written 0, free lines is 3425 [18:12:45]process_action close_receipt done [18:12:45]requested_data is exist [18:12:45]produce_requested_data [18:12:45]requested_item fm.sn is exist - process it [18:12:45]wFMCommunicate request_size=4 [18:12:45]MH_SAM_APDU [18:12:45]CAPDU: 80 11 00 00 [18:12:45]Write to MH i2c: E2 08 00 1E 47 80 11 00 00 00 00 00 00 DF [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:45]Read from MH i2c: E2 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 17 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 17 00 1E 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2F [18:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:12:45]wFMCommunicate OK [18:12:45]requested_item fd.num is exist - process it [18:12:45]SAM_PROTO_GetFieldsCounters [18:12:45]wFMCommunicate request_size=4 [18:12:45]MH_SAM_APDU [18:12:45]CAPDU: 80 13 00 00 [18:12:45]Write to MH i2c: E2 08 00 1F 47 80 13 00 00 00 00 00 00 E2 [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:45]Read from MH i2c: E2 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 62 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 62 00 1F 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 04 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [18:12:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 04 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:45]wFMCommunicate OK [18:12:45]SAM_PROTO_GetFieldsCounters done [18:12:45]requested_item shift.num is exist - process it [18:12:45]requested_item shift.opened is exist - process it [18:12:45]req_shift_opened [18:12:45]FM_GetShiftState [18:12:45]SAM_PROTO_GetShiftState [18:12:45]wFMCommunicate request_size=4 [18:12:45]MH_SAM_APDU [18:12:45]CAPDU: 80 13 01 00 [18:12:45]Write to MH i2c: E2 08 00 20 47 80 13 01 00 00 00 00 00 E4 [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:46]Read from MH i2c: E2 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: E2 0E 00 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: E2 0E 00 20 47 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 58 [18:12:46]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:12:46]wFMCommunicate OK [18:12:46]SAM_PROTO_GetShiftState done [18:12:46]FM_GetShiftState done [18:12:46]req_shift_opened done [18:12:46]requested_item shift.open_date is exist - process it [18:12:46]req_shift_open_date [18:12:46]req_shift_open_date done [18:12:46]produce_requested_data done [18:12:46]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95236,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:12:46]process_action_free close_receipt [18:12:46]json_value_free [18:12:46]json_value_free done [18:12:46]process_json_proto returns [18:12:46]Send response to host [18:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95236,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:12:46]free response buf [18:12:46]execute_script done [18:12:46]execute_script returns [18:12:46]free content buf [18:12:46]Sock 8.Close socket [18:12:46]Sock 8.Thread stoped [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:26]OFD Sender: No OFD packet to send [18:13:31]OFD Sender: No OFD packet to send [18:13:36]OFD Sender: No OFD packet to send [18:13:41]OFD Sender: No OFD packet to send [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:56]OFD Sender: No OFD packet to send [18:14:01]OFD Sender: No OFD packet to send [18:14:06]OFD Sender: No OFD packet to send [18:14:11]OFD Sender: No OFD packet to send [18:14:16]OFD Sender: No OFD packet to send [18:14:21]OFD Sender: No OFD packet to send [18:14:26]OFD Sender: No OFD packet to send [18:14:31]OFD Sender: No OFD packet to send [18:14:32]accept exits with 9 [18:14:32]New connection [18:14:32]New thread 3066957156 created [18:14:32]Thread 3066813796 joined [18:14:32]Waiting for new connection... [18:14:32] Sock 9.Parse request [18:14:32]Sock 9.Check first char [18:14:32]Sock 9.First char is OK [18:14:32]request: POST /json_proto HTTP/1.0 [18:14:32]Method: POST [18:14:32]URL: /json_proto [18:14:32]Method is POST - this is cgi request [18:14:32]url: /json_proto [18:14:32]query_string will be loaded in cgi processing [18:14:32]execute_cgi json_proto POST (null) [18:14:32]execute_cgi path=json_proto method=POST [18:14:32]POST find Content-Length [18:14:32]Host: 172.17.62.67:8080 [18:14:32]Content-Length: 677 [18:14:32]Content-Type: application/json [18:14:32] [18:14:32]POST finish read [18:14:32]Found Content-Length = 677 [18:14:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:32]execute_script... [18:14:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:32]POST & json_proto [18:14:32]process_json_proto [18:14:32]json parsed OK: [18:14:32]protocol is kg_v1.0 [18:14:32]action value=close_receipt [18:14:32]process_action close_receipt [18:14:32]cmd_close_receipt [18:14:32]MH_GetDate [18:14:32]Write to MH i2c: F0 00 00 21 47 57 [18:14:32]Write i2c OK [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: F0 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: F0 05 00 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: F0 05 00 21 47 00 8E 9B F0 65 DA [18:14:32]GetLastDocTimeStamp 1710267169 [18:14:32]current date 1710267278 [18:14:32]FM_GetShiftState [18:14:32]SAM_PROTO_GetShiftState [18:14:32]wFMCommunicate request_size=4 [18:14:32]MH_SAM_APDU [18:14:32]CAPDU: 80 13 01 00 [18:14:32]Write to MH i2c: E2 08 00 22 47 80 13 01 00 00 00 00 00 E6 [18:14:32]Write i2c OK [18:14:32]MH_I2C_Read... [18:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:32]Read from MH i2c: E2 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 0E 00 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 0E 00 22 47 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 5A [18:14:32]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:14:32]wFMCommunicate OK [18:14:32]SAM_PROTO_GetShiftState done [18:14:32]FM_GetShiftState done [18:14:32]opened in 1710201976 [18:14:32]opened+sec_in_day 1710288376 [18:14:32]quantity*price = 50005 [18:14:32]sum+1 = 50007 [18:14:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 167 12.03.2024 18:14 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95237 ФПД: 101900168571529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T181438&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95237&fm=101900168571529&tin=02508201610067®Number=0000000000090555&sum=50000 [18:14:33]StoreToDocumentArchive [18:14:33]shift 327 fd 95237 [18:14:33]save to /storage/0327/doc_00095237 [18:14:33]save last doc name /storage/0327/doc_00095237 to /storage/kkm_last_doc_name [18:14:33]save OK [18:14:33]Clear old archive folders... [18:14:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:33]tlvbuf is 01AF25F0 [18:14:33]SAM_PROTO_ClearQueue [18:14:33]wFMCommunicate request_size=4 [18:14:33]MH_SAM_APDU [18:14:33]CAPDU: 80 09 00 00 [18:14:33]Write to MH i2c: E2 08 00 2F 47 80 09 00 00 00 00 00 00 E8 [18:14:33]Write i2c OK [18:14:33]MH_I2C_Read... [18:14:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:33]Read from MH i2c: E2 [18:14:33]MH_I2C_Read... [18:14:33]Read from MH i2c: E2 03 00 [18:14:33]MH_I2C_Read... [18:14:33]Read from MH i2c: E2 03 00 2F 47 00 90 00 EA [18:14:33]RAPDU: 90 00 [18:14:33]wFMCommunicate OK [18:14:33]SAM_PROTO_ClearQueue done [18:14:33]KKMCreateOFDPacket [18:14:33]OFDProtocolAddRootSTLVToBuf [18:14:33]FM_MakeSignedData [18:14:33]FM_MakeSignedData [18:14:33]SAM_PROTO_SignData [18:14:33]wFMCommunicate request_size=4 [18:14:33]MH_SAM_APDU [18:14:33]CAPDU: 80 0D 01 02 [18:14:33]Write to MH i2c: E2 08 00 30 47 80 0D 01 02 00 00 00 00 F0 [18:14:33]Write i2c OK [18:14:33]MH_I2C_Read... [18:14:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:33]Read from MH i2c: E2 [18:14:33]MH_I2C_Read... [18:14:33]Read from MH i2c: E2 03 00 [18:14:33]MH_I2C_Read... [18:14:33]Read from MH i2c: E2 03 00 30 47 00 90 00 EB [18:14:33]RAPDU: 90 00 [18:14:33]wFMCommunicate OK [18:14:33]wFMCommunicate request_size=255 [18:14:33]MH_SAM_APDU [18:14:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 8E 9B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 05 74 01 00 35 04 06 00 5C [18:14:33]Write to MH i2c: E2 02 01 31 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 8E 9B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 05 74 01 00 35 04 06 00 5C 00 00 DC [18:14:33]Write i2c OK [18:14:33]MH_I2C_Read... [18:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:33]Read from MH i2c: E2 [18:14:33]MH_I2C_Read... [18:14:33]Read from MH i2c: E2 03 00 [18:14:33]MH_I2C_Read... [18:14:33]Read from MH i2c: E2 03 00 31 47 00 90 00 EC [18:14:33]RAPDU: 90 00 [18:14:33]wFMCommunicate OK [18:14:33]wFMCommunicate request_size=10 [18:14:33]MH_SAM_APDU [18:14:33]CAPDU: 80 0D 02 02 05 AD 7B 59 AA 89 [18:14:33]Write to MH i2c: E2 0D 00 32 47 80 0D 02 02 05 00 AD 7B 59 AA 89 00 00 B1 [18:14:33]Write i2c OK [18:14:33]MH_I2C_Read... [18:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:34]Read from MH i2c: E2 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: E2 03 00 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: E2 03 00 32 47 00 90 00 ED [18:14:34]RAPDU: 90 00 [18:14:34]wFMCommunicate OK [18:14:34]wFMCommunicate request_size=4 [18:14:34]MH_SAM_APDU [18:14:34]CAPDU: 80 0D 03 02 [18:14:34]Write to MH i2c: E2 08 00 33 47 80 0D 03 02 00 00 00 00 F5 [18:14:34]Write i2c OK [18:14:34]MH_I2C_Read... [18:14:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:34]Read from MH i2c: E2 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: E2 0B 00 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: E2 0B 00 33 47 00 6D 68 12 FC F0 8C D7 39 90 00 65 [18:14:34]RAPDU: 6D 68 12 FC F0 8C D7 39 90 00 [18:14:34]wFMCommunicate OK [18:14:34]SAM_PROTO_SignData done [18:14:34]FM_MakeSignedData done [18:14:34]CreateOFDProtocolMessage [18:14:34]wFMCommunicate request_size=4 [18:14:34]MH_SAM_APDU [18:14:34]CAPDU: 80 11 00 00 [18:14:34]Write to MH i2c: E2 08 00 34 47 80 11 00 00 00 00 00 00 F5 [18:14:34]Write i2c OK [18:14:34]MH_I2C_Read... [18:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:34]Read from MH i2c: E2 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: E2 17 00 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: E2 17 00 34 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 45 [18:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:14:34]wFMCommunicate OK [18:14:34]CreateOFDProtocolMessage done [18:14:34]OFDSenderStorePacket 95237 [18:14:34]StoreOFDPacket docnum=95237 [18:14:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 79 E5 07 01 15 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 8E 9B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 05 74 01 00 35 04 06 00 5C AD 7B 59 AA 89 6D 68 12 FC F0 8C D7 39 [18:14:34]CheckFolder [18:14:34]dirname=/storage/ofd_packets [18:14:34]CheckFolder done [18:14:34]ProducePacketName [18:14:34]name=ofd_packets/00095237 [18:14:34]NVStorageSaveData ofd_packets/00095237 [18:14:34]File name is /storage/ofd_packets/00095237 [18:14:34]Write 301 bytes [18:14:34]NVStorageSaveData done [18:14:34]OFDSenderStorePacket done [18:14:34]KKMCreateOFDPacket done [18:14:34]NVStorageSaveData kkm_last_timestamp [18:14:34]File name is /storage/kkm_last_timestamp [18:14:34]Write 4 bytes [18:14:34]NVStorageSaveData done [18:14:34]ExternCall_PrintAddStr [18:14:34]wPrintStart [18:14:34]Write to MH i2c: 01 00 00 35 47 7C [18:14:34]Write i2c OK [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: 01 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: 01 07 00 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: 01 07 00 35 47 00 80 00 00 00 FF 0F 11 [18:14:34]RasterBufferAndPrint [18:14:34]line Счет N : (1)196211 [18:14:34]line ИНН: 02508201610067 [18:14:34]line Контрольно-Кассовый Чек [18:14:34]line ПРОДАЖА [18:14:34]line ТРК (МРК, ГНК) : 22 [18:14:34]line Товар: 2710124130 [18:14:34]line Аи-92-К-5 [18:14:34]line 7.950 * 62.90 [18:14:34]line = 500.06 [18:14:34]line НДС 12% НСП 1% [18:14:34]line > о реализуемом товаре [18:14:34]line ОКРУГЛЕНИЕ: -0.06 [18:14:34]line ИТОГО: 500.00 [18:14:34]line Внесено: 500.00 [18:14:34]line СДАЧА: 0.00 [18:14:34]line НСП 1% : 4.42 [18:14:34]line НДС 12% : 53.10 [18:14:34]line Наличными: 500.00 [18:14:34]line Безнал.: 0.00 [18:14:34]line Место: АЗС № 6 "Партнер Нефть" [18:14:34]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:14:34]line СНО: Общий режим [18:14:34]line Чек 167 12.03.2024 18:14 [18:14:34]line Смена: 327 ФФД: 1.0 [18:14:34]line ЗНМ: 0300000009 [18:14:34]line РНМ: 0000000000090555 [18:14:34]line Версия ККМ: 001 [18:14:34]line ФМ: 0000000000874811 [18:14:34]line ФД: 95237 [18:14:34]line ФПД: 101900168571529 [18:14:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T181438&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95237&fm=101900168571529&tin=02508201610067®Number=0000000000090555&sum=50000 [18:14:34]OFD Sender: Processing packet 95237 [packets to send 30, broken 29] [18:14:34]ProducePacketName [18:14:34]name=ofd_packets/00095237 [18:14:34]OFD Sender: To server: pG, [18:14:34]CommunicateWithHost lk.salyk.kg:30040 [18:14:34]ConnectInit lk.salyk.kg [18:14:34]written 0, free lines is 4095 [18:14:34]Connected sock=8 [18:14:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 79 E5 07 01 15 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 8E 9B F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 05 74 01 00 35 04 06 00 5C AD 7B 59 AA 89 6D 68 12 FC F0 8C D7 39 [18:14:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 95 CA 47 00 64 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 05 74 01 00 F4 03 04 00 E4 46 F0 65 B6 04 01 00 00 25 52 CF 24 70 07 57 21 [18:14:34]CommunicateWithHost err = 0 [18:14:34]CheckOFDResponse [18:14:34]1017 (14) - 77093643461234 [18:14:34]1041 (16) - 0000000000874811 [18:14:34]1040 (4) - 95237 [18:14:34]1012 (4) - 12.03.2024 12:13 [18:14:34]1206 (1) - 0 [18:14:34]OFD Sender: Remove packet 95237 [18:14:34]ProducePacketName [18:14:34]name=ofd_packets/00095237 [18:14:34]NVStorageDeleteData [18:14:34]Write to MH i2c: 01 00 00 60 47 A7 [18:14:34]Write i2c OK [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: 01 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: 01 07 00 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: 01 07 00 60 47 00 80 00 00 00 5A 0D 95 [18:14:34]RasterBufferAndPrint [18:14:34]line [18:14:34]line [18:14:34]line [18:14:34]line [18:14:34]line [18:14:34]written 0, free lines is 3424 [18:14:34]process_action close_receipt done [18:14:34]requested_data is exist [18:14:34]produce_requested_data [18:14:34]requested_item fm.sn is exist - process it [18:14:34]wFMCommunicate request_size=4 [18:14:34]MH_SAM_APDU [18:14:34]CAPDU: 80 11 00 00 [18:14:34]Write to MH i2c: E2 08 00 67 47 80 11 00 00 00 00 00 00 28 [18:14:34]Write i2c OK [18:14:34]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 [18:14:35]MH_I2C_Read... [18:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:35]Read from MH i2c: E2 17 00 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 17 00 67 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 78 [18:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:14:35]wFMCommunicate OK [18:14:35]requested_item fd.num is exist - process it [18:14:35]SAM_PROTO_GetFieldsCounters [18:14:35]wFMCommunicate request_size=4 [18:14:35]MH_SAM_APDU [18:14:35]CAPDU: 80 13 00 00 [18:14:35]Write to MH i2c: E2 08 00 68 47 80 13 00 00 00 00 00 00 2B [18:14:35]Write i2c OK [18:14:35]MH_I2C_Read... [18:14:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:35]Read from MH i2c: E2 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 62 00 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 62 00 68 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 05 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [18:14:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 05 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:35]wFMCommunicate OK [18:14:35]SAM_PROTO_GetFieldsCounters done [18:14:35]requested_item shift.num is exist - process it [18:14:35]requested_item shift.opened is exist - process it [18:14:35]req_shift_opened [18:14:35]FM_GetShiftState [18:14:35]SAM_PROTO_GetShiftState [18:14:35]wFMCommunicate request_size=4 [18:14:35]MH_SAM_APDU [18:14:35]CAPDU: 80 13 01 00 [18:14:35]Write to MH i2c: E2 08 00 69 47 80 13 01 00 00 00 00 00 2D [18:14:35]Write i2c OK [18:14:35]MH_I2C_Read... [18:14:35]OFD Sender: No OFD packet to send [18:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:35]Read from MH i2c: E2 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 0E 00 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 0E 00 69 47 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A1 [18:14:35]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:14:35]wFMCommunicate OK [18:14:35]SAM_PROTO_GetShiftState done [18:14:35]FM_GetShiftState done [18:14:35]req_shift_opened done [18:14:35]requested_item shift.open_date is exist - process it [18:14:35]req_shift_open_date [18:14:35]req_shift_open_date done [18:14:35]produce_requested_data done [18:14:35]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95237,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:14:35]process_action_free close_receipt [18:14:35]json_value_free [18:14:35]json_value_free done [18:14:35]process_json_proto returns [18:14:35]Send response to host [18:14:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95237,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:14:35]free response buf [18:14:35]execute_script done [18:14:35]execute_script returns [18:14:35]free content buf [18:14:35]Sock 9.Close socket [18:14:35]Sock 9.Thread stoped [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:41]accept exits with 10 [18:17:41]New connection [18:17:41]New thread 3066813796 created [18:17:41]Thread 3066957156 joined [18:17:41]Waiting for new connection... [18:17:41] Sock 10.Parse request [18:17:41]Sock 10.Check first char [18:17:41]Sock 10.First char is OK [18:17:41]request: POST /json_proto HTTP/1.0 [18:17:41]Method: POST [18:17:41]URL: /json_proto [18:17:41]Method is POST - this is cgi request [18:17:41]url: /json_proto [18:17:41]query_string will be loaded in cgi processing [18:17:41]execute_cgi json_proto POST (null) [18:17:41]execute_cgi path=json_proto method=POST [18:17:41]POST find Content-Length [18:17:41]Host: 172.17.62.67:8080 [18:17:41]Content-Length: 677 [18:17:41]Content-Type: application/json [18:17:41] [18:17:41]POST finish read [18:17:41]Found Content-Length = 677 [18:17:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:41]execute_script... [18:17: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)196212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:41]POST & json_proto [18:17:41]process_json_proto [18:17:41]json parsed OK: [18:17:41]protocol is kg_v1.0 [18:17:41]action value=close_receipt [18:17:41]process_action close_receipt [18:17:41]cmd_close_receipt [18:17:41]MH_GetDate [18:17:41]Write to MH i2c: F0 00 00 6A 47 A0 [18:17:41]Write i2c OK [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: F0 [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: F0 05 00 [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: F0 05 00 6A 47 00 4C 9C F0 65 E2 [18:17:41]GetLastDocTimeStamp 1710267278 [18:17:41]current date 1710267468 [18:17:41]FM_GetShiftState [18:17:41]SAM_PROTO_GetShiftState [18:17:41]wFMCommunicate request_size=4 [18:17:41]MH_SAM_APDU [18:17:41]CAPDU: 80 13 01 00 [18:17:41]Write to MH i2c: E2 08 00 6B 47 80 13 01 00 00 00 00 00 2F [18:17:41]Write i2c OK [18:17:41]MH_I2C_Read... [18:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:41]Read from MH i2c: E2 [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: E2 0E 00 [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: E2 0E 00 6B 47 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A3 [18:17:41]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:17:41]wFMCommunicate OK [18:17:41]SAM_PROTO_GetShiftState done [18:17:41]FM_GetShiftState done [18:17:41]opened in 1710201976 [18:17:41]opened+sec_in_day 1710288376 [18:17:41]quantity*price = 50005 [18:17:41]sum+1 = 50007 [18:17:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 168 12.03.2024 18:17 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95238 ФПД: 181543705371242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T181748&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95238&fm=181543705371242&tin=02508201610067®Number=0000000000090555&sum=50000 [18:17:42]StoreToDocumentArchive [18:17:42]shift 327 fd 95238 [18:17:42]save to /storage/0327/doc_00095238 [18:17:42]save last doc name /storage/0327/doc_00095238 to /storage/kkm_last_doc_name [18:17:42]save OK [18:17:42]Clear old archive folders... [18:17:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:17:42]tlvbuf is 01A346C0 [18:17:42]SAM_PROTO_ClearQueue [18:17:42]wFMCommunicate request_size=4 [18:17:42]MH_SAM_APDU [18:17:42]CAPDU: 80 09 00 00 [18:17:42]Write to MH i2c: E2 08 00 78 47 80 09 00 00 00 00 00 00 31 [18:17:42]Write i2c OK [18:17:42]MH_I2C_Read... [18:17:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:42]Read from MH i2c: E2 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 03 00 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 03 00 78 47 00 90 00 33 [18:17:42]RAPDU: 90 00 [18:17:42]wFMCommunicate OK [18:17:42]SAM_PROTO_ClearQueue done [18:17:42]KKMCreateOFDPacket [18:17:42]OFDProtocolAddRootSTLVToBuf [18:17:42]FM_MakeSignedData [18:17:42]FM_MakeSignedData [18:17:42]SAM_PROTO_SignData [18:17:42]wFMCommunicate request_size=4 [18:17:42]MH_SAM_APDU [18:17:42]CAPDU: 80 0D 01 02 [18:17:42]Write to MH i2c: E2 08 00 79 47 80 0D 01 02 00 00 00 00 39 [18:17:42]Write i2c OK [18:17:42]MH_I2C_Read... [18:17:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:42]Read from MH i2c: E2 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 03 00 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 03 00 79 47 00 90 00 34 [18:17:42]RAPDU: 90 00 [18:17:42]wFMCommunicate OK [18:17:42]wFMCommunicate request_size=255 [18:17:42]MH_SAM_APDU [18:17:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 4C 9C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 06 74 01 00 35 04 06 00 A5 [18:17:42]Write to MH i2c: E2 02 01 7A 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 4C 9C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 06 74 01 00 35 04 06 00 A5 00 00 2F [18:17:42]Write i2c OK [18:17:42]MH_I2C_Read... [18:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:43]Read from MH i2c: E2 [18:17:43]MH_I2C_Read... [18:17:43]Read from MH i2c: E2 03 00 [18:17:43]MH_I2C_Read... [18:17:43]Read from MH i2c: E2 03 00 7A 47 00 90 00 35 [18:17:43]RAPDU: 90 00 [18:17:43]wFMCommunicate OK [18:17:43]wFMCommunicate request_size=10 [18:17:43]MH_SAM_APDU [18:17:43]CAPDU: 80 0D 02 02 05 1C F0 11 E2 6A [18:17:43]Write to MH i2c: E2 0D 00 7B 47 80 0D 02 02 05 00 1C F0 11 E2 6A 00 00 AF [18:17:43]Write i2c OK [18:17:43]MH_I2C_Read... [18:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:43]Read from MH i2c: E2 [18:17:43]MH_I2C_Read... [18:17:43]Read from MH i2c: E2 03 00 [18:17:43]MH_I2C_Read... [18:17:43]Read from MH i2c: E2 03 00 7B 47 00 90 00 36 [18:17:43]RAPDU: 90 00 [18:17:43]wFMCommunicate OK [18:17:43]wFMCommunicate request_size=4 [18:17:43]MH_SAM_APDU [18:17:43]CAPDU: 80 0D 03 02 [18:17:43]Write to MH i2c: E2 08 00 7C 47 80 0D 03 02 00 00 00 00 3E [18:17:43]Write i2c OK [18:17:43]MH_I2C_Read... [18:17:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:43]Read from MH i2c: E2 [18:17:43]MH_I2C_Read... [18:17:43]Read from MH i2c: E2 0B 00 [18:17:43]MH_I2C_Read... [18:17:43]Read from MH i2c: E2 0B 00 7C 47 00 03 2E 97 6B 02 4C 69 02 90 00 2B [18:17:43]RAPDU: 03 2E 97 6B 02 4C 69 02 90 00 [18:17:43]wFMCommunicate OK [18:17:43]SAM_PROTO_SignData done [18:17:43]FM_MakeSignedData done [18:17:43]CreateOFDProtocolMessage [18:17:43]wFMCommunicate request_size=4 [18:17:43]MH_SAM_APDU [18:17:43]CAPDU: 80 11 00 00 [18:17:43]Write to MH i2c: E2 08 00 7D 47 80 11 00 00 00 00 00 00 3E [18:17:43]Write i2c OK [18:17:43]MH_I2C_Read... [18:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:43]Read from MH i2c: E2 [18:17:43]MH_I2C_Read... [18:17:43]Read from MH i2c: E2 17 00 [18:17:43]MH_I2C_Read... [18:17:43]Read from MH i2c: E2 17 00 7D 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8E [18:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:17:43]wFMCommunicate OK [18:17:43]CreateOFDProtocolMessage done [18:17:43]OFDSenderStorePacket 95238 [18:17:43]StoreOFDPacket docnum=95238 [18:17:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 92 75 07 01 07 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 4C 9C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 06 74 01 00 35 04 06 00 A5 1C F0 11 E2 6A 03 2E 97 6B 02 4C 69 02 [18:17:43]CheckFolder [18:17:43]dirname=/storage/ofd_packets [18:17:43]CheckFolder done [18:17:43]ProducePacketName [18:17:43]name=ofd_packets/00095238 [18:17:43]NVStorageSaveData ofd_packets/00095238 [18:17:43]File name is /storage/ofd_packets/00095238 [18:17:43]Write 301 bytes [18:17:43]NVStorageSaveData done [18:17:43]OFDSenderStorePacket done [18:17:43]KKMCreateOFDPacket done [18:17:43]NVStorageSaveData kkm_last_timestamp [18:17:43]File name is /storage/kkm_last_timestamp [18:17:43]Write 4 bytes [18:17:43]NVStorageSaveData done [18:17:43]ExternCall_PrintAddStr [18:17:43]wPrintStart [18:17:43]Write to MH i2c: 01 00 00 7E 47 C5 [18:17:43]Write i2c OK [18:17:43]MH_I2C_Read... [18:17:43]Read from MH i2c: 01 [18:17:43]MH_I2C_Read... [18:17:43]Read from MH i2c: 01 07 00 [18:17:43]MH_I2C_Read... [18:17:43]Read from MH i2c: 01 07 00 7E 47 00 80 00 00 00 FF 0F 5A [18:17:43]RasterBufferAndPrint [18:17:43]line Счет N : (1)196212 [18:17:43]line ИНН: 02508201610067 [18:17:43]line Контрольно-Кассовый Чек [18:17:43]line ПРОДАЖА [18:17:43]line ТРК (МРК, ГНК) : 22 [18:17:43]line Товар: 2710124130 [18:17:43]line Аи-92-К-5 [18:17:43]line 7.950 * 62.90 [18:17:43]line = 500.06 [18:17:43]line НДС 12% НСП 1% [18:17:43]line > о реализуемом товаре [18:17:43]line ОКРУГЛЕНИЕ: -0.06 [18:17:43]line ИТОГО: 500.00 [18:17:43]line Внесено: 500.00 [18:17:43]line СДАЧА: 0.00 [18:17:43]line НСП 1% : 4.42 [18:17:43]line НДС 12% : 53.10 [18:17:43]line Наличными: 500.00 [18:17:43]line Безнал.: 0.00 [18:17:43]line Место: АЗС № 6 "Партнер Нефть" [18:17:43]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:17:43]line СНО: Общий режим [18:17:43]line Чек 168 12.03.2024 18:17 [18:17:43]line Смена: 327 ФФД: 1.0 [18:17:43]line ЗНМ: 0300000009 [18:17:43]line РНМ: 0000000000090555 [18:17:43]line Версия ККМ: 001 [18:17:43]line ФМ: 0000000000874811 [18:17:43]line ФД: 95238 [18:17:43]line ФПД: 181543705371242 [18:17:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T181748&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95238&fm=181543705371242&tin=02508201610067®Number=0000000000090555&sum=50000 [18:17:43]OFD Sender: Processing packet 95238 [packets to send 30, broken 29] [18:17:43]ProducePacketName [18:17:43]name=ofd_packets/00095238 [18:17:43]OFD Sender: To server: pG, [18:17:43]CommunicateWithHost lk.salyk.kg:30040 [18:17:43]ConnectInit lk.salyk.kg [18:17:43]written 0, free lines is 4095 [18:17:43]Connected sock=9 [18:17:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 92 75 07 01 07 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 4C 9C F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 06 74 01 00 35 04 06 00 A5 1C F0 11 E2 6A 03 2E 97 6B 02 4C 69 02 [18:17:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 58 85 47 00 92 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 06 74 01 00 F4 03 04 00 A1 47 F0 65 B6 04 01 00 00 42 CD 9C CC 32 51 C8 B9 [18:17:43]CommunicateWithHost err = 0 [18:17:43]CheckOFDResponse [18:17:43]1017 (14) - 77093643461234 [18:17:43]1041 (16) - 0000000000874811 [18:17:43]1040 (4) - 95238 [18:17:43]1012 (4) - 12.03.2024 12:16 [18:17:43]1206 (1) - 0 [18:17:43]OFD Sender: Remove packet 95238 [18:17:43]ProducePacketName [18:17:43]name=ofd_packets/00095238 [18:17:43]NVStorageDeleteData [18:17:44]Write to MH i2c: 01 00 00 A9 47 F0 [18:17:44]Write i2c OK [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: 01 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: 01 07 00 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: 01 07 00 A9 47 00 80 00 00 00 56 0D DA [18:17:44]RasterBufferAndPrint [18:17:44]line [18:17:44]line [18:17:44]line [18:17:44]line [18:17:44]line [18:17:44]written 0, free lines is 3422 [18:17:44]process_action close_receipt done [18:17:44]requested_data is exist [18:17:44]produce_requested_data [18:17:44]requested_item fm.sn is exist - process it [18:17:44]wFMCommunicate request_size=4 [18:17:44]MH_SAM_APDU [18:17:44]CAPDU: 80 11 00 00 [18:17:44]Write to MH i2c: E2 08 00 B0 47 80 11 00 00 00 00 00 00 71 [18:17:44]Write i2c OK [18:17:44]MH_I2C_Read... [18:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:44]Read from MH i2c: E2 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: E2 17 00 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: E2 17 00 B0 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C1 [18:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:17:44]wFMCommunicate OK [18:17:44]requested_item fd.num is exist - process it [18:17:44]SAM_PROTO_GetFieldsCounters [18:17:44]wFMCommunicate request_size=4 [18:17:44]MH_SAM_APDU [18:17:44]CAPDU: 80 13 00 00 [18:17:44]Write to MH i2c: E2 08 00 B1 47 80 13 00 00 00 00 00 00 74 [18:17:44]Write i2c OK [18:17:44]MH_I2C_Read... [18:17:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:44]Read from MH i2c: E2 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: E2 62 00 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: E2 62 00 B1 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 06 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [18:17:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 06 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:44]wFMCommunicate OK [18:17:44]SAM_PROTO_GetFieldsCounters done [18:17:44]requested_item shift.num is exist - process it [18:17:44]requested_item shift.opened is exist - process it [18:17:44]req_shift_opened [18:17:44]FM_GetShiftState [18:17:44]SAM_PROTO_GetShiftState [18:17:44]wFMCommunicate request_size=4 [18:17:44]MH_SAM_APDU [18:17:44]CAPDU: 80 13 01 00 [18:17:44]Write to MH i2c: E2 08 00 B2 47 80 13 01 00 00 00 00 00 76 [18:17:44]Write i2c OK [18:17:44]MH_I2C_Read... [18:17:44]OFD Sender: No OFD packet to send [18:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:44]Read from MH i2c: E2 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: E2 0E 00 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: E2 0E 00 B2 47 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 EA [18:17:44]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:17:44]wFMCommunicate OK [18:17:44]SAM_PROTO_GetShiftState done [18:17:44]FM_GetShiftState done [18:17:44]req_shift_opened done [18:17:44]requested_item shift.open_date is exist - process it [18:17:44]req_shift_open_date [18:17:44]req_shift_open_date done [18:17:44]produce_requested_data done [18:17:44]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95238,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:17:44]process_action_free close_receipt [18:17:44]json_value_free [18:17:44]json_value_free done [18:17:44]process_json_proto returns [18:17:44]Send response to host [18:17:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95238,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:17:44]free response buf [18:17:44]execute_script done [18:17:44]execute_script returns [18:17:44]free content buf [18:17:44]Sock 10.Close socket [18:17:44]Sock 10.Thread stoped [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:20:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:07]accept exits with 8 [18:29:07]New connection [18:29:07]New thread 3066957156 created [18:29:07]Thread 3066813796 joined [18:29:07]Waiting for new connection... [18:29:07] Sock 8.Parse request [18:29:07]Sock 8.Check first char [18:29:07]Sock 8.First char is OK [18:29:07]request: POST /json_proto HTTP/1.0 [18:29:07]Method: POST [18:29:07]URL: /json_proto [18:29:07]Method is POST - this is cgi request [18:29:07]url: /json_proto [18:29:07]query_string will be loaded in cgi processing [18:29:07]execute_cgi json_proto POST (null) [18:29:07]execute_cgi path=json_proto method=POST [18:29:07]POST find Content-Length [18:29:07]Host: 172.17.62.67:8080 [18:29:07]Content-Length: 677 [18:29:07]Content-Type: application/json [18:29:07] [18:29:07]POST finish read [18:29:07]Found Content-Length = 677 [18:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "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" ] } } [18:29:07]execute_script... [18:29:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "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" ] } } [18:29:07]POST & json_proto [18:29:07]process_json_proto [18:29:07]json parsed OK: [18:29:07]protocol is kg_v1.0 [18:29:07]action value=close_receipt [18:29:07]process_action close_receipt [18:29:07]cmd_close_receipt [18:29:07]MH_GetDate [18:29:07]Write to MH i2c: F0 00 00 B3 47 E9 [18:29:07]Write i2c OK [18:29:07]MH_I2C_Read... [18:29:07]Read from MH i2c: F0 [18:29:07]MH_I2C_Read... [18:29:07]Read from MH i2c: F0 05 00 [18:29:07]MH_I2C_Read... [18:29:07]Read from MH i2c: F0 05 00 B3 47 00 F9 9E F0 65 DA [18:29:07]GetLastDocTimeStamp 1710267468 [18:29:07]current date 1710268153 [18:29:07]FM_GetShiftState [18:29:07]SAM_PROTO_GetShiftState [18:29:07]wFMCommunicate request_size=4 [18:29:07]MH_SAM_APDU [18:29:07]CAPDU: 80 13 01 00 [18:29:07]Write to MH i2c: E2 08 00 B4 47 80 13 01 00 00 00 00 00 78 [18:29:07]Write i2c OK [18:29:07]MH_I2C_Read... [18:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:07]Read from MH i2c: E2 [18:29:07]MH_I2C_Read... [18:29:07]Read from MH i2c: E2 0E 00 [18:29:07]MH_I2C_Read... [18:29:07]Read from MH i2c: E2 0E 00 B4 47 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 EC [18:29:07]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:29:07]wFMCommunicate OK [18:29:07]SAM_PROTO_GetShiftState done [18:29:07]FM_GetShiftState done [18:29:07]opened in 1710201976 [18:29:07]opened+sec_in_day 1710288376 [18:29:07]quantity*price = 20002 [18:29:07]sum+1 = 20003 [18:29:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 169 12.03.2024 18:29 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95239 ФПД: 48457584113964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T182913&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95239&fm=48457584113964&tin=02508201610067®Number=0000000000090555&sum=20000 [18:29:08]StoreToDocumentArchive [18:29:08]shift 327 fd 95239 [18:29:08]save to /storage/0327/doc_00095239 [18:29:08]save last doc name /storage/0327/doc_00095239 to /storage/kkm_last_doc_name [18:29:08]save OK [18:29:08]Clear old archive folders... [18:29:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:08]tlvbuf is 01A28250 [18:29:08]SAM_PROTO_ClearQueue [18:29:08]wFMCommunicate request_size=4 [18:29:08]MH_SAM_APDU [18:29:08]CAPDU: 80 09 00 00 [18:29:08]Write to MH i2c: E2 08 00 C1 47 80 09 00 00 00 00 00 00 7A [18:29:08]Write i2c OK [18:29:08]MH_I2C_Read... [18:29:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:08]Read from MH i2c: E2 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 03 00 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 03 00 C1 47 00 90 00 7C [18:29:08]RAPDU: 90 00 [18:29:08]wFMCommunicate OK [18:29:08]SAM_PROTO_ClearQueue done [18:29:08]KKMCreateOFDPacket [18:29:08]OFDProtocolAddRootSTLVToBuf [18:29:08]FM_MakeSignedData [18:29:08]FM_MakeSignedData [18:29:08]SAM_PROTO_SignData [18:29:08]wFMCommunicate request_size=4 [18:29:08]MH_SAM_APDU [18:29:08]CAPDU: 80 0D 01 02 [18:29:08]Write to MH i2c: E2 08 00 C2 47 80 0D 01 02 00 00 00 00 82 [18:29:08]Write i2c OK [18:29:08]MH_I2C_Read... [18:29:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:08]Read from MH i2c: E2 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 03 00 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 03 00 C2 47 00 90 00 7D [18:29:08]RAPDU: 90 00 [18:29:08]wFMCommunicate OK [18:29:08]wFMCommunicate request_size=255 [18:29:08]MH_SAM_APDU [18:29:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 A9 00 00 00 F4 03 04 00 F9 9E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 07 74 01 00 35 04 06 00 2C [18:29:08]Write to MH i2c: E2 02 01 C3 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 A9 00 00 00 F4 03 04 00 F9 9E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 07 74 01 00 35 04 06 00 2C 00 00 80 [18:29:08]Write i2c OK [18:29:08]MH_I2C_Read... [18:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:08]Read from MH i2c: E2 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 03 00 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 03 00 C3 47 00 90 00 7E [18:29:08]RAPDU: 90 00 [18:29:08]wFMCommunicate OK [18:29:08]wFMCommunicate request_size=10 [18:29:08]MH_SAM_APDU [18:29:08]CAPDU: 80 0D 02 02 05 12 69 16 79 2C [18:29:08]Write to MH i2c: E2 0D 00 C4 47 80 0D 02 02 05 00 12 69 16 79 2C 00 00 C5 [18:29:08]Write i2c OK [18:29:08]MH_I2C_Read... [18:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:08]Read from MH i2c: E2 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 03 00 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 03 00 C4 47 00 90 00 7F [18:29:08]RAPDU: 90 00 [18:29:08]wFMCommunicate OK [18:29:08]wFMCommunicate request_size=4 [18:29:08]MH_SAM_APDU [18:29:08]CAPDU: 80 0D 03 02 [18:29:08]Write to MH i2c: E2 08 00 C5 47 80 0D 03 02 00 00 00 00 87 [18:29:08]Write i2c OK [18:29:08]MH_I2C_Read... [18:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:09]Read from MH i2c: E2 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: E2 0B 00 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: E2 0B 00 C5 47 00 30 52 B3 FC FE 35 37 EE 90 00 11 [18:29:09]RAPDU: 30 52 B3 FC FE 35 37 EE 90 00 [18:29:09]wFMCommunicate OK [18:29:09]SAM_PROTO_SignData done [18:29:09]FM_MakeSignedData done [18:29:09]CreateOFDProtocolMessage [18:29:09]wFMCommunicate request_size=4 [18:29:09]MH_SAM_APDU [18:29:09]CAPDU: 80 11 00 00 [18:29:09]Write to MH i2c: E2 08 00 C6 47 80 11 00 00 00 00 00 00 87 [18:29:09]Write i2c OK [18:29:09]MH_I2C_Read... [18:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:09]Read from MH i2c: E2 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: E2 17 00 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: E2 17 00 C6 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D7 [18:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:29:09]wFMCommunicate OK [18:29:09]CreateOFDProtocolMessage done [18:29:09]OFDSenderStorePacket 95239 [18:29:09]StoreOFDPacket docnum=95239 [18:29:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4F 3B 07 01 8A 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 A9 00 00 00 F4 03 04 00 F9 9E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 07 74 01 00 35 04 06 00 2C 12 69 16 79 2C 30 52 B3 FC FE 35 37 EE [18:29:09]CheckFolder [18:29:09]dirname=/storage/ofd_packets [18:29:09]CheckFolder done [18:29:09]ProducePacketName [18:29:09]name=ofd_packets/00095239 [18:29:09]NVStorageSaveData ofd_packets/00095239 [18:29:09]File name is /storage/ofd_packets/00095239 [18:29:09]Write 301 bytes [18:29:09]NVStorageSaveData done [18:29:09]OFDSenderStorePacket done [18:29:09]KKMCreateOFDPacket done [18:29:09]NVStorageSaveData kkm_last_timestamp [18:29:09]File name is /storage/kkm_last_timestamp [18:29:09]Write 4 bytes [18:29:09]NVStorageSaveData done [18:29:09]ExternCall_PrintAddStr [18:29:09]wPrintStart [18:29:09]Write to MH i2c: 01 00 00 C7 47 0E [18:29:09]Write i2c OK [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: 01 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: 01 07 00 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: 01 07 00 C7 47 00 80 00 00 00 FF 0F A3 [18:29:09]RasterBufferAndPrint [18:29:09]line Счет N : (1)196214 [18:29:09]line ИНН: 02508201610067 [18:29:09]line Контрольно-Кассовый Чек [18:29:09]line ПРОДАЖА [18:29:09]line ТРК (МРК, ГНК) : 42 [18:29:09]line Товар: 2710124130 [18:29:09]line Аи-92-К-5 [18:29:09]line 3.180 * 62.90 [18:29:09]line = 200.02 [18:29:09]line НДС 12% НСП 1% [18:29:09]line > о реализуемом товаре [18:29:09]line ОКРУГЛЕНИЕ: -0.02 [18:29:09]line ИТОГО: 200.00 [18:29:09]line Внесено: 200.00 [18:29:09]line СДАЧА: 0.00 [18:29:09]line НСП 1% : 1.77 [18:29:09]line НДС 12% : 21.24 [18:29:09]line Наличными: 200.00 [18:29:09]line Безнал.: 0.00 [18:29:09]line Место: АЗС № 6 "Партнер Нефть" [18:29:09]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:29:09]line СНО: Общий режим [18:29:09]line Чек 169 12.03.2024 18:29 [18:29:09]line Смена: 327 ФФД: 1.0 [18:29:09]line ЗНМ: 0300000009 [18:29:09]line РНМ: 0000000000090555 [18:29:09]line Версия ККМ: 001 [18:29:09]line ФМ: 0000000000874811 [18:29:09]line ФД: 95239 [18:29:09]line ФПД: 48457584113964 [18:29:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T182913&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95239&fm=48457584113964&tin=02508201610067®Number=0000000000090555&sum=20000 [18:29:09]written 0, free lines is 4095 [18:29:09]OFD Sender: Processing packet 95239 [packets to send 30, broken 29] [18:29:09]ProducePacketName [18:29:09]name=ofd_packets/00095239 [18:29:09]OFD Sender: To server: pG, [18:29:09]CommunicateWithHost lk.salyk.kg:30040 [18:29:09]ConnectInit lk.salyk.kg [18:29:09]Connected sock=9 [18:29:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4F 3B 07 01 8A 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 A9 00 00 00 F4 03 04 00 F9 9E F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 07 74 01 00 35 04 06 00 2C 12 69 16 79 2C 30 52 B3 FC FE 35 37 EE [18:29:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 BE 35 47 00 02 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 07 74 01 00 F4 03 04 00 4F 4A F0 65 B6 04 01 00 00 85 E5 3B 3E 93 0A 66 72 [18:29:09]CommunicateWithHost err = 0 [18:29:09]CheckOFDResponse [18:29:09]1017 (14) - 77093643461234 [18:29:09]1041 (16) - 0000000000874811 [18:29:09]1040 (4) - 95239 [18:29:09]1012 (4) - 12.03.2024 12:27 [18:29:09]1206 (1) - 0 [18:29:09]OFD Sender: Remove packet 95239 [18:29:09]ProducePacketName [18:29:09]name=ofd_packets/00095239 [18:29:09]NVStorageDeleteData [18:29:09]Write to MH i2c: 01 00 00 F2 47 39 [18:29:09]Write i2c OK [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: 01 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: 01 07 00 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: 01 07 00 F2 47 00 80 00 00 00 53 0D 20 [18:29:09]RasterBufferAndPrint [18:29:09]line [18:29:09]line [18:29:09]line [18:29:09]line [18:29:09]line [18:29:09]written 0, free lines is 3418 [18:29:09]process_action close_receipt done [18:29:09]requested_data is exist [18:29:09]produce_requested_data [18:29:09]requested_item fm.sn is exist - process it [18:29:09]wFMCommunicate request_size=4 [18:29:09]MH_SAM_APDU [18:29:09]CAPDU: 80 11 00 00 [18:29:09]Write to MH i2c: E2 08 00 F9 47 80 11 00 00 00 00 00 00 BA [18:29:09]Write i2c OK [18:29:09]MH_I2C_Read... [18:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:09]Read from MH i2c: E2 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: E2 17 00 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: E2 17 00 F9 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0A [18:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:29:09]wFMCommunicate OK [18:29:09]requested_item fd.num is exist - process it [18:29:09]SAM_PROTO_GetFieldsCounters [18:29:09]wFMCommunicate request_size=4 [18:29:09]MH_SAM_APDU [18:29:09]CAPDU: 80 13 00 00 [18:29:09]Write to MH i2c: E2 08 00 FA 47 80 13 00 00 00 00 00 00 BD [18:29:09]Write i2c OK [18:29:09]MH_I2C_Read... [18:29:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:10]Read from MH i2c: E2 [18:29:10]MH_I2C_Read... [18:29:10]Read from MH i2c: E2 62 00 [18:29:10]MH_I2C_Read... [18:29:10]Read from MH i2c: E2 62 00 FA 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 07 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [18:29:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 07 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:10]wFMCommunicate OK [18:29:10]SAM_PROTO_GetFieldsCounters done [18:29:10]requested_item shift.num is exist - process it [18:29:10]requested_item shift.opened is exist - process it [18:29:10]req_shift_opened [18:29:10]FM_GetShiftState [18:29:10]SAM_PROTO_GetShiftState [18:29:10]wFMCommunicate request_size=4 [18:29:10]MH_SAM_APDU [18:29:10]CAPDU: 80 13 01 00 [18:29:10]Write to MH i2c: E2 08 00 FB 47 80 13 01 00 00 00 00 00 BF [18:29:10]Write i2c OK [18:29:10]MH_I2C_Read... [18:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:10]Read from MH i2c: E2 [18:29:10]MH_I2C_Read... [18:29:10]Read from MH i2c: E2 0E 00 [18:29:10]MH_I2C_Read... [18:29:10]Read from MH i2c: E2 0E 00 FB 47 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 33 [18:29:10]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:29:10]wFMCommunicate OK [18:29:10]SAM_PROTO_GetShiftState done [18:29:10]FM_GetShiftState done [18:29:10]req_shift_opened done [18:29:10]requested_item shift.open_date is exist - process it [18:29:10]req_shift_open_date [18:29:10]req_shift_open_date done [18:29:10]produce_requested_data done [18:29:10]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95239,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:29:10]process_action_free close_receipt [18:29:10]json_value_free [18:29:10]json_value_free done [18:29:10]process_json_proto returns [18:29:10]Send response to host [18:29:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95239,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:29:10]free response buf [18:29:10]execute_script done [18:29:10]execute_script returns [18:29:10]free content buf [18:29:10]Sock 8.Close socket [18:29:10]Sock 8.Thread stoped [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:15]accept exits with 10 [18:29:15]New connection [18:29:15]New thread 3066813796 created [18:29:15]Thread 3066957156 joined [18:29:15]Waiting for new connection... [18:29:15] Sock 10.Parse request [18:29:15]Sock 10.Check first char [18:29:15]Sock 10.First char is OK [18:29:15]request: POST /json_proto HTTP/1.0 [18:29:15]Method: POST [18:29:15]URL: /json_proto [18:29:15]Method is POST - this is cgi request [18:29:15]url: /json_proto [18:29:15]query_string will be loaded in cgi processing [18:29:15]execute_cgi json_proto POST (null) [18:29:15]execute_cgi path=json_proto method=POST [18:29:15]POST find Content-Length [18:29:15]Host: 172.17.62.67:8080 [18:29:15]Content-Length: 816 [18:29:15]Content-Type: application/json [18:29:15] [18:29:15]POST finish read [18:29:15]Found Content-Length = 816 [18:29:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:15]execute_script... [18:29:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:15]POST & json_proto [18:29:15]process_json_proto [18:29:15]json parsed OK: [18:29:15]protocol is kg_v1.0 [18:29:15]action value=close_receipt [18:29:15]process_action close_receipt [18:29:15]cmd_close_receipt [18:29:15]MH_GetDate [18:29:15]Write to MH i2c: F0 00 00 FC 47 32 [18:29:15]Write i2c OK [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: F0 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: F0 05 00 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: F0 05 00 FC 47 00 02 9F F0 65 2D [18:29:16]GetLastDocTimeStamp 1710268153 [18:29:16]current date 1710268162 [18:29:16]FM_GetShiftState [18:29:16]SAM_PROTO_GetShiftState [18:29:16]wFMCommunicate request_size=4 [18:29:16]MH_SAM_APDU [18:29:16]CAPDU: 80 13 01 00 [18:29:16]Write to MH i2c: E2 08 00 FD 47 80 13 01 00 00 00 00 00 C1 [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:16]Read from MH i2c: E2 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 0E 00 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 0E 00 FD 47 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 35 [18:29:16]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:29:16]wFMCommunicate OK [18:29:16]SAM_PROTO_GetShiftState done [18:29:16]FM_GetShiftState done [18:29:16]opened in 1710201976 [18:29:16]opened+sec_in_day 1710288376 [18:29:16]quantity*price = 50005 [18:29:16]sum+1 = 50007 [18:29:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.06 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.06 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 170 12.03.2024 18:29 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95240 ФПД: 83984724980882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T182922&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95240&fm=83984724980882&tin=02508201610067®Number=0000000000090555&sum=50006 [18:29:17]StoreToDocumentArchive [18:29:17]shift 327 fd 95240 [18:29:17]save to /storage/0327/doc_00095240 [18:29:17]save last doc name /storage/0327/doc_00095240 to /storage/kkm_last_doc_name [18:29:17]save OK [18:29:17]Clear old archive folders... [18:29:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:17]tlvbuf is 01B89CE0 [18:29:17]SAM_PROTO_ClearQueue [18:29:17]wFMCommunicate request_size=4 [18:29:17]MH_SAM_APDU [18:29:17]CAPDU: 80 09 00 00 [18:29:17]Write to MH i2c: E2 08 00 0A 48 80 09 00 00 00 00 00 00 C4 [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:17]Read from MH i2c: E2 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 03 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 03 00 0A 48 00 90 00 C6 [18:29:17]RAPDU: 90 00 [18:29:17]wFMCommunicate OK [18:29:17]SAM_PROTO_ClearQueue done [18:29:17]KKMCreateOFDPacket [18:29:17]OFDProtocolAddRootSTLVToBuf [18:29:17]FM_MakeSignedData [18:29:17]FM_MakeSignedData [18:29:17]SAM_PROTO_SignData [18:29:17]wFMCommunicate request_size=4 [18:29:17]MH_SAM_APDU [18:29:17]CAPDU: 80 0D 01 02 [18:29:17]Write to MH i2c: E2 08 00 0B 48 80 0D 01 02 00 00 00 00 CC [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:17]Read from MH i2c: E2 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 03 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 03 00 0B 48 00 90 00 C7 [18:29:17]RAPDU: 90 00 [18:29:17]wFMCommunicate OK [18:29:17]wFMCommunicate request_size=255 [18:29:17]MH_SAM_APDU [18:29:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 02 9F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 08 74 01 00 35 04 06 00 4C [18:29:17]Write to MH i2c: E2 02 01 0C 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 02 9F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 08 74 01 00 35 04 06 00 4C 00 00 32 [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:17]Read from MH i2c: E2 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 03 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 03 00 0C 48 00 90 00 C8 [18:29:17]RAPDU: 90 00 [18:29:17]wFMCommunicate OK [18:29:17]wFMCommunicate request_size=10 [18:29:17]MH_SAM_APDU [18:29:17]CAPDU: 80 0D 02 02 05 62 37 B2 F4 92 [18:29:17]Write to MH i2c: E2 0D 00 0D 48 80 0D 02 02 05 00 62 37 B2 F4 92 00 00 AA [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:17]Read from MH i2c: E2 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 03 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 03 00 0D 48 00 90 00 C9 [18:29:17]RAPDU: 90 00 [18:29:17]wFMCommunicate OK [18:29:17]wFMCommunicate request_size=4 [18:29:17]MH_SAM_APDU [18:29:17]CAPDU: 80 0D 03 02 [18:29:17]Write to MH i2c: E2 08 00 0E 48 80 0D 03 02 00 00 00 00 D1 [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:17]Read from MH i2c: E2 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 0B 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 0B 00 0E 48 00 84 34 44 1D 91 F3 92 C5 90 00 C6 [18:29:17]RAPDU: 84 34 44 1D 91 F3 92 C5 90 00 [18:29:17]wFMCommunicate OK [18:29:17]SAM_PROTO_SignData done [18:29:17]FM_MakeSignedData done [18:29:17]CreateOFDProtocolMessage [18:29:17]wFMCommunicate request_size=4 [18:29:17]MH_SAM_APDU [18:29:17]CAPDU: 80 11 00 00 [18:29:17]Write to MH i2c: E2 08 00 0F 48 80 11 00 00 00 00 00 00 D1 [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:17]Read from MH i2c: E2 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 17 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 17 00 0F 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 21 [18:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:29:17]wFMCommunicate OK [18:29:17]CreateOFDProtocolMessage done [18:29:17]OFDSenderStorePacket 95240 [18:29:17]StoreOFDPacket docnum=95240 [18:29:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1B C9 07 01 05 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 02 9F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 08 74 01 00 35 04 06 00 4C 62 37 B2 F4 92 84 34 44 1D 91 F3 92 C5 [18:29:17]CheckFolder [18:29:17]dirname=/storage/ofd_packets [18:29:17]CheckFolder done [18:29:17]ProducePacketName [18:29:17]name=ofd_packets/00095240 [18:29:17]NVStorageSaveData ofd_packets/00095240 [18:29:17]File name is /storage/ofd_packets/00095240 [18:29:17]Write 301 bytes [18:29:17]NVStorageSaveData done [18:29:17]OFDSenderStorePacket done [18:29:17]KKMCreateOFDPacket done [18:29:17]NVStorageSaveData kkm_last_timestamp [18:29:17]File name is /storage/kkm_last_timestamp [18:29:17]Write 4 bytes [18:29:17]NVStorageSaveData done [18:29:17]ExternCall_PrintAddStr [18:29:17]wPrintStart [18:29:17]Write to MH i2c: 01 00 00 10 48 58 [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: 01 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: 01 07 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: 01 07 00 10 48 00 80 00 00 00 FF 0F ED [18:29:17]RasterBufferAndPrint [18:29:17]line Счет N : (1)196213 [18:29:17]line ИНН: 02508201610067 [18:29:17]line Контрольно-Кассовый Чек [18:29:17]line ПРОДАЖА [18:29:17]line ТРК (МРК, ГНК) : 12 [18:29:17]line Товар: 2710124130 [18:29:17]line Аи-92-К-5 [18:29:17]line 7.950 * 62.90 [18:29:17]line = 500.06 [18:29:17]line НДС 12% НСП 1% [18:29:17]line > о реализуемом товаре [18:29:17]line ИТОГО: 500.06 [18:29:17]line НСП 1% : 4.42 [18:29:17]line НДС 12% : 53.10 [18:29:17]line Наличными: 0.00 [18:29:17]line Безнал.: 500.06 [18:29:17]line Место: АЗС № 6 "Партнер Нефть" [18:29:17]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:29:17]line СНО: Общий режим [18:29:17]line Чек 170 12.03.2024 18:29 [18:29:17]line Смена: 327 ФФД: 1.0 [18:29:17]line ЗНМ: 0300000009 [18:29:17]line РНМ: 0000000000090555 [18:29:17]line Версия ККМ: 001 [18:29:17]line Платежная система: Бакай Банк [18:29:17]line ФМ: 0000000000874811 [18:29:17]line ФД: 95240 [18:29:17]line ФПД: 83984724980882 [18:29:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T182922&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95240&fm=83984724980882&tin=02508201610067®Number=0000000000090555&sum=50006 [18:29:17]written 0, free lines is 4095 [18:29:17]OFD Sender: Processing packet 95240 [packets to send 30, broken 29] [18:29:17]ProducePacketName [18:29:17]name=ofd_packets/00095240 [18:29:17]OFD Sender: To server: pG, [18:29:17]CommunicateWithHost lk.salyk.kg:30040 [18:29:17]ConnectInit lk.salyk.kg [18:29:17]Connected sock=11 [18:29:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1B C9 07 01 05 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 02 9F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 08 74 01 00 35 04 06 00 4C 62 37 B2 F4 92 84 34 44 1D 91 F3 92 C5 [18:29:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 51 10 47 00 D4 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 08 74 01 00 F4 03 04 00 57 4A F0 65 B6 04 01 00 00 7E 57 38 29 8C 68 E2 19 [18:29:18]CommunicateWithHost err = 0 [18:29:18]CheckOFDResponse [18:29:18]1017 (14) - 77093643461234 [18:29:18]1041 (16) - 0000000000874811 [18:29:18]1040 (4) - 95240 [18:29:18]1012 (4) - 12.03.2024 12:28 [18:29:18]1206 (1) - 0 [18:29:18]OFD Sender: Remove packet 95240 [18:29:18]ProducePacketName [18:29:18]name=ofd_packets/00095240 [18:29:18]NVStorageDeleteData [18:29:18]Write to MH i2c: 01 00 00 3A 48 82 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: 01 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: 01 07 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: 01 07 00 3A 48 00 80 00 00 00 63 0D 79 [18:29:18]RasterBufferAndPrint [18:29:18]line [18:29:18]line [18:29:18]line [18:29:18]line [18:29:18]line [18:29:18]written 0, free lines is 3437 [18:29:18]process_action close_receipt done [18:29:18]requested_data is exist [18:29:18]produce_requested_data [18:29:18]requested_item fm.sn is exist - process it [18:29:18]wFMCommunicate request_size=4 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 11 00 00 [18:29:18]Write to MH i2c: E2 08 00 41 48 80 11 00 00 00 00 00 00 03 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 17 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 17 00 41 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 53 [18:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:29:18]wFMCommunicate OK [18:29:18]requested_item fd.num is exist - process it [18:29:18]SAM_PROTO_GetFieldsCounters [18:29:18]wFMCommunicate request_size=4 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 13 00 00 [18:29:18]Write to MH i2c: E2 08 00 42 48 80 13 00 00 00 00 00 00 06 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 62 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 62 00 42 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 08 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [18:29:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 08 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:18]wFMCommunicate OK [18:29:18]SAM_PROTO_GetFieldsCounters done [18:29:18]requested_item shift.num is exist - process it [18:29:18]requested_item shift.opened is exist - process it [18:29:18]req_shift_opened [18:29:18]FM_GetShiftState [18:29:18]SAM_PROTO_GetShiftState [18:29:18]wFMCommunicate request_size=4 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 13 01 00 [18:29:18]Write to MH i2c: E2 08 00 43 48 80 13 01 00 00 00 00 00 08 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 0E 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 0E 00 43 48 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 7C [18:29:18]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:29:18]wFMCommunicate OK [18:29:18]SAM_PROTO_GetShiftState done [18:29:18]FM_GetShiftState done [18:29:18]req_shift_opened done [18:29:18]requested_item shift.open_date is exist - process it [18:29:18]req_shift_open_date [18:29:18]req_shift_open_date done [18:29:18]produce_requested_data done [18:29:18]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95240,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:29:18]process_action_free close_receipt [18:29:18]json_value_free [18:29:18]json_value_free done [18:29:18]process_json_proto returns [18:29:18]Send response to host [18:29:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95240,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:29:18]free response buf [18:29:18]execute_script done [18:29:18]execute_script returns [18:29:18]free content buf [18:29:18]Sock 10.Close socket [18:29:18]Sock 10.Thread stoped [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:43]OFD Sender: No OFD packet to send [18:30:48]OFD Sender: No OFD packet to send [18:30:53]OFD Sender: No OFD packet to send [18:30:58]OFD Sender: No OFD packet to send [18:31:03]OFD Sender: No OFD packet to send [18:31:08]OFD Sender: No OFD packet to send [18:31:13]OFD Sender: No OFD packet to send [18:31:18]OFD Sender: No OFD packet to send [18:31:23]OFD Sender: No OFD packet to send [18:31:28]OFD Sender: No OFD packet to send [18:31:33]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:20]accept exits with 8 [18:32:20]New connection [18:32:20]New thread 3066957156 created [18:32:20]Thread 3066813796 joined [18:32:20]Waiting for new connection... [18:32:20] Sock 8.Parse request [18:32:20]Sock 8.Check first char [18:32:20]Sock 8.First char is OK [18:32:20]request: POST /json_proto HTTP/1.0 [18:32:20]Method: POST [18:32:20]URL: /json_proto [18:32:20]Method is POST - this is cgi request [18:32:20]url: /json_proto [18:32:20]query_string will be loaded in cgi processing [18:32:20]execute_cgi json_proto POST (null) [18:32:20]execute_cgi path=json_proto method=POST [18:32:20]POST find Content-Length [18:32:20]Host: 172.17.62.67:8080 [18:32:20]Content-Length: 677 [18:32:20]Content-Type: application/json [18:32:20] [18:32:20]POST finish read [18:32:20]Found Content-Length = 677 [18:32:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:20]execute_script... [18:32: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)196215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:20]POST & json_proto [18:32:20]process_json_proto [18:32:20]json parsed OK: [18:32:20]protocol is kg_v1.0 [18:32:20]action value=close_receipt [18:32:20]process_action close_receipt [18:32:20]cmd_close_receipt [18:32:20]MH_GetDate [18:32:20]Write to MH i2c: F0 00 00 44 48 7B [18:32:20]Write i2c OK [18:32:20]MH_I2C_Read... [18:32:20]Read from MH i2c: F0 [18:32:20]MH_I2C_Read... [18:32:20]Read from MH i2c: F0 05 00 [18:32:20]MH_I2C_Read... [18:32:20]Read from MH i2c: F0 05 00 44 48 00 BA 9F F0 65 2E [18:32:20]GetLastDocTimeStamp 1710268162 [18:32:20]current date 1710268346 [18:32:20]FM_GetShiftState [18:32:20]SAM_PROTO_GetShiftState [18:32:20]wFMCommunicate request_size=4 [18:32:20]MH_SAM_APDU [18:32:20]CAPDU: 80 13 01 00 [18:32:20]Write to MH i2c: E2 08 00 45 48 80 13 01 00 00 00 00 00 0A [18:32:20]Write i2c OK [18:32:20]MH_I2C_Read... [18:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:20]Read from MH i2c: E2 [18:32:20]MH_I2C_Read... [18:32:20]Read from MH i2c: E2 0E 00 [18:32:20]MH_I2C_Read... [18:32:20]Read from MH i2c: E2 0E 00 45 48 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 7E [18:32:20]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:32:20]wFMCommunicate OK [18:32:20]SAM_PROTO_GetShiftState done [18:32:20]FM_GetShiftState done [18:32:20]opened in 1710201976 [18:32:20]opened+sec_in_day 1710288376 [18:32:20]quantity*price = 50005 [18:32:20]sum+1 = 50007 [18:32:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 171 12.03.2024 18:32 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95241 ФПД: 214977964393722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T183226&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95241&fm=214977964393722&tin=02508201610067®Number=0000000000090555&sum=50000 [18:32:21]StoreToDocumentArchive [18:32:21]shift 327 fd 95241 [18:32:21]save to /storage/0327/doc_00095241 [18:32:21]save last doc name /storage/0327/doc_00095241 to /storage/kkm_last_doc_name [18:32:21]save OK [18:32:21]Clear old archive folders... [18:32:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:21]tlvbuf is 01A08500 [18:32:21]SAM_PROTO_ClearQueue [18:32:21]wFMCommunicate request_size=4 [18:32:21]MH_SAM_APDU [18:32:21]CAPDU: 80 09 00 00 [18:32:21]Write to MH i2c: E2 08 00 52 48 80 09 00 00 00 00 00 00 0C [18:32:21]Write i2c OK [18:32:21]MH_I2C_Read... [18:32:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:21]Read from MH i2c: E2 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: E2 03 00 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: E2 03 00 52 48 00 90 00 0E [18:32:21]RAPDU: 90 00 [18:32:21]wFMCommunicate OK [18:32:21]SAM_PROTO_ClearQueue done [18:32:21]KKMCreateOFDPacket [18:32:21]OFDProtocolAddRootSTLVToBuf [18:32:21]FM_MakeSignedData [18:32:21]FM_MakeSignedData [18:32:21]SAM_PROTO_SignData [18:32:21]wFMCommunicate request_size=4 [18:32:21]MH_SAM_APDU [18:32:21]CAPDU: 80 0D 01 02 [18:32:21]Write to MH i2c: E2 08 00 53 48 80 0D 01 02 00 00 00 00 14 [18:32:21]Write i2c OK [18:32:21]MH_I2C_Read... [18:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:21]Read from MH i2c: E2 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: E2 03 00 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: E2 03 00 53 48 00 90 00 0F [18:32:21]RAPDU: 90 00 [18:32:21]wFMCommunicate OK [18:32:21]wFMCommunicate request_size=255 [18:32:21]MH_SAM_APDU [18:32:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 BA 9F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 09 74 01 00 35 04 06 00 C3 [18:32:21]Write to MH i2c: E2 02 01 54 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 BA 9F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 09 74 01 00 35 04 06 00 C3 00 00 9F [18:32:21]Write i2c OK [18:32:21]MH_I2C_Read... [18:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:21]Read from MH i2c: E2 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: E2 03 00 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: E2 03 00 54 48 00 90 00 10 [18:32:21]RAPDU: 90 00 [18:32:21]wFMCommunicate OK [18:32:21]wFMCommunicate request_size=10 [18:32:21]MH_SAM_APDU [18:32:21]CAPDU: 80 0D 02 02 05 85 75 33 C4 FA [18:32:21]Write to MH i2c: E2 0D 00 55 48 80 0D 02 02 05 00 85 75 33 C4 FA 00 00 0C [18:32:21]Write i2c OK [18:32:21]MH_I2C_Read... [18:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:21]Read from MH i2c: E2 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: E2 03 00 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: E2 03 00 55 48 00 90 00 11 [18:32:21]RAPDU: 90 00 [18:32:21]wFMCommunicate OK [18:32:21]wFMCommunicate request_size=4 [18:32:21]MH_SAM_APDU [18:32:21]CAPDU: 80 0D 03 02 [18:32:21]Write to MH i2c: E2 08 00 56 48 80 0D 03 02 00 00 00 00 19 [18:32:21]Write i2c OK [18:32:21]MH_I2C_Read... [18:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:21]Read from MH i2c: E2 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: E2 0B 00 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: E2 0B 00 56 48 00 D3 90 8B 3D 13 54 BD 53 90 00 BC [18:32:21]RAPDU: D3 90 8B 3D 13 54 BD 53 90 00 [18:32:21]wFMCommunicate OK [18:32:21]SAM_PROTO_SignData done [18:32:21]FM_MakeSignedData done [18:32:21]CreateOFDProtocolMessage [18:32:21]wFMCommunicate request_size=4 [18:32:21]MH_SAM_APDU [18:32:21]CAPDU: 80 11 00 00 [18:32:21]Write to MH i2c: E2 08 00 57 48 80 11 00 00 00 00 00 00 19 [18:32:21]Write i2c OK [18:32:21]MH_I2C_Read... [18:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:21]Read from MH i2c: E2 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: E2 17 00 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: E2 17 00 57 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 69 [18:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:32:21]wFMCommunicate OK [18:32:21]CreateOFDProtocolMessage done [18:32:21]OFDSenderStorePacket 95241 [18:32:21]StoreOFDPacket docnum=95241 [18:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 90 95 07 01 D8 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 BA 9F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 09 74 01 00 35 04 06 00 C3 85 75 33 C4 FA D3 90 8B 3D 13 54 BD 53 [18:32:21]CheckFolder [18:32:21]dirname=/storage/ofd_packets [18:32:21]CheckFolder done [18:32:21]ProducePacketName [18:32:21]name=ofd_packets/00095241 [18:32:21]NVStorageSaveData ofd_packets/00095241 [18:32:21]File name is /storage/ofd_packets/00095241 [18:32:21]Write 301 bytes [18:32:21]NVStorageSaveData done [18:32:21]OFDSenderStorePacket done [18:32:21]KKMCreateOFDPacket done [18:32:21]NVStorageSaveData kkm_last_timestamp [18:32:21]File name is /storage/kkm_last_timestamp [18:32:21]Write 4 bytes [18:32:21]NVStorageSaveData done [18:32:21]ExternCall_PrintAddStr [18:32:21]wPrintStart [18:32:21]Write to MH i2c: 01 00 00 58 48 A0 [18:32:21]Write i2c OK [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: 01 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: 01 07 00 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: 01 07 00 58 48 00 80 00 00 00 FF 0F 35 [18:32:21]RasterBufferAndPrint [18:32:21]line Счет N : (1)196215 [18:32:21]line ИНН: 02508201610067 [18:32:21]line Контрольно-Кассовый Чек [18:32:21]line ПРОДАЖА [18:32:21]line ТРК (МРК, ГНК) : 22 [18:32:21]line Товар: 2710124130 [18:32:21]line Аи-92-К-5 [18:32:21]line 7.950 * 62.90 [18:32:21]line = 500.06 [18:32:21]line НДС 12% НСП 1% [18:32:21]line > о реализуемом товаре [18:32:21]line ОКРУГЛЕНИЕ: -0.06 [18:32:21]line ИТОГО: 500.00 [18:32:21]line Внесено: 500.00 [18:32:21]line СДАЧА: 0.00 [18:32:21]line НСП 1% : 4.42 [18:32:21]line НДС 12% : 53.10 [18:32:21]line Наличными: 500.00 [18:32:21]line Безнал.: 0.00 [18:32:21]line Место: АЗС № 6 "Партнер Нефть" [18:32:21]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:32:21]line СНО: Общий режим [18:32:21]line Чек 171 12.03.2024 18:32 [18:32:21]line Смена: 327 ФФД: 1.0 [18:32:21]line ЗНМ: 0300000009 [18:32:21]line РНМ: 0000000000090555 [18:32:21]line Версия ККМ: 001 [18:32:21]line ФМ: 0000000000874811 [18:32:21]line ФД: 95241 [18:32:21]line ФПД: 214977964393722 [18:32:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T183226&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95241&fm=214977964393722&tin=02508201610067®Number=0000000000090555&sum=50000 [18:32:22]OFD Sender: Processing packet 95241 [packets to send 30, broken 29] [18:32:22]ProducePacketName [18:32:22]name=ofd_packets/00095241 [18:32:22]OFD Sender: To server: pG, [18:32:22]CommunicateWithHost lk.salyk.kg:30040 [18:32:22]ConnectInit lk.salyk.kg [18:32:22]written 0, free lines is 4095 [18:32:22]Connected sock=10 [18:32:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 90 95 07 01 D8 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 BA 9F F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 09 74 01 00 35 04 06 00 C3 85 75 33 C4 FA D3 90 8B 3D 13 54 BD 53 [18:32:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 61 C4 47 00 51 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 09 74 01 00 F4 03 04 00 0F 4B F0 65 B6 04 01 00 00 9B 50 B7 79 61 B4 E5 40 [18:32:22]CommunicateWithHost err = 0 [18:32:22]CheckOFDResponse [18:32:22]1017 (14) - 77093643461234 [18:32:22]1041 (16) - 0000000000874811 [18:32:22]1040 (4) - 95241 [18:32:22]1012 (4) - 12.03.2024 12:31 [18:32:22]1206 (1) - 0 [18:32:22]OFD Sender: Remove packet 95241 [18:32:22]ProducePacketName [18:32:22]name=ofd_packets/00095241 [18:32:22]NVStorageDeleteData [18:32:22]Write to MH i2c: 01 00 00 83 48 CB [18:32:22]Write i2c OK [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: 01 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: 01 07 00 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: 01 07 00 83 48 00 80 00 00 00 4B 0D AA [18:32:22]RasterBufferAndPrint [18:32:22]line [18:32:22]line [18:32:22]line [18:32:22]line [18:32:22]line [18:32:22]written 0, free lines is 3409 [18:32:22]process_action close_receipt done [18:32:22]requested_data is exist [18:32:22]produce_requested_data [18:32:22]requested_item fm.sn is exist - process it [18:32:22]wFMCommunicate request_size=4 [18:32:22]MH_SAM_APDU [18:32:22]CAPDU: 80 11 00 00 [18:32:22]Write to MH i2c: E2 08 00 8A 48 80 11 00 00 00 00 00 00 4C [18:32:22]Write i2c OK [18:32:22]MH_I2C_Read... [18:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:22]Read from MH i2c: E2 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 17 00 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 17 00 8A 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9C [18:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:32:22]wFMCommunicate OK [18:32:22]requested_item fd.num is exist - process it [18:32:22]SAM_PROTO_GetFieldsCounters [18:32:22]wFMCommunicate request_size=4 [18:32:22]MH_SAM_APDU [18:32:22]CAPDU: 80 13 00 00 [18:32:22]Write to MH i2c: E2 08 00 8B 48 80 13 00 00 00 00 00 00 4F [18:32:22]Write i2c OK [18:32:22]MH_I2C_Read... [18:32:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:22]Read from MH i2c: E2 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 62 00 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 62 00 8B 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 09 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [18:32:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 09 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:22]wFMCommunicate OK [18:32:22]SAM_PROTO_GetFieldsCounters done [18:32:22]requested_item shift.num is exist - process it [18:32:22]requested_item shift.opened is exist - process it [18:32:22]req_shift_opened [18:32:22]FM_GetShiftState [18:32:22]SAM_PROTO_GetShiftState [18:32:22]wFMCommunicate request_size=4 [18:32:22]MH_SAM_APDU [18:32:22]CAPDU: 80 13 01 00 [18:32:22]Write to MH i2c: E2 08 00 8C 48 80 13 01 00 00 00 00 00 51 [18:32:22]Write i2c OK [18:32:22]MH_I2C_Read... [18:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:22]Read from MH i2c: E2 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 0E 00 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 0E 00 8C 48 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C5 [18:32:22]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:32:22]wFMCommunicate OK [18:32:22]SAM_PROTO_GetShiftState done [18:32:22]FM_GetShiftState done [18:32:22]req_shift_opened done [18:32:22]requested_item shift.open_date is exist - process it [18:32:22]req_shift_open_date [18:32:22]req_shift_open_date done [18:32:22]produce_requested_data done [18:32:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95241,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:32:22]process_action_free close_receipt [18:32:22]json_value_free [18:32:22]json_value_free done [18:32:22]process_json_proto returns [18:32:22]Send response to host [18:32:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95241,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:32:22]free response buf [18:32:22]execute_script done [18:32:22]execute_script returns [18:32:22]free content buf [18:32:22]Sock 8.Close socket [18:32:22]Sock 8.Thread stoped [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35:03]OFD Sender: No OFD packet to send [18:35:08]OFD Sender: No OFD packet to send [18:35:13]OFD Sender: No OFD packet to send [18:35:18]OFD Sender: No OFD packet to send [18:35:23]OFD Sender: No OFD packet to send [18:35:28]OFD Sender: No OFD packet to send [18:35:33]OFD Sender: No OFD packet to send [18:35:38]OFD Sender: No OFD packet to send [18:35:43]OFD Sender: No OFD packet to send [18:35:48]OFD Sender: No OFD packet to send [18:35:53]OFD Sender: No OFD packet to send [18:35:58]OFD Sender: No OFD packet to send [18:36:03]OFD Sender: No OFD packet to send [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:48]OFD Sender: No OFD packet to send [18:36:53]OFD Sender: No OFD packet to send [18:36:58]OFD Sender: No OFD packet to send [18:37:03]OFD Sender: No OFD packet to send [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:19]accept exits with 9 [18:37:19]New connection [18:37:19]New thread 3066813796 created [18:37:19]Thread 3066957156 joined [18:37:19]Waiting for new connection... [18:37:19] Sock 9.Parse request [18:37:19]Sock 9.Check first char [18:37:19]Sock 9.First char is OK [18:37:19]request: POST /json_proto HTTP/1.0 [18:37:19]Method: POST [18:37:19]URL: /json_proto [18:37:19]Method is POST - this is cgi request [18:37:19]url: /json_proto [18:37:19]query_string will be loaded in cgi processing [18:37:19]execute_cgi json_proto POST (null) [18:37:19]execute_cgi path=json_proto method=POST [18:37:19]POST find Content-Length [18:37:19]Host: 172.17.62.67:8080 [18:37:19]Content-Length: 808 [18:37:19]Content-Type: application/json [18:37:19] [18:37:19]POST finish read [18:37:19]Found Content-Length = 808 [18:37:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:19]execute_script... [18:37:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:19]POST & json_proto [18:37:19]process_json_proto [18:37:19]json parsed OK: [18:37:19]protocol is kg_v1.0 [18:37:19]action value=close_receipt [18:37:19]process_action close_receipt [18:37:19]cmd_close_receipt [18:37:19]MH_GetDate [18:37:19]Write to MH i2c: F0 00 00 8D 48 C4 [18:37:19]Write i2c OK [18:37:19]MH_I2C_Read... [18:37:19]Read from MH i2c: F0 [18:37:19]MH_I2C_Read... [18:37:19]Read from MH i2c: F0 05 00 [18:37:19]MH_I2C_Read... [18:37:19]Read from MH i2c: F0 05 00 8D 48 00 E6 A0 F0 65 A4 [18:37:19]GetLastDocTimeStamp 1710268346 [18:37:19]current date 1710268646 [18:37:19]FM_GetShiftState [18:37:19]SAM_PROTO_GetShiftState [18:37:19]wFMCommunicate request_size=4 [18:37:19]MH_SAM_APDU [18:37:19]CAPDU: 80 13 01 00 [18:37:19]Write to MH i2c: E2 08 00 8E 48 80 13 01 00 00 00 00 00 53 [18:37:19]Write i2c OK [18:37:19]MH_I2C_Read... [18:37:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:20]Read from MH i2c: E2 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 0E 00 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 0E 00 8E 48 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C7 [18:37:20]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:37:20]wFMCommunicate OK [18:37:20]SAM_PROTO_GetShiftState done [18:37:20]FM_GetShiftState done [18:37:20]opened in 1710201976 [18:37:20]opened+sec_in_day 1710288376 [18:37:20]quantity*price = 100011 [18:37:20]sum+1 = 100012 [18:37:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 172 12.03.2024 18:37 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95242 ФПД: 98747224122667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T183726&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95242&fm=98747224122667&tin=02508201610067®Number=0000000000090555&sum=100011 [18:37:21]StoreToDocumentArchive [18:37:21]shift 327 fd 95242 [18:37:21]save to /storage/0327/doc_00095242 [18:37:21]save last doc name /storage/0327/doc_00095242 to /storage/kkm_last_doc_name [18:37:21]save OK [18:37:21]Clear old archive folders... [18:37:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:21]tlvbuf is 01BB6B50 [18:37:21]SAM_PROTO_ClearQueue [18:37:21]wFMCommunicate request_size=4 [18:37:21]MH_SAM_APDU [18:37:21]CAPDU: 80 09 00 00 [18:37:21]Write to MH i2c: E2 08 00 9B 48 80 09 00 00 00 00 00 00 55 [18:37:21]Write i2c OK [18:37:21]MH_I2C_Read... [18:37:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:21]Read from MH i2c: E2 [18:37:21]MH_I2C_Read... [18:37:21]Read from MH i2c: E2 03 00 [18:37:21]MH_I2C_Read... [18:37:21]Read from MH i2c: E2 03 00 9B 48 00 90 00 57 [18:37:21]RAPDU: 90 00 [18:37:21]wFMCommunicate OK [18:37:21]SAM_PROTO_ClearQueue done [18:37:21]KKMCreateOFDPacket [18:37:21]OFDProtocolAddRootSTLVToBuf [18:37:21]FM_MakeSignedData [18:37:21]FM_MakeSignedData [18:37:21]SAM_PROTO_SignData [18:37:21]wFMCommunicate request_size=4 [18:37:21]MH_SAM_APDU [18:37:21]CAPDU: 80 0D 01 02 [18:37:21]Write to MH i2c: E2 08 00 9C 48 80 0D 01 02 00 00 00 00 5D [18:37:21]Write i2c OK [18:37:21]MH_I2C_Read... [18:37:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:21]Read from MH i2c: E2 [18:37:21]MH_I2C_Read... [18:37:21]Read from MH i2c: E2 03 00 [18:37:21]MH_I2C_Read... [18:37:21]Read from MH i2c: E2 03 00 9C 48 00 90 00 58 [18:37:21]RAPDU: 90 00 [18:37:21]wFMCommunicate OK [18:37:21]wFMCommunicate request_size=255 [18:37:21]MH_SAM_APDU [18:37:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 E6 A0 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0A 74 01 00 35 04 06 00 59 [18:37:21]Write to MH i2c: E2 02 01 9D 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 E6 A0 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0A 74 01 00 35 04 06 00 59 00 00 C2 [18:37:21]Write i2c OK [18:37:21]MH_I2C_Read... [18:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:21]Read from MH i2c: E2 [18:37:21]MH_I2C_Read... [18:37:21]Read from MH i2c: E2 03 00 [18:37:21]MH_I2C_Read... [18:37:21]Read from MH i2c: E2 03 00 9D 48 00 90 00 59 [18:37:21]RAPDU: 90 00 [18:37:21]wFMCommunicate OK [18:37:21]wFMCommunicate request_size=10 [18:37:21]MH_SAM_APDU [18:37:21]CAPDU: 80 0D 02 02 05 CF 61 37 65 2B [18:37:21]Write to MH i2c: E2 0D 00 9E 48 80 0D 02 02 05 00 CF 61 37 65 2B 00 00 61 [18:37:21]Write i2c OK [18:37:21]MH_I2C_Read... [18:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:21]Read from MH i2c: E2 [18:37:21]MH_I2C_Read... [18:37:21]Read from MH i2c: E2 03 00 [18:37:21]MH_I2C_Read... [18:37:21]Read from MH i2c: E2 03 00 9E 48 00 90 00 5A [18:37:21]RAPDU: 90 00 [18:37:21]wFMCommunicate OK [18:37:21]wFMCommunicate request_size=4 [18:37:21]MH_SAM_APDU [18:37:21]CAPDU: 80 0D 03 02 [18:37:21]Write to MH i2c: E2 08 00 9F 48 80 0D 03 02 00 00 00 00 62 [18:37:21]Write i2c OK [18:37:21]MH_I2C_Read... [18:37:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:21]Read from MH i2c: E2 [18:37:21]MH_I2C_Read... [18:37:21]Read from MH i2c: E2 0B 00 [18:37:21]MH_I2C_Read... [18:37:21]Read from MH i2c: E2 0B 00 9F 48 00 CE 91 BB 8D 51 4A 16 CC 90 00 87 [18:37:21]RAPDU: CE 91 BB 8D 51 4A 16 CC 90 00 [18:37:21]wFMCommunicate OK [18:37:21]SAM_PROTO_SignData done [18:37:21]FM_MakeSignedData done [18:37:21]CreateOFDProtocolMessage [18:37:21]wFMCommunicate request_size=4 [18:37:21]MH_SAM_APDU [18:37:21]CAPDU: 80 11 00 00 [18:37:21]Write to MH i2c: E2 08 00 A0 48 80 11 00 00 00 00 00 00 62 [18:37:21]Write i2c OK [18:37:21]MH_I2C_Read... [18:37:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:21]Read from MH i2c: E2 [18:37:21]MH_I2C_Read... [18:37:21]Read from MH i2c: E2 17 00 [18:37:21]MH_I2C_Read... [18:37:21]Read from MH i2c: E2 17 00 A0 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B2 [18:37:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:37:21]wFMCommunicate OK [18:37:21]CreateOFDProtocolMessage done [18:37:21]OFDSenderStorePacket 95242 [18:37:21]StoreOFDPacket docnum=95242 [18:37:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 36 39 07 01 F2 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 E6 A0 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0A 74 01 00 35 04 06 00 59 CF 61 37 65 2B CE 91 BB 8D 51 4A 16 CC [18:37:21]CheckFolder [18:37:21]dirname=/storage/ofd_packets [18:37:21]CheckFolder done [18:37:21]ProducePacketName [18:37:21]name=ofd_packets/00095242 [18:37:21]NVStorageSaveData ofd_packets/00095242 [18:37:21]File name is /storage/ofd_packets/00095242 [18:37:21]Write 301 bytes [18:37:21]NVStorageSaveData done [18:37:21]OFDSenderStorePacket done [18:37:21]KKMCreateOFDPacket done [18:37:21]NVStorageSaveData kkm_last_timestamp [18:37:21]File name is /storage/kkm_last_timestamp [18:37:21]Write 4 bytes [18:37:21]NVStorageSaveData done [18:37:21]ExternCall_PrintAddStr [18:37:21]wPrintStart [18:37:21]Write to MH i2c: 01 00 00 A1 48 E9 [18:37:21]Write i2c OK [18:37:21]MH_I2C_Read... [18:37:21]Read from MH i2c: 01 [18:37:21]MH_I2C_Read... [18:37:21]Read from MH i2c: 01 07 00 [18:37:21]MH_I2C_Read... [18:37:21]Read from MH i2c: 01 07 00 A1 48 00 80 00 00 00 FF 0F 7E [18:37:21]RasterBufferAndPrint [18:37:21]line Счет N : (1)196216 [18:37:21]line ИНН: 02508201610067 [18:37:21]line Контрольно-Кассовый Чек [18:37:21]line ПРОДАЖА [18:37:21]line ТРК (МРК, ГНК) : 12 [18:37:21]line Товар: 2710124130 [18:37:21]line Аи-92-К-5 [18:37:21]line 15.900 * 62.90 [18:37:21]line = 1000.11 [18:37:21]line НДС 12% НСП 1% [18:37:21]line > о реализуемом товаре [18:37:21]line ИТОГО: 1000.11 [18:37:21]line НСП 1% : 8.85 [18:37:21]line НДС 12% : 106.21 [18:37:21]line Наличными: 0.00 [18:37:21]line Безнал.: 1000.11 [18:37:21]line Место: АЗС № 6 "Партнер Нефть" [18:37:21]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:37:21]line СНО: Общий режим [18:37:21]line Чек 172 12.03.2024 18:37 [18:37:21]line Смена: 327 ФФД: 1.0 [18:37:21]line ЗНМ: 0300000009 [18:37:21]line РНМ: 0000000000090555 [18:37:21]line Версия ККМ: 001 [18:37:21]line Платежная система: О! деньги [18:37:21]line ФМ: 0000000000874811 [18:37:21]line ФД: 95242 [18:37:21]line ФПД: 98747224122667 [18:37:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T183726&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95242&fm=98747224122667&tin=02508201610067®Number=0000000000090555&sum=100011 [18:37:22]OFD Sender: Processing packet 95242 [packets to send 30, broken 29] [18:37:22]ProducePacketName [18:37:22]name=ofd_packets/00095242 [18:37:22]OFD Sender: To server: pG, [18:37:22]CommunicateWithHost lk.salyk.kg:30040 [18:37:22]ConnectInit lk.salyk.kg [18:37:22]written 0, free lines is 4095 [18:37:22]Connected sock=10 [18:37:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 36 39 07 01 F2 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 E6 A0 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0A 74 01 00 35 04 06 00 59 CF 61 37 65 2B CE 91 BB 8D 51 4A 16 CC [18:37:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 DF 16 47 00 60 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0A 74 01 00 F4 03 04 00 3B 4C F0 65 B6 04 01 00 00 AC A3 23 37 2D 31 8A F9 [18:37:22]CommunicateWithHost err = 0 [18:37:22]CheckOFDResponse [18:37:22]1017 (14) - 77093643461234 [18:37:22]1041 (16) - 0000000000874811 [18:37:22]1040 (4) - 95242 [18:37:22]1012 (4) - 12.03.2024 12:36 [18:37:22]1206 (1) - 0 [18:37:22]OFD Sender: Remove packet 95242 [18:37:22]ProducePacketName [18:37:22]name=ofd_packets/00095242 [18:37:22]NVStorageDeleteData [18:37:22]Write to MH i2c: 01 00 00 CB 48 13 [18:37:22]Write i2c OK [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: 01 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: 01 07 00 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: 01 07 00 CB 48 00 80 00 00 00 6D 0D 14 [18:37:22]RasterBufferAndPrint [18:37:22]line [18:37:22]line [18:37:22]line [18:37:22]line [18:37:22]line [18:37:22]written 0, free lines is 3445 [18:37:22]process_action close_receipt done [18:37:22]requested_data is exist [18:37:22]produce_requested_data [18:37:22]requested_item fm.sn is exist - process it [18:37:22]wFMCommunicate request_size=4 [18:37:22]MH_SAM_APDU [18:37:22]CAPDU: 80 11 00 00 [18:37:22]Write to MH i2c: E2 08 00 D2 48 80 11 00 00 00 00 00 00 94 [18:37:22]Write i2c OK [18:37:22]MH_I2C_Read... [18:37:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:22]Read from MH i2c: E2 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: E2 17 00 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: E2 17 00 D2 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E4 [18:37:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:37:22]wFMCommunicate OK [18:37:22]requested_item fd.num is exist - process it [18:37:22]SAM_PROTO_GetFieldsCounters [18:37:22]wFMCommunicate request_size=4 [18:37:22]MH_SAM_APDU [18:37:22]CAPDU: 80 13 00 00 [18:37:22]Write to MH i2c: E2 08 00 D3 48 80 13 00 00 00 00 00 00 97 [18:37:22]Write i2c OK [18:37:22]MH_I2C_Read... [18:37:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:22]Read from MH i2c: E2 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: E2 62 00 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: E2 62 00 D3 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0A 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [18:37:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0A 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:22]wFMCommunicate OK [18:37:22]SAM_PROTO_GetFieldsCounters done [18:37:22]requested_item shift.num is exist - process it [18:37:22]requested_item shift.opened is exist - process it [18:37:22]req_shift_opened [18:37:22]FM_GetShiftState [18:37:22]SAM_PROTO_GetShiftState [18:37:22]wFMCommunicate request_size=4 [18:37:22]MH_SAM_APDU [18:37:22]CAPDU: 80 13 01 00 [18:37:22]Write to MH i2c: E2 08 00 D4 48 80 13 01 00 00 00 00 00 99 [18:37:22]Write i2c OK [18:37:22]MH_I2C_Read... [18:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:22]Read from MH i2c: E2 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: E2 0E 00 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: E2 0E 00 D4 48 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 0D [18:37:22]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:37:22]wFMCommunicate OK [18:37:22]SAM_PROTO_GetShiftState done [18:37:22]FM_GetShiftState done [18:37:22]req_shift_opened done [18:37:22]requested_item shift.open_date is exist - process it [18:37:22]req_shift_open_date [18:37:22]req_shift_open_date done [18:37:22]produce_requested_data done [18:37:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95242,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:37:22]process_action_free close_receipt [18:37:22]json_value_free [18:37:22]json_value_free done [18:37:22]process_json_proto returns [18:37:22]Send response to host [18:37:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95242,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:37:22]free response buf [18:37:22]execute_script done [18:37:22]execute_script returns [18:37:22]free content buf [18:37:22]Sock 9.Close socket [18:37:22]Sock 9.Thread stoped [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:06]accept exits with 8 [18:39:06]New connection [18:39:06]New thread 3066957156 created [18:39:06]Thread 3066813796 joined [18:39:06]Waiting for new connection... [18:39:06] Sock 8.Parse request [18:39:06]Sock 8.Check first char [18:39:06]Sock 8.First char is OK [18:39:06]request: POST /json_proto HTTP/1.0 [18:39:06]Method: POST [18:39:06]URL: /json_proto [18:39:06]Method is POST - this is cgi request [18:39:06]url: /json_proto [18:39:06]query_string will be loaded in cgi processing [18:39:06]execute_cgi json_proto POST (null) [18:39:06]execute_cgi path=json_proto method=POST [18:39:06]POST find Content-Length [18:39:06]Host: 172.17.62.67:8080 [18:39:06]Content-Length: 677 [18:39:06]Content-Type: application/json [18:39:06] [18:39:06]POST finish read [18:39:06]Found Content-Length = 677 [18:39:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.860, "sum" : 620.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:06]execute_script... [18:39: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)196217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.860, "sum" : 620.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:06]POST & json_proto [18:39:06]process_json_proto [18:39:06]json parsed OK: [18:39:06]protocol is kg_v1.0 [18:39:06]action value=close_receipt [18:39:06]process_action close_receipt [18:39:06]cmd_close_receipt [18:39:06]MH_GetDate [18:39:06]Write to MH i2c: F0 00 00 D5 48 0C [18:39:06]Write i2c OK [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: F0 [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: F0 05 00 [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: F0 05 00 D5 48 00 50 A1 F0 65 57 [18:39:06]GetLastDocTimeStamp 1710268646 [18:39:06]current date 1710268752 [18:39:06]FM_GetShiftState [18:39:06]SAM_PROTO_GetShiftState [18:39:06]wFMCommunicate request_size=4 [18:39:06]MH_SAM_APDU [18:39:06]CAPDU: 80 13 01 00 [18:39:06]Write to MH i2c: E2 08 00 D6 48 80 13 01 00 00 00 00 00 9B [18:39:06]Write i2c OK [18:39:06]MH_I2C_Read... [18:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:06]Read from MH i2c: E2 [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: E2 0E 00 [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: E2 0E 00 D6 48 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 0F [18:39:06]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:39:06]wFMCommunicate OK [18:39:06]SAM_PROTO_GetShiftState done [18:39:06]FM_GetShiftState done [18:39:06]opened in 1710201976 [18:39:06]opened+sec_in_day 1710288376 [18:39:06]quantity*price = 62019 [18:39:06]sum+1 = 62020 [18:39:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.86 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 173 12.03.2024 18:39 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95243 ФПД: 98549306587531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T183912&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95243&fm=98549306587531&tin=02508201610067®Number=0000000000090555&sum=62000 [18:39:07]StoreToDocumentArchive [18:39:07]shift 327 fd 95243 [18:39:07]save to /storage/0327/doc_00095243 [18:39:07]save last doc name /storage/0327/doc_00095243 to /storage/kkm_last_doc_name [18:39:07]save OK [18:39:07]Clear old archive folders... [18:39:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:07]tlvbuf is 01A46530 [18:39:07]SAM_PROTO_ClearQueue [18:39:07]wFMCommunicate request_size=4 [18:39:07]MH_SAM_APDU [18:39:07]CAPDU: 80 09 00 00 [18:39:07]Write to MH i2c: E2 08 00 E3 48 80 09 00 00 00 00 00 00 9D [18:39:07]Write i2c OK [18:39:07]MH_I2C_Read... [18:39:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:07]Read from MH i2c: E2 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 03 00 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 03 00 E3 48 00 90 00 9F [18:39:07]RAPDU: 90 00 [18:39:07]wFMCommunicate OK [18:39:07]SAM_PROTO_ClearQueue done [18:39:07]KKMCreateOFDPacket [18:39:07]OFDProtocolAddRootSTLVToBuf [18:39:07]FM_MakeSignedData [18:39:07]FM_MakeSignedData [18:39:07]SAM_PROTO_SignData [18:39:07]wFMCommunicate request_size=4 [18:39:07]MH_SAM_APDU [18:39:07]CAPDU: 80 0D 01 02 [18:39:07]Write to MH i2c: E2 08 00 E4 48 80 0D 01 02 00 00 00 00 A5 [18:39:07]Write i2c OK [18:39:07]MH_I2C_Read... [18:39:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:07]Read from MH i2c: E2 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 03 00 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 03 00 E4 48 00 90 00 A0 [18:39:07]RAPDU: 90 00 [18:39:07]wFMCommunicate OK [18:39:07]wFMCommunicate request_size=255 [18:39:07]MH_SAM_APDU [18:39:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 26 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 43 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 50 A1 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0B 74 01 00 35 04 06 00 59 [18:39:07]Write to MH i2c: E2 02 01 E5 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 26 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 43 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 50 A1 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0B 74 01 00 35 04 06 00 59 00 00 86 [18:39:07]Write i2c OK [18:39:07]MH_I2C_Read... [18:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:07]Read from MH i2c: E2 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 03 00 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 03 00 E5 48 00 90 00 A1 [18:39:07]RAPDU: 90 00 [18:39:07]wFMCommunicate OK [18:39:07]wFMCommunicate request_size=10 [18:39:07]MH_SAM_APDU [18:39:07]CAPDU: 80 0D 02 02 05 A1 4C 69 79 8B [18:39:07]Write to MH i2c: E2 0D 00 E6 48 80 0D 02 02 05 00 A1 4C 69 79 8B 00 00 0C [18:39:07]Write i2c OK [18:39:07]MH_I2C_Read... [18:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:07]Read from MH i2c: E2 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 03 00 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 03 00 E6 48 00 90 00 A2 [18:39:07]RAPDU: 90 00 [18:39:07]wFMCommunicate OK [18:39:07]wFMCommunicate request_size=4 [18:39:07]MH_SAM_APDU [18:39:07]CAPDU: 80 0D 03 02 [18:39:07]Write to MH i2c: E2 08 00 E7 48 80 0D 03 02 00 00 00 00 AA [18:39:07]Write i2c OK [18:39:07]MH_I2C_Read... [18:39:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:07]Read from MH i2c: E2 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 0B 00 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 0B 00 E7 48 00 24 16 7F 8C 3E 11 54 F7 90 00 8A [18:39:07]RAPDU: 24 16 7F 8C 3E 11 54 F7 90 00 [18:39:07]wFMCommunicate OK [18:39:07]SAM_PROTO_SignData done [18:39:07]FM_MakeSignedData done [18:39:07]CreateOFDProtocolMessage [18:39:07]wFMCommunicate request_size=4 [18:39:07]MH_SAM_APDU [18:39:07]CAPDU: 80 11 00 00 [18:39:07]Write to MH i2c: E2 08 00 E8 48 80 11 00 00 00 00 00 00 AA [18:39:07]Write i2c OK [18:39:07]MH_I2C_Read... [18:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:07]Read from MH i2c: E2 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 17 00 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 17 00 E8 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FA [18:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:39:07]wFMCommunicate OK [18:39:07]CreateOFDProtocolMessage done [18:39:07]OFDSenderStorePacket 95243 [18:39:07]StoreOFDPacket docnum=95243 [18:39:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C5 F0 07 01 59 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 26 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 43 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 50 A1 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0B 74 01 00 35 04 06 00 59 A1 4C 69 79 8B 24 16 7F 8C 3E 11 54 F7 [18:39:07]CheckFolder [18:39:07]dirname=/storage/ofd_packets [18:39:07]CheckFolder done [18:39:07]ProducePacketName [18:39:07]name=ofd_packets/00095243 [18:39:07]NVStorageSaveData ofd_packets/00095243 [18:39:07]File name is /storage/ofd_packets/00095243 [18:39:07]Write 301 bytes [18:39:07]NVStorageSaveData done [18:39:07]OFDSenderStorePacket done [18:39:07]KKMCreateOFDPacket done [18:39:07]NVStorageSaveData kkm_last_timestamp [18:39:07]File name is /storage/kkm_last_timestamp [18:39:07]Write 4 bytes [18:39:07]NVStorageSaveData done [18:39:07]ExternCall_PrintAddStr [18:39:07]wPrintStart [18:39:07]Write to MH i2c: 01 00 00 E9 48 31 [18:39:07]Write i2c OK [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: 01 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: 01 07 00 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: 01 07 00 E9 48 00 80 00 00 00 FF 0F C6 [18:39:07]RasterBufferAndPrint [18:39:07]line Счет N : (1)196217 [18:39:07]line ИНН: 02508201610067 [18:39:07]line Контрольно-Кассовый Чек [18:39:07]line ПРОДАЖА [18:39:07]line ТРК (МРК, ГНК) : 32 [18:39:07]line Товар: 2710124130 [18:39:07]line Аи-92-К-5 [18:39:07]line 9.860 * 62.90 [18:39:07]line = 620.19 [18:39:07]line НДС 12% НСП 1% [18:39:07]line > о реализуемом товаре [18:39:07]line ОКРУГЛЕНИЕ: -0.19 [18:39:07]line ИТОГО: 620.00 [18:39:07]line Внесено: 620.00 [18:39:07]line СДАЧА: 0.00 [18:39:07]line НСП 1% : 5.49 [18:39:07]line НДС 12% : 65.86 [18:39:07]line Наличными: 620.00 [18:39:07]line Безнал.: 0.00 [18:39:07]line Место: АЗС № 6 "Партнер Нефть" [18:39:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:39:07]line СНО: Общий режим [18:39:07]line Чек 173 12.03.2024 18:39 [18:39:07]line Смена: 327 ФФД: 1.0 [18:39:07]line ЗНМ: 0300000009 [18:39:07]line РНМ: 0000000000090555 [18:39:07]line Версия ККМ: 001 [18:39:07]line ФМ: 0000000000874811 [18:39:07]line ФД: 95243 [18:39:07]line ФПД: 98549306587531 [18:39:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T183912&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95243&fm=98549306587531&tin=02508201610067®Number=0000000000090555&sum=62000 [18:39:08]OFD Sender: Processing packet 95243 [packets to send 30, broken 29] [18:39:08]ProducePacketName [18:39:08]name=ofd_packets/00095243 [18:39:08]OFD Sender: To server: pG, [18:39:08]CommunicateWithHost lk.salyk.kg:30040 [18:39:08]ConnectInit lk.salyk.kg [18:39:08]written 0, free lines is 4095 [18:39:08]Connected sock=10 [18:39:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C5 F0 07 01 59 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 26 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 43 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 50 A1 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0B 74 01 00 35 04 06 00 59 A1 4C 69 79 8B 24 16 7F 8C 3E 11 54 F7 [18:39:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D1 F0 47 00 60 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0B 74 01 00 F4 03 04 00 A5 4C F0 65 B6 04 01 00 00 84 D7 5A 0B C6 99 40 E0 [18:39:08]CommunicateWithHost err = 0 [18:39:08]CheckOFDResponse [18:39:08]1017 (14) - 77093643461234 [18:39:08]1041 (16) - 0000000000874811 [18:39:08]1040 (4) - 95243 [18:39:08]1012 (4) - 12.03.2024 12:37 [18:39:08]1206 (1) - 0 [18:39:08]OFD Sender: Remove packet 95243 [18:39:08]ProducePacketName [18:39:08]name=ofd_packets/00095243 [18:39:08]NVStorageDeleteData [18:39:08]Write to MH i2c: 01 00 00 14 49 5D [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: 01 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: 01 07 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: 01 07 00 14 49 00 80 00 00 00 5F 0D 50 [18:39:08]RasterBufferAndPrint [18:39:08]line [18:39:08]line [18:39:08]line [18:39:08]line [18:39:08]line [18:39:08]written 0, free lines is 3429 [18:39:08]process_action close_receipt done [18:39:08]requested_data is exist [18:39:08]produce_requested_data [18:39:08]requested_item fm.sn is exist - process it [18:39:08]wFMCommunicate request_size=4 [18:39:08]MH_SAM_APDU [18:39:08]CAPDU: 80 11 00 00 [18:39:08]Write to MH i2c: E2 08 00 1B 49 80 11 00 00 00 00 00 00 DE [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 [18:39:08]MH_I2C_Read... [18:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:08]Read from MH i2c: E2 17 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 17 00 1B 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2E [18:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:39:08]wFMCommunicate OK [18:39:08]requested_item fd.num is exist - process it [18:39:08]SAM_PROTO_GetFieldsCounters [18:39:08]wFMCommunicate request_size=4 [18:39:08]MH_SAM_APDU [18:39:08]CAPDU: 80 13 00 00 [18:39:08]Write to MH i2c: E2 08 00 1C 49 80 13 00 00 00 00 00 00 E1 [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:08]Read from MH i2c: E2 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 62 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 62 00 1C 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0B 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [18:39:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0B 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:08]wFMCommunicate OK [18:39:08]SAM_PROTO_GetFieldsCounters done [18:39:08]requested_item shift.num is exist - process it [18:39:08]requested_item shift.opened is exist - process it [18:39:08]req_shift_opened [18:39:08]FM_GetShiftState [18:39:08]SAM_PROTO_GetShiftState [18:39:08]wFMCommunicate request_size=4 [18:39:08]MH_SAM_APDU [18:39:08]CAPDU: 80 13 01 00 [18:39:08]Write to MH i2c: E2 08 00 1D 49 80 13 01 00 00 00 00 00 E3 [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:08]OFD Sender: No OFD packet to send [18:39:08]Read from MH i2c: E2 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 0E 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 0E 00 1D 49 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 57 [18:39:08]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:39:08]wFMCommunicate OK [18:39:08]SAM_PROTO_GetShiftState done [18:39:08]FM_GetShiftState done [18:39:08]req_shift_opened done [18:39:08]requested_item shift.open_date is exist - process it [18:39:08]req_shift_open_date [18:39:08]req_shift_open_date done [18:39:08]produce_requested_data done [18:39:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95243,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:39:08]process_action_free close_receipt [18:39:08]json_value_free [18:39:08]json_value_free done [18:39:08]process_json_proto returns [18:39:08]Send response to host [18:39:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95243,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:39:08]free response buf [18:39:08]execute_script done [18:39:08]execute_script returns [18:39:08]free content buf [18:39:08]Sock 8.Close socket [18:39:08]Sock 8.Thread stoped [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:46]accept exits with 9 [18:39:46]New connection [18:39:46]New thread 3066813796 created [18:39:46]Thread 3066957156 joined [18:39:46]Waiting for new connection... [18:39:46] Sock 9.Parse request [18:39:46]Sock 9.Check first char [18:39:46]Sock 9.First char is OK [18:39:46]request: POST /json_proto HTTP/1.0 [18:39:46]Method: POST [18:39:46]URL: /json_proto [18:39:46]Method is POST - this is cgi request [18:39:46]url: /json_proto [18:39:46]query_string will be loaded in cgi processing [18:39:46]execute_cgi json_proto POST (null) [18:39:46]execute_cgi path=json_proto method=POST [18:39:46]POST find Content-Length [18:39:46]Host: 172.17.62.67:8080 [18:39:46]Content-Length: 677 [18:39:46]Content-Type: application/json [18:39:46] [18:39:46]POST finish read [18:39:46]Found Content-Length = 677 [18:39:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:46]execute_script... [18:39:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:46]POST & json_proto [18:39:46]process_json_proto [18:39:46]json parsed OK: [18:39:46]protocol is kg_v1.0 [18:39:46]action value=close_receipt [18:39:46]process_action close_receipt [18:39:46]cmd_close_receipt [18:39:46]MH_GetDate [18:39:46]Write to MH i2c: F0 00 00 1E 49 56 [18:39:46]Write i2c OK [18:39:46]MH_I2C_Read... [18:39:46]Read from MH i2c: F0 [18:39:46]MH_I2C_Read... [18:39:46]Read from MH i2c: F0 05 00 [18:39:46]MH_I2C_Read... [18:39:46]Read from MH i2c: F0 05 00 1E 49 00 78 A1 F0 65 C9 [18:39:46]GetLastDocTimeStamp 1710268752 [18:39:46]current date 1710268792 [18:39:46]FM_GetShiftState [18:39:46]SAM_PROTO_GetShiftState [18:39:46]wFMCommunicate request_size=4 [18:39:46]MH_SAM_APDU [18:39:46]CAPDU: 80 13 01 00 [18:39:46]Write to MH i2c: E2 08 00 1F 49 80 13 01 00 00 00 00 00 E5 [18:39:46]Write i2c OK [18:39:46]MH_I2C_Read... [18:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:46]Read from MH i2c: E2 [18:39:46]MH_I2C_Read... [18:39:46]Read from MH i2c: E2 0E 00 [18:39:46]MH_I2C_Read... [18:39:46]Read from MH i2c: E2 0E 00 1F 49 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 59 [18:39:46]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:39:46]wFMCommunicate OK [18:39:46]SAM_PROTO_GetShiftState done [18:39:46]FM_GetShiftState done [18:39:46]opened in 1710201976 [18:39:46]opened+sec_in_day 1710288376 [18:39:46]quantity*price = 50005 [18:39:46]sum+1 = 50007 [18:39:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 174 12.03.2024 18:39 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95244 ФПД: 53736680013555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T183952&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95244&fm=53736680013555&tin=02508201610067®Number=0000000000090555&sum=50000 [18:39:47]StoreToDocumentArchive [18:39:47]shift 327 fd 95244 [18:39:47]save to /storage/0327/doc_00095244 [18:39:47]save last doc name /storage/0327/doc_00095244 to /storage/kkm_last_doc_name [18:39:47]save OK [18:39:47]Clear old archive folders... [18:39:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:47]tlvbuf is 01A549A0 [18:39:47]SAM_PROTO_ClearQueue [18:39:47]wFMCommunicate request_size=4 [18:39:47]MH_SAM_APDU [18:39:47]CAPDU: 80 09 00 00 [18:39:47]Write to MH i2c: E2 08 00 2C 49 80 09 00 00 00 00 00 00 E7 [18:39:47]Write i2c OK [18:39:47]MH_I2C_Read... [18:39:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:47]Read from MH i2c: E2 [18:39:47]MH_I2C_Read... [18:39:47]Read from MH i2c: E2 03 00 [18:39:47]MH_I2C_Read... [18:39:47]Read from MH i2c: E2 03 00 2C 49 00 90 00 E9 [18:39:47]RAPDU: 90 00 [18:39:47]wFMCommunicate OK [18:39:47]SAM_PROTO_ClearQueue done [18:39:47]KKMCreateOFDPacket [18:39:47]OFDProtocolAddRootSTLVToBuf [18:39:47]FM_MakeSignedData [18:39:47]FM_MakeSignedData [18:39:47]SAM_PROTO_SignData [18:39:47]wFMCommunicate request_size=4 [18:39:47]MH_SAM_APDU [18:39:47]CAPDU: 80 0D 01 02 [18:39:47]Write to MH i2c: E2 08 00 2D 49 80 0D 01 02 00 00 00 00 EF [18:39:47]Write i2c OK [18:39:47]MH_I2C_Read... [18:39:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:47]Read from MH i2c: E2 [18:39:47]MH_I2C_Read... [18:39:47]Read from MH i2c: E2 03 00 [18:39:47]MH_I2C_Read... [18:39:47]Read from MH i2c: E2 03 00 2D 49 00 90 00 EA [18:39:47]RAPDU: 90 00 [18:39:47]wFMCommunicate OK [18:39:47]wFMCommunicate request_size=255 [18:39:47]MH_SAM_APDU [18:39:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 78 A1 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0C 74 01 00 35 04 06 00 30 [18:39:47]Write to MH i2c: E2 02 01 2E 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 78 A1 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0C 74 01 00 35 04 06 00 30 00 00 AD [18:39:47]Write i2c OK [18:39:47]MH_I2C_Read... [18:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:47]Read from MH i2c: E2 [18:39:47]MH_I2C_Read... [18:39:47]Read from MH i2c: E2 03 00 [18:39:47]MH_I2C_Read... [18:39:47]Read from MH i2c: E2 03 00 2E 49 00 90 00 EB [18:39:47]RAPDU: 90 00 [18:39:47]wFMCommunicate OK [18:39:47]wFMCommunicate request_size=10 [18:39:47]MH_SAM_APDU [18:39:47]CAPDU: 80 0D 02 02 05 DF 8B B9 3E F3 [18:39:47]Write to MH i2c: E2 0D 00 2F 49 80 0D 02 02 05 00 DF 8B B9 3E F3 00 00 50 [18:39:47]Write i2c OK [18:39:47]MH_I2C_Read... [18:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:47]Read from MH i2c: E2 [18:39:47]MH_I2C_Read... [18:39:47]Read from MH i2c: E2 03 00 [18:39:47]MH_I2C_Read... [18:39:47]Read from MH i2c: E2 03 00 2F 49 00 90 00 EC [18:39:47]RAPDU: 90 00 [18:39:47]wFMCommunicate OK [18:39:47]wFMCommunicate request_size=4 [18:39:47]MH_SAM_APDU [18:39:47]CAPDU: 80 0D 03 02 [18:39:47]Write to MH i2c: E2 08 00 30 49 80 0D 03 02 00 00 00 00 F4 [18:39:47]Write i2c OK [18:39:47]MH_I2C_Read... [18:39:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:47]Read from MH i2c: E2 [18:39:47]MH_I2C_Read... [18:39:47]Read from MH i2c: E2 0B 00 [18:39:47]MH_I2C_Read... [18:39:47]Read from MH i2c: E2 0B 00 30 49 00 0C F2 CB A4 64 41 5F A7 90 00 0D [18:39:47]RAPDU: 0C F2 CB A4 64 41 5F A7 90 00 [18:39:47]wFMCommunicate OK [18:39:47]SAM_PROTO_SignData done [18:39:47]FM_MakeSignedData done [18:39:47]CreateOFDProtocolMessage [18:39:47]wFMCommunicate request_size=4 [18:39:47]MH_SAM_APDU [18:39:47]CAPDU: 80 11 00 00 [18:39:47]Write to MH i2c: E2 08 00 31 49 80 11 00 00 00 00 00 00 F4 [18:39:47]Write i2c OK [18:39:47]MH_I2C_Read... [18:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:47]Read from MH i2c: E2 [18:39:47]MH_I2C_Read... [18:39:47]Read from MH i2c: E2 17 00 [18:39:47]MH_I2C_Read... [18:39:47]Read from MH i2c: E2 17 00 31 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 44 [18:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:39:47]wFMCommunicate OK [18:39:47]CreateOFDProtocolMessage done [18:39:47]OFDSenderStorePacket 95244 [18:39:47]StoreOFDPacket docnum=95244 [18:39:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 78 50 07 01 A9 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 78 A1 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0C 74 01 00 35 04 06 00 30 DF 8B B9 3E F3 0C F2 CB A4 64 41 5F A7 [18:39:47]CheckFolder [18:39:47]dirname=/storage/ofd_packets [18:39:47]CheckFolder done [18:39:47]ProducePacketName [18:39:47]name=ofd_packets/00095244 [18:39:47]NVStorageSaveData ofd_packets/00095244 [18:39:47]File name is /storage/ofd_packets/00095244 [18:39:47]Write 301 bytes [18:39:47]NVStorageSaveData done [18:39:47]OFDSenderStorePacket done [18:39:47]KKMCreateOFDPacket done [18:39:47]NVStorageSaveData kkm_last_timestamp [18:39:47]File name is /storage/kkm_last_timestamp [18:39:47]Write 4 bytes [18:39:47]NVStorageSaveData done [18:39:47]ExternCall_PrintAddStr [18:39:47]wPrintStart [18:39:47]Write to MH i2c: 01 00 00 32 49 7B [18:39:47]Write i2c OK [18:39:47]MH_I2C_Read... [18:39:47]Read from MH i2c: 01 [18:39:47]MH_I2C_Read... [18:39:47]Read from MH i2c: 01 07 00 [18:39:47]MH_I2C_Read... [18:39:47]Read from MH i2c: 01 07 00 32 49 00 80 00 00 00 FF 0F 10 [18:39:47]RasterBufferAndPrint [18:39:47]line Счет N : (1)196218 [18:39:47]line ИНН: 02508201610067 [18:39:47]line Контрольно-Кассовый Чек [18:39:47]line ПРОДАЖА [18:39:47]line ТРК (МРК, ГНК) : 12 [18:39:47]line Товар: 2710124130 [18:39:47]line Аи-92-К-5 [18:39:47]line 7.950 * 62.90 [18:39:47]line = 500.06 [18:39:47]line НДС 12% НСП 1% [18:39:47]line > о реализуемом товаре [18:39:47]line ОКРУГЛЕНИЕ: -0.06 [18:39:47]line ИТОГО: 500.00 [18:39:47]line Внесено: 500.00 [18:39:47]line СДАЧА: 0.00 [18:39:47]line НСП 1% : 4.42 [18:39:47]line НДС 12% : 53.10 [18:39:47]line Наличными: 500.00 [18:39:47]line Безнал.: 0.00 [18:39:47]line Место: АЗС № 6 "Партнер Нефть" [18:39:47]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:39:47]line СНО: Общий режим [18:39:47]line Чек 174 12.03.2024 18:39 [18:39:47]line Смена: 327 ФФД: 1.0 [18:39:47]line ЗНМ: 0300000009 [18:39:47]line РНМ: 0000000000090555 [18:39:47]line Версия ККМ: 001 [18:39:47]line ФМ: 0000000000874811 [18:39:47]line ФД: 95244 [18:39:47]line ФПД: 53736680013555 [18:39:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T183952&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95244&fm=53736680013555&tin=02508201610067®Number=0000000000090555&sum=50000 [18:39:48]OFD Sender: Processing packet 95244 [packets to send 30, broken 29] [18:39:48]ProducePacketName [18:39:48]name=ofd_packets/00095244 [18:39:48]OFD Sender: To server: pG, [18:39:48]CommunicateWithHost lk.salyk.kg:30040 [18:39:48]ConnectInit lk.salyk.kg [18:39:48]written 0, free lines is 4095 [18:39:48]Connected sock=10 [18:39:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 78 50 07 01 A9 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 78 A1 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0C 74 01 00 35 04 06 00 30 DF 8B B9 3E F3 0C F2 CB A4 64 41 5F A7 [18:39:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 43 9D 47 00 8C 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0C 74 01 00 F4 03 04 00 CE 4C F0 65 B6 04 01 00 00 32 08 64 9D 45 57 BF 65 [18:39:48]CommunicateWithHost err = 0 [18:39:48]CheckOFDResponse [18:39:48]1017 (14) - 77093643461234 [18:39:48]1041 (16) - 0000000000874811 [18:39:48]1040 (4) - 95244 [18:39:48]1012 (4) - 12.03.2024 12:38 [18:39:48]1206 (1) - 0 [18:39:48]OFD Sender: Remove packet 95244 [18:39:48]ProducePacketName [18:39:48]name=ofd_packets/00095244 [18:39:48]NVStorageDeleteData [18:39:48]Write to MH i2c: 01 00 00 5D 49 A6 [18:39:48]Write i2c OK [18:39:48]MH_I2C_Read... [18:39:48]Read from MH i2c: 01 [18:39:48]MH_I2C_Read... [18:39:48]Read from MH i2c: 01 07 00 [18:39:48]MH_I2C_Read... [18:39:48]Read from MH i2c: 01 07 00 5D 49 00 80 00 00 00 4E 0D 88 [18:39:48]RasterBufferAndPrint [18:39:48]line [18:39:48]line [18:39:48]line [18:39:48]line [18:39:48]line [18:39:48]written 0, free lines is 3412 [18:39:48]process_action close_receipt done [18:39:48]requested_data is exist [18:39:48]produce_requested_data [18:39:48]requested_item fm.sn is exist - process it [18:39:48]wFMCommunicate request_size=4 [18:39:48]MH_SAM_APDU [18:39:48]CAPDU: 80 11 00 00 [18:39:48]Write to MH i2c: E2 08 00 64 49 80 11 00 00 00 00 00 00 27 [18:39:48]Write i2c OK [18:39:48]MH_I2C_Read... [18:39:48]Read from MH i2c: E2 [18:39:48]MH_I2C_Read... [18:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:48]Read from MH i2c: E2 17 00 [18:39:48]MH_I2C_Read... [18:39:48]Read from MH i2c: E2 17 00 64 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 77 [18:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:39:48]wFMCommunicate OK [18:39:48]requested_item fd.num is exist - process it [18:39:48]SAM_PROTO_GetFieldsCounters [18:39:48]wFMCommunicate request_size=4 [18:39:48]MH_SAM_APDU [18:39:48]CAPDU: 80 13 00 00 [18:39:48]Write to MH i2c: E2 08 00 65 49 80 13 00 00 00 00 00 00 2A [18:39:48]Write i2c OK [18:39:48]MH_I2C_Read... [18:39:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:48]Read from MH i2c: E2 [18:39:48]MH_I2C_Read... [18:39:48]Read from MH i2c: E2 62 00 [18:39:48]MH_I2C_Read... [18:39:48]Read from MH i2c: E2 62 00 65 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0C 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [18:39:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0C 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:48]wFMCommunicate OK [18:39:48]SAM_PROTO_GetFieldsCounters done [18:39:48]requested_item shift.num is exist - process it [18:39:48]requested_item shift.opened is exist - process it [18:39:48]req_shift_opened [18:39:48]FM_GetShiftState [18:39:48]SAM_PROTO_GetShiftState [18:39:48]wFMCommunicate request_size=4 [18:39:48]MH_SAM_APDU [18:39:48]CAPDU: 80 13 01 00 [18:39:48]Write to MH i2c: E2 08 00 66 49 80 13 01 00 00 00 00 00 2C [18:39:48]Write i2c OK [18:39:48]MH_I2C_Read... [18:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:48]OFD Sender: No OFD packet to send [18:39:48]Read from MH i2c: E2 [18:39:48]MH_I2C_Read... [18:39:48]Read from MH i2c: E2 0E 00 [18:39:48]MH_I2C_Read... [18:39:48]Read from MH i2c: E2 0E 00 66 49 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A0 [18:39:48]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:39:48]wFMCommunicate OK [18:39:48]SAM_PROTO_GetShiftState done [18:39:48]FM_GetShiftState done [18:39:48]req_shift_opened done [18:39:48]requested_item shift.open_date is exist - process it [18:39:48]req_shift_open_date [18:39:48]req_shift_open_date done [18:39:48]produce_requested_data done [18:39:48]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95244,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:39:48]process_action_free close_receipt [18:39:48]json_value_free [18:39:48]json_value_free done [18:39:48]process_json_proto returns [18:39:48]Send response to host [18:39:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95244,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:39:48]free response buf [18:39:48]execute_script done [18:39:48]execute_script returns [18:39:48]free content buf [18:39:48]Sock 9.Close socket [18:39:48]Sock 9.Thread stoped [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]OFD Sender: No OFD packet to send [18:40:08]OFD Sender: No OFD packet to send [18:40:13]OFD Sender: No OFD packet to send [18:40:18]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:44]OFD Sender: No OFD packet to send [18:43:49]OFD Sender: No OFD packet to send [18:43:54]OFD Sender: No OFD packet to send [18:43:59]OFD Sender: No OFD packet to send [18:44:04]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [18:44:24]OFD Sender: No OFD packet to send [18:44:29]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]accept exits with 8 [18:46:04]New connection [18:46:04]New thread 3066957156 created [18:46:04]Thread 3066813796 joined [18:46:04]Waiting for new connection... [18:46:04] Sock 8.Parse request [18:46:04]Sock 8.Check first char [18:46:04]Sock 8.First char is OK [18:46:04]request: POST /json_proto HTTP/1.0 [18:46:04]Method: POST [18:46:04]URL: /json_proto [18:46:04]Method is POST - this is cgi request [18:46:04]url: /json_proto [18:46:04]query_string will be loaded in cgi processing [18:46:04]execute_cgi json_proto POST (null) [18:46:04]execute_cgi path=json_proto method=POST [18:46:04]POST find Content-Length [18:46:04]Host: 172.17.62.67:8080 [18:46:04]Content-Length: 677 [18:46:04]Content-Type: application/json [18:46:04] [18:46:04]POST finish read [18:46:04]Found Content-Length = 677 [18:46:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.570, "sum" : 350.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:04]execute_script... [18:46: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)196219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.570, "sum" : 350.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:04]POST & json_proto [18:46:04]process_json_proto [18:46:04]json parsed OK: [18:46:04]protocol is kg_v1.0 [18:46:04]action value=close_receipt [18:46:04]process_action close_receipt [18:46:04]cmd_close_receipt [18:46:04]MH_GetDate [18:46:04]Write to MH i2c: F0 00 00 67 49 9F [18:46:04]Write i2c OK [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: F0 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: F0 05 00 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: F0 05 00 67 49 00 F2 A2 F0 65 8D [18:46:04]GetLastDocTimeStamp 1710268792 [18:46:04]current date 1710269170 [18:46:04]FM_GetShiftState [18:46:04]SAM_PROTO_GetShiftState [18:46:04]wFMCommunicate request_size=4 [18:46:04]MH_SAM_APDU [18:46:04]CAPDU: 80 13 01 00 [18:46:04]Write to MH i2c: E2 08 00 68 49 80 13 01 00 00 00 00 00 2E [18:46:04]Write i2c OK [18:46:04]MH_I2C_Read... [18:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:04]Read from MH i2c: E2 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 0E 00 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 0E 00 68 49 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A2 [18:46:04]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:46:04]wFMCommunicate OK [18:46:04]SAM_PROTO_GetShiftState done [18:46:04]FM_GetShiftState done [18:46:04]opened in 1710201976 [18:46:04]opened+sec_in_day 1710288376 [18:46:04]quantity*price = 35035 [18:46:04]sum+1 = 35036 [18:46:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.20 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 175 12.03.2024 18:46 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95245 ФПД: 53017364409229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T184610&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95245&fm=53017364409229&tin=02508201610067®Number=0000000000090555&sum=35000 [18:46:05]StoreToDocumentArchive [18:46:05]shift 327 fd 95245 [18:46:05]save to /storage/0327/doc_00095245 [18:46:05]save last doc name /storage/0327/doc_00095245 to /storage/kkm_last_doc_name [18:46:05]save OK [18:46:05]Clear old archive folders... [18:46:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:05]tlvbuf is 01B3C8D0 [18:46:05]SAM_PROTO_ClearQueue [18:46:05]wFMCommunicate request_size=4 [18:46:05]MH_SAM_APDU [18:46:05]CAPDU: 80 09 00 00 [18:46:05]Write to MH i2c: E2 08 00 75 49 80 09 00 00 00 00 00 00 30 [18:46:05]Write i2c OK [18:46:05]MH_I2C_Read... [18:46:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:05]Read from MH i2c: E2 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: E2 03 00 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: E2 03 00 75 49 00 90 00 32 [18:46:05]RAPDU: 90 00 [18:46:05]wFMCommunicate OK [18:46:05]SAM_PROTO_ClearQueue done [18:46:05]KKMCreateOFDPacket [18:46:05]OFDProtocolAddRootSTLVToBuf [18:46:05]FM_MakeSignedData [18:46:05]FM_MakeSignedData [18:46:05]SAM_PROTO_SignData [18:46:05]wFMCommunicate request_size=4 [18:46:05]MH_SAM_APDU [18:46:05]CAPDU: 80 0D 01 02 [18:46:05]Write to MH i2c: E2 08 00 76 49 80 0D 01 02 00 00 00 00 38 [18:46:05]Write i2c OK [18:46:05]MH_I2C_Read... [18:46:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:05]Read from MH i2c: E2 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: E2 03 00 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: E2 03 00 76 49 00 90 00 33 [18:46:05]RAPDU: 90 00 [18:46:05]wFMCommunicate OK [18:46:05]wFMCommunicate request_size=255 [18:46:05]MH_SAM_APDU [18:46:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 F2 A2 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0D 74 01 00 35 04 06 00 30 [18:46:05]Write to MH i2c: E2 02 01 77 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 F2 A2 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0D 74 01 00 35 04 06 00 30 00 00 01 [18:46:05]Write i2c OK [18:46:05]MH_I2C_Read... [18:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:05]Read from MH i2c: E2 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: E2 03 00 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: E2 03 00 77 49 00 90 00 34 [18:46:05]RAPDU: 90 00 [18:46:05]wFMCommunicate OK [18:46:05]wFMCommunicate request_size=10 [18:46:05]MH_SAM_APDU [18:46:05]CAPDU: 80 0D 02 02 05 38 11 2C 2B 8D [18:46:05]Write to MH i2c: E2 0D 00 78 49 80 0D 02 02 05 00 38 11 2C 2B 8D 00 00 72 [18:46:05]Write i2c OK [18:46:05]MH_I2C_Read... [18:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:05]Read from MH i2c: E2 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: E2 03 00 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: E2 03 00 78 49 00 90 00 35 [18:46:05]RAPDU: 90 00 [18:46:05]wFMCommunicate OK [18:46:05]wFMCommunicate request_size=4 [18:46:05]MH_SAM_APDU [18:46:05]CAPDU: 80 0D 03 02 [18:46:05]Write to MH i2c: E2 08 00 79 49 80 0D 03 02 00 00 00 00 3D [18:46:05]Write i2c OK [18:46:05]MH_I2C_Read... [18:46:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:05]Read from MH i2c: E2 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: E2 0B 00 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: E2 0B 00 79 49 00 CC AE 90 29 AA F9 A9 8F 90 00 4C [18:46:05]RAPDU: CC AE 90 29 AA F9 A9 8F 90 00 [18:46:05]wFMCommunicate OK [18:46:05]SAM_PROTO_SignData done [18:46:05]FM_MakeSignedData done [18:46:05]CreateOFDProtocolMessage [18:46:05]wFMCommunicate request_size=4 [18:46:05]MH_SAM_APDU [18:46:05]CAPDU: 80 11 00 00 [18:46:05]Write to MH i2c: E2 08 00 7A 49 80 11 00 00 00 00 00 00 3D [18:46:05]Write i2c OK [18:46:05]MH_I2C_Read... [18:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:05]Read from MH i2c: E2 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: E2 17 00 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: E2 17 00 7A 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8D [18:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:46:05]wFMCommunicate OK [18:46:05]CreateOFDProtocolMessage done [18:46:05]OFDSenderStorePacket 95245 [18:46:05]StoreOFDPacket docnum=95245 [18:46:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 08 8C 07 01 8D DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 F2 A2 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0D 74 01 00 35 04 06 00 30 38 11 2C 2B 8D CC AE 90 29 AA F9 A9 8F [18:46:05]CheckFolder [18:46:05]dirname=/storage/ofd_packets [18:46:05]CheckFolder done [18:46:05]ProducePacketName [18:46:05]name=ofd_packets/00095245 [18:46:05]NVStorageSaveData ofd_packets/00095245 [18:46:05]File name is /storage/ofd_packets/00095245 [18:46:05]Write 301 bytes [18:46:05]NVStorageSaveData done [18:46:05]OFDSenderStorePacket done [18:46:05]KKMCreateOFDPacket done [18:46:05]NVStorageSaveData kkm_last_timestamp [18:46:05]File name is /storage/kkm_last_timestamp [18:46:05]Write 4 bytes [18:46:05]NVStorageSaveData done [18:46:05]ExternCall_PrintAddStr [18:46:05]wPrintStart [18:46:05]Write to MH i2c: 01 00 00 7B 49 C4 [18:46:05]Write i2c OK [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: 01 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: 01 07 00 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: 01 07 00 7B 49 00 80 00 00 00 FF 0F 59 [18:46:05]RasterBufferAndPrint [18:46:05]line Счет N : (1)196219 [18:46:05]line ИНН: 02508201610067 [18:46:05]line Контрольно-Кассовый Чек [18:46:05]line ПРОДАЖА [18:46:05]line ТРК (МРК, ГНК) : 12 [18:46:05]line Товар: 2710124130 [18:46:05]line Аи-92-К-5 [18:46:05]line 5.570 * 62.90 [18:46:05]line = 350.35 [18:46:05]line НДС 12% НСП 1% [18:46:05]line > о реализуемом товаре [18:46:05]line ОКРУГЛЕНИЕ: -0.35 [18:46:05]line ИТОГО: 350.00 [18:46:05]line Внесено: 350.00 [18:46:05]line СДАЧА: 0.00 [18:46:05]line НСП 1% : 3.10 [18:46:05]line НДС 12% : 37.20 [18:46:05]line Наличными: 350.00 [18:46:05]line Безнал.: 0.00 [18:46:05]line Место: АЗС № 6 "Партнер Нефть" [18:46:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:46:05]line СНО: Общий режим [18:46:05]line Чек 175 12.03.2024 18:46 [18:46:05]line Смена: 327 ФФД: 1.0 [18:46:05]line ЗНМ: 0300000009 [18:46:05]line РНМ: 0000000000090555 [18:46:05]line Версия ККМ: 001 [18:46:05]line ФМ: 0000000000874811 [18:46:05]line ФД: 95245 [18:46:05]line ФПД: 53017364409229 [18:46:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T184610&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95245&fm=53017364409229&tin=02508201610067®Number=0000000000090555&sum=35000 [18:46:06]OFD Sender: Processing packet 95245 [packets to send 30, broken 29] [18:46:06]ProducePacketName [18:46:06]name=ofd_packets/00095245 [18:46:06]OFD Sender: To server: pG, [18:46:06]CommunicateWithHost lk.salyk.kg:30040 [18:46:06]ConnectInit lk.salyk.kg [18:46:06]written 0, free lines is 4095 [18:46:06]Connected sock=10 [18:46:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 08 8C 07 01 8D DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 F2 A2 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0D 74 01 00 35 04 06 00 30 38 11 2C 2B 8D CC AE 90 29 AA F9 A9 8F [18:46:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 24 7D 47 00 87 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0D 74 01 00 F4 03 04 00 47 4E F0 65 B6 04 01 00 00 71 1B 0A 6E 50 2A 0E A1 [18:46:06]CommunicateWithHost err = 0 [18:46:06]CheckOFDResponse [18:46:06]1017 (14) - 77093643461234 [18:46:06]1041 (16) - 0000000000874811 [18:46:06]1040 (4) - 95245 [18:46:06]1012 (4) - 12.03.2024 12:44 [18:46:06]1206 (1) - 0 [18:46:06]OFD Sender: Remove packet 95245 [18:46:06]ProducePacketName [18:46:06]name=ofd_packets/00095245 [18:46:06]NVStorageDeleteData [18:46:06]Write to MH i2c: 01 00 00 A6 49 EF [18:46:06]Write i2c OK [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: 01 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: 01 07 00 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: 01 07 00 A6 49 00 80 00 00 00 52 0D D5 [18:46:06]RasterBufferAndPrint [18:46:06]line [18:46:06]line [18:46:06]line [18:46:06]line [18:46:06]line [18:46:06]written 0, free lines is 3416 [18:46:06]process_action close_receipt done [18:46:06]requested_data is exist [18:46:06]produce_requested_data [18:46:06]requested_item fm.sn is exist - process it [18:46:06]wFMCommunicate request_size=4 [18:46:06]MH_SAM_APDU [18:46:06]CAPDU: 80 11 00 00 [18:46:06]Write to MH i2c: E2 08 00 AD 49 80 11 00 00 00 00 00 00 70 [18:46:06]Write i2c OK [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 [18:46:06]MH_I2C_Read... [18:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:06]Read from MH i2c: E2 17 00 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 17 00 AD 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C0 [18:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:46:06]wFMCommunicate OK [18:46:06]requested_item fd.num is exist - process it [18:46:06]SAM_PROTO_GetFieldsCounters [18:46:06]wFMCommunicate request_size=4 [18:46:06]MH_SAM_APDU [18:46:06]CAPDU: 80 13 00 00 [18:46:06]Write to MH i2c: E2 08 00 AE 49 80 13 00 00 00 00 00 00 73 [18:46:06]Write i2c OK [18:46:06]MH_I2C_Read... [18:46:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:06]Read from MH i2c: E2 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 62 00 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 62 00 AE 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0D 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [18:46:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0D 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:06]wFMCommunicate OK [18:46:06]SAM_PROTO_GetFieldsCounters done [18:46:06]requested_item shift.num is exist - process it [18:46:06]requested_item shift.opened is exist - process it [18:46:06]req_shift_opened [18:46:06]FM_GetShiftState [18:46:06]SAM_PROTO_GetShiftState [18:46:06]wFMCommunicate request_size=4 [18:46:06]MH_SAM_APDU [18:46:06]CAPDU: 80 13 01 00 [18:46:06]Write to MH i2c: E2 08 00 AF 49 80 13 01 00 00 00 00 00 75 [18:46:06]Write i2c OK [18:46:06]MH_I2C_Read... [18:46:06]OFD Sender: No OFD packet to send [18:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:06]Read from MH i2c: E2 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 0E 00 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 0E 00 AF 49 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 E9 [18:46:06]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:46:06]wFMCommunicate OK [18:46:06]SAM_PROTO_GetShiftState done [18:46:06]FM_GetShiftState done [18:46:06]req_shift_opened done [18:46:06]requested_item shift.open_date is exist - process it [18:46:06]req_shift_open_date [18:46:06]req_shift_open_date done [18:46:06]produce_requested_data done [18:46:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95245,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:46:06]process_action_free close_receipt [18:46:06]json_value_free [18:46:06]json_value_free done [18:46:06]process_json_proto returns [18:46:06]Send response to host [18:46:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95245,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:46:06]free response buf [18:46:06]execute_script done [18:46:06]execute_script returns [18:46:06]free content buf [18:46:06]Sock 8.Close socket [18:46:06]Sock 8.Thread stoped [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:22]accept exits with 9 [18:46:22]New connection [18:46:22]New thread 3066813796 created [18:46:22]Thread 3066957156 joined [18:46:22]Waiting for new connection... [18:46:22] Sock 9.Parse request [18:46:22]Sock 9.Check first char [18:46:22]Sock 9.First char is OK [18:46:22]request: POST /json_proto HTTP/1.0 [18:46:22]Method: POST [18:46:22]URL: /json_proto [18:46:22]Method is POST - this is cgi request [18:46:22]url: /json_proto [18:46:22]query_string will be loaded in cgi processing [18:46:22]execute_cgi json_proto POST (null) [18:46:22]execute_cgi path=json_proto method=POST [18:46:22]POST find Content-Length [18:46:22]Host: 172.17.62.67:8080 [18:46:22]Content-Length: 687 [18:46:22]Content-Type: application/json [18:46:22] [18:46:22]POST finish read [18:46:22]Found Content-Length = 687 [18:46:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11535", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 48.00, "quantity" : 1.000, "sum" : 48.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 48.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:22]execute_script... [18:46: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 : (3)11535", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 48.00, "quantity" : 1.000, "sum" : 48.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 48.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:22]POST & json_proto [18:46:22]process_json_proto [18:46:22]json parsed OK: [18:46:22]protocol is kg_v1.0 [18:46:22]action value=close_receipt [18:46:22]process_action close_receipt [18:46:22]cmd_close_receipt [18:46:22]MH_GetDate [18:46:22]Write to MH i2c: F0 00 00 B0 49 E8 [18:46:22]Write i2c OK [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: F0 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: F0 05 00 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: F0 05 00 B0 49 00 05 A3 F0 65 EA [18:46:22]GetLastDocTimeStamp 1710269170 [18:46:22]current date 1710269189 [18:46:22]FM_GetShiftState [18:46:22]SAM_PROTO_GetShiftState [18:46:22]wFMCommunicate request_size=4 [18:46:22]MH_SAM_APDU [18:46:22]CAPDU: 80 13 01 00 [18:46:22]Write to MH i2c: E2 08 00 B1 49 80 13 01 00 00 00 00 00 77 [18:46:22]Write i2c OK [18:46:22]MH_I2C_Read... [18:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:22]Read from MH i2c: E2 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 0E 00 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 0E 00 B1 49 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 EB [18:46:22]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:46:22]wFMCommunicate OK [18:46:22]SAM_PROTO_GetShiftState done [18:46:22]FM_GetShiftState done [18:46:22]opened in 1710201976 [18:46:22]opened+sec_in_day 1710288376 [18:46:22]quantity*price = 4800 [18:46:22]sum+1 = 4801 [18:46:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 48.00 НСП 1% : 0.42 НДС 12% : 5.10 Наличными: 48.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 176 12.03.2024 18:46 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95246 ФПД: 4166545630853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T184629&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95246&fm=4166545630853&tin=02508201610067®Number=0000000000090555&sum=4800 0 [18:46:23]StoreToDocumentArchive [18:46:23]shift 327 fd 95246 [18:46:23]save to /storage/0327/doc_00095246 [18:46:23]save last doc name /storage/0327/doc_00095246 to /storage/kkm_last_doc_name [18:46:23]save OK [18:46:23]Clear old archive folders... [18:46:23]ProcessDocumentItem done err = 0, tmpTLVsize=295 [18:46:23]tlvbuf is 01AEC9A0 [18:46:23]SAM_PROTO_ClearQueue [18:46:23]wFMCommunicate request_size=4 [18:46:23]MH_SAM_APDU [18:46:23]CAPDU: 80 09 00 00 [18:46:23]Write to MH i2c: E2 08 00 BE 49 80 09 00 00 00 00 00 00 79 [18:46:23]Write i2c OK [18:46:23]MH_I2C_Read... [18:46:23]Read from MH i2c: E2 [18:46:23]MH_I2C_Read... [18:46:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:23]Read from MH i2c: E2 03 00 [18:46:23]MH_I2C_Read... [18:46:23]Read from MH i2c: E2 03 00 BE 49 00 90 00 7B [18:46:23]RAPDU: 90 00 [18:46:23]wFMCommunicate OK [18:46:23]SAM_PROTO_ClearQueue done [18:46:23]KKMCreateOFDPacket [18:46:23]OFDProtocolAddRootSTLVToBuf [18:46:23]FM_MakeSignedData [18:46:23]FM_MakeSignedData [18:46:23]SAM_PROTO_SignData [18:46:23]wFMCommunicate request_size=4 [18:46:23]MH_SAM_APDU [18:46:23]CAPDU: 80 0D 01 02 [18:46:23]Write to MH i2c: E2 08 00 BF 49 80 0D 01 02 00 00 00 00 81 [18:46:23]Write i2c OK [18:46:23]MH_I2C_Read... [18:46:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:24]Read from MH i2c: E2 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: E2 03 00 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: E2 03 00 BF 49 00 90 00 7C [18:46:24]RAPDU: 90 00 [18:46:24]wFMCommunicate OK [18:46:24]wFMCommunicate request_size=255 [18:46:24]MH_SAM_APDU [18:46:24]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 12 00 00 00 00 13 04 06 00 C0 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 12 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 01 00 00 00 00 07 04 06 00 C0 12 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 05 A3 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [18:46:24]Write to MH i2c: E2 02 01 C0 49 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 12 00 00 00 00 13 04 06 00 C0 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 12 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 01 00 00 00 00 07 04 06 00 C0 12 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 05 A3 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 46 [18:46:24]Write i2c OK [18:46:24]MH_I2C_Read... [18:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:24]Read from MH i2c: E2 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: E2 03 00 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: E2 03 00 C0 49 00 90 00 7D [18:46:24]RAPDU: 90 00 [18:46:24]wFMCommunicate OK [18:46:24]wFMCommunicate request_size=54 [18:46:24]MH_SAM_APDU [18:46:24]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0E 74 01 00 35 04 06 00 03 CA 19 78 E6 85 [18:46:24]Write to MH i2c: E2 39 00 C1 49 80 0D 02 02 31 00 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0E 74 01 00 35 04 06 00 03 CA 19 78 E6 85 00 00 F3 [18:46:24]Write i2c OK [18:46:24]MH_I2C_Read... [18:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:24]Read from MH i2c: E2 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: E2 03 00 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: E2 03 00 C1 49 00 90 00 7E [18:46:24]RAPDU: 90 00 [18:46:24]wFMCommunicate OK [18:46:24]wFMCommunicate request_size=4 [18:46:24]MH_SAM_APDU [18:46:24]CAPDU: 80 0D 03 02 [18:46:24]Write to MH i2c: E2 08 00 C2 49 80 0D 03 02 00 00 00 00 86 [18:46:24]Write i2c OK [18:46:24]MH_I2C_Read... [18:46:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:24]Read from MH i2c: E2 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: E2 0B 00 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: E2 0B 00 C2 49 00 AD 7B B7 C1 56 38 6B 7D 90 00 9D [18:46:24]RAPDU: AD 7B B7 C1 56 38 6B 7D 90 00 [18:46:24]wFMCommunicate OK [18:46:24]SAM_PROTO_SignData done [18:46:24]FM_MakeSignedData done [18:46:24]CreateOFDProtocolMessage [18:46:24]wFMCommunicate request_size=4 [18:46:24]MH_SAM_APDU [18:46:24]CAPDU: 80 11 00 00 [18:46:24]Write to MH i2c: E2 08 00 C3 49 80 11 00 00 00 00 00 00 86 [18:46:24]Write i2c OK [18:46:24]MH_I2C_Read... [18:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:24]Read from MH i2c: E2 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: E2 17 00 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: E2 17 00 C3 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D6 [18:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:46:24]wFMCommunicate OK [18:46:24]CreateOFDProtocolMessage done [18:46:24]OFDSenderStorePacket 95246 [18:46:24]StoreOFDPacket docnum=95246 [18:46:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 3B 01 00 00 94 63 33 01 34 AD 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 12 00 00 00 00 13 04 06 00 C0 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 12 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 01 00 00 00 00 07 04 06 00 C0 12 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 05 A3 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0E 74 01 00 35 04 06 00 03 CA 19 78 E6 85 AD 7B B7 C1 56 38 6B 7D [18:46:24]CheckFolder [18:46:24]dirname=/storage/ofd_packets [18:46:24]CheckFolder done [18:46:24]ProducePacketName [18:46:24]name=ofd_packets/00095246 [18:46:24]NVStorageSaveData ofd_packets/00095246 [18:46:24]File name is /storage/ofd_packets/00095246 [18:46:24]Write 345 bytes [18:46:24]NVStorageSaveData done [18:46:24]OFDSenderStorePacket done [18:46:24]KKMCreateOFDPacket done [18:46:24]NVStorageSaveData kkm_last_timestamp [18:46:24]File name is /storage/kkm_last_timestamp [18:46:24]Write 4 bytes [18:46:24]NVStorageSaveData done [18:46:24]ExternCall_PrintAddStr [18:46:24]wPrintStart [18:46:24]Write to MH i2c: 01 00 00 C4 49 0D [18:46:24]Write i2c OK [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: 01 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: 01 07 00 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: 01 07 00 C4 49 00 80 00 00 00 FF 0F A2 [18:46:24]RasterBufferAndPrint [18:46:24]line Счет N : (3)11535 [18:46:24]line ИНН: 02508201610067 [18:46:24]line Контрольно-Кассовый Чек [18:46:24]line ПРОДАЖА [18:46:24]line Товар: 4870002325441 [18:46:24]line Вода ASU пит н.газ лимон ПЭТ 0,5л [18:46:24]line 1.000 * 48.00 [18:46:24]line = 48.00 [18:46:24]line НДС 12% НСП 1% [18:46:24]line > о реализуемом товаре [18:46:24]line ИТОГО: 48.00 [18:46:24]line НСП 1% : 0.42 [18:46:24]line НДС 12% : 5.10 [18:46:24]line Наличными: 48.00 [18:46:24]line Безнал.: 0.00 [18:46:24]line Место: АЗС № 6 "Партнер Нефть" [18:46:24]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:46:24]line СНО: Общий режим [18:46:24]line Чек 176 12.03.2024 18:46 [18:46:24]line Смена: 327 ФФД: 1.0 [18:46:24]line ЗНМ: 0300000009 [18:46:24]line РНМ: 0000000000090555 [18:46:24]line Версия ККМ: 001 [18:46:24]line ФМ: 0000000000874811 [18:46:24]line ФД: 95246 [18:46:24]line ФПД: 4166545630853 [18:46:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T184629&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95246&fm=4166545630853&tin=02508201610067®Number=0000000000090555&sum=4800 [18:46:24]OFD Sender: Processing packet 95246 [packets to send 30, broken 29] [18:46:24]ProducePacketName [18:46:24]name=ofd_packets/00095246 [18:46:24]OFD Sender: To server: pG, [18:46:24]CommunicateWithHost lk.salyk.kg:30040 [18:46:24]ConnectInit lk.salyk.kg [18:46:24]line 0 [18:46:24]written 0, free lines is 4095 [18:46:24]Connected sock=11 [18:46:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 3B 01 00 00 94 63 33 01 34 AD 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 12 00 00 00 00 13 04 06 00 C0 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 12 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 01 00 00 00 00 07 04 06 00 C0 12 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 05 A3 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0E 74 01 00 35 04 06 00 03 CA 19 78 E6 85 AD 7B B7 C1 56 38 6B 7D [18:46:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 4F C4 47 00 AE 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0E 74 01 00 F4 03 04 00 5A 4E F0 65 B6 04 01 00 00 9B ED 2C 42 13 86 CA 24 [18:46:25]CommunicateWithHost err = 0 [18:46:25]CheckOFDResponse [18:46:25]1017 (14) - 77093643461234 [18:46:25]1041 (16) - 0000000000874811 [18:46:25]1040 (4) - 95246 [18:46:25]1012 (4) - 12.03.2024 12:45 [18:46:25]1206 (1) - 0 [18:46:25]OFD Sender: Remove packet 95246 [18:46:25]ProducePacketName [18:46:25]name=ofd_packets/00095246 [18:46:25]NVStorageDeleteData [18:46:25]Write to MH i2c: 01 00 00 ED 49 36 [18:46:25]Write i2c OK [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: 01 [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: 01 07 00 [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: 01 07 00 ED 49 00 80 00 00 00 60 0D 2A [18:46:25]RasterBufferAndPrint [18:46:25]line [18:46:25]line [18:46:25]line [18:46:25]line [18:46:25]line [18:46:25]written 0, free lines is 3428 [18:46:25]process_action close_receipt done [18:46:25]requested_data is exist [18:46:25]produce_requested_data [18:46:25]requested_item fm.sn is exist - process it [18:46:25]wFMCommunicate request_size=4 [18:46:25]MH_SAM_APDU [18:46:25]CAPDU: 80 11 00 00 [18:46:25]Write to MH i2c: E2 08 00 F4 49 80 11 00 00 00 00 00 00 B7 [18:46:25]Write i2c OK [18:46:25]MH_I2C_Read... [18:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:25]Read from MH i2c: E2 [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: E2 17 00 [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: E2 17 00 F4 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 07 [18:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:46:25]wFMCommunicate OK [18:46:25]requested_item fd.num is exist - process it [18:46:25]SAM_PROTO_GetFieldsCounters [18:46:25]wFMCommunicate request_size=4 [18:46:25]MH_SAM_APDU [18:46:25]CAPDU: 80 13 00 00 [18:46:25]Write to MH i2c: E2 08 00 F5 49 80 13 00 00 00 00 00 00 BA [18:46:25]Write i2c OK [18:46:25]MH_I2C_Read... [18:46:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:25]Read from MH i2c: E2 [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: E2 62 00 [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: E2 62 00 F5 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0E 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [18:46:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0E 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:25]wFMCommunicate OK [18:46:25]SAM_PROTO_GetFieldsCounters done [18:46:25]requested_item shift.num is exist - process it [18:46:25]requested_item shift.opened is exist - process it [18:46:25]req_shift_opened [18:46:25]FM_GetShiftState [18:46:25]SAM_PROTO_GetShiftState [18:46:25]wFMCommunicate request_size=4 [18:46:25]MH_SAM_APDU [18:46:25]CAPDU: 80 13 01 00 [18:46:25]Write to MH i2c: E2 08 00 F6 49 80 13 01 00 00 00 00 00 BC [18:46:25]Write i2c OK [18:46:25]MH_I2C_Read... [18:46:25]OFD Sender: No OFD packet to send [18:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:25]Read from MH i2c: E2 [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: E2 0E 00 [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: E2 0E 00 F6 49 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 30 [18:46:25]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:46:25]wFMCommunicate OK [18:46:25]SAM_PROTO_GetShiftState done [18:46:25]FM_GetShiftState done [18:46:25]req_shift_opened done [18:46:25]requested_item shift.open_date is exist - process it [18:46:25]req_shift_open_date [18:46:25]req_shift_open_date done [18:46:25]produce_requested_data done [18:46:25]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95246,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:46:25]process_action_free close_receipt [18:46:25]json_value_free [18:46:25]json_value_free done [18:46:25]process_json_proto returns [18:46:25]Send response to host [18:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95246,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:46:25]free response buf [18:46:25]execute_script done [18:46:25]execute_script returns [18:46:25]free content buf [18:46:25]Sock 9.Close socket [18:46:25]Sock 9.Thread stoped [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]accept exits with 8 [18:51:45]New connection [18:51:45]New thread 3066957156 created [18:51:45]Thread 3066813796 joined [18:51:45]Waiting for new connection... [18:51:45] Sock 8.Parse request [18:51:45]Sock 8.Check first char [18:51:45]Sock 8.First char is OK [18:51:45]request: POST /json_proto HTTP/1.0 [18:51:45]Method: POST [18:51:45]URL: /json_proto [18:51:45]Method is POST - this is cgi request [18:51:45]url: /json_proto [18:51:45]query_string will be loaded in cgi processing [18:51:45]execute_cgi json_proto POST (null) [18:51:45]execute_cgi path=json_proto method=POST [18:51:45]POST find Content-Length [18:51:45]Host: 172.17.62.67:8080 [18:51:45]Content-Length: 677 [18:51:45]Content-Type: application/json [18:51:45] [18:51:45]POST finish read [18:51:45]Found Content-Length = 677 [18:51:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [18:51:45]execute_script... [18:51: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)196221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "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" ] } } [18:51:45]POST & json_proto [18:51:45]process_json_proto [18:51:45]json parsed OK: [18:51:45]protocol is kg_v1.0 [18:51:45]action value=close_receipt [18:51:45]process_action close_receipt [18:51:45]cmd_close_receipt [18:51:45]MH_GetDate [18:51:45]Write to MH i2c: F0 00 00 F7 49 2F [18:51:45]Write i2c OK [18:51:45]MH_I2C_Read... [18:51:45]Read from MH i2c: F0 [18:51:45]MH_I2C_Read... [18:51:45]Read from MH i2c: F0 05 00 [18:51:45]MH_I2C_Read... [18:51:45]Read from MH i2c: F0 05 00 F7 49 00 47 A4 F0 65 74 [18:51:45]GetLastDocTimeStamp 1710269189 [18:51:45]current date 1710269511 [18:51:45]FM_GetShiftState [18:51:45]SAM_PROTO_GetShiftState [18:51:45]wFMCommunicate request_size=4 [18:51:45]MH_SAM_APDU [18:51:45]CAPDU: 80 13 01 00 [18:51:45]Write to MH i2c: E2 08 00 F8 49 80 13 01 00 00 00 00 00 BE [18:51:45]Write i2c OK [18:51:45]MH_I2C_Read... [18:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:45]Read from MH i2c: E2 [18:51:45]MH_I2C_Read... [18:51:45]Read from MH i2c: E2 0E 00 [18:51:45]MH_I2C_Read... [18:51:45]Read from MH i2c: E2 0E 00 F8 49 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 32 [18:51:45]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:51:45]wFMCommunicate OK [18:51:45]SAM_PROTO_GetShiftState done [18:51:45]FM_GetShiftState done [18:51:45]opened in 1710201976 [18:51:45]opened+sec_in_day 1710288376 [18:51:45]quantity*price = 30003 [18:51:45]sum+1 = 30004 [18:51:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 177 12.03.2024 18:51 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95247 ФПД: 262735162925034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T185151&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95247&fm=262735162925034&tin=02508201610067®Number=0000000000090555&sum=30000 [18:51:46]StoreToDocumentArchive [18:51:46]shift 327 fd 95247 [18:51:46]save to /storage/0327/doc_00095247 [18:51:46]save last doc name /storage/0327/doc_00095247 to /storage/kkm_last_doc_name [18:51:46]save OK [18:51:46]Clear old archive folders... [18:51:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:51:46]tlvbuf is 01AF2AF0 [18:51:46]SAM_PROTO_ClearQueue [18:51:46]wFMCommunicate request_size=4 [18:51:46]MH_SAM_APDU [18:51:46]CAPDU: 80 09 00 00 [18:51:46]Write to MH i2c: E2 08 00 05 4A 80 09 00 00 00 00 00 00 C1 [18:51:46]Write i2c OK [18:51:46]MH_I2C_Read... [18:51:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:46]Read from MH i2c: E2 [18:51:46]MH_I2C_Read... [18:51:46]Read from MH i2c: E2 03 00 [18:51:46]MH_I2C_Read... [18:51:46]Read from MH i2c: E2 03 00 05 4A 00 90 00 C3 [18:51:46]RAPDU: 90 00 [18:51:46]wFMCommunicate OK [18:51:46]SAM_PROTO_ClearQueue done [18:51:46]KKMCreateOFDPacket [18:51:46]OFDProtocolAddRootSTLVToBuf [18:51:46]FM_MakeSignedData [18:51:46]FM_MakeSignedData [18:51:46]SAM_PROTO_SignData [18:51:46]wFMCommunicate request_size=4 [18:51:46]MH_SAM_APDU [18:51:46]CAPDU: 80 0D 01 02 [18:51:46]Write to MH i2c: E2 08 00 06 4A 80 0D 01 02 00 00 00 00 C9 [18:51:46]Write i2c OK [18:51:46]MH_I2C_Read... [18:51:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:46]Read from MH i2c: E2 [18:51:46]MH_I2C_Read... [18:51:46]Read from MH i2c: E2 03 00 [18:51:46]MH_I2C_Read... [18:51:46]Read from MH i2c: E2 03 00 06 4A 00 90 00 C4 [18:51:46]RAPDU: 90 00 [18:51:46]wFMCommunicate OK [18:51:46]wFMCommunicate request_size=255 [18:51:46]MH_SAM_APDU [18:51:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 B1 00 00 00 F4 03 04 00 47 A4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0F 74 01 00 35 04 06 00 EE [18:51:46]Write to MH i2c: E2 02 01 07 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 B1 00 00 00 F4 03 04 00 47 A4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0F 74 01 00 35 04 06 00 EE 00 00 52 [18:51:46]Write i2c OK [18:51:46]MH_I2C_Read... [18:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:46]Read from MH i2c: E2 [18:51:46]MH_I2C_Read... [18:51:46]Read from MH i2c: E2 03 00 [18:51:46]MH_I2C_Read... [18:51:46]Read from MH i2c: E2 03 00 07 4A 00 90 00 C5 [18:51:46]RAPDU: 90 00 [18:51:46]wFMCommunicate OK [18:51:46]wFMCommunicate request_size=10 [18:51:46]MH_SAM_APDU [18:51:46]CAPDU: 80 0D 02 02 05 F4 CC 0E 5F EA [18:51:46]Write to MH i2c: E2 0D 00 08 4A 80 0D 02 02 05 00 F4 CC 0E 5F EA 00 00 ED [18:51:46]Write i2c OK [18:51:46]MH_I2C_Read... [18:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:46]Read from MH i2c: E2 [18:51:46]MH_I2C_Read... [18:51:46]Read from MH i2c: E2 03 00 [18:51:46]MH_I2C_Read... [18:51:46]Read from MH i2c: E2 03 00 08 4A 00 90 00 C6 [18:51:46]RAPDU: 90 00 [18:51:46]wFMCommunicate OK [18:51:46]wFMCommunicate request_size=4 [18:51:46]MH_SAM_APDU [18:51:46]CAPDU: 80 0D 03 02 [18:51:46]Write to MH i2c: E2 08 00 09 4A 80 0D 03 02 00 00 00 00 CE [18:51:46]Write i2c OK [18:51:46]MH_I2C_Read... [18:51:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:46]Read from MH i2c: E2 [18:51:46]MH_I2C_Read... [18:51:46]Read from MH i2c: E2 0B 00 [18:51:46]MH_I2C_Read... [18:51:46]Read from MH i2c: E2 0B 00 09 4A 00 DF 19 23 A3 A3 F5 E2 9F 90 00 A6 [18:51:46]RAPDU: DF 19 23 A3 A3 F5 E2 9F 90 00 [18:51:46]wFMCommunicate OK [18:51:46]SAM_PROTO_SignData done [18:51:46]FM_MakeSignedData done [18:51:46]CreateOFDProtocolMessage [18:51:46]wFMCommunicate request_size=4 [18:51:46]MH_SAM_APDU [18:51:46]CAPDU: 80 11 00 00 [18:51:46]Write to MH i2c: E2 08 00 0A 4A 80 11 00 00 00 00 00 00 CE [18:51:46]Write i2c OK [18:51:46]MH_I2C_Read... [18:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:46]Read from MH i2c: E2 [18:51:46]MH_I2C_Read... [18:51:46]Read from MH i2c: E2 17 00 [18:51:46]MH_I2C_Read... [18:51:46]Read from MH i2c: E2 17 00 0A 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1E [18:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:51:46]wFMCommunicate OK [18:51:46]CreateOFDProtocolMessage done [18:51:46]OFDSenderStorePacket 95247 [18:51:46]StoreOFDPacket docnum=95247 [18:51:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 3A 71 07 01 1E 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 B1 00 00 00 F4 03 04 00 47 A4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0F 74 01 00 35 04 06 00 EE F4 CC 0E 5F EA DF 19 23 A3 A3 F5 E2 9F [18:51:46]CheckFolder [18:51:46]dirname=/storage/ofd_packets [18:51:46]CheckFolder done [18:51:46]ProducePacketName [18:51:46]name=ofd_packets/00095247 [18:51:46]NVStorageSaveData ofd_packets/00095247 [18:51:46]File name is /storage/ofd_packets/00095247 [18:51:46]Write 301 bytes [18:51:46]NVStorageSaveData done [18:51:46]OFDSenderStorePacket done [18:51:46]KKMCreateOFDPacket done [18:51:46]NVStorageSaveData kkm_last_timestamp [18:51:46]File name is /storage/kkm_last_timestamp [18:51:46]Write 4 bytes [18:51:46]NVStorageSaveData done [18:51:46]ExternCall_PrintAddStr [18:51:46]wPrintStart [18:51:46]Write to MH i2c: 01 00 00 0B 4A 55 [18:51:46]Write i2c OK [18:51:46]MH_I2C_Read... [18:51:46]Read from MH i2c: 01 [18:51:46]MH_I2C_Read... [18:51:46]Read from MH i2c: 01 07 00 [18:51:46]MH_I2C_Read... [18:51:46]Read from MH i2c: 01 07 00 0B 4A 00 80 00 00 00 FF 0F EA [18:51:46]RasterBufferAndPrint [18:51:46]line Счет N : (1)196221 [18:51:46]line ИНН: 02508201610067 [18:51:46]line Контрольно-Кассовый Чек [18:51:46]line ПРОДАЖА [18:51:46]line ТРК (МРК, ГНК) : 22 [18:51:46]line Товар: 2710124130 [18:51:46]line Аи-92-К-5 [18:51:46]line 4.770 * 62.90 [18:51:46]line = 300.03 [18:51:46]line НДС 12% НСП 1% [18:51:46]line > о реализуемом товаре [18:51:46]line ОКРУГЛЕНИЕ: -0.03 [18:51:46]line ИТОГО: 300.00 [18:51:46]line Внесено: 300.00 [18:51:46]line СДАЧА: 0.00 [18:51:46]line НСП 1% : 2.65 [18:51:46]line НДС 12% : 31.86 [18:51:46]line Наличными: 300.00 [18:51:46]line Безнал.: 0.00 [18:51:46]line Место: АЗС № 6 "Партнер Нефть" [18:51:46]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:51:46]line СНО: Общий режим [18:51:46]line Чек 177 12.03.2024 18:51 [18:51:46]line Смена: 327 ФФД: 1.0 [18:51:46]line ЗНМ: 0300000009 [18:51:46]line РНМ: 0000000000090555 [18:51:46]line Версия ККМ: 001 [18:51:46]line ФМ: 0000000000874811 [18:51:46]line ФД: 95247 [18:51:46]line ФПД: 262735162925034 [18:51:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T185151&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95247&fm=262735162925034&tin=02508201610067®Number=0000000000090555&sum=30000 [18:51:47]OFD Sender: Processing packet 95247 [packets to send 30, broken 29] [18:51:47]ProducePacketName [18:51:47]name=ofd_packets/00095247 [18:51:47]OFD Sender: To server: pG, [18:51:47]CommunicateWithHost lk.salyk.kg:30040 [18:51:47]ConnectInit lk.salyk.kg [18:51:47]written 0, free lines is 4095 [18:51:47]Connected sock=10 [18:51:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 3A 71 07 01 1E 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 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 B1 00 00 00 F4 03 04 00 47 A4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0F 74 01 00 35 04 06 00 EE F4 CC 0E 5F EA DF 19 23 A3 A3 F5 E2 9F [18:51:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 AC 11 47 00 73 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0F 74 01 00 F4 03 04 00 9D 4F F0 65 B6 04 01 00 00 18 6A 88 D8 25 C7 D9 22 [18:51:47]CommunicateWithHost err = 0 [18:51:47]CheckOFDResponse [18:51:47]1017 (14) - 77093643461234 [18:51:47]1041 (16) - 0000000000874811 [18:51:47]1040 (4) - 95247 [18:51:47]1012 (4) - 12.03.2024 12:50 [18:51:47]1206 (1) - 0 [18:51:47]OFD Sender: Remove packet 95247 [18:51:47]ProducePacketName [18:51:47]name=ofd_packets/00095247 [18:51:47]NVStorageDeleteData [18:51:47]Write to MH i2c: 01 00 00 36 4A 80 [18:51:47]Write i2c OK [18:51:47]MH_I2C_Read... [18:51:47]Read from MH i2c: 01 [18:51:47]MH_I2C_Read... [18:51:47]Read from MH i2c: 01 07 00 [18:51:47]MH_I2C_Read... [18:51:47]Read from MH i2c: 01 07 00 36 4A 00 80 00 00 00 5E 0D 72 [18:51:47]RasterBufferAndPrint [18:51:47]line [18:51:47]line [18:51:47]line [18:51:47]line [18:51:47]line [18:51:47]written 0, free lines is 3428 [18:51:47]process_action close_receipt done [18:51:47]requested_data is exist [18:51:47]produce_requested_data [18:51:47]requested_item fm.sn is exist - process it [18:51:47]wFMCommunicate request_size=4 [18:51:47]MH_SAM_APDU [18:51:47]CAPDU: 80 11 00 00 [18:51:47]Write to MH i2c: E2 08 00 3D 4A 80 11 00 00 00 00 00 00 01 [18:51:47]Write i2c OK [18:51:47]MH_I2C_Read... [18:51:47]Read from MH i2c: E2 [18:51:47]MH_I2C_Read... [18:51:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:47]Read from MH i2c: E2 17 00 [18:51:47]MH_I2C_Read... [18:51:47]Read from MH i2c: E2 17 00 3D 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 51 [18:51:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:51:47]wFMCommunicate OK [18:51:47]requested_item fd.num is exist - process it [18:51:47]SAM_PROTO_GetFieldsCounters [18:51:47]wFMCommunicate request_size=4 [18:51:47]MH_SAM_APDU [18:51:47]CAPDU: 80 13 00 00 [18:51:47]Write to MH i2c: E2 08 00 3E 4A 80 13 00 00 00 00 00 00 04 [18:51:47]Write i2c OK [18:51:47]MH_I2C_Read... [18:51:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:48]Read from MH i2c: E2 [18:51:48]MH_I2C_Read... [18:51:48]Read from MH i2c: E2 62 00 [18:51:48]MH_I2C_Read... [18:51:48]Read from MH i2c: E2 62 00 3E 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0F 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [18:51:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0F 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:48]wFMCommunicate OK [18:51:48]SAM_PROTO_GetFieldsCounters done [18:51:48]requested_item shift.num is exist - process it [18:51:48]requested_item shift.opened is exist - process it [18:51:48]req_shift_opened [18:51:48]FM_GetShiftState [18:51:48]SAM_PROTO_GetShiftState [18:51:48]wFMCommunicate request_size=4 [18:51:48]MH_SAM_APDU [18:51:48]CAPDU: 80 13 01 00 [18:51:48]Write to MH i2c: E2 08 00 3F 4A 80 13 01 00 00 00 00 00 06 [18:51:48]Write i2c OK [18:51:48]MH_I2C_Read... [18:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:48]OFD Sender: No OFD packet to send [18:51:48]Read from MH i2c: E2 [18:51:48]MH_I2C_Read... [18:51:48]Read from MH i2c: E2 0E 00 [18:51:48]MH_I2C_Read... [18:51:48]Read from MH i2c: E2 0E 00 3F 4A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 7A [18:51:48]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:51:48]wFMCommunicate OK [18:51:48]SAM_PROTO_GetShiftState done [18:51:48]FM_GetShiftState done [18:51:48]req_shift_opened done [18:51:48]requested_item shift.open_date is exist - process it [18:51:48]req_shift_open_date [18:51:48]req_shift_open_date done [18:51:48]produce_requested_data done [18:51:48]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95247,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:51:48]process_action_free close_receipt [18:51:48]json_value_free [18:51:48]json_value_free done [18:51:48]process_json_proto returns [18:51:48]Send response to host [18:51:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95247,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:51:48]free response buf [18:51:48]execute_script done [18:51:48]execute_script returns [18:51:48]free content buf [18:51:48]Sock 8.Close socket [18:51:48]Sock 8.Thread stoped [18:51:52]accept exits with 9 [18:51:52]New connection [18:51:52]New thread 3066813796 created [18:51:52]Thread 3066957156 joined [18:51:52]Waiting for new connection... [18:51:52] Sock 9.Parse request [18:51:52]Sock 9.Check first char [18:51:52]Sock 9.First char is OK [18:51:52]request: POST /json_proto HTTP/1.0 [18:51:52]Method: POST [18:51:52]URL: /json_proto [18:51:52]Method is POST - this is cgi request [18:51:52]url: /json_proto [18:51:52]query_string will be loaded in cgi processing [18:51:52]execute_cgi json_proto POST (null) [18:51:52]execute_cgi path=json_proto method=POST [18:51:52]POST find Content-Length [18:51:52]Host: 172.17.62.67:8080 [18:51:52]Content-Length: 816 [18:51:52]Content-Type: application/json [18:51:52] [18:51:52]POST finish read [18:51:52]Found Content-Length = 816 [18:51:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:52]execute_script... [18:51: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)196220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:52]POST & json_proto [18:51:52]process_json_proto [18:51:52]json parsed OK: [18:51:52]protocol is kg_v1.0 [18:51:52]action value=close_receipt [18:51:52]process_action close_receipt [18:51:52]cmd_close_receipt [18:51:52]MH_GetDate [18:51:52]Write to MH i2c: F0 00 00 40 4A 79 [18:51:52]Write i2c OK [18:51:52]MH_I2C_Read... [18:51:52]Read from MH i2c: F0 [18:51:52]MH_I2C_Read... [18:51:52]Read from MH i2c: F0 05 00 [18:51:52]MH_I2C_Read... [18:51:52]Read from MH i2c: F0 05 00 40 4A 00 4F A4 F0 65 C6 [18:51:52]GetLastDocTimeStamp 1710269511 [18:51:52]current date 1710269519 [18:51:52]FM_GetShiftState [18:51:52]SAM_PROTO_GetShiftState [18:51:52]wFMCommunicate request_size=4 [18:51:52]MH_SAM_APDU [18:51:52]CAPDU: 80 13 01 00 [18:51:52]Write to MH i2c: E2 08 00 41 4A 80 13 01 00 00 00 00 00 08 [18:51:52]Write i2c OK [18:51:52]MH_I2C_Read... [18:51:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:52]Read from MH i2c: E2 [18:51:52]MH_I2C_Read... [18:51:52]Read from MH i2c: E2 0E 00 [18:51:52]MH_I2C_Read... [18:51:52]Read from MH i2c: E2 0E 00 41 4A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 7C [18:51:52]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:51:52]wFMCommunicate OK [18:51:52]SAM_PROTO_GetShiftState done [18:51:52]FM_GetShiftState done [18:51:52]opened in 1710201976 [18:51:52]opened+sec_in_day 1710288376 [18:51:52]quantity*price = 50005 [18:51:52]sum+1 = 50007 [18:51:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.06 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.06 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 178 12.03.2024 18:51 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95248 ФПД: 118283295729884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T185159&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95248&fm=118283295729884&tin=02508201610067®Number=0000000000090555&sum=50006 [18:51:53]StoreToDocumentArchive [18:51:53]shift 327 fd 95248 [18:51:53]save to /storage/0327/doc_00095248 [18:51:53]save last doc name /storage/0327/doc_00095248 to /storage/kkm_last_doc_name [18:51:53]save OK [18:51:53]Clear old archive folders... [18:51:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:51:53]tlvbuf is 01A51760 [18:51:53]SAM_PROTO_ClearQueue [18:51:53]wFMCommunicate request_size=4 [18:51:53]MH_SAM_APDU [18:51:53]CAPDU: 80 09 00 00 [18:51:53]Write to MH i2c: E2 08 00 4E 4A 80 09 00 00 00 00 00 00 0A [18:51:53]Write i2c OK [18:51:53]MH_I2C_Read... [18:51:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:53]Read from MH i2c: E2 [18:51:53]MH_I2C_Read... [18:51:53]Read from MH i2c: E2 03 00 [18:51:53]MH_I2C_Read... [18:51:53]Read from MH i2c: E2 03 00 4E 4A 00 90 00 0C [18:51:53]RAPDU: 90 00 [18:51:53]wFMCommunicate OK [18:51:53]SAM_PROTO_ClearQueue done [18:51:53]KKMCreateOFDPacket [18:51:53]OFDProtocolAddRootSTLVToBuf [18:51:53]FM_MakeSignedData [18:51:53]FM_MakeSignedData [18:51:53]SAM_PROTO_SignData [18:51:53]wFMCommunicate request_size=4 [18:51:53]MH_SAM_APDU [18:51:53]CAPDU: 80 0D 01 02 [18:51:53]Write to MH i2c: E2 08 00 4F 4A 80 0D 01 02 00 00 00 00 12 [18:51:53]Write i2c OK [18:51:53]MH_I2C_Read... [18:51:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:53]Read from MH i2c: E2 [18:51:53]MH_I2C_Read... [18:51:53]Read from MH i2c: E2 03 00 [18:51:53]MH_I2C_Read... [18:51:53]Read from MH i2c: E2 03 00 4F 4A 00 90 00 0D [18:51:53]RAPDU: 90 00 [18:51:53]wFMCommunicate OK [18:51:53]wFMCommunicate request_size=255 [18:51:53]MH_SAM_APDU [18:51:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 4F A4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 10 74 01 00 35 04 06 00 6B [18:51:53]Write to MH i2c: E2 02 01 50 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 4F A4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 10 74 01 00 35 04 06 00 6B 00 00 F9 [18:51:53]Write i2c OK [18:51:53]MH_I2C_Read... [18:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:54]Read from MH i2c: E2 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 03 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 03 00 50 4A 00 90 00 0E [18:51:54]RAPDU: 90 00 [18:51:54]wFMCommunicate OK [18:51:54]wFMCommunicate request_size=10 [18:51:54]MH_SAM_APDU [18:51:54]CAPDU: 80 0D 02 02 05 93 F9 D3 28 DC [18:51:54]Write to MH i2c: E2 0D 00 51 4A 80 0D 02 02 05 00 93 F9 D3 28 DC 00 00 82 [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:54]Read from MH i2c: E2 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 03 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 03 00 51 4A 00 90 00 0F [18:51:54]RAPDU: 90 00 [18:51:54]wFMCommunicate OK [18:51:54]wFMCommunicate request_size=4 [18:51:54]MH_SAM_APDU [18:51:54]CAPDU: 80 0D 03 02 [18:51:54]Write to MH i2c: E2 08 00 52 4A 80 0D 03 02 00 00 00 00 17 [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:54]Read from MH i2c: E2 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 0B 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 0B 00 52 4A 00 58 EC 4D 1D 0A FB 67 2F 90 00 61 [18:51:54]RAPDU: 58 EC 4D 1D 0A FB 67 2F 90 00 [18:51:54]wFMCommunicate OK [18:51:54]SAM_PROTO_SignData done [18:51:54]FM_MakeSignedData done [18:51:54]CreateOFDProtocolMessage [18:51:54]wFMCommunicate request_size=4 [18:51:54]MH_SAM_APDU [18:51:54]CAPDU: 80 11 00 00 [18:51:54]Write to MH i2c: E2 08 00 53 4A 80 11 00 00 00 00 00 00 17 [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:54]Read from MH i2c: E2 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 17 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 17 00 53 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 67 [18:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:51:54]wFMCommunicate OK [18:51:54]CreateOFDProtocolMessage done [18:51:54]OFDSenderStorePacket 95248 [18:51:54]StoreOFDPacket docnum=95248 [18:51:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A2 64 07 01 98 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 4F A4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 10 74 01 00 35 04 06 00 6B 93 F9 D3 28 DC 58 EC 4D 1D 0A FB 67 2F [18:51:54]CheckFolder [18:51:54]dirname=/storage/ofd_packets [18:51:54]CheckFolder done [18:51:54]ProducePacketName [18:51:54]name=ofd_packets/00095248 [18:51:54]NVStorageSaveData ofd_packets/00095248 [18:51:54]File name is /storage/ofd_packets/00095248 [18:51:54]Write 301 bytes [18:51:54]NVStorageSaveData done [18:51:54]OFDSenderStorePacket done [18:51:54]KKMCreateOFDPacket done [18:51:54]NVStorageSaveData kkm_last_timestamp [18:51:54]File name is /storage/kkm_last_timestamp [18:51:54]Write 4 bytes [18:51:54]NVStorageSaveData done [18:51:54]ExternCall_PrintAddStr [18:51:54]wPrintStart [18:51:54]Write to MH i2c: 01 00 00 54 4A 9E [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: 01 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: 01 07 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: 01 07 00 54 4A 00 80 00 00 00 FF 0F 33 [18:51:54]RasterBufferAndPrint [18:51:54]line Счет N : (1)196220 [18:51:54]line ИНН: 02508201610067 [18:51:54]line Контрольно-Кассовый Чек [18:51:54]line ПРОДАЖА [18:51:54]line ТРК (МРК, ГНК) : 12 [18:51:54]line Товар: 2710124130 [18:51:54]line Аи-92-К-5 [18:51:54]line 7.950 * 62.90 [18:51:54]line = 500.06 [18:51:54]line НДС 12% НСП 1% [18:51:54]line > о реализуемом товаре [18:51:54]line ИТОГО: 500.06 [18:51:54]line НСП 1% : 4.42 [18:51:54]line НДС 12% : 53.10 [18:51:54]line Наличными: 0.00 [18:51:54]line Безнал.: 500.06 [18:51:54]line Место: АЗС № 6 "Партнер Нефть" [18:51:54]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:51:54]line СНО: Общий режим [18:51:54]line Чек 178 12.03.2024 18:51 [18:51:54]line Смена: 327 ФФД: 1.0 [18:51:54]line ЗНМ: 0300000009 [18:51:54]line РНМ: 0000000000090555 [18:51:54]line Версия ККМ: 001 [18:51:54]line Платежная система: Бакай Банк [18:51:54]line ФМ: 0000000000874811 [18:51:54]line ФД: 95248 [18:51:54]line ФПД: 118283295729884 [18:51:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T185159&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95248&fm=118283295729884&tin=02508201610067®Number=0000000000090555&sum=50006 [18:51:54]written 0, free lines is 4095 [18:51:54]OFD Sender: Processing packet 95248 [packets to send 30, broken 29] [18:51:54]ProducePacketName [18:51:54]name=ofd_packets/00095248 [18:51:54]OFD Sender: To server: pG, [18:51:54]CommunicateWithHost lk.salyk.kg:30040 [18:51:54]ConnectInit lk.salyk.kg [18:51:54]Connected sock=10 [18:51:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A2 64 07 01 98 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 4F A4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 10 74 01 00 35 04 06 00 6B 93 F9 D3 28 DC 58 EC 4D 1D 0A FB 67 2F [18:51:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 44 28 47 00 B1 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 10 74 01 00 F4 03 04 00 A4 4F F0 65 B6 04 01 00 00 04 0F D6 F4 78 A8 76 81 [18:51:54]CommunicateWithHost err = 0 [18:51:54]CheckOFDResponse [18:51:54]1017 (14) - 77093643461234 [18:51:54]1041 (16) - 0000000000874811 [18:51:54]1040 (4) - 95248 [18:51:54]1012 (4) - 12.03.2024 12:50 [18:51:54]1206 (1) - 0 [18:51:54]OFD Sender: Remove packet 95248 [18:51:54]ProducePacketName [18:51:54]name=ofd_packets/00095248 [18:51:54]NVStorageDeleteData [18:51:54]Write to MH i2c: 01 00 00 7E 4A C8 [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: 01 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: 01 07 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: 01 07 00 7E 4A 00 80 00 00 00 65 0D C1 [18:51:54]RasterBufferAndPrint [18:51:54]line [18:51:54]line [18:51:54]line [18:51:54]line [18:51:54]line [18:51:54]written 0, free lines is 3439 [18:51:54]process_action close_receipt done [18:51:54]requested_data is exist [18:51:54]produce_requested_data [18:51:54]requested_item fm.sn is exist - process it [18:51:54]wFMCommunicate request_size=4 [18:51:54]MH_SAM_APDU [18:51:54]CAPDU: 80 11 00 00 [18:51:54]Write to MH i2c: E2 08 00 85 4A 80 11 00 00 00 00 00 00 49 [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:54]Read from MH i2c: E2 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 17 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 17 00 85 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 99 [18:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:51:54]wFMCommunicate OK [18:51:54]requested_item fd.num is exist - process it [18:51:54]SAM_PROTO_GetFieldsCounters [18:51:54]wFMCommunicate request_size=4 [18:51:54]MH_SAM_APDU [18:51:54]CAPDU: 80 13 00 00 [18:51:54]Write to MH i2c: E2 08 00 86 4A 80 13 00 00 00 00 00 00 4C [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:54]Read from MH i2c: E2 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 62 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 62 00 86 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 10 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [18:51:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 10 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:54]wFMCommunicate OK [18:51:54]SAM_PROTO_GetFieldsCounters done [18:51:54]requested_item shift.num is exist - process it [18:51:54]requested_item shift.opened is exist - process it [18:51:54]req_shift_opened [18:51:54]FM_GetShiftState [18:51:54]SAM_PROTO_GetShiftState [18:51:54]wFMCommunicate request_size=4 [18:51:54]MH_SAM_APDU [18:51:54]CAPDU: 80 13 01 00 [18:51:54]Write to MH i2c: E2 08 00 87 4A 80 13 01 00 00 00 00 00 4E [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:55]Read from MH i2c: E2 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: E2 0E 00 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: E2 0E 00 87 4A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C2 [18:51:55]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:51:55]wFMCommunicate OK [18:51:55]SAM_PROTO_GetShiftState done [18:51:55]FM_GetShiftState done [18:51:55]req_shift_opened done [18:51:55]requested_item shift.open_date is exist - process it [18:51:55]req_shift_open_date [18:51:55]req_shift_open_date done [18:51:55]produce_requested_data done [18:51:55]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95248,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:51:55]process_action_free close_receipt [18:51:55]json_value_free [18:51:55]json_value_free done [18:51:55]process_json_proto returns [18:51:55]Send response to host [18:51:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95248,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:51:55]free response buf [18:51:55]execute_script done [18:51:55]execute_script returns [18:51:55]free content buf [18:51:55]Sock 9.Close socket [18:51:55]Sock 9.Thread stoped [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:02]accept exits with 8 [18:52:02]New connection [18:52:02]New thread 3066957156 created [18:52:02]Thread 3066813796 joined [18:52:02]Waiting for new connection... [18:52:02] Sock 8.Parse request [18:52:02]Sock 8.Check first char [18:52:02]Sock 8.First char is OK [18:52:02]request: POST /json_proto HTTP/1.0 [18:52:02]Method: POST [18:52:02]URL: /json_proto [18:52:02]Method is POST - this is cgi request [18:52:02]url: /json_proto [18:52:02]query_string will be loaded in cgi processing [18:52:02]execute_cgi json_proto POST (null) [18:52:02]execute_cgi path=json_proto method=POST [18:52:02]POST find Content-Length [18:52:02]Host: 172.17.62.67:8080 [18:52:02]Content-Length: 682 [18:52:02]Content-Type: application/json [18:52:02] [18:52:02]POST finish read [18:52:02]Found Content-Length = 682 [18:52:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:02]execute_script... [18:52: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)196222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:02]POST & json_proto [18:52:02]process_json_proto [18:52:02]json parsed OK: [18:52:02]protocol is kg_v1.0 [18:52:02]action value=close_receipt [18:52:02]process_action close_receipt [18:52:02]cmd_close_receipt [18:52:02]MH_GetDate [18:52:02]Write to MH i2c: F0 00 00 88 4A C1 [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: F0 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: F0 05 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: F0 05 00 88 4A 00 58 A4 F0 65 17 [18:52:02]GetLastDocTimeStamp 1710269519 [18:52:02]current date 1710269528 [18:52:02]FM_GetShiftState [18:52:02]SAM_PROTO_GetShiftState [18:52:02]wFMCommunicate request_size=4 [18:52:02]MH_SAM_APDU [18:52:02]CAPDU: 80 13 01 00 [18:52:02]Write to MH i2c: E2 08 00 89 4A 80 13 01 00 00 00 00 00 50 [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:02]Read from MH i2c: E2 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 0E 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 0E 00 89 4A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C4 [18:52:02]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:52:02]wFMCommunicate OK [18:52:02]SAM_PROTO_GetShiftState done [18:52:02]FM_GetShiftState done [18:52:02]opened in 1710201976 [18:52:02]opened+sec_in_day 1710288376 [18:52:02]quantity*price = 100010 [18:52:02]sum+1 = 100012 [18:52:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 179 12.03.2024 18:52 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95249 ФПД: 130534062648282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T185208&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95249&fm=130534062648282&tin=02508201610067®Number=0000000000090555&sum=100000 [18:52:03]StoreToDocumentArchive [18:52:03]shift 327 fd 95249 [18:52:03]save to /storage/0327/doc_00095249 [18:52:03]save last doc name /storage/0327/doc_00095249 to /storage/kkm_last_doc_name [18:52:03]save OK [18:52:03]Clear old archive folders... [18:52:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:52:03]tlvbuf is 01A738F0 [18:52:03]SAM_PROTO_ClearQueue [18:52:03]wFMCommunicate request_size=4 [18:52:03]MH_SAM_APDU [18:52:03]CAPDU: 80 09 00 00 [18:52:03]Write to MH i2c: E2 08 00 96 4A 80 09 00 00 00 00 00 00 52 [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 96 4A 00 90 00 54 [18:52:03]RAPDU: 90 00 [18:52:03]wFMCommunicate OK [18:52:03]SAM_PROTO_ClearQueue done [18:52:03]KKMCreateOFDPacket [18:52:03]OFDProtocolAddRootSTLVToBuf [18:52:03]FM_MakeSignedData [18:52:03]FM_MakeSignedData [18:52:03]SAM_PROTO_SignData [18:52:03]wFMCommunicate request_size=4 [18:52:03]MH_SAM_APDU [18:52:03]CAPDU: 80 0D 01 02 [18:52:03]Write to MH i2c: E2 08 00 97 4A 80 0D 01 02 00 00 00 00 5A [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 97 4A 00 90 00 55 [18:52:03]RAPDU: 90 00 [18:52:03]wFMCommunicate OK [18:52:03]wFMCommunicate request_size=255 [18:52:03]MH_SAM_APDU [18:52: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 58 A4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 11 74 01 00 35 04 06 00 76 [18:52:03]Write to MH i2c: E2 02 01 98 4A 80 0D 02 02 FA 00 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 58 A4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 11 74 01 00 35 04 06 00 76 00 00 F9 [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 98 4A 00 90 00 56 [18:52:03]RAPDU: 90 00 [18:52:03]wFMCommunicate OK [18:52:03]wFMCommunicate request_size=10 [18:52:03]MH_SAM_APDU [18:52:03]CAPDU: 80 0D 02 02 05 B8 54 6F 6B DA [18:52:03]Write to MH i2c: E2 0D 00 99 4A 80 0D 02 02 05 00 B8 54 6F 6B DA 00 00 27 [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:03]Read from MH i2c: E2 03 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 99 4A 00 90 00 57 [18:52:03]RAPDU: 90 00 [18:52:03]wFMCommunicate OK [18:52:03]wFMCommunicate request_size=4 [18:52:03]MH_SAM_APDU [18:52:03]CAPDU: 80 0D 03 02 [18:52:03]Write to MH i2c: E2 08 00 9A 4A 80 0D 03 02 00 00 00 00 5F [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 0B 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 0B 00 9A 4A 00 CB 34 93 61 F4 0F 43 63 90 00 FC [18:52:03]RAPDU: CB 34 93 61 F4 0F 43 63 90 00 [18:52:03]wFMCommunicate OK [18:52:03]SAM_PROTO_SignData done [18:52:03]FM_MakeSignedData done [18:52:03]CreateOFDProtocolMessage [18:52:03]wFMCommunicate request_size=4 [18:52:03]MH_SAM_APDU [18:52:03]CAPDU: 80 11 00 00 [18:52:03]Write to MH i2c: E2 08 00 9B 4A 80 11 00 00 00 00 00 00 5F [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 17 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 17 00 9B 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AF [18:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:52:03]wFMCommunicate OK [18:52:03]CreateOFDProtocolMessage done [18:52:03]OFDSenderStorePacket 95249 [18:52:03]StoreOFDPacket docnum=95249 [18:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E0 52 07 01 CD 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 58 A4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 11 74 01 00 35 04 06 00 76 B8 54 6F 6B DA CB 34 93 61 F4 0F 43 63 [18:52:03]CheckFolder [18:52:03]dirname=/storage/ofd_packets [18:52:03]CheckFolder done [18:52:03]ProducePacketName [18:52:03]name=ofd_packets/00095249 [18:52:03]NVStorageSaveData ofd_packets/00095249 [18:52:03]File name is /storage/ofd_packets/00095249 [18:52:03]Write 301 bytes [18:52:03]NVStorageSaveData done [18:52:03]OFDSenderStorePacket done [18:52:03]KKMCreateOFDPacket done [18:52:03]NVStorageSaveData kkm_last_timestamp [18:52:03]File name is /storage/kkm_last_timestamp [18:52:03]Write 4 bytes [18:52:03]NVStorageSaveData done [18:52:03]ExternCall_PrintAddStr [18:52:03]wPrintStart [18:52:03]Write to MH i2c: 01 00 00 9C 4A E6 [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: 01 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: 01 07 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: 01 07 00 9C 4A 00 80 00 00 00 FF 0F 7B [18:52:03]RasterBufferAndPrint [18:52:03]line Счет N : (1)196222 [18:52:03]line ИНН: 02508201610067 [18:52:03]line Контрольно-Кассовый Чек [18:52:03]line ПРОДАЖА [18:52:03]line ТРК (МРК, ГНК) : 41 [18:52:03]line Товар: 2710124500 [18:52:03]line Аи-95-К-5 [18:52:03]line 14.390 * 69.50 [18:52:03]line = 1000.11 [18:52:03]line НДС 12% НСП 1% [18:52:03]line > о реализуемом товаре [18:52:03]line ОКРУГЛЕНИЕ: -0.11 [18:52:03]line ИТОГО: 1000.00 [18:52:03]line Внесено: 1000.00 [18:52:03]line СДАЧА: 0.00 [18:52:03]line НСП 1% : 8.85 [18:52:03]line НДС 12% : 106.21 [18:52:03]line Наличными: 1000.00 [18:52:03]line Безнал.: 0.00 [18:52:03]line Место: АЗС № 6 "Партнер Нефть" [18:52:03]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:52:03]line СНО: Общий режим [18:52:03]line Чек 179 12.03.2024 18:52 [18:52:03]line Смена: 327 ФФД: 1.0 [18:52:03]line ЗНМ: 0300000009 [18:52:03]line РНМ: 0000000000090555 [18:52:03]line Версия ККМ: 001 [18:52:03]line ФМ: 0000000000874811 [18:52:03]line ФД: 95249 [18:52:03]line ФПД: 130534062648282 [18:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T185208&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95249&fm=130534062648282&tin=02508201610067®Number=0000000000090555&sum=100000 [18:52:03]OFD Sender: Processing packet 95249 [packets to send 30, broken 29] [18:52:03]ProducePacketName [18:52:04]name=ofd_packets/00095249 [18:52:04]OFD Sender: To server: pG, [18:52:04]CommunicateWithHost lk.salyk.kg:30040 [18:52:04]ConnectInit lk.salyk.kg [18:52:04]written 0, free lines is 4095 [18:52:04]Connected sock=10 [18:52:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E0 52 07 01 CD 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 58 A4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 11 74 01 00 35 04 06 00 76 B8 54 6F 6B DA CB 34 93 61 F4 0F 43 63 [18:52:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 08 64 47 00 DA F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 11 74 01 00 F4 03 04 00 AD 4F F0 65 B6 04 01 00 00 97 17 67 B6 F7 84 80 8B [18:52:04]CommunicateWithHost err = 0 [18:52:04]CheckOFDResponse [18:52:04]1017 (14) - 77093643461234 [18:52:04]1041 (16) - 0000000000874811 [18:52:04]1040 (4) - 95249 [18:52:04]1012 (4) - 12.03.2024 12:50 [18:52:04]1206 (1) - 0 [18:52:04]OFD Sender: Remove packet 95249 [18:52:04]ProducePacketName [18:52:04]name=ofd_packets/00095249 [18:52:04]NVStorageDeleteData [18:52:04]Write to MH i2c: 01 00 00 C7 4A 11 [18:52:04]Write i2c OK [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: 01 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: 01 07 00 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: 01 07 00 C7 4A 00 80 00 00 00 59 0D FE [18:52:04]RasterBufferAndPrint [18:52:04]line [18:52:04]line [18:52:04]line [18:52:04]line [18:52:04]line [18:52:04]written 0, free lines is 3435 [18:52:04]process_action close_receipt done [18:52:04]requested_data is exist [18:52:04]produce_requested_data [18:52:04]requested_item fm.sn is exist - process it [18:52:04]wFMCommunicate request_size=4 [18:52:04]MH_SAM_APDU [18:52:04]CAPDU: 80 11 00 00 [18:52:04]Write to MH i2c: E2 08 00 CE 4A 80 11 00 00 00 00 00 00 92 [18:52:04]Write i2c OK [18:52:04]MH_I2C_Read... [18:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:04]Read from MH i2c: E2 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: E2 17 00 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: E2 17 00 CE 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E2 [18:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:52:04]wFMCommunicate OK [18:52:04]requested_item fd.num is exist - process it [18:52:04]SAM_PROTO_GetFieldsCounters [18:52:04]wFMCommunicate request_size=4 [18:52:04]MH_SAM_APDU [18:52:04]CAPDU: 80 13 00 00 [18:52:04]Write to MH i2c: E2 08 00 CF 4A 80 13 00 00 00 00 00 00 95 [18:52:04]Write i2c OK [18:52:04]MH_I2C_Read... [18:52:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:04]Read from MH i2c: E2 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: E2 62 00 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: E2 62 00 CF 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 11 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [18:52:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 11 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:04]wFMCommunicate OK [18:52:04]SAM_PROTO_GetFieldsCounters done [18:52:04]requested_item shift.num is exist - process it [18:52:04]requested_item shift.opened is exist - process it [18:52:04]req_shift_opened [18:52:04]FM_GetShiftState [18:52:04]SAM_PROTO_GetShiftState [18:52:04]wFMCommunicate request_size=4 [18:52:04]MH_SAM_APDU [18:52:04]CAPDU: 80 13 01 00 [18:52:04]Write to MH i2c: E2 08 00 D0 4A 80 13 01 00 00 00 00 00 97 [18:52:04]Write i2c OK [18:52:04]MH_I2C_Read... [18:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:04]Read from MH i2c: E2 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: E2 0E 00 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: E2 0E 00 D0 4A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 0B [18:52:04]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:52:04]wFMCommunicate OK [18:52:04]SAM_PROTO_GetShiftState done [18:52:04]FM_GetShiftState done [18:52:04]req_shift_opened done [18:52:04]requested_item shift.open_date is exist - process it [18:52:04]req_shift_open_date [18:52:04]req_shift_open_date done [18:52:04]produce_requested_data done [18:52:04]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95249,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:52:04]process_action_free close_receipt [18:52:04]json_value_free [18:52:04]OFD Sender: No OFD packet to send [18:52:04]json_value_free done [18:52:04]process_json_proto returns [18:52:04]Send response to host [18:52:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95249,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:52:04]free response buf [18:52:04]execute_script done [18:52:04]execute_script returns [18:52:04]free content buf [18:52:04]Sock 8.Close socket [18:52:04]Sock 8.Thread stoped [18:52:09]OFD Sender: No OFD packet to send [18:52:14]OFD Sender: No OFD packet to send [18:52:19]OFD Sender: No OFD packet to send [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:39]OFD Sender: No OFD packet to send [18:53:44]OFD Sender: No OFD packet to send [18:53:49]OFD Sender: No OFD packet to send [18:53:54]OFD Sender: No OFD packet to send [18:53:59]OFD Sender: No OFD packet to send [18:54:04]OFD Sender: No OFD packet to send [18:54:09]OFD Sender: No OFD packet to send [18:54:14]OFD Sender: No OFD packet to send [18:54:19]OFD Sender: No OFD packet to send [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:39]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:32]accept exits with 9 [18:58:32]New connection [18:58:32]New thread 3066813796 created [18:58:32]Thread 3066957156 joined [18:58:32]Waiting for new connection... [18:58:32] Sock 9.Parse request [18:58:32]Sock 9.Check first char [18:58:32]Sock 9.First char is OK [18:58:32]request: POST /json_proto HTTP/1.0 [18:58:32]Method: POST [18:58:32]URL: /json_proto [18:58:32]Method is POST - this is cgi request [18:58:32]url: /json_proto [18:58:32]query_string will be loaded in cgi processing [18:58:32]execute_cgi json_proto POST (null) [18:58:32]execute_cgi path=json_proto method=POST [18:58:32]POST find Content-Length [18:58:32]Host: 172.17.62.67:8080 [18:58:32]Content-Length: 1210 [18:58:32]Content-Type: application/json [18:58:32] [18:58:32]POST finish read [18:58:32]Found Content-Length = 1210 [18:58:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196223\u000A12.03.2024 18:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 200.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 14180.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\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:32]execute_script... [18:58:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196223\u000A12.03.2024 18:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 200.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 14180.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\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:32]POST & json_proto [18:58:32]process_json_proto [18:58:32]json parsed OK: [18:58:32]protocol is kg_v1.0 [18:58:32]action value=print_text [18:58:32]process_action print_text [18:58:32]cmd_print_text [18:58:32]ExternCall_PrintAddStr [18:58:32]wPrintStart [18:58:32]Write to MH i2c: 01 00 00 D1 4A 1B [18:58:32]Write i2c OK [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: 01 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: 01 07 00 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: 01 07 00 D1 4A 00 80 00 00 00 FF 0F B0 [18:58:32]RasterBufferAndPrint [18:58:32]line *****ТОВАРНЫЙ ЧЕК***** [18:58:32]line АЗС 6 [18:58:32]line Партнер нефть [18:58:32]line 02508201610067 [18:58:32]line Кассир : Мыктыбекова И. [18:58:32]line Счет N : (1)196223 [18:58:32]line 12.03.2024 18:52 [18:58:32]line ПРОДАЖА [18:58:32]line ТРК (МРК, ГНК): 51 [18:58:32]line Вид ГСМ : 2710194210 [18:58:32]line ДТ-К-5 [18:58:32]line 200.000 x 70.90 [18:58:32]line ИТОГ: 14180.00 [18:58:32]line Тип оплаты: Талоны: Топливная Карта [18:58:32]line 74820 [18:58:32]line ______________________ [18:58:32]line (подпись) [18:58:32]written 0, free lines is 4095 [18:58:33]Write to MH i2c: 01 00 00 E5 4A 2F [18:58:33]Write i2c OK [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: 01 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: 01 07 00 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: 01 07 00 E5 4A 00 80 00 00 00 63 0E 27 [18:58:33]RasterBufferAndPrint [18:58:33]line [18:58:33]line [18:58:33]line [18:58:33]line [18:58:33]line [18:58:33]written 0, free lines is 3687 [18:58:33]process_action print_text done [18:58:33]requested_data is exist [18:58:33]produce_requested_data [18:58:33]requested_item fm.sn is exist - process it [18:58:33]wFMCommunicate request_size=4 [18:58:33]MH_SAM_APDU [18:58:33]CAPDU: 80 11 00 00 [18:58:33]Write to MH i2c: E2 08 00 EC 4A 80 11 00 00 00 00 00 00 B0 [18:58:33]Write i2c OK [18:58:33]MH_I2C_Read... [18:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:33]Read from MH i2c: E2 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 17 00 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 17 00 EC 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 00 [18:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:58:33]wFMCommunicate OK [18:58:33]requested_item fd.num is exist - process it [18:58:33]SAM_PROTO_GetFieldsCounters [18:58:33]wFMCommunicate request_size=4 [18:58:33]MH_SAM_APDU [18:58:33]CAPDU: 80 13 00 00 [18:58:33]Write to MH i2c: E2 08 00 ED 4A 80 13 00 00 00 00 00 00 B3 [18:58:33]Write i2c OK [18:58:33]MH_I2C_Read... [18:58:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:33]Read from MH i2c: E2 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 62 00 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 62 00 ED 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 11 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [18:58:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 11 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:33]wFMCommunicate OK [18:58:33]SAM_PROTO_GetFieldsCounters done [18:58:33]requested_item shift.num is exist - process it [18:58:33]requested_item shift.opened is exist - process it [18:58:33]req_shift_opened [18:58:33]FM_GetShiftState [18:58:33]SAM_PROTO_GetShiftState [18:58:33]wFMCommunicate request_size=4 [18:58:33]MH_SAM_APDU [18:58:33]CAPDU: 80 13 01 00 [18:58:33]Write to MH i2c: E2 08 00 EE 4A 80 13 01 00 00 00 00 00 B5 [18:58:33]Write i2c OK [18:58:33]MH_I2C_Read... [18:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:33]Read from MH i2c: E2 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 0E 00 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 0E 00 EE 4A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 29 [18:58:33]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [18:58:33]wFMCommunicate OK [18:58:33]SAM_PROTO_GetShiftState done [18:58:33]FM_GetShiftState done [18:58:33]req_shift_opened done [18:58:33]requested_item shift.open_date is exist - process it [18:58:33]req_shift_open_date [18:58:33]req_shift_open_date done [18:58:33]produce_requested_data done [18:58:33]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95249,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [18:58:33]process_action_free print_text [18:58:33]json_value_free [18:58:33]json_value_free done [18:58:33]process_json_proto returns [18:58:33]Send response to host [18:58:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95249,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [18:58:33]free response buf [18:58:33]execute_script done [18:58:33]execute_script returns [18:58:33]free content buf [18:58:33]Sock 9.Close socket [18:58:33]Sock 9.Thread stoped [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:14]accept exits with 10 [19:01:14]New connection [19:01:14]New thread 3066957156 created [19:01:14]Thread 3066813796 joined [19:01:14]Waiting for new connection... [19:01:14] Sock 10.Parse request [19:01:14]Sock 10.Check first char [19:01:14]Sock 10.First char is OK [19:01:14]request: POST /json_proto HTTP/1.0 [19:01:14]Method: POST [19:01:14]URL: /json_proto [19:01:14]Method is POST - this is cgi request [19:01:14]url: /json_proto [19:01:14]query_string will be loaded in cgi processing [19:01:14]execute_cgi json_proto POST (null) [19:01:14]execute_cgi path=json_proto method=POST [19:01:14]POST find Content-Length [19:01:14]Host: 172.17.62.67:8080 [19:01:14]Content-Length: 675 [19:01:14]Content-Type: application/json [19:01:14] [19:01:14]POST finish read [19:01:14]Found Content-Length = 675 [19:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:14]execute_script... [19:01: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)196224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:14]POST & json_proto [19:01:14]process_json_proto [19:01:14]json parsed OK: [19:01:14]protocol is kg_v1.0 [19:01:14]action value=close_receipt [19:01:14]process_action close_receipt [19:01:14]cmd_close_receipt [19:01:14]MH_GetDate [19:01:14]Write to MH i2c: F0 00 00 EF 4A 28 [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: F0 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: F0 05 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: F0 05 00 EF 4A 00 80 A6 F0 65 A8 [19:01:14]GetLastDocTimeStamp 1710269528 [19:01:14]current date 1710270080 [19:01:14]FM_GetShiftState [19:01:14]SAM_PROTO_GetShiftState [19:01:14]wFMCommunicate request_size=4 [19:01:14]MH_SAM_APDU [19:01:14]CAPDU: 80 13 01 00 [19:01:14]Write to MH i2c: E2 08 00 F0 4A 80 13 01 00 00 00 00 00 B7 [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:14]Read from MH i2c: E2 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 0E 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 0E 00 F0 4A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 2B [19:01:14]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [19:01:14]wFMCommunicate OK [19:01:14]SAM_PROTO_GetShiftState done [19:01:14]FM_GetShiftState done [19:01:14]opened in 1710201976 [19:01:14]opened+sec_in_day 1710288376 [19:01:14]quantity*price = 100003 [19:01:14]sum+1 = 100005 [19:01:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 180 12.03.2024 19:01 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95250 ФПД: 151525601551495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T190120&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95250&fm=151525601551495&tin=02508201610067®Number=0000000000090555&sum=100000 [19:01:15]StoreToDocumentArchive [19:01:15]shift 327 fd 95250 [19:01:15]save to /storage/0327/doc_00095250 [19:01:15]save last doc name /storage/0327/doc_00095250 to /storage/kkm_last_doc_name [19:01:15]save OK [19:01:15]Clear old archive folders... [19:01:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:01:15]tlvbuf is B6F59950 [19:01:15]SAM_PROTO_ClearQueue [19:01:15]wFMCommunicate request_size=4 [19:01:15]MH_SAM_APDU [19:01:15]CAPDU: 80 09 00 00 [19:01:15]Write to MH i2c: E2 08 00 FD 4A 80 09 00 00 00 00 00 00 B9 [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:15]Read from MH i2c: E2 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 FD 4A 00 90 00 BB [19:01:15]RAPDU: 90 00 [19:01:15]wFMCommunicate OK [19:01:15]SAM_PROTO_ClearQueue done [19:01:15]KKMCreateOFDPacket [19:01:15]OFDProtocolAddRootSTLVToBuf [19:01:15]FM_MakeSignedData [19:01:15]FM_MakeSignedData [19:01:15]SAM_PROTO_SignData [19:01:15]wFMCommunicate request_size=4 [19:01:15]MH_SAM_APDU [19:01:15]CAPDU: 80 0D 01 02 [19:01:15]Write to MH i2c: E2 08 00 FE 4A 80 0D 01 02 00 00 00 00 C1 [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:15]OFD Sender: No OFD packet to send [19:01:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:15]Read from MH i2c: E2 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 FE 4A 00 90 00 BC [19:01:15]RAPDU: 90 00 [19:01:15]wFMCommunicate OK [19:01:15]wFMCommunicate request_size=255 [19:01:15]MH_SAM_APDU [19:01:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 80 A6 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 12 74 01 00 35 04 06 00 [19:01:15]Write to MH i2c: E2 02 01 FF 4A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 80 A6 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 12 74 01 00 35 04 06 00 00 00 65 [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:15]Read from MH i2c: E2 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 FF 4A 00 90 00 BD [19:01:15]RAPDU: 90 00 [19:01:15]wFMCommunicate OK [19:01:15]wFMCommunicate request_size=11 [19:01:15]MH_SAM_APDU [19:01:15]CAPDU: 80 0D 02 02 06 89 CF CD A7 A4 87 [19:01:15]Write to MH i2c: E2 0E 00 00 4B 80 0D 02 02 06 00 89 CF CD A7 A4 87 00 00 C8 [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:15]Read from MH i2c: E2 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 00 4B 00 90 00 BF [19:01:15]RAPDU: 90 00 [19:01:15]wFMCommunicate OK [19:01:15]wFMCommunicate request_size=4 [19:01:15]MH_SAM_APDU [19:01:15]CAPDU: 80 0D 03 02 [19:01:15]Write to MH i2c: E2 08 00 01 4B 80 0D 03 02 00 00 00 00 C7 [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:15]Read from MH i2c: E2 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 0B 00 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 0B 00 01 4B 00 FC AA 4C 6A 80 50 D5 A7 90 00 70 [19:01:15]RAPDU: FC AA 4C 6A 80 50 D5 A7 90 00 [19:01:15]wFMCommunicate OK [19:01:15]SAM_PROTO_SignData done [19:01:15]FM_MakeSignedData done [19:01:15]CreateOFDProtocolMessage [19:01:15]wFMCommunicate request_size=4 [19:01:15]MH_SAM_APDU [19:01:15]CAPDU: 80 11 00 00 [19:01:15]Write to MH i2c: E2 08 00 02 4B 80 11 00 00 00 00 00 00 C7 [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:15]Read from MH i2c: E2 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 17 00 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 17 00 02 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 17 [19:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:01:15]wFMCommunicate OK [19:01:15]CreateOFDProtocolMessage done [19:01:15]OFDSenderStorePacket 95250 [19:01:15]StoreOFDPacket docnum=95250 [19:01:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 F7 0F 08 01 A4 87 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 80 A6 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 12 74 01 00 35 04 06 00 89 CF CD A7 A4 87 FC AA 4C 6A 80 50 D5 A7 [19:01:15]CheckFolder [19:01:15]dirname=/storage/ofd_packets [19:01:15]CheckFolder done [19:01:15]ProducePacketName [19:01:15]name=ofd_packets/00095250 [19:01:15]NVStorageSaveData ofd_packets/00095250 [19:01:15]File name is /storage/ofd_packets/00095250 [19:01:15]Write 302 bytes [19:01:15]NVStorageSaveData done [19:01:15]OFDSenderStorePacket done [19:01:15]KKMCreateOFDPacket done [19:01:15]NVStorageSaveData kkm_last_timestamp [19:01:15]File name is /storage/kkm_last_timestamp [19:01:15]Write 4 bytes [19:01:15]NVStorageSaveData done [19:01:15]ExternCall_PrintAddStr [19:01:15]wPrintStart [19:01:15]Write to MH i2c: 01 00 00 03 4B 4E [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: 01 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: 01 07 00 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: 01 07 00 03 4B 00 80 00 00 00 FF 0F E3 [19:01:15]RasterBufferAndPrint [19:01:15]line Счет N : (1)196224 [19:01:15]line ИНН: 02508201610067 [19:01:15]line Контрольно-Кассовый Чек [19:01:15]line ПРОДАЖА [19:01:15]line ТРК (МРК, ГНК) : 23 [19:01:15]line Товар: 2710124130 [19:01:15]line SUPER 92-К-5 [19:01:15]line 15.650 * 63.90 [19:01:15]line = 1000.04 [19:01:15]line НДС 12% НСП 1% [19:01:15]line > о реализуемом товаре [19:01:15]line ОКРУГЛЕНИЕ: -0.04 [19:01:15]line ИТОГО: 1000.00 [19:01:15]line Внесено: 1000.00 [19:01:15]line СДАЧА: 0.00 [19:01:15]line НСП 1% : 8.85 [19:01:15]line НДС 12% : 106.20 [19:01:15]line Наличными: 1000.00 [19:01:15]line Безнал.: 0.00 [19:01:15]line Место: АЗС № 6 "Партнер Нефть" [19:01:15]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:01:15]line СНО: Общий режим [19:01:15]line Чек 180 12.03.2024 19:01 [19:01:15]line Смена: 327 ФФД: 1.0 [19:01:15]line ЗНМ: 0300000009 [19:01:15]line РНМ: 0000000000090555 [19:01:15]line Версия ККМ: 001 [19:01:16]line ФМ: 0000000000874811 [19:01:16]line ФД: 95250 [19:01:16]line ФПД: 151525601551495 [19:01:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T190120&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95250&fm=151525601551495&tin=02508201610067®Number=0000000000090555&sum=100000 [19:01:16]OFD Sender: Processing packet 95250 [packets to send 30, broken 29] [19:01:16]ProducePacketName [19:01:16]name=ofd_packets/00095250 [19:01:16]OFD Sender: To server: pG, [19:01:16]CommunicateWithHost lk.salyk.kg:30040 [19:01:16]ConnectInit lk.salyk.kg [19:01:16]written 0, free lines is 4095 [19:01:16]Connected sock=9 [19:01:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 F7 0F 08 01 A4 87 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 80 A6 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 12 74 01 00 35 04 06 00 89 CF CD A7 A4 87 FC AA 4C 6A 80 50 D5 A7 [19:01:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 21 4B 47 00 EF B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 12 74 01 00 F4 03 04 00 D6 51 F0 65 B6 04 01 00 00 A6 5E 53 03 A4 D1 20 A9 [19:01:16]CommunicateWithHost err = 0 [19:01:16]CheckOFDResponse [19:01:16]1017 (14) - 77093643461234 [19:01:16]1041 (16) - 0000000000874811 [19:01:16]1040 (4) - 95250 [19:01:16]1012 (4) - 12.03.2024 13:00 [19:01:16]1206 (1) - 0 [19:01:16]OFD Sender: Remove packet 95250 [19:01:16]ProducePacketName [19:01:16]name=ofd_packets/00095250 [19:01:16]NVStorageDeleteData [19:01:16]Write to MH i2c: 01 00 00 2E 4B 79 [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: 01 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: 01 07 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: 01 07 00 2E 4B 00 80 00 00 00 4F 0D 5C [19:01:16]RasterBufferAndPrint [19:01:16]line [19:01:16]line [19:01:16]line [19:01:16]line [19:01:16]line [19:01:16]written 0, free lines is 3413 [19:01:16]process_action close_receipt done [19:01:16]requested_data is exist [19:01:16]produce_requested_data [19:01:16]requested_item fm.sn is exist - process it [19:01:16]wFMCommunicate request_size=4 [19:01:16]MH_SAM_APDU [19:01:16]CAPDU: 80 11 00 00 [19:01:16]Write to MH i2c: E2 08 00 35 4B 80 11 00 00 00 00 00 00 FA [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 17 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 17 00 35 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4A [19:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:01:16]wFMCommunicate OK [19:01:16]requested_item fd.num is exist - process it [19:01:16]SAM_PROTO_GetFieldsCounters [19:01:16]wFMCommunicate request_size=4 [19:01:16]MH_SAM_APDU [19:01:16]CAPDU: 80 13 00 00 [19:01:16]Write to MH i2c: E2 08 00 36 4B 80 13 00 00 00 00 00 00 FD [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 62 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 62 00 36 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 12 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [19:01:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 12 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:16]wFMCommunicate OK [19:01:16]SAM_PROTO_GetFieldsCounters done [19:01:16]requested_item shift.num is exist - process it [19:01:16]requested_item shift.opened is exist - process it [19:01:16]req_shift_opened [19:01:16]FM_GetShiftState [19:01:16]SAM_PROTO_GetShiftState [19:01:16]wFMCommunicate request_size=4 [19:01:16]MH_SAM_APDU [19:01:16]CAPDU: 80 13 01 00 [19:01:16]Write to MH i2c: E2 08 00 37 4B 80 13 01 00 00 00 00 00 FF [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 0E 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 0E 00 37 4B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 73 [19:01:16]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [19:01:16]wFMCommunicate OK [19:01:16]SAM_PROTO_GetShiftState done [19:01:16]FM_GetShiftState done [19:01:16]req_shift_opened done [19:01:16]requested_item shift.open_date is exist - process it [19:01:16]req_shift_open_date [19:01:16]req_shift_open_date done [19:01:16]produce_requested_data done [19:01:16]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95250,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [19:01:16]process_action_free close_receipt [19:01:16]json_value_free [19:01:16]json_value_free done [19:01:16]process_json_proto returns [19:01:16]Send response to host [19:01:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95250,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [19:01:16]free response buf [19:01:16]execute_script done [19:01:16]execute_script returns [19:01:16]free content buf [19:01:16]Sock 10.Close socket [19:01:16]Sock 10.Thread stoped [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:02:58]accept exits with 8 [19:02:58]New connection [19:02:58]New thread 3066813796 created [19:02:58]Thread 3066957156 joined [19:02:58]Waiting for new connection... [19:02:58] Sock 8.Parse request [19:02:58]Sock 8.Check first char [19:02:58]Sock 8.First char is OK [19:02:58]request: POST /json_proto HTTP/1.0 [19:02:58]Method: POST [19:02:58]URL: /json_proto [19:02:58]Method is POST - this is cgi request [19:02:58]url: /json_proto [19:02:58]query_string will be loaded in cgi processing [19:02:58]execute_cgi json_proto POST (null) [19:02:58]execute_cgi path=json_proto method=POST [19:02:58]POST find Content-Length [19:02:58]Host: 172.17.62.67:8080 [19:02:58]Content-Length: 1210 [19:02:58]Content-Type: application/json [19:02:58] [19:02:58]POST finish read [19:02:58]Found Content-Length = 1210 [19:02:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196225\u000A12.03.2024 18:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A24144\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:58]execute_script... [19:02:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196225\u000A12.03.2024 18:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A24144\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:58]POST & json_proto [19:02:58]process_json_proto [19:02:58]json parsed OK: [19:02:58]protocol is kg_v1.0 [19:02:58]action value=print_text [19:02:58]process_action print_text [19:02:58]cmd_print_text [19:02:58]ExternCall_PrintAddStr [19:02:58]wPrintStart [19:02:58]Write to MH i2c: 01 00 00 38 4B 83 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 07 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 07 00 38 4B 00 80 00 00 00 FF 0F 18 [19:02:58]RasterBufferAndPrint [19:02:58]line *****ТОВАРНЫЙ ЧЕК***** [19:02:58]line АЗС 6 [19:02:58]line Партнер нефть [19:02:58]line 02508201610067 [19:02:58]line Кассир : Мыктыбекова И. [19:02:58]line Счет N : (1)196225 [19:02:58]line 12.03.2024 18:57 [19:02:58]line ПРОДАЖА [19:02:58]line ТРК (МРК, ГНК): 42 [19:02:58]line Вид ГСМ : 2710124130 [19:02:58]line Аи-92-К-5 [19:02:58]line 10.000 x 62.90 [19:02:58]line ИТОГ: 629.00 [19:02:58]line Тип оплаты: Талоны: Топливная Карта [19:02:58]line 24144 [19:02:58]line ______________________ [19:02:58]line (подпись) [19:02:58]written 0, free lines is 4095 [19:02:58]Write to MH i2c: 01 00 00 4C 4B 97 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 07 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 07 00 4C 4B 00 80 00 00 00 64 0E 90 [19:02:58]RasterBufferAndPrint [19:02:58]line [19:02:58]line [19:02:58]line [19:02:58]line [19:02:58]line [19:02:58]written 0, free lines is 3688 [19:02:58]process_action print_text done [19:02:58]requested_data is exist [19:02:58]produce_requested_data [19:02:58]requested_item fm.sn is exist - process it [19:02:58]wFMCommunicate request_size=4 [19:02:58]MH_SAM_APDU [19:02:58]CAPDU: 80 11 00 00 [19:02:58]Write to MH i2c: E2 08 00 53 4B 80 11 00 00 00 00 00 00 18 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:58]Read from MH i2c: E2 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 17 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 17 00 53 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 68 [19:02:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:02:58]wFMCommunicate OK [19:02:58]requested_item fd.num is exist - process it [19:02:58]SAM_PROTO_GetFieldsCounters [19:02:58]wFMCommunicate request_size=4 [19:02:58]MH_SAM_APDU [19:02:58]CAPDU: 80 13 00 00 [19:02:58]Write to MH i2c: E2 08 00 54 4B 80 13 00 00 00 00 00 00 1B [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:58]Read from MH i2c: E2 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 62 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 62 00 54 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 12 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [19:02:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 12 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:58]wFMCommunicate OK [19:02:58]SAM_PROTO_GetFieldsCounters done [19:02:58]requested_item shift.num is exist - process it [19:02:58]requested_item shift.opened is exist - process it [19:02:58]req_shift_opened [19:02:58]FM_GetShiftState [19:02:58]SAM_PROTO_GetShiftState [19:02:58]wFMCommunicate request_size=4 [19:02:58]MH_SAM_APDU [19:02:58]CAPDU: 80 13 01 00 [19:02:58]Write to MH i2c: E2 08 00 55 4B 80 13 01 00 00 00 00 00 1D [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:58]Read from MH i2c: E2 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 0E 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 0E 00 55 4B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 91 [19:02:58]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [19:02:58]wFMCommunicate OK [19:02:58]SAM_PROTO_GetShiftState done [19:02:58]FM_GetShiftState done [19:02:58]req_shift_opened done [19:02:58]requested_item shift.open_date is exist - process it [19:02:58]req_shift_open_date [19:02:58]req_shift_open_date done [19:02:58]produce_requested_data done [19:02:58]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95250,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [19:02:58]process_action_free print_text [19:02:58]json_value_free [19:02:58]json_value_free done [19:02:58]process_json_proto returns [19:02:58]Send response to host [19:02:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95250,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [19:02:58]free response buf [19:02:58]execute_script done [19:02:58]execute_script returns [19:02:58]free content buf [19:02:58]Sock 8.Close socket [19:02:58]Sock 8.Thread stoped [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:54]accept exits with 9 [19:10:54]New connection [19:10:54]New thread 3066957156 created [19:10:54]Thread 3066813796 joined [19:10:54]Waiting for new connection... [19:10:54] Sock 9.Parse request [19:10:54]Sock 9.Check first char [19:10:54]Sock 9.First char is OK [19:10:54]request: POST /json_proto HTTP/1.0 [19:10:54]Method: POST [19:10:54]URL: /json_proto [19:10:54]Method is POST - this is cgi request [19:10:54]url: /json_proto [19:10:54]query_string will be loaded in cgi processing [19:10:54]execute_cgi json_proto POST (null) [19:10:54]execute_cgi path=json_proto method=POST [19:10:54]POST find Content-Length [19:10:54]Host: 172.17.62.67:8080 [19:10:54]Content-Length: 682 [19:10:54]Content-Type: application/json [19:10:54] [19:10:54]POST finish read [19:10:54]Found Content-Length = 682 [19:10:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:54]execute_script... [19:10: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)196226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:54]POST & json_proto [19:10:54]process_json_proto [19:10:54]json parsed OK: [19:10:54]protocol is kg_v1.0 [19:10:54]action value=close_receipt [19:10:54]process_action close_receipt [19:10:54]cmd_close_receipt [19:10:54]MH_GetDate [19:10:54]Write to MH i2c: F0 00 00 56 4B 90 [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: F0 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: F0 05 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: F0 05 00 56 4B 00 C4 A8 F0 65 56 [19:10:54]GetLastDocTimeStamp 1710270080 [19:10:54]current date 1710270660 [19:10:54]FM_GetShiftState [19:10:54]SAM_PROTO_GetShiftState [19:10:54]wFMCommunicate request_size=4 [19:10:54]MH_SAM_APDU [19:10:54]CAPDU: 80 13 01 00 [19:10:54]Write to MH i2c: E2 08 00 57 4B 80 13 01 00 00 00 00 00 1F [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:54]Read from MH i2c: E2 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 0E 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 0E 00 57 4B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 93 [19:10:54]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [19:10:54]wFMCommunicate OK [19:10:54]SAM_PROTO_GetShiftState done [19:10:54]FM_GetShiftState done [19:10:54]opened in 1710201976 [19:10:54]opened+sec_in_day 1710288376 [19:10:54]quantity*price = 100010 [19:10:54]sum+1 = 100012 [19:10:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 181 12.03.2024 19:11 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95251 ФПД: 231776691332417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T191101&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95251&fm=231776691332417&tin=02508201610067®Number=0000000000090555&sum=100000 [19:10:55]StoreToDocumentArchive [19:10:55]shift 327 fd 95251 [19:10:55]save to /storage/0327/doc_00095251 [19:10:55]save last doc name /storage/0327/doc_00095251 to /storage/kkm_last_doc_name [19:10:55]save OK [19:10:55]Clear old archive folders... [19:10:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:55]tlvbuf is 01B3CE80 [19:10:55]SAM_PROTO_ClearQueue [19:10:55]wFMCommunicate request_size=4 [19:10:55]MH_SAM_APDU [19:10:55]CAPDU: 80 09 00 00 [19:10:55]Write to MH i2c: E2 08 00 64 4B 80 09 00 00 00 00 00 00 21 [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:55]Read from MH i2c: E2 03 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 03 00 64 4B 00 90 00 23 [19:10:55]RAPDU: 90 00 [19:10:55]wFMCommunicate OK [19:10:55]SAM_PROTO_ClearQueue done [19:10:55]KKMCreateOFDPacket [19:10:55]OFDProtocolAddRootSTLVToBuf [19:10:55]FM_MakeSignedData [19:10:55]FM_MakeSignedData [19:10:55]SAM_PROTO_SignData [19:10:55]wFMCommunicate request_size=4 [19:10:55]MH_SAM_APDU [19:10:55]CAPDU: 80 0D 01 02 [19:10:55]Write to MH i2c: E2 08 00 65 4B 80 0D 01 02 00 00 00 00 29 [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 03 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 03 00 65 4B 00 90 00 24 [19:10:55]RAPDU: 90 00 [19:10:55]wFMCommunicate OK [19:10:55]wFMCommunicate request_size=255 [19:10:55]MH_SAM_APDU [19:10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 C5 A8 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 13 74 01 00 35 04 06 00 D2 [19:10:55]Write to MH i2c: E2 02 01 66 4B 80 0D 02 02 FA 00 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 C5 A8 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 13 74 01 00 35 04 06 00 D2 00 00 99 [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 03 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 03 00 66 4B 00 90 00 25 [19:10:55]RAPDU: 90 00 [19:10:55]wFMCommunicate OK [19:10:55]wFMCommunicate request_size=10 [19:10:55]MH_SAM_APDU [19:10:55]CAPDU: 80 0D 02 02 05 CC B7 5A A5 41 [19:10:55]Write to MH i2c: E2 0D 00 67 4B 80 0D 02 02 05 00 CC B7 5A A5 41 00 00 F9 [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 03 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 03 00 67 4B 00 90 00 26 [19:10:55]RAPDU: 90 00 [19:10:55]wFMCommunicate OK [19:10:55]wFMCommunicate request_size=4 [19:10:55]MH_SAM_APDU [19:10:55]CAPDU: 80 0D 03 02 [19:10:55]Write to MH i2c: E2 08 00 68 4B 80 0D 03 02 00 00 00 00 2E [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 0B 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 0B 00 68 4B 00 AD 05 6E 40 B4 AE D1 9D 90 00 5F [19:10:55]RAPDU: AD 05 6E 40 B4 AE D1 9D 90 00 [19:10:55]wFMCommunicate OK [19:10:55]SAM_PROTO_SignData done [19:10:55]FM_MakeSignedData done [19:10:55]CreateOFDProtocolMessage [19:10:55]wFMCommunicate request_size=4 [19:10:55]MH_SAM_APDU [19:10:55]CAPDU: 80 11 00 00 [19:10:55]Write to MH i2c: E2 08 00 69 4B 80 11 00 00 00 00 00 00 2E [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 17 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 17 00 69 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7E [19:10:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:10:55]wFMCommunicate OK [19:10:55]CreateOFDProtocolMessage done [19:10:55]OFDSenderStorePacket 95251 [19:10:55]StoreOFDPacket docnum=95251 [19:10:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AC 28 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 C5 A8 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 13 74 01 00 35 04 06 00 D2 CC B7 5A A5 41 AD 05 6E 40 B4 AE D1 9D [19:10:55]CheckFolder [19:10:55]dirname=/storage/ofd_packets [19:10:55]CheckFolder done [19:10:55]ProducePacketName [19:10:55]name=ofd_packets/00095251 [19:10:55]NVStorageSaveData ofd_packets/00095251 [19:10:55]File name is /storage/ofd_packets/00095251 [19:10:55]Write 301 bytes [19:10:55]NVStorageSaveData done [19:10:55]OFDSenderStorePacket done [19:10:55]KKMCreateOFDPacket done [19:10:55]NVStorageSaveData kkm_last_timestamp [19:10:55]File name is /storage/kkm_last_timestamp [19:10:55]Write 4 bytes [19:10:55]NVStorageSaveData done [19:10:55]ExternCall_PrintAddStr [19:10:55]wPrintStart [19:10:55]Write to MH i2c: 01 00 00 6A 4B B5 [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: 01 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: 01 07 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: 01 07 00 6A 4B 00 80 00 00 00 FF 0F 4A [19:10:55]RasterBufferAndPrint [19:10:55]line Счет N : (1)196226 [19:10:55]line ИНН: 02508201610067 [19:10:55]line Контрольно-Кассовый Чек [19:10:55]line ПРОДАЖА [19:10:55]line ТРК (МРК, ГНК) : 31 [19:10:55]line Товар: 2710124500 [19:10:55]line Аи-95-К-5 [19:10:55]line 14.390 * 69.50 [19:10:55]line = 1000.11 [19:10:55]line НДС 12% НСП 1% [19:10:55]line > о реализуемом товаре [19:10:55]line ОКРУГЛЕНИЕ: -0.11 [19:10:55]line ИТОГО: 1000.00 [19:10:55]line Внесено: 1000.00 [19:10:55]line СДАЧА: 0.00 [19:10:55]line НСП 1% : 8.85 [19:10:55]line НДС 12% : 106.21 [19:10:55]line Наличными: 1000.00 [19:10:55]line Безнал.: 0.00 [19:10:55]line Место: АЗС № 6 "Партнер Нефть" [19:10:55]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:10:55]line СНО: Общий режим [19:10:55]line Чек 181 12.03.2024 19:11 [19:10:55]line Смена: 327 ФФД: 1.0 [19:10:55]line ЗНМ: 0300000009 [19:10:55]line РНМ: 0000000000090555 [19:10:55]line Версия ККМ: 001 [19:10:55]line ФМ: 0000000000874811 [19:10:55]line ФД: 95251 [19:10:55]line ФПД: 231776691332417 [19:10:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T191101&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95251&fm=231776691332417&tin=02508201610067®Number=0000000000090555&sum=100000 [19:10:56]written 0, free lines is 4095 [19:10:56]OFD Sender: Processing packet 95251 [packets to send 30, broken 29] [19:10:56]ProducePacketName [19:10:56]name=ofd_packets/00095251 [19:10:56]OFD Sender: To server: pG, [19:10:56]CommunicateWithHost lk.salyk.kg:30040 [19:10:56]ConnectInit lk.salyk.kg [19:10:56]Connected sock=10 [19:10:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AC 28 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 C5 A8 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 13 74 01 00 35 04 06 00 D2 CC B7 5A A5 41 AD 05 6E 40 B4 AE D1 9D [19:10:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 CA FF 47 00 C2 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 13 74 01 00 F4 03 04 00 1A 54 F0 65 B6 04 01 00 00 06 4B 16 FB AF D5 B4 70 [19:10:56]CommunicateWithHost err = 0 [19:10:56]CheckOFDResponse [19:10:56]1017 (14) - 77093643461234 [19:10:56]1041 (16) - 0000000000874811 [19:10:56]1040 (4) - 95251 [19:10:56]1012 (4) - 12.03.2024 13:09 [19:10:56]1206 (1) - 0 [19:10:56]OFD Sender: Remove packet 95251 [19:10:56]ProducePacketName [19:10:56]name=ofd_packets/00095251 [19:10:56]NVStorageDeleteData [19:10:56]Write to MH i2c: 01 00 00 95 4B E0 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: 01 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: 01 07 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: 01 07 00 95 4B 00 80 00 00 00 4B 0D BF [19:10:56]RasterBufferAndPrint [19:10:56]line [19:10:56]line [19:10:56]line [19:10:56]line [19:10:56]line [19:10:56]written 0, free lines is 3411 [19:10:56]process_action close_receipt done [19:10:56]requested_data is exist [19:10:56]produce_requested_data [19:10:56]requested_item fm.sn is exist - process it [19:10:56]wFMCommunicate request_size=4 [19:10:56]MH_SAM_APDU [19:10:56]CAPDU: 80 11 00 00 [19:10:56]Write to MH i2c: E2 08 00 9C 4B 80 11 00 00 00 00 00 00 61 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 17 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 17 00 9C 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B1 [19:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:10:56]wFMCommunicate OK [19:10:56]requested_item fd.num is exist - process it [19:10:56]SAM_PROTO_GetFieldsCounters [19:10:56]wFMCommunicate request_size=4 [19:10:56]MH_SAM_APDU [19:10:56]CAPDU: 80 13 00 00 [19:10:56]Write to MH i2c: E2 08 00 9D 4B 80 13 00 00 00 00 00 00 64 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:57]Read from MH i2c: E2 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 62 00 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 62 00 9D 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 13 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [19:10:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 13 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:57]wFMCommunicate OK [19:10:57]SAM_PROTO_GetFieldsCounters done [19:10:57]requested_item shift.num is exist - process it [19:10:57]requested_item shift.opened is exist - process it [19:10:57]req_shift_opened [19:10:57]FM_GetShiftState [19:10:57]SAM_PROTO_GetShiftState [19:10:57]wFMCommunicate request_size=4 [19:10:57]MH_SAM_APDU [19:10:57]CAPDU: 80 13 01 00 [19:10:57]Write to MH i2c: E2 08 00 9E 4B 80 13 01 00 00 00 00 00 66 [19:10:57]Write i2c OK [19:10:57]MH_I2C_Read... [19:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:57]Read from MH i2c: E2 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 0E 00 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 0E 00 9E 4B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 DA [19:10:57]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [19:10:57]wFMCommunicate OK [19:10:57]SAM_PROTO_GetShiftState done [19:10:57]FM_GetShiftState done [19:10:57]req_shift_opened done [19:10:57]requested_item shift.open_date is exist - process it [19:10:57]req_shift_open_date [19:10:57]req_shift_open_date done [19:10:57]produce_requested_data done [19:10:57]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95251,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [19:10:57]process_action_free close_receipt [19:10:57]json_value_free [19:10:57]json_value_free done [19:10:57]process_json_proto returns [19:10:57]Send response to host [19:10:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95251,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [19:10:57]free response buf [19:10:57]execute_script done [19:10:57]execute_script returns [19:10:57]free content buf [19:10:57]Sock 9.Close socket [19:10:57]Sock 9.Thread stoped [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:32]OFD Sender: No OFD packet to send [19:15:37]OFD Sender: No OFD packet to send [19:15:42]OFD Sender: No OFD packet to send [19:15:47]OFD Sender: No OFD packet to send [19:15:52]OFD Sender: No OFD packet to send [19:15:57]OFD Sender: No OFD packet to send [19:16:02]OFD Sender: No OFD packet to send [19:16:07]OFD Sender: No OFD packet to send [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:52]OFD Sender: No OFD packet to send [19:17:57]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:24]accept exits with 8 [19:39:24]New connection [19:39:24]New thread 3066813796 created [19:39:24]Thread 3066957156 joined [19:39:24]Waiting for new connection... [19:39:24] Sock 8.Parse request [19:39:24]Sock 8.Check first char [19:39:24]Sock 8.First char is OK [19:39:24]request: POST /json_proto HTTP/1.0 [19:39:24]Method: POST [19:39:24]URL: /json_proto [19:39:24]Method is POST - this is cgi request [19:39:24]url: /json_proto [19:39:24]query_string will be loaded in cgi processing [19:39:24]execute_cgi json_proto POST (null) [19:39:24]execute_cgi path=json_proto method=POST [19:39:24]POST find Content-Length [19:39:24]Host: 172.17.62.67:8080 [19:39:24]Content-Length: 819 [19:39:24]Content-Type: application/json [19:39:24] [19:39:24]POST finish read [19:39:24]Found Content-Length = 819 [19:39:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:24]execute_script... [19:39: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)196227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:24]POST & json_proto [19:39:24]process_json_proto [19:39:24]json parsed OK: [19:39:24]protocol is kg_v1.0 [19:39:24]action value=close_receipt [19:39:24]process_action close_receipt [19:39:24]cmd_close_receipt [19:39:24]MH_GetDate [19:39:24]Write to MH i2c: F0 00 00 9F 4B D9 [19:39:24]Write i2c OK [19:39:24]MH_I2C_Read... [19:39:24]Read from MH i2c: F0 [19:39:24]MH_I2C_Read... [19:39:24]Read from MH i2c: F0 05 00 [19:39:24]MH_I2C_Read... [19:39:24]Read from MH i2c: F0 05 00 9F 4B 00 73 AF F0 65 55 [19:39:24]GetLastDocTimeStamp 1710270661 [19:39:24]current date 1710272371 [19:39:24]FM_GetShiftState [19:39:24]SAM_PROTO_GetShiftState [19:39:24]wFMCommunicate request_size=4 [19:39:24]MH_SAM_APDU [19:39:24]CAPDU: 80 13 01 00 [19:39:24]Write to MH i2c: E2 08 00 A0 4B 80 13 01 00 00 00 00 00 68 [19:39:24]Write i2c OK [19:39:24]MH_I2C_Read... [19:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:24]Read from MH i2c: E2 [19:39:24]MH_I2C_Read... [19:39:24]Read from MH i2c: E2 0E 00 [19:39:24]MH_I2C_Read... [19:39:24]Read from MH i2c: E2 0E 00 A0 4B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 DC [19:39:24]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [19:39:24]wFMCommunicate OK [19:39:24]SAM_PROTO_GetShiftState done [19:39:24]FM_GetShiftState done [19:39:24]opened in 1710201976 [19:39:24]opened+sec_in_day 1710288376 [19:39:24]quantity*price = 100011 [19:39:24]sum+1 = 100012 [19:39:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 182 12.03.2024 19:39 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95252 ФПД: 273277396356624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T193931&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95252&fm=273277396356624&tin=02508201610067®Number=0000000000090555&sum=100011 [19:39:25]StoreToDocumentArchive [19:39:25]shift 327 fd 95252 [19:39:25]save to /storage/0327/doc_00095252 [19:39:25]save last doc name /storage/0327/doc_00095252 to /storage/kkm_last_doc_name [19:39:25]save OK [19:39:25]Clear old archive folders... [19:39:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:25]tlvbuf is 01AD1C30 [19:39:25]SAM_PROTO_ClearQueue [19:39:25]wFMCommunicate request_size=4 [19:39:25]MH_SAM_APDU [19:39:25]CAPDU: 80 09 00 00 [19:39:25]Write to MH i2c: E2 08 00 AD 4B 80 09 00 00 00 00 00 00 6A [19:39:25]Write i2c OK [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: E2 [19:39:25]MH_I2C_Read... [19:39:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:25]Read from MH i2c: E2 03 00 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: E2 03 00 AD 4B 00 90 00 6C [19:39:25]RAPDU: 90 00 [19:39:25]wFMCommunicate OK [19:39:25]SAM_PROTO_ClearQueue done [19:39:25]KKMCreateOFDPacket [19:39:25]OFDProtocolAddRootSTLVToBuf [19:39:25]FM_MakeSignedData [19:39:25]FM_MakeSignedData [19:39:25]SAM_PROTO_SignData [19:39:25]wFMCommunicate request_size=4 [19:39:25]MH_SAM_APDU [19:39:25]CAPDU: 80 0D 01 02 [19:39:25]Write to MH i2c: E2 08 00 AE 4B 80 0D 01 02 00 00 00 00 72 [19:39:25]Write i2c OK [19:39:25]MH_I2C_Read... [19:39:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:25]Read from MH i2c: E2 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: E2 03 00 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: E2 03 00 AE 4B 00 90 00 6D [19:39:25]RAPDU: 90 00 [19:39:25]wFMCommunicate OK [19:39:25]wFMCommunicate request_size=255 [19:39:25]MH_SAM_APDU [19:39:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 73 AF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 14 74 01 00 35 04 06 00 F8 [19:39:25]Write to MH i2c: E2 02 01 AF 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 73 AF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 14 74 01 00 35 04 06 00 F8 00 00 26 [19:39:25]Write i2c OK [19:39:25]MH_I2C_Read... [19:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:26]Read from MH i2c: E2 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 03 00 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 03 00 AF 4B 00 90 00 6E [19:39:26]RAPDU: 90 00 [19:39:26]wFMCommunicate OK [19:39:26]wFMCommunicate request_size=10 [19:39:26]MH_SAM_APDU [19:39:26]CAPDU: 80 0D 02 02 05 8B 5A 22 8E 10 [19:39:26]Write to MH i2c: E2 0D 00 B0 4B 80 0D 02 02 05 00 8B 5A 22 8E 10 00 00 24 [19:39:26]Write i2c OK [19:39:26]MH_I2C_Read... [19:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:26]Read from MH i2c: E2 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 03 00 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 03 00 B0 4B 00 90 00 6F [19:39:26]RAPDU: 90 00 [19:39:26]wFMCommunicate OK [19:39:26]wFMCommunicate request_size=4 [19:39:26]MH_SAM_APDU [19:39:26]CAPDU: 80 0D 03 02 [19:39:26]Write to MH i2c: E2 08 00 B1 4B 80 0D 03 02 00 00 00 00 77 [19:39:26]Write i2c OK [19:39:26]MH_I2C_Read... [19:39:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:26]Read from MH i2c: E2 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 0B 00 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 0B 00 B1 4B 00 EA E9 ED 16 E1 58 2D 40 90 00 F4 [19:39:26]RAPDU: EA E9 ED 16 E1 58 2D 40 90 00 [19:39:26]wFMCommunicate OK [19:39:26]SAM_PROTO_SignData done [19:39:26]FM_MakeSignedData done [19:39:26]CreateOFDProtocolMessage [19:39:26]wFMCommunicate request_size=4 [19:39:26]MH_SAM_APDU [19:39:26]CAPDU: 80 11 00 00 [19:39:26]Write to MH i2c: E2 08 00 B2 4B 80 11 00 00 00 00 00 00 77 [19:39:26]Write i2c OK [19:39:26]MH_I2C_Read... [19:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:26]Read from MH i2c: E2 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 17 00 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 17 00 B2 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C7 [19:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:39:26]wFMCommunicate OK [19:39:26]CreateOFDProtocolMessage done [19:39:26]OFDSenderStorePacket 95252 [19:39:26]StoreOFDPacket docnum=95252 [19:39:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A0 A6 07 01 72 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 73 AF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 14 74 01 00 35 04 06 00 F8 8B 5A 22 8E 10 EA E9 ED 16 E1 58 2D 40 [19:39:26]CheckFolder [19:39:26]dirname=/storage/ofd_packets [19:39:26]CheckFolder done [19:39:26]ProducePacketName [19:39:26]name=ofd_packets/00095252 [19:39:26]NVStorageSaveData ofd_packets/00095252 [19:39:26]File name is /storage/ofd_packets/00095252 [19:39:26]Write 301 bytes [19:39:26]NVStorageSaveData done [19:39:26]OFDSenderStorePacket done [19:39:26]KKMCreateOFDPacket done [19:39:26]NVStorageSaveData kkm_last_timestamp [19:39:26]File name is /storage/kkm_last_timestamp [19:39:26]Write 4 bytes [19:39:26]NVStorageSaveData done [19:39:26]ExternCall_PrintAddStr [19:39:26]wPrintStart [19:39:26]Write to MH i2c: 01 00 00 B3 4B FE [19:39:26]Write i2c OK [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: 01 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: 01 07 00 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: 01 07 00 B3 4B 00 80 00 00 00 FF 0F 93 [19:39:26]RasterBufferAndPrint [19:39:26]line Счет N : (1)196227 [19:39:26]line ИНН: 02508201610067 [19:39:26]line Контрольно-Кассовый Чек [19:39:26]line ПРОДАЖА [19:39:26]line ТРК (МРК, ГНК) : 32 [19:39:26]line Товар: 2710124130 [19:39:26]line Аи-92-К-5 [19:39:26]line 15.900 * 62.90 [19:39:26]line = 1000.11 [19:39:26]line НДС 12% НСП 1% [19:39:26]line > о реализуемом товаре [19:39:26]line ИТОГО: 1000.11 [19:39:26]line НСП 1% : 8.85 [19:39:26]line НДС 12% : 106.21 [19:39:26]line Наличными: 0.00 [19:39:26]line Безнал.: 1000.11 [19:39:26]line Место: АЗС № 6 "Партнер Нефть" [19:39:26]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:39:26]line СНО: Общий режим [19:39:26]line Чек 182 12.03.2024 19:39 [19:39:26]line Смена: 327 ФФД: 1.0 [19:39:26]line ЗНМ: 0300000009 [19:39:26]line РНМ: 0000000000090555 [19:39:26]line Версия ККМ: 001 [19:39:26]line Платежная система: Бакай Банк [19:39:26]line ФМ: 0000000000874811 [19:39:26]line ФД: 95252 [19:39:26]line ФПД: 273277396356624 [19:39:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T193931&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95252&fm=273277396356624&tin=02508201610067®Number=0000000000090555&sum=100011 [19:39:26]OFD Sender: Processing packet 95252 [packets to send 30, broken 29] [19:39:26]ProducePacketName [19:39:26]name=ofd_packets/00095252 [19:39:26]OFD Sender: To server: pG, [19:39:26]CommunicateWithHost lk.salyk.kg:30040 [19:39:26]ConnectInit lk.salyk.kg [19:39:26]written 0, free lines is 4095 [19:39:26]Connected sock=9 [19:39:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A0 A6 07 01 72 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 73 AF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 14 74 01 00 35 04 06 00 F8 8B 5A 22 8E 10 EA E9 ED 16 E1 58 2D 40 [19:39:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 CE 51 47 00 FC 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 14 74 01 00 F4 03 04 00 C8 5A F0 65 B6 04 01 00 00 E7 AD 1F D8 07 E4 A8 41 [19:39:27]CommunicateWithHost err = 0 [19:39:27]CheckOFDResponse [19:39:27]1017 (14) - 77093643461234 [19:39:27]1041 (16) - 0000000000874811 [19:39:27]1040 (4) - 95252 [19:39:27]1012 (4) - 12.03.2024 13:38 [19:39:27]1206 (1) - 0 [19:39:27]OFD Sender: Remove packet 95252 [19:39:27]ProducePacketName [19:39:27]name=ofd_packets/00095252 [19:39:27]NVStorageDeleteData [19:39:27]Write to MH i2c: 01 00 00 DD 4B 28 [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: 01 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: 01 07 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: 01 07 00 DD 4B 00 80 00 00 00 61 0D 1D [19:39:27]RasterBufferAndPrint [19:39:27]line [19:39:27]line [19:39:27]line [19:39:27]line [19:39:27]line [19:39:27]written 0, free lines is 3431 [19:39:27]process_action close_receipt done [19:39:27]requested_data is exist [19:39:27]produce_requested_data [19:39:27]requested_item fm.sn is exist - process it [19:39:27]wFMCommunicate request_size=4 [19:39:27]MH_SAM_APDU [19:39:27]CAPDU: 80 11 00 00 [19:39:27]Write to MH i2c: E2 08 00 E4 4B 80 11 00 00 00 00 00 00 A9 [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 [19:39:27]MH_I2C_Read... [19:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:27]Read from MH i2c: E2 17 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 17 00 E4 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F9 [19:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:39:27]wFMCommunicate OK [19:39:27]requested_item fd.num is exist - process it [19:39:27]SAM_PROTO_GetFieldsCounters [19:39:27]wFMCommunicate request_size=4 [19:39:27]MH_SAM_APDU [19:39:27]CAPDU: 80 13 00 00 [19:39:27]Write to MH i2c: E2 08 00 E5 4B 80 13 00 00 00 00 00 00 AC [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:27]Read from MH i2c: E2 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 62 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 62 00 E5 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 14 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [19:39:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 14 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:27]wFMCommunicate OK [19:39:27]SAM_PROTO_GetFieldsCounters done [19:39:27]requested_item shift.num is exist - process it [19:39:27]requested_item shift.opened is exist - process it [19:39:27]req_shift_opened [19:39:27]FM_GetShiftState [19:39:27]SAM_PROTO_GetShiftState [19:39:27]wFMCommunicate request_size=4 [19:39:27]MH_SAM_APDU [19:39:27]CAPDU: 80 13 01 00 [19:39:27]Write to MH i2c: E2 08 00 E6 4B 80 13 01 00 00 00 00 00 AE [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:27]OFD Sender: No OFD packet to send [19:39:27]Read from MH i2c: E2 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 0E 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 0E 00 E6 4B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 22 [19:39:27]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [19:39:27]wFMCommunicate OK [19:39:27]SAM_PROTO_GetShiftState done [19:39:27]FM_GetShiftState done [19:39:27]req_shift_opened done [19:39:27]requested_item shift.open_date is exist - process it [19:39:27]req_shift_open_date [19:39:27]req_shift_open_date done [19:39:27]produce_requested_data done [19:39:27]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95252,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [19:39:27]process_action_free close_receipt [19:39:27]json_value_free [19:39:27]json_value_free done [19:39:27]process_json_proto returns [19:39:27]Send response to host [19:39:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95252,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [19:39:27]free response buf [19:39:27]execute_script done [19:39:27]execute_script returns [19:39:27]free content buf [19:39:27]Sock 8.Close socket [19:39:27]Sock 8.Thread stoped [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:44:59]accept exits with 10 [19:44:59]New connection [19:44:59]New thread 3066957156 created [19:44:59]Thread 3066813796 joined [19:44:59]Waiting for new connection... [19:44:59] Sock 10.Parse request [19:44:59]Sock 10.Check first char [19:44:59]Sock 10.First char is OK [19:44:59]request: POST /json_proto HTTP/1.0 [19:44:59]Method: POST [19:44:59]URL: /json_proto [19:44:59]Method is POST - this is cgi request [19:44:59]url: /json_proto [19:44:59]query_string will be loaded in cgi processing [19:44:59]execute_cgi json_proto POST (null) [19:44:59]execute_cgi path=json_proto method=POST [19:44:59]POST find Content-Length [19:44:59]Host: 172.17.62.67:8080 [19:44:59]Content-Length: 677 [19:44:59]Content-Type: application/json [19:44:59] [19:44:59]POST finish read [19:44:59]Found Content-Length = 677 [19:44:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:59]execute_script... [19:44:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:59]POST & json_proto [19:44:59]process_json_proto [19:44:59]json parsed OK: [19:44:59]protocol is kg_v1.0 [19:44:59]action value=close_receipt [19:44:59]process_action close_receipt [19:44:59]cmd_close_receipt [19:44:59]MH_GetDate [19:44:59]Write to MH i2c: F0 00 00 E7 4B 21 [19:44:59]Write i2c OK [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: F0 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: F0 05 00 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: F0 05 00 E7 4B 00 C2 B0 F0 65 ED [19:44:59]GetLastDocTimeStamp 1710272371 [19:44:59]current date 1710272706 [19:44:59]FM_GetShiftState [19:44:59]SAM_PROTO_GetShiftState [19:44:59]wFMCommunicate request_size=4 [19:44:59]MH_SAM_APDU [19:44:59]CAPDU: 80 13 01 00 [19:44:59]Write to MH i2c: E2 08 00 E8 4B 80 13 01 00 00 00 00 00 B0 [19:44:59]Write i2c OK [19:44:59]MH_I2C_Read... [19:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:59]Read from MH i2c: E2 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: E2 0E 00 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: E2 0E 00 E8 4B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 24 [19:44:59]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [19:44:59]wFMCommunicate OK [19:44:59]SAM_PROTO_GetShiftState done [19:44:59]FM_GetShiftState done [19:44:59]opened in 1710201976 [19:44:59]opened+sec_in_day 1710288376 [19:44:59]quantity*price = 50005 [19:44:59]sum+1 = 50007 [19:44:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 183 12.03.2024 19:45 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95253 ФПД: 275102005823665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T194506&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95253&fm=275102005823665&tin=02508201610067®Number=0000000000090555&sum=50000 [19:45:00]StoreToDocumentArchive [19:45:00]shift 327 fd 95253 [19:45:00]save to /storage/0327/doc_00095253 [19:45:00]save last doc name /storage/0327/doc_00095253 to /storage/kkm_last_doc_name [19:45:00]save OK [19:45:00]Clear old archive folders... [19:45:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:45:00]tlvbuf is 01A18750 [19:45:00]SAM_PROTO_ClearQueue [19:45:00]wFMCommunicate request_size=4 [19:45:00]MH_SAM_APDU [19:45:00]CAPDU: 80 09 00 00 [19:45:00]Write to MH i2c: E2 08 00 F5 4B 80 09 00 00 00 00 00 00 B2 [19:45:00]Write i2c OK [19:45:00]MH_I2C_Read... [19:45:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:00]Read from MH i2c: E2 [19:45:00]MH_I2C_Read... [19:45:00]Read from MH i2c: E2 03 00 [19:45:00]MH_I2C_Read... [19:45:00]Read from MH i2c: E2 03 00 F5 4B 00 90 00 B4 [19:45:00]RAPDU: 90 00 [19:45:00]wFMCommunicate OK [19:45:00]SAM_PROTO_ClearQueue done [19:45:00]KKMCreateOFDPacket [19:45:00]OFDProtocolAddRootSTLVToBuf [19:45:00]FM_MakeSignedData [19:45:00]FM_MakeSignedData [19:45:00]SAM_PROTO_SignData [19:45:00]wFMCommunicate request_size=4 [19:45:00]MH_SAM_APDU [19:45:00]CAPDU: 80 0D 01 02 [19:45:00]Write to MH i2c: E2 08 00 F6 4B 80 0D 01 02 00 00 00 00 BA [19:45:00]Write i2c OK [19:45:00]MH_I2C_Read... [19:45:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:00]Read from MH i2c: E2 [19:45:00]MH_I2C_Read... [19:45:00]Read from MH i2c: E2 03 00 [19:45:00]MH_I2C_Read... [19:45:00]Read from MH i2c: E2 03 00 F6 4B 00 90 00 B5 [19:45:00]RAPDU: 90 00 [19:45:00]wFMCommunicate OK [19:45:00]wFMCommunicate request_size=255 [19:45:00]MH_SAM_APDU [19:45:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 C2 B0 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 15 74 01 00 35 04 06 00 FA [19:45:00]Write to MH i2c: E2 02 01 F7 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 C2 B0 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 15 74 01 00 35 04 06 00 FA 00 00 AD [19:45:00]Write i2c OK [19:45:00]MH_I2C_Read... [19:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:01]Read from MH i2c: E2 [19:45:01]MH_I2C_Read... [19:45:01]Read from MH i2c: E2 03 00 [19:45:01]MH_I2C_Read... [19:45:01]Read from MH i2c: E2 03 00 F7 4B 00 90 00 B6 [19:45:01]RAPDU: 90 00 [19:45:01]wFMCommunicate OK [19:45:01]wFMCommunicate request_size=10 [19:45:01]MH_SAM_APDU [19:45:01]CAPDU: 80 0D 02 02 05 34 2D 55 88 B1 [19:45:01]Write to MH i2c: E2 0D 00 F8 4B 80 0D 02 02 05 00 34 2D 55 88 B1 00 00 B6 [19:45:01]Write i2c OK [19:45:01]MH_I2C_Read... [19:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:01]Read from MH i2c: E2 [19:45:01]MH_I2C_Read... [19:45:01]Read from MH i2c: E2 03 00 [19:45:01]MH_I2C_Read... [19:45:01]Read from MH i2c: E2 03 00 F8 4B 00 90 00 B7 [19:45:01]RAPDU: 90 00 [19:45:01]wFMCommunicate OK [19:45:01]wFMCommunicate request_size=4 [19:45:01]MH_SAM_APDU [19:45:01]CAPDU: 80 0D 03 02 [19:45:01]Write to MH i2c: E2 08 00 F9 4B 80 0D 03 02 00 00 00 00 BF [19:45:01]Write i2c OK [19:45:01]MH_I2C_Read... [19:45:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:01]Read from MH i2c: E2 [19:45:01]MH_I2C_Read... [19:45:01]Read from MH i2c: E2 0B 00 [19:45:01]MH_I2C_Read... [19:45:01]Read from MH i2c: E2 0B 00 F9 4B 00 FE 28 B1 3E 89 17 01 4B 90 00 C1 [19:45:01]RAPDU: FE 28 B1 3E 89 17 01 4B 90 00 [19:45:01]wFMCommunicate OK [19:45:01]SAM_PROTO_SignData done [19:45:01]FM_MakeSignedData done [19:45:01]CreateOFDProtocolMessage [19:45:01]wFMCommunicate request_size=4 [19:45:01]MH_SAM_APDU [19:45:01]CAPDU: 80 11 00 00 [19:45:01]Write to MH i2c: E2 08 00 FA 4B 80 11 00 00 00 00 00 00 BF [19:45:01]Write i2c OK [19:45:01]MH_I2C_Read... [19:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:01]Read from MH i2c: E2 [19:45:01]MH_I2C_Read... [19:45:01]Read from MH i2c: E2 17 00 [19:45:01]MH_I2C_Read... [19:45:01]Read from MH i2c: E2 17 00 FA 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0F [19:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:45:01]wFMCommunicate OK [19:45:01]CreateOFDProtocolMessage done [19:45:01]OFDSenderStorePacket 95253 [19:45:01]StoreOFDPacket docnum=95253 [19:45:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 72 3A 07 01 88 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 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 C2 B0 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 15 74 01 00 35 04 06 00 FA 34 2D 55 88 B1 FE 28 B1 3E 89 17 01 4B [19:45:01]CheckFolder [19:45:01]dirname=/storage/ofd_packets [19:45:01]CheckFolder done [19:45:01]ProducePacketName [19:45:01]name=ofd_packets/00095253 [19:45:01]NVStorageSaveData ofd_packets/00095253 [19:45:01]File name is /storage/ofd_packets/00095253 [19:45:01]Write 301 bytes [19:45:01]NVStorageSaveData done [19:45:01]OFDSenderStorePacket done [19:45:01]KKMCreateOFDPacket done [19:45:01]NVStorageSaveData kkm_last_timestamp [19:45:01]File name is /storage/kkm_last_timestamp [19:45:01]Write 4 bytes [19:45:01]NVStorageSaveData done [19:45:01]ExternCall_PrintAddStr [19:45:01]wPrintStart [19:45:01]Write to MH i2c: 01 00 00 FB 4B 46 [19:45:01]Write i2c OK [19:45:01]MH_I2C_Read... [19:45:01]Read from MH i2c: 01 [19:45:01]MH_I2C_Read... [19:45:01]Read from MH i2c: 01 07 00 [19:45:01]MH_I2C_Read... [19:45:01]Read from MH i2c: 01 07 00 FB 4B 00 80 00 00 00 FF 0F DB [19:45:01]RasterBufferAndPrint [19:45:01]line Счет N : (1)196229 [19:45:01]line ИНН: 02508201610067 [19:45:01]line Контрольно-Кассовый Чек [19:45:01]line ПРОДАЖА [19:45:01]line ТРК (МРК, ГНК) : 32 [19:45:01]line Товар: 2710124130 [19:45:01]line Аи-92-К-5 [19:45:01]line 7.950 * 62.90 [19:45:01]line = 500.06 [19:45:01]line НДС 12% НСП 1% [19:45:01]line > о реализуемом товаре [19:45:01]line ОКРУГЛЕНИЕ: -0.06 [19:45:01]line ИТОГО: 500.00 [19:45:01]line Внесено: 500.00 [19:45:01]line СДАЧА: 0.00 [19:45:01]line НСП 1% : 4.42 [19:45:01]line НДС 12% : 53.10 [19:45:01]line Наличными: 500.00 [19:45:01]line Безнал.: 0.00 [19:45:01]line Место: АЗС № 6 "Партнер Нефть" [19:45:01]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:45:01]line СНО: Общий режим [19:45:01]line Чек 183 12.03.2024 19:45 [19:45:01]line Смена: 327 ФФД: 1.0 [19:45:01]line ЗНМ: 0300000009 [19:45:01]line РНМ: 0000000000090555 [19:45:01]line Версия ККМ: 001 [19:45:01]line ФМ: 0000000000874811 [19:45:01]line ФД: 95253 [19:45:01]line ФПД: 275102005823665 [19:45:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T194506&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95253&fm=275102005823665&tin=02508201610067®Number=0000000000090555&sum=50000 [19:45:01]OFD Sender: Processing packet 95253 [packets to send 30, broken 29] [19:45:01]ProducePacketName [19:45:01]name=ofd_packets/00095253 [19:45:01]OFD Sender: To server: pG, [19:45:01]CommunicateWithHost lk.salyk.kg:30040 [19:45:01]ConnectInit lk.salyk.kg [19:45:01]written 0, free lines is 4095 [19:45:01]Connected sock=9 [19:45:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 72 3A 07 01 88 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 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 C2 B0 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 15 74 01 00 35 04 06 00 FA 34 2D 55 88 B1 FE 28 B1 3E 89 17 01 4B [19:45:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 15 FB 47 00 51 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 15 74 01 00 F4 03 04 00 17 5C F0 65 B6 04 01 00 00 D1 09 42 06 92 EC 69 81 [19:45:01]CommunicateWithHost err = 0 [19:45:01]CheckOFDResponse [19:45:01]1017 (14) - 77093643461234 [19:45:01]1041 (16) - 0000000000874811 [19:45:01]1040 (4) - 95253 [19:45:01]1012 (4) - 12.03.2024 13:43 [19:45:01]1206 (1) - 0 [19:45:01]OFD Sender: Remove packet 95253 [19:45:01]ProducePacketName [19:45:01]name=ofd_packets/00095253 [19:45:01]NVStorageDeleteData [19:45:02]Write to MH i2c: 01 00 00 26 4C 72 [19:45:02]Write i2c OK [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: 01 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: 01 07 00 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: 01 07 00 26 4C 00 80 00 00 00 50 0D 56 [19:45:02]RasterBufferAndPrint [19:45:02]line [19:45:02]line [19:45:02]line [19:45:02]line [19:45:02]line [19:45:02]written 0, free lines is 3414 [19:45:02]process_action close_receipt done [19:45:02]requested_data is exist [19:45:02]produce_requested_data [19:45:02]requested_item fm.sn is exist - process it [19:45:02]wFMCommunicate request_size=4 [19:45:02]MH_SAM_APDU [19:45:02]CAPDU: 80 11 00 00 [19:45:02]Write to MH i2c: E2 08 00 2D 4C 80 11 00 00 00 00 00 00 F3 [19:45:02]Write i2c OK [19:45:02]MH_I2C_Read... [19:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:02]Read from MH i2c: E2 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 17 00 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 17 00 2D 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 43 [19:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:45:02]wFMCommunicate OK [19:45:02]requested_item fd.num is exist - process it [19:45:02]SAM_PROTO_GetFieldsCounters [19:45:02]wFMCommunicate request_size=4 [19:45:02]MH_SAM_APDU [19:45:02]CAPDU: 80 13 00 00 [19:45:02]Write to MH i2c: E2 08 00 2E 4C 80 13 00 00 00 00 00 00 F6 [19:45:02]Write i2c OK [19:45:02]MH_I2C_Read... [19:45:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:02]Read from MH i2c: E2 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 62 00 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 62 00 2E 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 15 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [19:45:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 15 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:45:02]wFMCommunicate OK [19:45:02]SAM_PROTO_GetFieldsCounters done [19:45:02]requested_item shift.num is exist - process it [19:45:02]requested_item shift.opened is exist - process it [19:45:02]req_shift_opened [19:45:02]FM_GetShiftState [19:45:02]SAM_PROTO_GetShiftState [19:45:02]wFMCommunicate request_size=4 [19:45:02]MH_SAM_APDU [19:45:02]CAPDU: 80 13 01 00 [19:45:02]Write to MH i2c: E2 08 00 2F 4C 80 13 01 00 00 00 00 00 F8 [19:45:02]Write i2c OK [19:45:02]MH_I2C_Read... [19:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:02]Read from MH i2c: E2 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 0E 00 [19:45:02]MH_I2C_Read... [19:45:02]OFD Sender: No OFD packet to send [19:45:02]Read from MH i2c: E2 0E 00 2F 4C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 6C [19:45:02]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [19:45:02]wFMCommunicate OK [19:45:02]SAM_PROTO_GetShiftState done [19:45:02]FM_GetShiftState done [19:45:02]req_shift_opened done [19:45:02]requested_item shift.open_date is exist - process it [19:45:02]req_shift_open_date [19:45:02]req_shift_open_date done [19:45:02]produce_requested_data done [19:45:02]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95253,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [19:45:02]process_action_free close_receipt [19:45:02]json_value_free [19:45:02]json_value_free done [19:45:02]process_json_proto returns [19:45:02]Send response to host [19:45:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95253,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [19:45:02]free response buf [19:45:02]execute_script done [19:45:02]execute_script returns [19:45:02]free content buf [19:45:02]Sock 10.Close socket [19:45:02]Sock 10.Thread stoped [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:22]accept exits with 8 [19:46:22]New connection [19:46:22]New thread 3066813796 created [19:46:22]Thread 3066957156 joined [19:46:22]Waiting for new connection... [19:46:22] Sock 8.Parse request [19:46:22]Sock 8.Check first char [19:46:22]Sock 8.First char is OK [19:46:22]request: POST /json_proto HTTP/1.0 [19:46:22]Method: POST [19:46:22]URL: /json_proto [19:46:22]Method is POST - this is cgi request [19:46:22]url: /json_proto [19:46:22]query_string will be loaded in cgi processing [19:46:22]execute_cgi json_proto POST (null) [19:46:22]execute_cgi path=json_proto method=POST [19:46:22]POST find Content-Length [19:46:22]Host: 172.17.62.67:8080 [19:46:22]Content-Length: 1207 [19:46:22]Content-Type: application/json [19:46:22] [19:46:22]POST finish read [19:46:22]Found Content-Length = 1207 [19:46:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196228\u000A12.03.2024 19:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 60.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 3774.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\u000A3583622.23.24\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:22]execute_script... [19:46:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196228\u000A12.03.2024 19:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 60.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 3774.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\u000A3583622.23.24\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:22]POST & json_proto [19:46:22]process_json_proto [19:46:22]json parsed OK: [19:46:22]protocol is kg_v1.0 [19:46:22]action value=print_text [19:46:22]process_action print_text [19:46:22]cmd_print_text [19:46:22]ExternCall_PrintAddStr [19:46:22]wPrintStart [19:46:22]Write to MH i2c: 01 00 00 30 4C 7C [19:46:22]Write i2c OK [19:46:22]MH_I2C_Read... [19:46:22]Read from MH i2c: 01 [19:46:22]MH_I2C_Read... [19:46:22]Read from MH i2c: 01 07 00 [19:46:22]MH_I2C_Read... [19:46:22]Read from MH i2c: 01 07 00 30 4C 00 80 00 00 00 FF 0F 11 [19:46:22]RasterBufferAndPrint [19:46:22]line *****ТОВАРНЫЙ ЧЕК***** [19:46:22]line АЗС 6 [19:46:22]line Партнер нефть [19:46:22]line 02508201610067 [19:46:22]line Кассир : Мыктыбекова И. [19:46:22]line Счет N : (1)196228 [19:46:22]line 12.03.2024 19:40 [19:46:22]line ПРОДАЖА [19:46:22]line ТРК (МРК, ГНК): 12 [19:46:22]line Вид ГСМ : 2710124130 [19:46:22]line Аи-92-К-5 [19:46:22]line 60.000 x 62.90 [19:46:22]line ИТОГ: 3774.00 [19:46:22]line Тип оплаты: Талоны: Партнер нефть [19:46:22]line 3583622.23.24 [19:46:22]line ______________________ [19:46:22]line (подпись) [19:46:22]written 0, free lines is 4095 [19:46:23]Write to MH i2c: 01 00 00 44 4C 90 [19:46:23]Write i2c OK [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: 01 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: 01 07 00 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: 01 07 00 44 4C 00 80 00 00 00 70 0E 95 [19:46:23]RasterBufferAndPrint [19:46:23]line [19:46:23]line [19:46:23]line [19:46:23]line [19:46:23]line [19:46:23]written 0, free lines is 3700 [19:46:23]process_action print_text done [19:46:23]requested_data is exist [19:46:23]produce_requested_data [19:46:23]requested_item fm.sn is exist - process it [19:46:23]wFMCommunicate request_size=4 [19:46:23]MH_SAM_APDU [19:46:23]CAPDU: 80 11 00 00 [19:46:23]Write to MH i2c: E2 08 00 4B 4C 80 11 00 00 00 00 00 00 11 [19:46:23]Write i2c OK [19:46:23]MH_I2C_Read... [19:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:23]Read from MH i2c: E2 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 17 00 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 17 00 4B 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 61 [19:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:46:23]wFMCommunicate OK [19:46:23]requested_item fd.num is exist - process it [19:46:23]SAM_PROTO_GetFieldsCounters [19:46:23]wFMCommunicate request_size=4 [19:46:23]MH_SAM_APDU [19:46:23]CAPDU: 80 13 00 00 [19:46:23]Write to MH i2c: E2 08 00 4C 4C 80 13 00 00 00 00 00 00 14 [19:46:23]Write i2c OK [19:46:23]MH_I2C_Read... [19:46:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:23]Read from MH i2c: E2 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 62 00 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 62 00 4C 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 15 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [19:46:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 15 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:23]wFMCommunicate OK [19:46:23]SAM_PROTO_GetFieldsCounters done [19:46:23]requested_item shift.num is exist - process it [19:46:23]requested_item shift.opened is exist - process it [19:46:23]req_shift_opened [19:46:23]FM_GetShiftState [19:46:23]SAM_PROTO_GetShiftState [19:46:23]wFMCommunicate request_size=4 [19:46:23]MH_SAM_APDU [19:46:23]CAPDU: 80 13 01 00 [19:46:23]Write to MH i2c: E2 08 00 4D 4C 80 13 01 00 00 00 00 00 16 [19:46:23]Write i2c OK [19:46:23]MH_I2C_Read... [19:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:23]Read from MH i2c: E2 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 0E 00 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 0E 00 4D 4C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 8A [19:46:23]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [19:46:23]wFMCommunicate OK [19:46:23]SAM_PROTO_GetShiftState done [19:46:23]FM_GetShiftState done [19:46:23]req_shift_opened done [19:46:23]requested_item shift.open_date is exist - process it [19:46:23]req_shift_open_date [19:46:23]req_shift_open_date done [19:46:23]produce_requested_data done [19:46:23]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95253,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [19:46:23]process_action_free print_text [19:46:23]json_value_free [19:46:23]json_value_free done [19:46:23]process_json_proto returns [19:46:23]Send response to host [19:46:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95253,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [19:46:23]free response buf [19:46:23]execute_script done [19:46:23]execute_script returns [19:46:23]free content buf [19:46:23]Sock 8.Close socket [19:46:23]Sock 8.Thread stoped [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:19]accept exits with 9 [19:47:19]New connection [19:47:19]New thread 3066957156 created [19:47:19]Thread 3066813796 joined [19:47:19]Waiting for new connection... [19:47:19] Sock 9.Parse request [19:47:19]Sock 9.Check first char [19:47:19]Sock 9.First char is OK [19:47:19]request: POST /json_proto HTTP/1.0 [19:47:19]Method: POST [19:47:19]URL: /json_proto [19:47:19]Method is POST - this is cgi request [19:47:19]url: /json_proto [19:47:19]query_string will be loaded in cgi processing [19:47:19]execute_cgi json_proto POST (null) [19:47:19]execute_cgi path=json_proto method=POST [19:47:19]POST find Content-Length [19:47:19]Host: 172.17.62.67:8080 [19:47:19]Content-Length: 1208 [19:47:19]Content-Type: application/json [19:47:19] [19:47:19]POST finish read [19:47:19]Found Content-Length = 1208 [19:47: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196230\u000A12.03.2024 19:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A53319\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:19]execute_script... [19:47: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196230\u000A12.03.2024 19:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A53319\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:19]POST & json_proto [19:47:19]process_json_proto [19:47:19]json parsed OK: [19:47:19]protocol is kg_v1.0 [19:47:19]action value=print_text [19:47:19]process_action print_text [19:47:19]cmd_print_text [19:47:19]ExternCall_PrintAddStr [19:47:19]wPrintStart [19:47:19]Write to MH i2c: 01 00 00 4E 4C 9A [19:47:19]Write i2c OK [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: 01 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: 01 07 00 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: 01 07 00 4E 4C 00 80 00 00 00 FF 0F 2F [19:47:19]RasterBufferAndPrint [19:47:19]line *****ТОВАРНЫЙ ЧЕК***** [19:47:19]line АЗС 6 [19:47:19]line Партнер нефть [19:47:19]line 02508201610067 [19:47:19]line Кассир : Мыктыбекова И. [19:47:19]line Счет N : (1)196230 [19:47:19]line 12.03.2024 19:41 [19:47:19]line ПРОДАЖА [19:47:19]line ТРК (МРК, ГНК): 61 [19:47:19]line Вид ГСМ : 2710194210 [19:47:19]line ДТ-К-5 [19:47:19]line 20.000 x 70.90 [19:47:19]line ИТОГ: 1418.00 [19:47:19]line Тип оплаты: Талоны: Топливная Карта [19:47:19]line 53319 [19:47:19]line ______________________ [19:47:19]line (подпись) [19:47:19]written 0, free lines is 4095 [19:47:19]Write to MH i2c: 01 00 00 62 4C AE [19:47:19]Write i2c OK [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: 01 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: 01 07 00 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: 01 07 00 62 4C 00 80 00 00 00 62 0E A5 [19:47:19]RasterBufferAndPrint [19:47:19]line [19:47:19]line [19:47:19]line [19:47:19]line [19:47:19]line [19:47:19]written 0, free lines is 3685 [19:47:19]process_action print_text done [19:47:19]requested_data is exist [19:47:19]produce_requested_data [19:47:19]requested_item fm.sn is exist - process it [19:47:19]wFMCommunicate request_size=4 [19:47:19]MH_SAM_APDU [19:47:19]CAPDU: 80 11 00 00 [19:47:19]Write to MH i2c: E2 08 00 69 4C 80 11 00 00 00 00 00 00 2F [19:47:19]Write i2c OK [19:47:19]MH_I2C_Read... [19:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:19]Read from MH i2c: E2 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: E2 17 00 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: E2 17 00 69 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7F [19:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:47:19]wFMCommunicate OK [19:47:19]requested_item fd.num is exist - process it [19:47:19]SAM_PROTO_GetFieldsCounters [19:47:19]wFMCommunicate request_size=4 [19:47:19]MH_SAM_APDU [19:47:19]CAPDU: 80 13 00 00 [19:47:19]Write to MH i2c: E2 08 00 6A 4C 80 13 00 00 00 00 00 00 32 [19:47:19]Write i2c OK [19:47:19]MH_I2C_Read... [19:47:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:19]Read from MH i2c: E2 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: E2 62 00 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: E2 62 00 6A 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 15 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [19:47:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 15 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:19]wFMCommunicate OK [19:47:19]SAM_PROTO_GetFieldsCounters done [19:47:19]requested_item shift.num is exist - process it [19:47:19]requested_item shift.opened is exist - process it [19:47:19]req_shift_opened [19:47:19]FM_GetShiftState [19:47:19]SAM_PROTO_GetShiftState [19:47:19]wFMCommunicate request_size=4 [19:47:19]MH_SAM_APDU [19:47:19]CAPDU: 80 13 01 00 [19:47:19]Write to MH i2c: E2 08 00 6B 4C 80 13 01 00 00 00 00 00 34 [19:47:19]Write i2c OK [19:47:19]MH_I2C_Read... [19:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:19]Read from MH i2c: E2 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: E2 0E 00 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: E2 0E 00 6B 4C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A8 [19:47:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [19:47:19]wFMCommunicate OK [19:47:19]SAM_PROTO_GetShiftState done [19:47:19]FM_GetShiftState done [19:47:19]req_shift_opened done [19:47:19]requested_item shift.open_date is exist - process it [19:47:19]req_shift_open_date [19:47:19]req_shift_open_date done [19:47:19]produce_requested_data done [19:47:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95253,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [19:47:19]process_action_free print_text [19:47:19]json_value_free [19:47:19]json_value_free done [19:47:19]process_json_proto returns [19:47:19]Send response to host [19:47:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95253,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [19:47:19]free response buf [19:47:19]execute_script done [19:47:19]execute_script returns [19:47:19]free content buf [19:47:19]Sock 9.Close socket [19:47:19]Sock 9.Thread stoped [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:48]OFD Sender: No OFD packet to send [19:56:53]OFD Sender: No OFD packet to send [19:56:58]OFD Sender: No OFD packet to send [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:13]OFD Sender: No OFD packet to send [19:57:18]OFD Sender: No OFD packet to send [19:57:23]OFD Sender: No OFD packet to send [19:57:28]OFD Sender: No OFD packet to send [19:57:33]OFD Sender: No OFD packet to send [19:57:38]OFD Sender: No OFD packet to send [19:57:43]OFD Sender: No OFD packet to send [19:57:48]OFD Sender: No OFD packet to send [19:57:53]OFD Sender: No OFD packet to send [19:57:58]OFD Sender: No OFD packet to send [19:58:03]OFD Sender: No OFD packet to send [19:58:08]OFD Sender: No OFD packet to send [19:58:13]OFD Sender: No OFD packet to send [19:58:18]OFD Sender: No OFD packet to send [19:58:23]OFD Sender: No OFD packet to send [19:58:28]OFD Sender: No OFD packet to send [19:58:33]OFD Sender: No OFD packet to send [19:58:38]OFD Sender: No OFD packet to send [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:58]OFD Sender: No OFD packet to send [19:59:03]OFD Sender: No OFD packet to send [19:59:08]OFD Sender: No OFD packet to send [19:59:13]OFD Sender: No OFD packet to send [19:59:18]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:13]OFD Sender: No OFD packet to send [20:00:18]OFD Sender: No OFD packet to send [20:00:23]OFD Sender: No OFD packet to send [20:00:28]OFD Sender: No OFD packet to send [20:00:33]OFD Sender: No OFD packet to send [20:00:38]OFD Sender: No OFD packet to send [20:00:43]OFD Sender: No OFD packet to send [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:08]OFD Sender: No OFD packet to send [20:01:13]OFD Sender: No OFD packet to send [20:01:18]OFD Sender: No OFD packet to send [20:01:23]OFD Sender: No OFD packet to send [20:01:28]OFD Sender: No OFD packet to send [20:01:33]OFD Sender: No OFD packet to send [20:01:38]OFD Sender: No OFD packet to send [20:01:43]OFD Sender: No OFD packet to send [20:01:48]OFD Sender: No OFD packet to send [20:01:53]OFD Sender: No OFD packet to send [20:01:58]OFD Sender: No OFD packet to send [20:02:03]OFD Sender: No OFD packet to send [20:02:08]OFD Sender: No OFD packet to send [20:02:13]OFD Sender: No OFD packet to send [20:02:18]OFD Sender: No OFD packet to send [20:02:23]OFD Sender: No OFD packet to send [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]OFD Sender: No OFD packet to send [20:02:48]OFD Sender: No OFD packet to send [20:02:53]OFD Sender: No OFD packet to send [20:02:58]OFD Sender: No OFD packet to send [20:03:03]OFD Sender: No OFD packet to send [20:03:08]OFD Sender: No OFD packet to send [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:40]accept exits with 8 [20:05:40]New connection [20:05:40]New thread 3066813796 created [20:05:40]Thread 3066957156 joined [20:05:40]Waiting for new connection... [20:05:40] Sock 8.Parse request [20:05:40]Sock 8.Check first char [20:05:40]Sock 8.First char is OK [20:05:40]request: POST /json_proto HTTP/1.0 [20:05:40]Method: POST [20:05:40]URL: /json_proto [20:05:40]Method is POST - this is cgi request [20:05:40]url: /json_proto [20:05:40]query_string will be loaded in cgi processing [20:05:40]execute_cgi json_proto POST (null) [20:05:40]execute_cgi path=json_proto method=POST [20:05:40]POST find Content-Length [20:05:40]Host: 172.17.62.67:8080 [20:05:40]Content-Length: 817 [20:05:40]Content-Type: application/json [20:05:40] [20:05:40]POST finish read [20:05:40]Found Content-Length = 817 [20:05:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:40]execute_script... [20:05: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)196231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:40]POST & json_proto [20:05:40]process_json_proto [20:05:40]json parsed OK: [20:05:40]protocol is kg_v1.0 [20:05:40]action value=close_receipt [20:05:40]process_action close_receipt [20:05:40]cmd_close_receipt [20:05:40]MH_GetDate [20:05:40]Write to MH i2c: F0 00 00 6C 4C A7 [20:05:40]Write i2c OK [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: F0 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: F0 05 00 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: F0 05 00 6C 4C 00 9B B5 F0 65 51 [20:05:40]GetLastDocTimeStamp 1710272706 [20:05:40]current date 1710273947 [20:05:40]FM_GetShiftState [20:05:40]SAM_PROTO_GetShiftState [20:05:40]wFMCommunicate request_size=4 [20:05:40]MH_SAM_APDU [20:05:40]CAPDU: 80 13 01 00 [20:05:40]Write to MH i2c: E2 08 00 6D 4C 80 13 01 00 00 00 00 00 36 [20:05:40]Write i2c OK [20:05:40]MH_I2C_Read... [20:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:41]Read from MH i2c: E2 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: E2 0E 00 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: E2 0E 00 6D 4C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 AA [20:05:41]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:05:41]wFMCommunicate OK [20:05:41]SAM_PROTO_GetShiftState done [20:05:41]FM_GetShiftState done [20:05:41]opened in 1710201976 [20:05:41]opened+sec_in_day 1710288376 [20:05:41]quantity*price = 62900 [20:05:41]sum+1 = 62901 [20:05:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 0.00 Безнал.: 629.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 184 12.03.2024 20:05 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95254 ФПД: 194813853426159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T200547&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95254&fm=194813853426159&tin=02508201610067®Number=0000000000090555&sum=62900 [20:05:42]StoreToDocumentArchive [20:05:42]shift 327 fd 95254 [20:05:42]save to /storage/0327/doc_00095254 [20:05:42]save last doc name /storage/0327/doc_00095254 to /storage/kkm_last_doc_name [20:05:42]save OK [20:05:42]Clear old archive folders... [20:05:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:42]tlvbuf is 01B53E10 [20:05:42]SAM_PROTO_ClearQueue [20:05:42]wFMCommunicate request_size=4 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 09 00 00 [20:05:42]Write to MH i2c: E2 08 00 7A 4C 80 09 00 00 00 00 00 00 38 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 7A 4C 00 90 00 3A [20:05:42]RAPDU: 90 00 [20:05:42]wFMCommunicate OK [20:05:42]SAM_PROTO_ClearQueue done [20:05:42]KKMCreateOFDPacket [20:05:42]OFDProtocolAddRootSTLVToBuf [20:05:42]FM_MakeSignedData [20:05:42]FM_MakeSignedData [20:05:42]SAM_PROTO_SignData [20:05:42]wFMCommunicate request_size=4 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 0D 01 02 [20:05:42]Write to MH i2c: E2 08 00 7B 4C 80 0D 01 02 00 00 00 00 40 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 7B 4C 00 90 00 3B [20:05:42]RAPDU: 90 00 [20:05:42]wFMCommunicate OK [20:05:42]wFMCommunicate request_size=255 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 9B B5 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 16 74 01 00 35 04 06 00 B1 [20:05:42]Write to MH i2c: E2 02 01 7C 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 9B B5 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 16 74 01 00 35 04 06 00 B1 00 00 64 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 7C 4C 00 90 00 3C [20:05:42]RAPDU: 90 00 [20:05:42]wFMCommunicate OK [20:05:42]wFMCommunicate request_size=10 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 0D 02 02 05 2E A2 87 E1 EF [20:05:42]Write to MH i2c: E2 0D 00 7D 4C 80 0D 02 02 05 00 2E A2 87 E1 EF 00 00 74 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 7D 4C 00 90 00 3D [20:05:42]RAPDU: 90 00 [20:05:42]wFMCommunicate OK [20:05:42]wFMCommunicate request_size=4 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 0D 03 02 [20:05:42]Write to MH i2c: E2 08 00 7E 4C 80 0D 03 02 00 00 00 00 45 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 0B 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 0B 00 7E 4C 00 FC CA E0 0C 34 6C 54 D5 90 00 C1 [20:05:42]RAPDU: FC CA E0 0C 34 6C 54 D5 90 00 [20:05:42]wFMCommunicate OK [20:05:42]SAM_PROTO_SignData done [20:05:42]FM_MakeSignedData done [20:05:42]CreateOFDProtocolMessage [20:05:42]wFMCommunicate request_size=4 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 11 00 00 [20:05:42]Write to MH i2c: E2 08 00 7F 4C 80 11 00 00 00 00 00 00 45 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 17 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 17 00 7F 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 95 [20:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:05:42]wFMCommunicate OK [20:05:42]CreateOFDProtocolMessage done [20:05:42]OFDSenderStorePacket 95254 [20:05:42]StoreOFDPacket docnum=95254 [20:05:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 37 8A 07 01 F5 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 9B B5 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 16 74 01 00 35 04 06 00 B1 2E A2 87 E1 EF FC CA E0 0C 34 6C 54 D5 [20:05:42]CheckFolder [20:05:42]dirname=/storage/ofd_packets [20:05:42]CheckFolder done [20:05:42]ProducePacketName [20:05:42]name=ofd_packets/00095254 [20:05:42]NVStorageSaveData ofd_packets/00095254 [20:05:42]File name is /storage/ofd_packets/00095254 [20:05:42]Write 301 bytes [20:05:42]NVStorageSaveData done [20:05:42]OFDSenderStorePacket done [20:05:42]KKMCreateOFDPacket done [20:05:42]NVStorageSaveData kkm_last_timestamp [20:05:42]File name is /storage/kkm_last_timestamp [20:05:42]Write 4 bytes [20:05:42]NVStorageSaveData done [20:05:42]ExternCall_PrintAddStr [20:05:42]wPrintStart [20:05:42]Write to MH i2c: 01 00 00 80 4C CC [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: 01 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: 01 07 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: 01 07 00 80 4C 00 80 00 00 00 FF 0F 61 [20:05:42]RasterBufferAndPrint [20:05:42]line Счет N : (1)196231 [20:05:42]line ИНН: 02508201610067 [20:05:42]line Контрольно-Кассовый Чек [20:05:42]line ПРОДАЖА [20:05:42]line ТРК (МРК, ГНК) : 22 [20:05:42]line Товар: 2710124130 [20:05:42]line Аи-92-К-5 [20:05:42]line 10.000 * 62.90 [20:05:42]line = 629.00 [20:05:42]line НДС 12% НСП 1% [20:05:42]line > о реализуемом товаре [20:05:42]line ИТОГО: 629.00 [20:05:42]line НСП 1% : 5.57 [20:05:42]line НДС 12% : 66.80 [20:05:42]line Наличными: 0.00 [20:05:42]line Безнал.: 629.00 [20:05:42]line Место: АЗС № 6 "Партнер Нефть" [20:05:42]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:05:42]line СНО: Общий режим [20:05:42]line Чек 184 12.03.2024 20:05 [20:05:42]line Смена: 327 ФФД: 1.0 [20:05:42]line ЗНМ: 0300000009 [20:05:42]line РНМ: 0000000000090555 [20:05:42]line Версия ККМ: 001 [20:05:42]line Платежная система: Бакай Банк [20:05:42]line ФМ: 0000000000874811 [20:05:42]line ФД: 95254 [20:05:42]line ФПД: 194813853426159 [20:05:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T200547&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95254&fm=194813853426159&tin=02508201610067®Number=0000000000090555&sum=62900 [20:05:43]OFD Sender: Processing packet 95254 [packets to send 30, broken 29] [20:05:43]ProducePacketName [20:05:43]name=ofd_packets/00095254 [20:05:43]OFD Sender: To server: pG, [20:05:43]CommunicateWithHost lk.salyk.kg:30040 [20:05:43]ConnectInit lk.salyk.kg [20:05:43]written 0, free lines is 4095 [20:05:43]Connected sock=10 [20:05:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 37 8A 07 01 F5 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 9B B5 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 16 74 01 00 35 04 06 00 B1 2E A2 87 E1 EF FC CA E0 0C 34 6C 54 D5 [20:05:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 34 1C 47 00 BD C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 16 74 01 00 F4 03 04 00 F1 60 F0 65 B6 04 01 00 00 E2 81 98 50 E0 D0 98 AD [20:05:43]CommunicateWithHost err = 0 [20:05:43]CheckOFDResponse [20:05:43]1017 (14) - 77093643461234 [20:05:43]1041 (16) - 0000000000874811 [20:05:43]1040 (4) - 95254 [20:05:43]1012 (4) - 12.03.2024 14:04 [20:05:43]1206 (1) - 0 [20:05:43]OFD Sender: Remove packet 95254 [20:05:43]ProducePacketName [20:05:43]name=ofd_packets/00095254 [20:05:43]NVStorageDeleteData [20:05:43]Write to MH i2c: 01 00 00 AA 4C F6 [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 AA 4C 00 80 00 00 00 5D 0D E7 [20:05:43]RasterBufferAndPrint [20:05:43]line [20:05:43]line [20:05:43]line [20:05:43]line [20:05:43]line [20:05:43]written 0, free lines is 3427 [20:05:43]process_action close_receipt done [20:05:43]requested_data is exist [20:05:43]produce_requested_data [20:05:43]requested_item fm.sn is exist - process it [20:05:43]wFMCommunicate request_size=4 [20:05:43]MH_SAM_APDU [20:05:43]CAPDU: 80 11 00 00 [20:05:43]Write to MH i2c: E2 08 00 B1 4C 80 11 00 00 00 00 00 00 77 [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:43]Read from MH i2c: E2 17 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 17 00 B1 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C7 [20:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:05:43]wFMCommunicate OK [20:05:43]requested_item fd.num is exist - process it [20:05:43]SAM_PROTO_GetFieldsCounters [20:05:43]wFMCommunicate request_size=4 [20:05:43]MH_SAM_APDU [20:05:43]CAPDU: 80 13 00 00 [20:05:43]Write to MH i2c: E2 08 00 B2 4C 80 13 00 00 00 00 00 00 7A [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 62 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 62 00 B2 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 16 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [20:05:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 16 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:43]wFMCommunicate OK [20:05:43]SAM_PROTO_GetFieldsCounters done [20:05:43]requested_item shift.num is exist - process it [20:05:43]requested_item shift.opened is exist - process it [20:05:43]req_shift_opened [20:05:43]FM_GetShiftState [20:05:43]SAM_PROTO_GetShiftState [20:05:43]wFMCommunicate request_size=4 [20:05:43]MH_SAM_APDU [20:05:43]CAPDU: 80 13 01 00 [20:05:43]Write to MH i2c: E2 08 00 B3 4C 80 13 01 00 00 00 00 00 7C [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:43]OFD Sender: No OFD packet to send [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 0E 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 0E 00 B3 4C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F0 [20:05:43]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:05:43]wFMCommunicate OK [20:05:43]SAM_PROTO_GetShiftState done [20:05:43]FM_GetShiftState done [20:05:43]req_shift_opened done [20:05:43]requested_item shift.open_date is exist - process it [20:05:43]req_shift_open_date [20:05:43]req_shift_open_date done [20:05:43]produce_requested_data done [20:05:43]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95254,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [20:05:43]process_action_free close_receipt [20:05:43]json_value_free [20:05:43]json_value_free done [20:05:43]process_json_proto returns [20:05:43]Send response to host [20:05:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95254,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [20:05:43]free response buf [20:05:43]execute_script done [20:05:43]execute_script returns [20:05:43]free content buf [20:05:43]Sock 8.Close socket [20:05:43]Sock 8.Thread stoped [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:08]OFD Sender: No OFD packet to send [20:06:13]OFD Sender: No OFD packet to send [20:06:18]OFD Sender: No OFD packet to send [20:06:23]OFD Sender: No OFD packet to send [20:06:28]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:36]accept exits with 9 [20:06:36]New connection [20:06:36]New thread 3066957156 created [20:06:36]Thread 3066813796 joined [20:06:36]Waiting for new connection... [20:06:36] Sock 9.Parse request [20:06:36]Sock 9.Check first char [20:06:36]Sock 9.First char is OK [20:06:36]request: POST /json_proto HTTP/1.0 [20:06:36]Method: POST [20:06:36]URL: /json_proto [20:06:36]Method is POST - this is cgi request [20:06:36]url: /json_proto [20:06:36]query_string will be loaded in cgi processing [20:06:36]execute_cgi json_proto POST (null) [20:06:36]execute_cgi path=json_proto method=POST [20:06:36]POST find Content-Length [20:06:36]Host: 172.17.62.67:8080 [20:06:36]Content-Length: 682 [20:06:36]Content-Type: application/json [20:06:36] [20:06:36]POST finish read [20:06:36]Found Content-Length = 682 [20:06:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:36]execute_script... [20:06: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)196232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:36]POST & json_proto [20:06:36]process_json_proto [20:06:36]json parsed OK: [20:06:36]protocol is kg_v1.0 [20:06:36]action value=close_receipt [20:06:36]process_action close_receipt [20:06:36]cmd_close_receipt [20:06:36]MH_GetDate [20:06:36]Write to MH i2c: F0 00 00 B4 4C EF [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: F0 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: F0 05 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: F0 05 00 B4 4C 00 D3 B5 F0 65 D1 [20:06:36]GetLastDocTimeStamp 1710273947 [20:06:36]current date 1710274003 [20:06:36]FM_GetShiftState [20:06:36]SAM_PROTO_GetShiftState [20:06:36]wFMCommunicate request_size=4 [20:06:36]MH_SAM_APDU [20:06:36]CAPDU: 80 13 01 00 [20:06:36]Write to MH i2c: E2 08 00 B5 4C 80 13 01 00 00 00 00 00 7E [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:36]Read from MH i2c: E2 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 0E 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 0E 00 B5 4C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F2 [20:06:36]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:06:36]wFMCommunicate OK [20:06:36]SAM_PROTO_GetShiftState done [20:06:36]FM_GetShiftState done [20:06:36]opened in 1710201976 [20:06:36]opened+sec_in_day 1710288376 [20:06:36]quantity*price = 100010 [20:06:36]sum+1 = 100012 [20:06:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 185 12.03.2024 20:06 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95255 ФПД: 218838691082021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T200643&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95255&fm=218838691082021&tin=02508201610067®Number=0000000000090555&sum=100000 [20:06:37]StoreToDocumentArchive [20:06:37]shift 327 fd 95255 [20:06:37]save to /storage/0327/doc_00095255 [20:06:37]save last doc name /storage/0327/doc_00095255 to /storage/kkm_last_doc_name [20:06:37]save OK [20:06:37]Clear old archive folders... [20:06:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:37]tlvbuf is 01A28110 [20:06:37]SAM_PROTO_ClearQueue [20:06:37]wFMCommunicate request_size=4 [20:06:37]MH_SAM_APDU [20:06:37]CAPDU: 80 09 00 00 [20:06:37]Write to MH i2c: E2 08 00 C2 4C 80 09 00 00 00 00 00 00 80 [20:06:37]Write i2c OK [20:06:37]MH_I2C_Read... [20:06:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:38]Read from MH i2c: E2 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 03 00 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 03 00 C2 4C 00 90 00 82 [20:06:38]RAPDU: 90 00 [20:06:38]wFMCommunicate OK [20:06:38]SAM_PROTO_ClearQueue done [20:06:38]KKMCreateOFDPacket [20:06:38]OFDProtocolAddRootSTLVToBuf [20:06:38]FM_MakeSignedData [20:06:38]FM_MakeSignedData [20:06:38]SAM_PROTO_SignData [20:06:38]wFMCommunicate request_size=4 [20:06:38]MH_SAM_APDU [20:06:38]CAPDU: 80 0D 01 02 [20:06:38]Write to MH i2c: E2 08 00 C3 4C 80 0D 01 02 00 00 00 00 88 [20:06:38]Write i2c OK [20:06:38]MH_I2C_Read... [20:06:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:38]Read from MH i2c: E2 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 03 00 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 03 00 C3 4C 00 90 00 83 [20:06:38]RAPDU: 90 00 [20:06:38]wFMCommunicate OK [20:06:38]wFMCommunicate request_size=255 [20:06:38]MH_SAM_APDU [20:06: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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 D3 B5 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 17 74 01 00 35 04 06 00 C7 [20:06:38]Write to MH i2c: E2 02 01 C4 4C 80 0D 02 02 FA 00 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 D3 B5 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 17 74 01 00 35 04 06 00 C7 00 00 10 [20:06:38]Write i2c OK [20:06:38]MH_I2C_Read... [20:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:38]Read from MH i2c: E2 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 03 00 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 03 00 C4 4C 00 90 00 84 [20:06:38]RAPDU: 90 00 [20:06:38]wFMCommunicate OK [20:06:38]wFMCommunicate request_size=10 [20:06:38]MH_SAM_APDU [20:06:38]CAPDU: 80 0D 02 02 05 08 5A 71 EF 25 [20:06:38]Write to MH i2c: E2 0D 00 C5 4C 80 0D 02 02 05 00 08 5A 71 EF 25 00 00 7C [20:06:38]Write i2c OK [20:06:38]MH_I2C_Read... [20:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:38]Read from MH i2c: E2 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 03 00 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 03 00 C5 4C 00 90 00 85 [20:06:38]RAPDU: 90 00 [20:06:38]wFMCommunicate OK [20:06:38]wFMCommunicate request_size=4 [20:06:38]MH_SAM_APDU [20:06:38]CAPDU: 80 0D 03 02 [20:06:38]Write to MH i2c: E2 08 00 C6 4C 80 0D 03 02 00 00 00 00 8D [20:06:38]Write i2c OK [20:06:38]MH_I2C_Read... [20:06:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:38]Read from MH i2c: E2 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 0B 00 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 0B 00 C6 4C 00 3C D3 19 72 F4 23 46 09 90 00 8E [20:06:38]RAPDU: 3C D3 19 72 F4 23 46 09 90 00 [20:06:38]wFMCommunicate OK [20:06:38]SAM_PROTO_SignData done [20:06:38]FM_MakeSignedData done [20:06:38]CreateOFDProtocolMessage [20:06:38]wFMCommunicate request_size=4 [20:06:38]MH_SAM_APDU [20:06:38]CAPDU: 80 11 00 00 [20:06:38]Write to MH i2c: E2 08 00 C7 4C 80 11 00 00 00 00 00 00 8D [20:06:38]Write i2c OK [20:06:38]MH_I2C_Read... [20:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:38]Read from MH i2c: E2 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 17 00 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 17 00 C7 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DD [20:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:06:38]wFMCommunicate OK [20:06:38]CreateOFDProtocolMessage done [20:06:38]OFDSenderStorePacket 95255 [20:06:38]StoreOFDPacket docnum=95255 [20:06:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AF B4 07 01 30 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 D3 B5 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 17 74 01 00 35 04 06 00 C7 08 5A 71 EF 25 3C D3 19 72 F4 23 46 09 [20:06:38]CheckFolder [20:06:38]dirname=/storage/ofd_packets [20:06:38]CheckFolder done [20:06:38]ProducePacketName [20:06:38]name=ofd_packets/00095255 [20:06:38]NVStorageSaveData ofd_packets/00095255 [20:06:38]File name is /storage/ofd_packets/00095255 [20:06:38]Write 301 bytes [20:06:38]NVStorageSaveData done [20:06:38]OFDSenderStorePacket done [20:06:38]KKMCreateOFDPacket done [20:06:38]NVStorageSaveData kkm_last_timestamp [20:06:38]File name is /storage/kkm_last_timestamp [20:06:38]Write 4 bytes [20:06:38]NVStorageSaveData done [20:06:38]ExternCall_PrintAddStr [20:06:38]wPrintStart [20:06:38]Write to MH i2c: 01 00 00 C8 4C 14 [20:06:38]Write i2c OK [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: 01 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: 01 07 00 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: 01 07 00 C8 4C 00 80 00 00 00 FF 0F A9 [20:06:38]RasterBufferAndPrint [20:06:38]line Счет N : (1)196232 [20:06:38]line ИНН: 02508201610067 [20:06:38]line Контрольно-Кассовый Чек [20:06:38]line ПРОДАЖА [20:06:38]line ТРК (МРК, ГНК) : 11 [20:06:38]line Товар: 2710124500 [20:06:38]line Аи-95-К-5 [20:06:38]line 14.390 * 69.50 [20:06:38]line = 1000.11 [20:06:38]line НДС 12% НСП 1% [20:06:38]line > о реализуемом товаре [20:06:38]line ОКРУГЛЕНИЕ: -0.11 [20:06:38]line ИТОГО: 1000.00 [20:06:38]line Внесено: 1000.00 [20:06:38]line СДАЧА: 0.00 [20:06:38]line НСП 1% : 8.85 [20:06:38]line НДС 12% : 106.21 [20:06:38]line Наличными: 1000.00 [20:06:38]line Безнал.: 0.00 [20:06:38]line Место: АЗС № 6 "Партнер Нефть" [20:06:38]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:06:38]line СНО: Общий режим [20:06:38]line Чек 185 12.03.2024 20:06 [20:06:38]line Смена: 327 ФФД: 1.0 [20:06:38]line ЗНМ: 0300000009 [20:06:38]line РНМ: 0000000000090555 [20:06:38]line Версия ККМ: 001 [20:06:38]line ФМ: 0000000000874811 [20:06:38]line ФД: 95255 [20:06:38]line ФПД: 218838691082021 [20:06:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T200643&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95255&fm=218838691082021&tin=02508201610067®Number=0000000000090555&sum=100000 [20:06:38]OFD Sender: Processing packet 95255 [packets to send 30, broken 29] [20:06:38]ProducePacketName [20:06:38]name=ofd_packets/00095255 [20:06:38]OFD Sender: To server: pG, [20:06:38]CommunicateWithHost lk.salyk.kg:30040 [20:06:38]ConnectInit lk.salyk.kg [20:06:38]written 0, free lines is 4095 [20:06:38]Connected sock=10 [20:06:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AF B4 07 01 30 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 D3 B5 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 17 74 01 00 35 04 06 00 C7 08 5A 71 EF 25 3C D3 19 72 F4 23 46 09 [20:06:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 3B 19 47 00 B7 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 17 74 01 00 F4 03 04 00 28 61 F0 65 B6 04 01 00 00 5E 61 EF 0E 62 64 60 0B [20:06:39]CommunicateWithHost err = 0 [20:06:39]CheckOFDResponse [20:06:39]1017 (14) - 77093643461234 [20:06:39]1041 (16) - 0000000000874811 [20:06:39]1040 (4) - 95255 [20:06:39]1012 (4) - 12.03.2024 14:05 [20:06:39]1206 (1) - 0 [20:06:39]OFD Sender: Remove packet 95255 [20:06:39]ProducePacketName [20:06:39]name=ofd_packets/00095255 [20:06:39]NVStorageDeleteData [20:06:39]Write to MH i2c: 01 00 00 F3 4C 3F [20:06:39]Write i2c OK [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: 01 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: 01 07 00 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: 01 07 00 F3 4C 00 80 00 00 00 48 0D 1B [20:06:39]RasterBufferAndPrint [20:06:39]line [20:06:39]line [20:06:39]line [20:06:39]line [20:06:39]line [20:06:39]written 0, free lines is 3406 [20:06:39]process_action close_receipt done [20:06:39]requested_data is exist [20:06:39]produce_requested_data [20:06:39]requested_item fm.sn is exist - process it [20:06:39]wFMCommunicate request_size=4 [20:06:39]MH_SAM_APDU [20:06:39]CAPDU: 80 11 00 00 [20:06:39]Write to MH i2c: E2 08 00 FA 4C 80 11 00 00 00 00 00 00 C0 [20:06:39]Write i2c OK [20:06:39]MH_I2C_Read... [20:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:39]Read from MH i2c: E2 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 17 00 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 17 00 FA 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 10 [20:06:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:06:39]wFMCommunicate OK [20:06:39]requested_item fd.num is exist - process it [20:06:39]SAM_PROTO_GetFieldsCounters [20:06:39]wFMCommunicate request_size=4 [20:06:39]MH_SAM_APDU [20:06:39]CAPDU: 80 13 00 00 [20:06:39]Write to MH i2c: E2 08 00 FB 4C 80 13 00 00 00 00 00 00 C3 [20:06:39]Write i2c OK [20:06:39]MH_I2C_Read... [20:06:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:39]Read from MH i2c: E2 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 62 00 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 62 00 FB 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 17 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [20:06:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 17 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:39]wFMCommunicate OK [20:06:39]SAM_PROTO_GetFieldsCounters done [20:06:39]requested_item shift.num is exist - process it [20:06:39]requested_item shift.opened is exist - process it [20:06:39]req_shift_opened [20:06:39]FM_GetShiftState [20:06:39]SAM_PROTO_GetShiftState [20:06:39]wFMCommunicate request_size=4 [20:06:39]MH_SAM_APDU [20:06:39]CAPDU: 80 13 01 00 [20:06:39]Write to MH i2c: E2 08 00 FC 4C 80 13 01 00 00 00 00 00 C5 [20:06:39]Write i2c OK [20:06:39]MH_I2C_Read... [20:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:39]Read from MH i2c: E2 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 0E 00 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 0E 00 FC 4C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 39 [20:06:39]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:06:39]wFMCommunicate OK [20:06:39]SAM_PROTO_GetShiftState done [20:06:39]FM_GetShiftState done [20:06:39]req_shift_opened done [20:06:39]requested_item shift.open_date is exist - process it [20:06:39]req_shift_open_date [20:06:39]req_shift_open_date done [20:06:39]produce_requested_data done [20:06:39]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95255,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [20:06:39]process_action_free close_receipt [20:06:39]json_value_free [20:06:39]json_value_free done [20:06:39]process_json_proto returns [20:06:39]Send response to host [20:06:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95255,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [20:06:39]free response buf [20:06:39]execute_script done [20:06:39]execute_script returns [20:06:39]free content buf [20:06:39]Sock 9.Close socket [20:06:39]Sock 9.Thread stoped [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:58]accept exits with 8 [20:07:58]New connection [20:07:58]New thread 3066813796 created [20:07:58]Thread 3066957156 joined [20:07:58]Waiting for new connection... [20:07:58] Sock 8.Parse request [20:07:58]Sock 8.Check first char [20:07:58]Sock 8.First char is OK [20:07:58]request: POST /json_proto HTTP/1.0 [20:07:58]Method: POST [20:07:58]URL: /json_proto [20:07:58]Method is POST - this is cgi request [20:07:58]url: /json_proto [20:07:58]query_string will be loaded in cgi processing [20:07:58]execute_cgi json_proto POST (null) [20:07:58]execute_cgi path=json_proto method=POST [20:07:58]POST find Content-Length [20:07:58]Host: 172.17.62.67:8080 [20:07:58]Content-Length: 817 [20:07:58]Content-Type: application/json [20:07:58] [20:07:58]POST finish read [20:07:58]Found Content-Length = 817 [20:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:58]execute_script... [20:07: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)196233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:58]POST & json_proto [20:07:58]process_json_proto [20:07:58]json parsed OK: [20:07:58]protocol is kg_v1.0 [20:07:58]action value=close_receipt [20:07:58]process_action close_receipt [20:07:58]cmd_close_receipt [20:07:58]MH_GetDate [20:07:58]Write to MH i2c: F0 00 00 FD 4C 38 [20:07:58]Write i2c OK [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: F0 [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: F0 05 00 [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: F0 05 00 FD 4C 00 25 B6 F0 65 6D [20:07:58]GetLastDocTimeStamp 1710274003 [20:07:58]current date 1710274085 [20:07:58]FM_GetShiftState [20:07:58]SAM_PROTO_GetShiftState [20:07:58]wFMCommunicate request_size=4 [20:07:58]MH_SAM_APDU [20:07:58]CAPDU: 80 13 01 00 [20:07:58]Write to MH i2c: E2 08 00 FE 4C 80 13 01 00 00 00 00 00 C7 [20:07:58]Write i2c OK [20:07:58]MH_I2C_Read... [20:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:58]Read from MH i2c: E2 [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: E2 0E 00 [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: E2 0E 00 FE 4C 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 3B [20:07:58]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:07:58]wFMCommunicate OK [20:07:58]SAM_PROTO_GetShiftState done [20:07:58]FM_GetShiftState done [20:07:58]opened in 1710201976 [20:07:58]opened+sec_in_day 1710288376 [20:07:58]quantity*price = 62900 [20:07:58]sum+1 = 62901 [20:07:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 0.00 Безнал.: 629.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 186 12.03.2024 20:08 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95256 ФПД: 164033804092605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T200805&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95256&fm=164033804092605&tin=02508201610067®Number=0000000000090555&sum=62900 [20:07:59]StoreToDocumentArchive [20:07:59]shift 327 fd 95256 [20:07:59]save to /storage/0327/doc_00095256 [20:07:59]save last doc name /storage/0327/doc_00095256 to /storage/kkm_last_doc_name [20:07:59]save OK [20:07:59]Clear old archive folders... [20:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:07:59]tlvbuf is 01A46130 [20:07:59]SAM_PROTO_ClearQueue [20:07:59]wFMCommunicate request_size=4 [20:07:59]MH_SAM_APDU [20:07:59]CAPDU: 80 09 00 00 [20:07:59]Write to MH i2c: E2 08 00 0B 4D 80 09 00 00 00 00 00 00 CA [20:07:59]Write i2c OK [20:07:59]MH_I2C_Read... [20:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:59]Read from MH i2c: E2 [20:07:59]MH_I2C_Read... [20:07:59]Read from MH i2c: E2 03 00 [20:07:59]MH_I2C_Read... [20:07:59]Read from MH i2c: E2 03 00 0B 4D 00 90 00 CC [20:07:59]RAPDU: 90 00 [20:07:59]wFMCommunicate OK [20:07:59]SAM_PROTO_ClearQueue done [20:07:59]KKMCreateOFDPacket [20:07:59]OFDProtocolAddRootSTLVToBuf [20:07:59]FM_MakeSignedData [20:07:59]FM_MakeSignedData [20:07:59]SAM_PROTO_SignData [20:07:59]wFMCommunicate request_size=4 [20:07:59]MH_SAM_APDU [20:07:59]CAPDU: 80 0D 01 02 [20:07:59]Write to MH i2c: E2 08 00 0C 4D 80 0D 01 02 00 00 00 00 D2 [20:07:59]Write i2c OK [20:07:59]MH_I2C_Read... [20:07:59]OFD Sender: No OFD packet to send [20:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:59]Read from MH i2c: E2 [20:07:59]MH_I2C_Read... [20:07:59]Read from MH i2c: E2 03 00 [20:07:59]MH_I2C_Read... [20:07:59]Read from MH i2c: E2 03 00 0C 4D 00 90 00 CD [20:07:59]RAPDU: 90 00 [20:07:59]wFMCommunicate OK [20:07:59]wFMCommunicate request_size=255 [20:07:59]MH_SAM_APDU [20:07:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 25 B6 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 18 74 01 00 35 04 06 00 95 [20:07:59]Write to MH i2c: E2 02 01 0D 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 25 B6 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 18 74 01 00 35 04 06 00 95 00 00 69 [20:07:59]Write i2c OK [20:07:59]MH_I2C_Read... [20:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:00]Read from MH i2c: E2 [20:08:00]MH_I2C_Read... [20:08:00]Read from MH i2c: E2 03 00 [20:08:00]MH_I2C_Read... [20:08:00]Read from MH i2c: E2 03 00 0D 4D 00 90 00 CE [20:08:00]RAPDU: 90 00 [20:08:00]wFMCommunicate OK [20:08:00]wFMCommunicate request_size=10 [20:08:00]MH_SAM_APDU [20:08:00]CAPDU: 80 0D 02 02 05 30 18 9F C4 BD [20:08:00]Write to MH i2c: E2 0D 00 0E 4D 80 0D 02 02 05 00 30 18 9F C4 BD 00 00 47 [20:08:00]Write i2c OK [20:08:00]MH_I2C_Read... [20:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:00]Read from MH i2c: E2 [20:08:00]MH_I2C_Read... [20:08:00]Read from MH i2c: E2 03 00 [20:08:00]MH_I2C_Read... [20:08:00]Read from MH i2c: E2 03 00 0E 4D 00 90 00 CF [20:08:00]RAPDU: 90 00 [20:08:00]wFMCommunicate OK [20:08:00]wFMCommunicate request_size=4 [20:08:00]MH_SAM_APDU [20:08:00]CAPDU: 80 0D 03 02 [20:08:00]Write to MH i2c: E2 08 00 0F 4D 80 0D 03 02 00 00 00 00 D7 [20:08:00]Write i2c OK [20:08:00]MH_I2C_Read... [20:08:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:00]Read from MH i2c: E2 [20:08:00]MH_I2C_Read... [20:08:00]Read from MH i2c: E2 0B 00 [20:08:00]MH_I2C_Read... [20:08:00]Read from MH i2c: E2 0B 00 0F 4D 00 E6 10 27 BE 65 94 25 63 90 00 34 [20:08:00]RAPDU: E6 10 27 BE 65 94 25 63 90 00 [20:08:00]wFMCommunicate OK [20:08:00]SAM_PROTO_SignData done [20:08:00]FM_MakeSignedData done [20:08:00]CreateOFDProtocolMessage [20:08:00]wFMCommunicate request_size=4 [20:08:00]MH_SAM_APDU [20:08:00]CAPDU: 80 11 00 00 [20:08:00]Write to MH i2c: E2 08 00 10 4D 80 11 00 00 00 00 00 00 D7 [20:08:00]Write i2c OK [20:08:00]MH_I2C_Read... [20:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:00]Read from MH i2c: E2 [20:08:00]MH_I2C_Read... [20:08:00]Read from MH i2c: E2 17 00 [20:08:00]MH_I2C_Read... [20:08:00]Read from MH i2c: E2 17 00 10 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 27 [20:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:08:00]wFMCommunicate OK [20:08:00]CreateOFDProtocolMessage done [20:08:00]OFDSenderStorePacket 95256 [20:08:00]StoreOFDPacket docnum=95256 [20:08:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 87 F0 07 01 42 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 25 B6 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 18 74 01 00 35 04 06 00 95 30 18 9F C4 BD E6 10 27 BE 65 94 25 63 [20:08:00]CheckFolder [20:08:00]dirname=/storage/ofd_packets [20:08:00]CheckFolder done [20:08:00]ProducePacketName [20:08:00]name=ofd_packets/00095256 [20:08:00]NVStorageSaveData ofd_packets/00095256 [20:08:00]File name is /storage/ofd_packets/00095256 [20:08:00]Write 301 bytes [20:08:00]NVStorageSaveData done [20:08:00]OFDSenderStorePacket done [20:08:00]KKMCreateOFDPacket done [20:08:00]NVStorageSaveData kkm_last_timestamp [20:08:00]File name is /storage/kkm_last_timestamp [20:08:00]Write 4 bytes [20:08:00]NVStorageSaveData done [20:08:00]ExternCall_PrintAddStr [20:08:00]wPrintStart [20:08:00]Write to MH i2c: 01 00 00 11 4D 5E [20:08:00]Write i2c OK [20:08:00]MH_I2C_Read... [20:08:00]Read from MH i2c: 01 [20:08:00]MH_I2C_Read... [20:08:00]Read from MH i2c: 01 07 00 [20:08:00]MH_I2C_Read... [20:08:00]Read from MH i2c: 01 07 00 11 4D 00 80 00 00 00 FF 0F F3 [20:08:00]RasterBufferAndPrint [20:08:00]line Счет N : (1)196233 [20:08:00]line ИНН: 02508201610067 [20:08:00]line Контрольно-Кассовый Чек [20:08:00]line ПРОДАЖА [20:08:00]line ТРК (МРК, ГНК) : 32 [20:08:00]line Товар: 2710124130 [20:08:00]line Аи-92-К-5 [20:08:00]line 10.000 * 62.90 [20:08:00]line = 629.00 [20:08:00]line НДС 12% НСП 1% [20:08:00]line > о реализуемом товаре [20:08:00]line ИТОГО: 629.00 [20:08:00]line НСП 1% : 5.57 [20:08:00]line НДС 12% : 66.80 [20:08:00]line Наличными: 0.00 [20:08:00]line Безнал.: 629.00 [20:08:00]line Место: АЗС № 6 "Партнер Нефть" [20:08:00]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:08:00]line СНО: Общий режим [20:08:00]line Чек 186 12.03.2024 20:08 [20:08:00]line Смена: 327 ФФД: 1.0 [20:08:00]line ЗНМ: 0300000009 [20:08:00]line РНМ: 0000000000090555 [20:08:00]line Версия ККМ: 001 [20:08:00]line Платежная система: Бакай Банк [20:08:00]line ФМ: 0000000000874811 [20:08:00]line ФД: 95256 [20:08:00]line ФПД: 164033804092605 [20:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T200805&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95256&fm=164033804092605&tin=02508201610067®Number=0000000000090555&sum=62900 [20:08:00]written 0, free lines is 4095 [20:08:00]OFD Sender: Processing packet 95256 [packets to send 30, broken 29] [20:08:00]ProducePacketName [20:08:00]name=ofd_packets/00095256 [20:08:00]OFD Sender: To server: pG, [20:08:00]CommunicateWithHost lk.salyk.kg:30040 [20:08:00]ConnectInit lk.salyk.kg [20:08:00]Connected sock=10 [20:08:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 87 F0 07 01 42 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 25 B6 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 18 74 01 00 35 04 06 00 95 30 18 9F C4 BD E6 10 27 BE 65 94 25 63 [20:08:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 EA 97 47 00 82 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 18 74 01 00 F4 03 04 00 7A 61 F0 65 B6 04 01 00 00 8E 41 64 42 4D 2A 50 7C [20:08:00]CommunicateWithHost err = 0 [20:08:00]CheckOFDResponse [20:08:00]1017 (14) - 77093643461234 [20:08:00]1041 (16) - 0000000000874811 [20:08:00]1040 (4) - 95256 [20:08:00]1012 (4) - 12.03.2024 14:06 [20:08:00]1206 (1) - 0 [20:08:00]OFD Sender: Remove packet 95256 [20:08:00]ProducePacketName [20:08:00]name=ofd_packets/00095256 [20:08:00]NVStorageDeleteData [20:08:01]Write to MH i2c: 01 00 00 3B 4D 88 [20:08:01]Write i2c OK [20:08:01]MH_I2C_Read... [20:08:01]Read from MH i2c: 01 [20:08:01]MH_I2C_Read... [20:08:01]Read from MH i2c: 01 07 00 [20:08:01]MH_I2C_Read... [20:08:01]Read from MH i2c: 01 07 00 3B 4D 00 80 00 00 00 5E 0D 7A [20:08:01]RasterBufferAndPrint [20:08:01]line [20:08:01]line [20:08:01]line [20:08:01]line [20:08:01]line [20:08:01]written 0, free lines is 3430 [20:08:01]process_action close_receipt done [20:08:01]requested_data is exist [20:08:01]produce_requested_data [20:08:01]requested_item fm.sn is exist - process it [20:08:01]wFMCommunicate request_size=4 [20:08:01]MH_SAM_APDU [20:08:01]CAPDU: 80 11 00 00 [20:08:01]Write to MH i2c: E2 08 00 42 4D 80 11 00 00 00 00 00 00 09 [20:08:01]Write i2c OK [20:08:01]MH_I2C_Read... [20:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:01]Read from MH i2c: E2 [20:08:01]MH_I2C_Read... [20:08:01]Read from MH i2c: E2 17 00 [20:08:01]MH_I2C_Read... [20:08:01]Read from MH i2c: E2 17 00 42 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 59 [20:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:08:01]wFMCommunicate OK [20:08:01]requested_item fd.num is exist - process it [20:08:01]SAM_PROTO_GetFieldsCounters [20:08:01]wFMCommunicate request_size=4 [20:08:01]MH_SAM_APDU [20:08:01]CAPDU: 80 13 00 00 [20:08:01]Write to MH i2c: E2 08 00 43 4D 80 13 00 00 00 00 00 00 0C [20:08:01]Write i2c OK [20:08:01]MH_I2C_Read... [20:08:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:01]Read from MH i2c: E2 [20:08:01]MH_I2C_Read... [20:08:01]Read from MH i2c: E2 62 00 [20:08:01]MH_I2C_Read... [20:08:01]Read from MH i2c: E2 62 00 43 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 18 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [20:08:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 18 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:01]wFMCommunicate OK [20:08:01]SAM_PROTO_GetFieldsCounters done [20:08:01]requested_item shift.num is exist - process it [20:08:01]requested_item shift.opened is exist - process it [20:08:01]req_shift_opened [20:08:01]FM_GetShiftState [20:08:01]SAM_PROTO_GetShiftState [20:08:01]wFMCommunicate request_size=4 [20:08:01]MH_SAM_APDU [20:08:01]CAPDU: 80 13 01 00 [20:08:01]Write to MH i2c: E2 08 00 44 4D 80 13 01 00 00 00 00 00 0E [20:08:01]Write i2c OK [20:08:01]MH_I2C_Read... [20:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:01]OFD Sender: No OFD packet to send [20:08:01]Read from MH i2c: E2 [20:08:01]MH_I2C_Read... [20:08:01]Read from MH i2c: E2 0E 00 [20:08:01]MH_I2C_Read... [20:08:01]Read from MH i2c: E2 0E 00 44 4D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 82 [20:08:01]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:08:01]wFMCommunicate OK [20:08:01]SAM_PROTO_GetShiftState done [20:08:01]FM_GetShiftState done [20:08:01]req_shift_opened done [20:08:01]requested_item shift.open_date is exist - process it [20:08:01]req_shift_open_date [20:08:01]req_shift_open_date done [20:08:01]produce_requested_data done [20:08:01]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95256,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [20:08:01]process_action_free close_receipt [20:08:01]json_value_free [20:08:01]json_value_free done [20:08:01]process_json_proto returns [20:08:01]Send response to host [20:08:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95256,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [20:08:01]free response buf [20:08:01]execute_script done [20:08:01]execute_script returns [20:08:01]free content buf [20:08:01]Sock 8.Close socket [20:08:01]Sock 8.Thread stoped [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]accept exits with 9 [20:12:11]New connection [20:12:11]New thread 3066957156 created [20:12:11]Thread 3066813796 joined [20:12:11]Waiting for new connection... [20:12:11] Sock 9.Parse request [20:12:11]Sock 9.Check first char [20:12:11]Sock 9.First char is OK [20:12:11]request: POST /json_proto HTTP/1.0 [20:12:11]Method: POST [20:12:11]URL: /json_proto [20:12:11]Method is POST - this is cgi request [20:12:11]url: /json_proto [20:12:11]query_string will be loaded in cgi processing [20:12:11]execute_cgi json_proto POST (null) [20:12:11]execute_cgi path=json_proto method=POST [20:12:11]POST find Content-Length [20:12:11]Host: 172.17.62.67:8080 [20:12:11]Content-Length: 671 [20:12:11]Content-Type: application/json [20:12:11] [20:12:11]POST finish read [20:12:11]Found Content-Length = 671 [20:12:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.960, "sum" : 700.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:11]execute_script... [20:12: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)196234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.960, "sum" : 700.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:11]POST & json_proto [20:12:11]process_json_proto [20:12:11]json parsed OK: [20:12:11]protocol is kg_v1.0 [20:12:11]action value=close_receipt [20:12:11]process_action close_receipt [20:12:11]cmd_close_receipt [20:12:11]MH_GetDate [20:12:11]Write to MH i2c: F0 00 00 45 4D 81 [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: F0 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: F0 05 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: F0 05 00 45 4D 00 22 B7 F0 65 B4 [20:12:11]GetLastDocTimeStamp 1710274085 [20:12:11]current date 1710274338 [20:12:11]FM_GetShiftState [20:12:11]SAM_PROTO_GetShiftState [20:12:11]wFMCommunicate request_size=4 [20:12:11]MH_SAM_APDU [20:12:11]CAPDU: 80 13 01 00 [20:12:11]Write to MH i2c: E2 08 00 46 4D 80 13 01 00 00 00 00 00 10 [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]OFD Sender: No OFD packet to send [20:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:11]Read from MH i2c: E2 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 0E 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 0E 00 46 4D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 84 [20:12:11]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:12:11]wFMCommunicate OK [20:12:11]SAM_PROTO_GetShiftState done [20:12:11]FM_GetShiftState done [20:12:11]opened in 1710201976 [20:12:11]opened+sec_in_day 1710288376 [20:12:11]quantity*price = 70034 [20:12:11]sum+1 = 70035 [20:12:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 187 12.03.2024 20:12 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95257 ФПД: 211857885867472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T201218&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95257&fm=211857885867472&tin=02508201610067®Number=0000000000090555&sum=70000 [20:12:12]StoreToDocumentArchive [20:12:12]shift 327 fd 95257 [20:12:12]save to /storage/0327/doc_00095257 [20:12:12]save last doc name /storage/0327/doc_00095257 to /storage/kkm_last_doc_name [20:12:12]save OK [20:12:12]Clear old archive folders... [20:12:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:12:12]tlvbuf is 01B3CB50 [20:12:12]SAM_PROTO_ClearQueue [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 09 00 00 [20:12:12]Write to MH i2c: E2 08 00 53 4D 80 09 00 00 00 00 00 00 12 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 03 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 03 00 53 4D 00 90 00 14 [20:12:12]RAPDU: 90 00 [20:12:12]wFMCommunicate OK [20:12:12]SAM_PROTO_ClearQueue done [20:12:12]KKMCreateOFDPacket [20:12:12]OFDProtocolAddRootSTLVToBuf [20:12:12]FM_MakeSignedData [20:12:12]FM_MakeSignedData [20:12:12]SAM_PROTO_SignData [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 0D 01 02 [20:12:12]Write to MH i2c: E2 08 00 54 4D 80 0D 01 02 00 00 00 00 1A [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 03 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 03 00 54 4D 00 90 00 15 [20:12:12]RAPDU: 90 00 [20:12:12]wFMCommunicate OK [20:12:12]wFMCommunicate request_size=255 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 2A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 92 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 22 B7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 19 74 01 00 35 04 06 00 [20:12:12]Write to MH i2c: E2 02 01 55 4D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 2A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 92 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 22 B7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 19 74 01 00 35 04 06 00 00 00 C4 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:13]Read from MH i2c: E2 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: E2 03 00 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: E2 03 00 55 4D 00 90 00 16 [20:12:13]RAPDU: 90 00 [20:12:13]wFMCommunicate OK [20:12:13]wFMCommunicate request_size=11 [20:12:13]MH_SAM_APDU [20:12:13]CAPDU: 80 0D 02 02 06 C0 AF 02 07 AD D0 [20:12:13]Write to MH i2c: E2 0E 00 56 4D 80 0D 02 02 06 00 C0 AF 02 07 AD D0 00 00 1E [20:12:13]Write i2c OK [20:12:13]MH_I2C_Read... [20:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:13]Read from MH i2c: E2 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: E2 03 00 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: E2 03 00 56 4D 00 90 00 17 [20:12:13]RAPDU: 90 00 [20:12:13]wFMCommunicate OK [20:12:13]wFMCommunicate request_size=4 [20:12:13]MH_SAM_APDU [20:12:13]CAPDU: 80 0D 03 02 [20:12:13]Write to MH i2c: E2 08 00 57 4D 80 0D 03 02 00 00 00 00 1F [20:12:13]Write i2c OK [20:12:13]MH_I2C_Read... [20:12:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:13]Read from MH i2c: E2 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: E2 0B 00 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: E2 0B 00 57 4D 00 BB 09 3D 9A B9 7D 95 00 90 00 86 [20:12:13]RAPDU: BB 09 3D 9A B9 7D 95 00 90 00 [20:12:13]wFMCommunicate OK [20:12:13]SAM_PROTO_SignData done [20:12:13]FM_MakeSignedData done [20:12:13]CreateOFDProtocolMessage [20:12:13]wFMCommunicate request_size=4 [20:12:13]MH_SAM_APDU [20:12:13]CAPDU: 80 11 00 00 [20:12:13]Write to MH i2c: E2 08 00 58 4D 80 11 00 00 00 00 00 00 1F [20:12:13]Write i2c OK [20:12:13]MH_I2C_Read... [20:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:13]Read from MH i2c: E2 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: E2 17 00 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: E2 17 00 58 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6F [20:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:12:13]wFMCommunicate OK [20:12:13]CreateOFDProtocolMessage done [20:12:13]OFDSenderStorePacket 95257 [20:12:13]StoreOFDPacket docnum=95257 [20:12:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 17 BA 08 01 F1 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 2A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 92 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 22 B7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 19 74 01 00 35 04 06 00 C0 AF 02 07 AD D0 BB 09 3D 9A B9 7D 95 00 [20:12:13]CheckFolder [20:12:13]dirname=/storage/ofd_packets [20:12:13]CheckFolder done [20:12:13]ProducePacketName [20:12:13]name=ofd_packets/00095257 [20:12:13]NVStorageSaveData ofd_packets/00095257 [20:12:13]File name is /storage/ofd_packets/00095257 [20:12:13]Write 302 bytes [20:12:13]NVStorageSaveData done [20:12:13]OFDSenderStorePacket done [20:12:13]KKMCreateOFDPacket done [20:12:13]NVStorageSaveData kkm_last_timestamp [20:12:13]File name is /storage/kkm_last_timestamp [20:12:13]Write 4 bytes [20:12:13]NVStorageSaveData done [20:12:13]ExternCall_PrintAddStr [20:12:13]wPrintStart [20:12:13]Write to MH i2c: 01 00 00 59 4D A6 [20:12:13]Write i2c OK [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: 01 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: 01 07 00 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: 01 07 00 59 4D 00 80 00 00 00 FF 0F 3B [20:12:13]RasterBufferAndPrint [20:12:13]line Счет N : (1)196234 [20:12:13]line ИНН: 02508201610067 [20:12:13]line Контрольно-Кассовый Чек [20:12:13]line ПРОДАЖА [20:12:13]line ТРК (МРК, ГНК) : 43 [20:12:13]line Товар: 2710124130 [20:12:13]line SUPER 92-К-5 [20:12:13]line 10.960 * 63.90 [20:12:13]line = 700.34 [20:12:13]line НДС 12% НСП 1% [20:12:13]line > о реализуемом товаре [20:12:13]line ОКРУГЛЕНИЕ: -0.34 [20:12:13]line ИТОГО: 700.00 [20:12:13]line Внесено: 700.00 [20:12:13]line СДАЧА: 0.00 [20:12:13]line НСП 1% : 6.20 [20:12:13]line НДС 12% : 74.37 [20:12:13]line Наличными: 700.00 [20:12:13]line Безнал.: 0.00 [20:12:13]line Место: АЗС № 6 "Партнер Нефть" [20:12:13]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:12:13]line СНО: Общий режим [20:12:13]line Чек 187 12.03.2024 20:12 [20:12:13]line Смена: 327 ФФД: 1.0 [20:12:13]line ЗНМ: 0300000009 [20:12:13]line РНМ: 0000000000090555 [20:12:13]line Версия ККМ: 001 [20:12:13]line ФМ: 0000000000874811 [20:12:13]line ФД: 95257 [20:12:13]line ФПД: 211857885867472 [20:12:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T201218&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95257&fm=211857885867472&tin=02508201610067®Number=0000000000090555&sum=70000 [20:12:13]OFD Sender: Processing packet 95257 [packets to send 30, broken 29] [20:12:13]ProducePacketName [20:12:13]name=ofd_packets/00095257 [20:12:13]OFD Sender: To server: pG, [20:12:13]CommunicateWithHost lk.salyk.kg:30040 [20:12:13]ConnectInit lk.salyk.kg [20:12:13]written 0, free lines is 4095 [20:12:13]Connected sock=10 [20:12:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 17 BA 08 01 F1 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 2A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 92 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 22 B7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 19 74 01 00 35 04 06 00 C0 AF 02 07 AD D0 BB 09 3D 9A B9 7D 95 00 [20:12:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 6D 7F 47 00 2C 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 19 74 01 00 F4 03 04 00 77 62 F0 65 B6 04 01 00 00 67 46 1A 33 26 31 28 AF [20:12:13]CommunicateWithHost err = 0 [20:12:13]CheckOFDResponse [20:12:13]1017 (14) - 77093643461234 [20:12:13]1041 (16) - 0000000000874811 [20:12:13]1040 (4) - 95257 [20:12:13]1012 (4) - 12.03.2024 14:11 [20:12:13]1206 (1) - 0 [20:12:13]OFD Sender: Remove packet 95257 [20:12:13]ProducePacketName [20:12:13]name=ofd_packets/00095257 [20:12:13]NVStorageDeleteData [20:12:14]Write to MH i2c: 01 00 00 84 4D D1 [20:12:14]Write i2c OK [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: 01 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: 01 07 00 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: 01 07 00 84 4D 00 80 00 00 00 54 0D B9 [20:12:14]RasterBufferAndPrint [20:12:14]line [20:12:14]line [20:12:14]line [20:12:14]line [20:12:14]line [20:12:14]written 0, free lines is 3418 [20:12:14]process_action close_receipt done [20:12:14]requested_data is exist [20:12:14]produce_requested_data [20:12:14]requested_item fm.sn is exist - process it [20:12:14]wFMCommunicate request_size=4 [20:12:14]MH_SAM_APDU [20:12:14]CAPDU: 80 11 00 00 [20:12:14]Write to MH i2c: E2 08 00 8B 4D 80 11 00 00 00 00 00 00 52 [20:12:14]Write i2c OK [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: E2 [20:12:14]MH_I2C_Read... [20:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:14]Read from MH i2c: E2 17 00 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: E2 17 00 8B 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A2 [20:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:12:14]wFMCommunicate OK [20:12:14]requested_item fd.num is exist - process it [20:12:14]SAM_PROTO_GetFieldsCounters [20:12:14]wFMCommunicate request_size=4 [20:12:14]MH_SAM_APDU [20:12:14]CAPDU: 80 13 00 00 [20:12:14]Write to MH i2c: E2 08 00 8C 4D 80 13 00 00 00 00 00 00 55 [20:12:14]Write i2c OK [20:12:14]MH_I2C_Read... [20:12:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:14]Read from MH i2c: E2 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: E2 62 00 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: E2 62 00 8C 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 19 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [20:12:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 19 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:14]wFMCommunicate OK [20:12:14]SAM_PROTO_GetFieldsCounters done [20:12:14]requested_item shift.num is exist - process it [20:12:14]requested_item shift.opened is exist - process it [20:12:14]req_shift_opened [20:12:14]FM_GetShiftState [20:12:14]SAM_PROTO_GetShiftState [20:12:14]wFMCommunicate request_size=4 [20:12:14]MH_SAM_APDU [20:12:14]CAPDU: 80 13 01 00 [20:12:14]Write to MH i2c: E2 08 00 8D 4D 80 13 01 00 00 00 00 00 57 [20:12:14]Write i2c OK [20:12:14]MH_I2C_Read... [20:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:14]Read from MH i2c: E2 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: E2 0E 00 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: E2 0E 00 8D 4D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CB [20:12:14]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:12:14]wFMCommunicate OK [20:12:14]SAM_PROTO_GetShiftState done [20:12:14]FM_GetShiftState done [20:12:14]req_shift_opened done [20:12:14]requested_item shift.open_date is exist - process it [20:12:14]req_shift_open_date [20:12:14]req_shift_open_date done [20:12:14]produce_requested_data done [20:12:14]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95257,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [20:12:14]process_action_free close_receipt [20:12:14]json_value_free [20:12:14]json_value_free done [20:12:14]process_json_proto returns [20:12:14]Send response to host [20:12:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95257,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [20:12:14]free response buf [20:12:14]execute_script done [20:12:14]execute_script returns [20:12:14]free content buf [20:12:14]Sock 9.Close socket [20:12:14]Sock 9.Thread stoped [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:24]int [20:12:24]Write to MH i2c: 01 00 00 8E 4D DB [20:12:24]Write i2c OK [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: 01 [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: 01 07 00 [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: 01 07 00 8E 4D 00 81 00 00 00 FF 0F 71 [20:12:24]state=0 [20:12:24]No paper [20:12:24]int [20:12:24]Write to MH i2c: 01 00 00 8F 4D DC [20:12:24]Write i2c OK [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: 01 [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: 01 07 00 [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: 01 07 00 8F 4D 00 83 00 00 00 FF 0F 74 [20:12:24]state=0 [20:12:24]No paper [20:12:24]Cover opened [20:12:29]OFD Sender: No OFD packet to send [20:12:29]Write to MH i2c: 01 00 00 90 4D DD [20:12:29]Write i2c OK [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: 01 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: 01 07 00 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: 01 07 00 90 4D 00 83 00 00 00 FF 0F 75 [20:12:29]state=3 [20:12:29]No paper [20:12:29]Cover opened [20:12:34]OFD Sender: No OFD packet to send [20:12:34]Write to MH i2c: 01 00 00 91 4D DE [20:12:34]Write i2c OK [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: 01 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: 01 07 00 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: 01 07 00 91 4D 00 83 00 00 00 FF 0F 76 [20:12:34]state=3 [20:12:34]No paper [20:12:34]Cover opened [20:12:37]int [20:12:37]Write to MH i2c: 01 00 00 92 4D DF [20:12:37]Write i2c OK [20:12:37]MH_I2C_Read... [20:12:37]Read from MH i2c: 01 [20:12:37]MH_I2C_Read... [20:12:37]Read from MH i2c: 01 07 00 [20:12:37]MH_I2C_Read... [20:12:37]Read from MH i2c: 01 07 00 92 4D 00 81 00 00 00 FF 0F 75 [20:12:37]state=3 [20:12:37]No paper [20:12:37]Cover closed [20:12:37]int [20:12:37]Write to MH i2c: 01 00 00 93 4D E0 [20:12:37]Write i2c OK [20:12:37]MH_I2C_Read... [20:12:37]Read from MH i2c: 01 [20:12:37]MH_I2C_Read... [20:12:37]Read from MH i2c: 01 07 00 [20:12:37]MH_I2C_Read... [20:12:37]Read from MH i2c: 01 07 00 93 4D 00 80 00 00 00 FF 0F 75 [20:12:37]state=0 [20:12:39]OFD Sender: No OFD packet to send [20:12:41]accept exits with 8 [20:12:41]New connection [20:12:41]New thread 3066813796 created [20:12:41]Thread 3066957156 joined [20:12:41]Waiting for new connection... [20:12:41] Sock 8.Parse request [20:12:41]Sock 8.Check first char [20:12:41]Sock 8.First char is OK [20:12:41]request: POST /json_proto HTTP/1.0 [20:12:41]Method: POST [20:12:41]URL: /json_proto [20:12:41]Method is POST - this is cgi request [20:12:41]url: /json_proto [20:12:41]query_string will be loaded in cgi processing [20:12:41]execute_cgi json_proto POST (null) [20:12:41]execute_cgi path=json_proto method=POST [20:12:41]POST find Content-Length [20:12:41]Host: 172.17.62.67:8080 [20:12:41]Content-Length: 633 [20:12:41]Content-Type: application/json [20:12:41] [20:12:41]POST finish read [20:12:41]Found Content-Length = 633 [20:12:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.000, "sum" : 639.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 639.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:41]execute_script... [20:12:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.000, "sum" : 639.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 639.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:41]POST & json_proto [20:12:41]process_json_proto [20:12:41]json parsed OK: [20:12:41]protocol is kg_v1.0 [20:12:41]action value=close_receipt [20:12:41]process_action close_receipt [20:12:41]cmd_close_receipt [20:12:41]MH_GetDate [20:12:41]Write to MH i2c: F0 00 00 94 4D D0 [20:12:41]Write i2c OK [20:12:41]MH_I2C_Read... [20:12:41]Read from MH i2c: F0 [20:12:41]MH_I2C_Read... [20:12:41]Read from MH i2c: F0 05 00 [20:12:41]MH_I2C_Read... [20:12:41]Read from MH i2c: F0 05 00 94 4D 00 40 B7 F0 65 21 [20:12:41]GetLastDocTimeStamp 1710274338 [20:12:41]current date 1710274368 [20:12:41]FM_GetShiftState [20:12:41]SAM_PROTO_GetShiftState [20:12:41]wFMCommunicate request_size=4 [20:12:41]MH_SAM_APDU [20:12:41]CAPDU: 80 13 01 00 [20:12:41]Write to MH i2c: E2 08 00 95 4D 80 13 01 00 00 00 00 00 5F [20:12:41]Write i2c OK [20:12:41]MH_I2C_Read... [20:12:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:41]Read from MH i2c: E2 [20:12:41]MH_I2C_Read... [20:12:41]Read from MH i2c: E2 0E 00 [20:12:41]MH_I2C_Read... [20:12:41]Read from MH i2c: E2 0E 00 95 4D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D3 [20:12:41]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:12:41]wFMCommunicate OK [20:12:41]SAM_PROTO_GetShiftState done [20:12:41]FM_GetShiftState done [20:12:41]opened in 1710201976 [20:12:41]opened+sec_in_day 1710288376 [20:12:41]quantity*price = 63900 [20:12:41]sum+1 = 63901 [20:12:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 639.00 НСП 1% : 5.65 НДС 12% : 67.86 Наличными: 639.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 188 12.03.2024 20:12 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95258 ФПД: 263320487816196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T201248&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95258&fm=263320487816196&tin=02508201610067®Number=0000000000090555&sum=63900 [20:12:42]StoreToDocumentArchive [20:12:42]shift 327 fd 95258 [20:12:42]save to /storage/0327/doc_00095258 [20:12:42]save last doc name /storage/0327/doc_00095258 to /storage/kkm_last_doc_name [20:12:42]save OK [20:12:42]Clear old archive folders... [20:12:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:12:42]tlvbuf is 01AF25A0 [20:12:42]SAM_PROTO_ClearQueue [20:12:42]wFMCommunicate request_size=4 [20:12:42]MH_SAM_APDU [20:12:42]CAPDU: 80 09 00 00 [20:12:42]Write to MH i2c: E2 08 00 A2 4D 80 09 00 00 00 00 00 00 61 [20:12:42]Write i2c OK [20:12:42]MH_I2C_Read... [20:12:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:42]Read from MH i2c: E2 [20:12:42]MH_I2C_Read... [20:12:42]Read from MH i2c: E2 03 00 [20:12:42]MH_I2C_Read... [20:12:42]Read from MH i2c: E2 03 00 A2 4D 00 90 00 63 [20:12:42]RAPDU: 90 00 [20:12:42]wFMCommunicate OK [20:12:42]SAM_PROTO_ClearQueue done [20:12:42]KKMCreateOFDPacket [20:12:42]OFDProtocolAddRootSTLVToBuf [20:12:42]FM_MakeSignedData [20:12:42]FM_MakeSignedData [20:12:42]SAM_PROTO_SignData [20:12:42]wFMCommunicate request_size=4 [20:12:42]MH_SAM_APDU [20:12:42]CAPDU: 80 0D 01 02 [20:12:42]Write to MH i2c: E2 08 00 A3 4D 80 0D 01 02 00 00 00 00 69 [20:12:42]Write i2c OK [20:12:42]MH_I2C_Read... [20:12:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:42]Read from MH i2c: E2 [20:12:42]MH_I2C_Read... [20:12:42]Read from MH i2c: E2 03 00 [20:12:42]MH_I2C_Read... [20:12:42]Read from MH i2c: E2 03 00 A3 4D 00 90 00 64 [20:12:42]RAPDU: 90 00 [20:12:42]wFMCommunicate OK [20:12:42]wFMCommunicate request_size=255 [20:12:42]MH_SAM_APDU [20:12:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 9C F9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C F9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 1A 00 00 00 00 07 04 06 00 9C F9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 40 B7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1A 74 01 00 35 04 06 00 [20:12:42]Write to MH i2c: E2 02 01 A4 4D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 9C F9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C F9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 1A 00 00 00 00 07 04 06 00 9C F9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 40 B7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1A 74 01 00 35 04 06 00 00 00 C2 [20:12:42]Write i2c OK [20:12:42]MH_I2C_Read... [20:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:43]Read from MH i2c: E2 [20:12:43]MH_I2C_Read... [20:12:43]Read from MH i2c: E2 03 00 [20:12:43]MH_I2C_Read... [20:12:43]Read from MH i2c: E2 03 00 A4 4D 00 90 00 65 [20:12:43]RAPDU: 90 00 [20:12:43]wFMCommunicate OK [20:12:43]wFMCommunicate request_size=11 [20:12:43]MH_SAM_APDU [20:12:43]CAPDU: 80 0D 02 02 06 EF 7D 14 23 6C 04 [20:12:43]Write to MH i2c: E2 0E 00 A5 4D 80 0D 02 02 06 00 EF 7D 14 23 6C 04 00 00 8B [20:12:43]Write i2c OK [20:12:43]MH_I2C_Read... [20:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:43]Read from MH i2c: E2 [20:12:43]MH_I2C_Read... [20:12:43]Read from MH i2c: E2 03 00 [20:12:43]MH_I2C_Read... [20:12:43]Read from MH i2c: E2 03 00 A5 4D 00 90 00 66 [20:12:43]RAPDU: 90 00 [20:12:43]wFMCommunicate OK [20:12:43]wFMCommunicate request_size=4 [20:12:43]MH_SAM_APDU [20:12:43]CAPDU: 80 0D 03 02 [20:12:43]Write to MH i2c: E2 08 00 A6 4D 80 0D 03 02 00 00 00 00 6E [20:12:43]Write i2c OK [20:12:43]MH_I2C_Read... [20:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:43]Read from MH i2c: E2 [20:12:43]MH_I2C_Read... [20:12:43]Read from MH i2c: E2 0B 00 [20:12:43]MH_I2C_Read... [20:12:43]Read from MH i2c: E2 0B 00 A6 4D 00 D6 C7 A0 4E DC 30 BD 50 90 00 13 [20:12:43]RAPDU: D6 C7 A0 4E DC 30 BD 50 90 00 [20:12:43]wFMCommunicate OK [20:12:43]SAM_PROTO_SignData done [20:12:43]FM_MakeSignedData done [20:12:43]CreateOFDProtocolMessage [20:12:43]wFMCommunicate request_size=4 [20:12:43]MH_SAM_APDU [20:12:43]CAPDU: 80 11 00 00 [20:12:43]Write to MH i2c: E2 08 00 A7 4D 80 11 00 00 00 00 00 00 6E [20:12:43]Write i2c OK [20:12:43]MH_I2C_Read... [20:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:43]Read from MH i2c: E2 [20:12:43]MH_I2C_Read... [20:12:43]Read from MH i2c: E2 17 00 [20:12:43]MH_I2C_Read... [20:12:43]Read from MH i2c: E2 17 00 A7 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BE [20:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:12:43]wFMCommunicate OK [20:12:43]CreateOFDProtocolMessage done [20:12:43]OFDSenderStorePacket 95258 [20:12:43]StoreOFDPacket docnum=95258 [20:12:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 F9 FB 08 01 98 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 9C F9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C F9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 1A 00 00 00 00 07 04 06 00 9C F9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 40 B7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1A 74 01 00 35 04 06 00 EF 7D 14 23 6C 04 D6 C7 A0 4E DC 30 BD 50 [20:12:43]CheckFolder [20:12:43]dirname=/storage/ofd_packets [20:12:43]CheckFolder done [20:12:43]ProducePacketName [20:12:43]name=ofd_packets/00095258 [20:12:43]NVStorageSaveData ofd_packets/00095258 [20:12:43]File name is /storage/ofd_packets/00095258 [20:12:43]Write 302 bytes [20:12:43]NVStorageSaveData done [20:12:43]OFDSenderStorePacket done [20:12:43]KKMCreateOFDPacket done [20:12:43]NVStorageSaveData kkm_last_timestamp [20:12:43]File name is /storage/kkm_last_timestamp [20:12:43]Write 4 bytes [20:12:43]NVStorageSaveData done [20:12:43]ExternCall_PrintAddStr [20:12:43]wPrintStart [20:12:43]Write to MH i2c: 01 00 00 A8 4D F5 [20:12:43]Write i2c OK [20:12:43]MH_I2C_Read... [20:12:43]Read from MH i2c: 01 [20:12:43]MH_I2C_Read... [20:12:43]Read from MH i2c: 01 07 00 [20:12:43]MH_I2C_Read... [20:12:43]Read from MH i2c: 01 07 00 A8 4D 00 80 00 00 00 FF 0F 8A [20:12:43]RasterBufferAndPrint [20:12:43]line Счет N : (1)196235 [20:12:43]line ИНН: 02508201610067 [20:12:43]line Контрольно-Кассовый Чек [20:12:43]line ПРОДАЖА [20:12:43]line ТРК (МРК, ГНК) : 23 [20:12:43]line Товар: 2710124130 [20:12:43]line SUPER 92-К-5 [20:12:43]line 10.000 * 63.90 [20:12:43]line = 639.00 [20:12:43]line НДС 12% НСП 1% [20:12:43]line > о реализуемом товаре [20:12:43]line ИТОГО: 639.00 [20:12:43]line НСП 1% : 5.65 [20:12:43]line НДС 12% : 67.86 [20:12:43]line Наличными: 639.00 [20:12:43]line Безнал.: 0.00 [20:12:43]line Место: АЗС № 6 "Партнер Нефть" [20:12:43]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:12:43]line СНО: Общий режим [20:12:43]line Чек 188 12.03.2024 20:12 [20:12:43]line Смена: 327 ФФД: 1.0 [20:12:43]line ЗНМ: 0300000009 [20:12:43]line РНМ: 0000000000090555 [20:12:43]line Версия ККМ: 001 [20:12:43]line ФМ: 0000000000874811 [20:12:43]line ФД: 95258 [20:12:43]line ФПД: 263320487816196 [20:12:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T201248&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95258&fm=263320487816196&tin=02508201610067®Number=0000000000090555&sum=63900 [20:12:43]OFD Sender: Processing packet 95258 [packets to send 30, broken 29] [20:12:43]ProducePacketName [20:12:43]name=ofd_packets/00095258 [20:12:43]OFD Sender: To server: pG, [20:12:43]CommunicateWithHost lk.salyk.kg:30040 [20:12:43]ConnectInit lk.salyk.kg [20:12:43]written 0, free lines is 4095 [20:12:43]Connected sock=10 [20:12:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 F9 FB 08 01 98 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 9C F9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C F9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 1A 00 00 00 00 07 04 06 00 9C F9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 40 B7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1A 74 01 00 35 04 06 00 EF 7D 14 23 6C 04 D6 C7 A0 4E DC 30 BD 50 [20:12:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 4D 74 47 00 06 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1A 74 01 00 F4 03 04 00 95 62 F0 65 B6 04 01 00 00 27 8A 10 3B A9 D4 0B 5F [20:12:43]CommunicateWithHost err = 0 [20:12:43]CheckOFDResponse [20:12:43]1017 (14) - 77093643461234 [20:12:43]1041 (16) - 0000000000874811 [20:12:43]1040 (4) - 95258 [20:12:43]1012 (4) - 12.03.2024 14:11 [20:12:43]1206 (1) - 0 [20:12:43]OFD Sender: Remove packet 95258 [20:12:43]ProducePacketName [20:12:43]name=ofd_packets/00095258 [20:12:43]NVStorageDeleteData [20:12:44]Write to MH i2c: 01 00 00 D0 4D 1D [20:12:44]Write i2c OK [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: 01 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: 01 07 00 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: 01 07 00 D0 4D 00 80 00 00 00 7F 0D 30 [20:12:44]RasterBufferAndPrint [20:12:44]line [20:12:44]line [20:12:44]line [20:12:44]line [20:12:44]line [20:12:44]written 0, free lines is 3461 [20:12:44]process_action close_receipt done [20:12:44]requested_data is exist [20:12:44]produce_requested_data [20:12:44]requested_item fm.sn is exist - process it [20:12:44]wFMCommunicate request_size=4 [20:12:44]MH_SAM_APDU [20:12:44]CAPDU: 80 11 00 00 [20:12:44]Write to MH i2c: E2 08 00 D7 4D 80 11 00 00 00 00 00 00 9E [20:12:44]Write i2c OK [20:12:44]MH_I2C_Read... [20:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:44]Read from MH i2c: E2 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 17 00 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 17 00 D7 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EE [20:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:12:44]wFMCommunicate OK [20:12:44]requested_item fd.num is exist - process it [20:12:44]SAM_PROTO_GetFieldsCounters [20:12:44]wFMCommunicate request_size=4 [20:12:44]MH_SAM_APDU [20:12:44]CAPDU: 80 13 00 00 [20:12:44]Write to MH i2c: E2 08 00 D8 4D 80 13 00 00 00 00 00 00 A1 [20:12:44]Write i2c OK [20:12:44]MH_I2C_Read... [20:12:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:44]Read from MH i2c: E2 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 62 00 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 62 00 D8 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1A 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [20:12:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1A 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:44]wFMCommunicate OK [20:12:44]SAM_PROTO_GetFieldsCounters done [20:12:44]requested_item shift.num is exist - process it [20:12:44]requested_item shift.opened is exist - process it [20:12:44]req_shift_opened [20:12:44]FM_GetShiftState [20:12:44]SAM_PROTO_GetShiftState [20:12:44]wFMCommunicate request_size=4 [20:12:44]MH_SAM_APDU [20:12:44]CAPDU: 80 13 01 00 [20:12:44]Write to MH i2c: E2 08 00 D9 4D 80 13 01 00 00 00 00 00 A3 [20:12:44]Write i2c OK [20:12:44]MH_I2C_Read... [20:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:44]Read from MH i2c: E2 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 0E 00 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 0E 00 D9 4D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 17 [20:12:44]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:12:44]wFMCommunicate OK [20:12:44]SAM_PROTO_GetShiftState done [20:12:44]FM_GetShiftState done [20:12:44]req_shift_opened done [20:12:44]requested_item shift.open_date is exist - process it [20:12:44]req_shift_open_date [20:12:44]req_shift_open_date done [20:12:44]produce_requested_data done [20:12:44]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95258,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [20:12:44]process_action_free close_receipt [20:12:44]json_value_free [20:12:44]json_value_free done [20:12:44]process_json_proto returns [20:12:44]Send response to host [20:12:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95258,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [20:12:44]free response buf [20:12:44]execute_script done [20:12:44]execute_script returns [20:12:44]free content buf [20:12:44]Sock 8.Close socket [20:12:44]Sock 8.Thread stoped [20:12:44]OFD Sender: No OFD packet to send [20:12:45]accept exits with 9 [20:12:45]New connection [20:12:45]New thread 3066957156 created [20:12:45]Thread 3066813796 joined [20:12:45]Waiting for new connection... [20:12:45] Sock 9.Parse request [20:12:45]Sock 9.Check first char [20:12:45]Sock 9.First char is OK [20:12:45]request: POST /json_proto HTTP/1.0 [20:12:45]Method: POST [20:12:45]URL: /json_proto [20:12:45]Method is POST - this is cgi request [20:12:45]url: /json_proto [20:12:45]query_string will be loaded in cgi processing [20:12:45]execute_cgi json_proto POST (null) [20:12:45]execute_cgi path=json_proto method=POST [20:12:45]POST find Content-Length [20:12:45]Host: 172.17.62.67:8080 [20:12:45]Content-Length: 689 [20:12:45]Content-Type: application/json [20:12:45] [20:12:45]POST finish read [20:12:45]Found Content-Length = 689 [20:12:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95258, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.000, "sum" : 639.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 639.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:45]execute_script... [20:12:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95258, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.000, "sum" : 639.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 639.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:45]POST & json_proto [20:12:45]process_json_proto [20:12:45]json parsed OK: [20:12:45]protocol is kg_v1.0 [20:12:45]action value=close_receipt [20:12:45]process_action close_receipt [20:12:45]cmd_close_receipt [20:12:45]MH_GetDate [20:12:45]Write to MH i2c: F0 00 00 DA 4D 16 [20:12:45]Write i2c OK [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: F0 [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: F0 05 00 [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: F0 05 00 DA 4D 00 44 B7 F0 65 6B [20:12:45]GetLastDocTimeStamp 1710274368 [20:12:45]current date 1710274372 [20:12:45]FM_GetShiftState [20:12:45]SAM_PROTO_GetShiftState [20:12:45]wFMCommunicate request_size=4 [20:12:45]MH_SAM_APDU [20:12:45]CAPDU: 80 13 01 00 [20:12:45]Write to MH i2c: E2 08 00 DB 4D 80 13 01 00 00 00 00 00 A5 [20:12:45]Write i2c OK [20:12:45]MH_I2C_Read... [20:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:45]Read from MH i2c: E2 [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: E2 0E 00 [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: E2 0E 00 DB 4D 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 19 [20:12:45]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:12:45]wFMCommunicate OK [20:12:45]SAM_PROTO_GetShiftState done [20:12:45]FM_GetShiftState done [20:12:45]opened in 1710201976 [20:12:45]opened+sec_in_day 1710288376 [20:12:45]quantity*price = 63900 [20:12:45]sum+1 = 63901 [20:12:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 639.00 НСП 1% : 5.65 НДС 12% : 67.86 Наличными: 639.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 189 12.03.2024 20:12 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95258 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95259 ФПД: 160466543463419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T201252&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95259&fm=160466543463419&tin=02508201610067®Number=0000000000090555&sum=63900 [20:12:46]StoreToDocumentArchive [20:12:46]shift 327 fd 95259 [20:12:46]save to /storage/0327/doc_00095259 [20:12:46]save last doc name /storage/0327/doc_00095259 to /storage/kkm_last_doc_name [20:12:46]save OK [20:12:46]Clear old archive folders... [20:12:46]ProcessDocumentItem done err = 0, tmpTLVsize=280 [20:12:46]tlvbuf is 01B61BE0 [20:12:46]SAM_PROTO_ClearQueue [20:12:46]wFMCommunicate request_size=4 [20:12:46]MH_SAM_APDU [20:12:46]CAPDU: 80 09 00 00 [20:12:46]Write to MH i2c: E2 08 00 EA 4D 80 09 00 00 00 00 00 00 A9 [20:12:46]Write i2c OK [20:12:46]MH_I2C_Read... [20:12:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:46]Read from MH i2c: E2 [20:12:46]MH_I2C_Read... [20:12:46]Read from MH i2c: E2 03 00 [20:12:46]MH_I2C_Read... [20:12:46]Read from MH i2c: E2 03 00 EA 4D 00 90 00 AB [20:12:46]RAPDU: 90 00 [20:12:46]wFMCommunicate OK [20:12:46]SAM_PROTO_ClearQueue done [20:12:46]KKMCreateOFDPacket [20:12:46]OFDProtocolAddRootSTLVToBuf [20:12:46]FM_MakeSignedData [20:12:46]FM_MakeSignedData [20:12:46]SAM_PROTO_SignData [20:12:46]wFMCommunicate request_size=4 [20:12:46]MH_SAM_APDU [20:12:46]CAPDU: 80 0D 01 02 [20:12:46]Write to MH i2c: E2 08 00 EB 4D 80 0D 01 02 00 00 00 00 B1 [20:12:46]Write i2c OK [20:12:46]MH_I2C_Read... [20:12:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:46]Read from MH i2c: E2 [20:12:46]MH_I2C_Read... [20:12:46]Read from MH i2c: E2 03 00 [20:12:46]MH_I2C_Read... [20:12:46]Read from MH i2c: E2 03 00 EB 4D 00 90 00 AC [20:12:46]RAPDU: 90 00 [20:12:46]wFMCommunicate OK [20:12:46]wFMCommunicate request_size=255 [20:12:46]MH_SAM_APDU [20:12:46]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 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 9C F9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C F9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 1A 00 00 00 00 07 04 06 00 9C F9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 44 B7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 1A 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 [20:12:47]Write to MH i2c: E2 02 01 EC 4D 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 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 9C F9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C F9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 1A 00 00 00 00 07 04 06 00 9C F9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 44 B7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 1A 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 00 00 41 [20:12:47]Write i2c OK [20:12:47]MH_I2C_Read... [20:12:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:47]Read from MH i2c: E2 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: E2 03 00 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: E2 03 00 EC 4D 00 90 00 AD [20:12:47]RAPDU: 90 00 [20:12:47]wFMCommunicate OK [20:12:47]wFMCommunicate request_size=39 [20:12:47]MH_SAM_APDU [20:12:47]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1B 74 01 00 35 04 06 00 91 F1 87 52 4B FB [20:12:47]Write to MH i2c: E2 2A 00 ED 4D 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1B 74 01 00 35 04 06 00 91 F1 87 52 4B FB 00 00 9D [20:12:47]Write i2c OK [20:12:47]MH_I2C_Read... [20:12:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:47]Read from MH i2c: E2 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: E2 03 00 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: E2 03 00 ED 4D 00 90 00 AE [20:12:47]RAPDU: 90 00 [20:12:47]wFMCommunicate OK [20:12:47]wFMCommunicate request_size=4 [20:12:47]MH_SAM_APDU [20:12:47]CAPDU: 80 0D 03 02 [20:12:47]Write to MH i2c: E2 08 00 EE 4D 80 0D 03 02 00 00 00 00 B6 [20:12:47]Write i2c OK [20:12:47]MH_I2C_Read... [20:12:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:47]Read from MH i2c: E2 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: E2 0B 00 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: E2 0B 00 EE 4D 00 3C 99 9E E6 19 A9 D3 62 90 00 07 [20:12:47]RAPDU: 3C 99 9E E6 19 A9 D3 62 90 00 [20:12:47]wFMCommunicate OK [20:12:47]SAM_PROTO_SignData done [20:12:47]FM_MakeSignedData done [20:12:47]CreateOFDProtocolMessage [20:12:47]wFMCommunicate request_size=4 [20:12:47]MH_SAM_APDU [20:12:47]CAPDU: 80 11 00 00 [20:12:47]Write to MH i2c: E2 08 00 EF 4D 80 11 00 00 00 00 00 00 B6 [20:12:47]Write i2c OK [20:12:47]MH_I2C_Read... [20:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:47]Read from MH i2c: E2 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: E2 17 00 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: E2 17 00 EF 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 06 [20:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:12:47]wFMCommunicate OK [20:12:47]CreateOFDProtocolMessage done [20:12:47]OFDSenderStorePacket 95259 [20:12:47]StoreOFDPacket docnum=95259 [20:12:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2C 01 00 00 04 77 24 01 F8 6F 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 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 9C F9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C F9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 1A 00 00 00 00 07 04 06 00 9C F9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 44 B7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 1A 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1B 74 01 00 35 04 06 00 91 F1 87 52 4B FB 3C 99 9E E6 19 A9 D3 62 [20:12:47]CheckFolder [20:12:47]dirname=/storage/ofd_packets [20:12:47]CheckFolder done [20:12:47]ProducePacketName [20:12:47]name=ofd_packets/00095259 [20:12:47]NVStorageSaveData ofd_packets/00095259 [20:12:47]File name is /storage/ofd_packets/00095259 [20:12:47]Write 330 bytes [20:12:47]NVStorageSaveData done [20:12:47]OFDSenderStorePacket done [20:12:47]KKMCreateOFDPacket done [20:12:47]NVStorageSaveData kkm_last_timestamp [20:12:47]File name is /storage/kkm_last_timestamp [20:12:47]Write 4 bytes [20:12:47]NVStorageSaveData done [20:12:47]ExternCall_PrintAddStr [20:12:47]wPrintStart [20:12:47]Write to MH i2c: 01 00 00 F0 4D 3D [20:12:47]Write i2c OK [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: 01 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: 01 07 00 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: 01 07 00 F0 4D 00 80 00 00 00 FF 0F D2 [20:12:47]RasterBufferAndPrint [20:12:47]line Счет N : (1)196235 [20:12:47]line ИНН: 02508201610067 [20:12:47]line Контрольно-Кассовый Чек [20:12:47]line ВОЗВРАТ ПРОДАЖИ [20:12:47]line ТРК (МРК, ГНК) : 23 [20:12:47]line Товар: 2710124130 [20:12:47]line SUPER 92-К-5 [20:12:47]line 10.000 * 63.90 [20:12:47]line = 639.00 [20:12:47]line НДС 12% НСП 1% [20:12:47]line > о реализуемом товаре [20:12:47]line ИТОГО: 639.00 [20:12:47]line НСП 1% : 5.65 [20:12:47]line НДС 12% : 67.86 [20:12:47]line Наличными: 639.00 [20:12:47]line Безнал.: 0.00 [20:12:47]line Место: АЗС № 6 "Партнер Нефть" [20:12:47]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:12:47]line СНО: Общий режим [20:12:47]line Чек 189 12.03.2024 20:12 [20:12:47]line Смена: 327 ФФД: 1.0 [20:12:47]line ЗНМ: 0300000009 [20:12:47]line РНМ: 0000000000090555 [20:12:47]line Версия ККМ: 001 [20:12:47]line ФД осн.: 95258 [20:12:47]line ФМ осн.: 0000000000874811 [20:12:47]line ФМ: 0000000000874811 [20:12:47]line ФД: 95259 [20:12:47]line ФПД: 160466543463419 [20:12:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T201252&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95259&fm=160466543463419&tin=02508201610067®Number=0000000000090555&sum=63900 [20:12:47]OFD Sender: Processing packet 95259 [packets to send 30, broken 29] [20:12:47]ProducePacketName [20:12:47]name=ofd_packets/00095259 [20:12:47]OFD Sender: To server: pG, [20:12:47]CommunicateWithHost lk.salyk.kg:30040 [20:12:47]ConnectInit lk.salyk.kg [20:12:47]written 0, free lines is 4095 [20:12:47]Connected sock=10 [20:12:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2C 01 00 00 04 77 24 01 F8 6F 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 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 9C F9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C F9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 1A 00 00 00 00 07 04 06 00 9C F9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 44 B7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 1A 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1B 74 01 00 35 04 06 00 91 F1 87 52 4B FB 3C 99 9E E6 19 A9 D3 62 [20:12:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 FA 8E 47 00 33 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1B 74 01 00 F4 03 04 00 99 62 F0 65 B6 04 01 00 00 E4 04 EB 2A 25 3B 1C 0D [20:12:47]CommunicateWithHost err = 0 [20:12:47]CheckOFDResponse [20:12:47]1017 (14) - 77093643461234 [20:12:47]1041 (16) - 0000000000874811 [20:12:47]1040 (4) - 95259 [20:12:47]1012 (4) - 12.03.2024 14:11 [20:12:47]1206 (1) - 0 [20:12:47]OFD Sender: Remove packet 95259 [20:12:47]ProducePacketName [20:12:47]name=ofd_packets/00095259 [20:12:47]NVStorageDeleteData [20:12:48]Write to MH i2c: 01 00 00 1A 4E 68 [20:12:48]Write i2c OK [20:12:48]MH_I2C_Read... [20:12:48]Read from MH i2c: 01 [20:12:48]MH_I2C_Read... [20:12:48]Read from MH i2c: 01 07 00 [20:12:48]MH_I2C_Read... [20:12:48]Read from MH i2c: 01 07 00 1A 4E 00 80 00 00 00 75 0D 71 [20:12:48]RasterBufferAndPrint [20:12:48]line [20:12:48]line [20:12:48]line [20:12:48]line [20:12:48]line [20:12:48]written 0, free lines is 3459 [20:12:48]process_action close_receipt done [20:12:48]requested_data is exist [20:12:48]produce_requested_data [20:12:48]requested_item fm.sn is exist - process it [20:12:48]wFMCommunicate request_size=4 [20:12:48]MH_SAM_APDU [20:12:48]CAPDU: 80 11 00 00 [20:12:48]Write to MH i2c: E2 08 00 21 4E 80 11 00 00 00 00 00 00 E9 [20:12:48]Write i2c OK [20:12:48]MH_I2C_Read... [20:12:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:48]Read from MH i2c: E2 [20:12:48]MH_I2C_Read... [20:12:48]Read from MH i2c: E2 17 00 [20:12:48]MH_I2C_Read... [20:12:48]Read from MH i2c: E2 17 00 21 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 39 [20:12:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:12:48]wFMCommunicate OK [20:12:48]requested_item fd.num is exist - process it [20:12:48]SAM_PROTO_GetFieldsCounters [20:12:48]wFMCommunicate request_size=4 [20:12:48]MH_SAM_APDU [20:12:48]CAPDU: 80 13 00 00 [20:12:48]Write to MH i2c: E2 08 00 22 4E 80 13 00 00 00 00 00 00 EC [20:12:48]Write i2c OK [20:12:48]MH_I2C_Read... [20:12:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:48]Read from MH i2c: E2 [20:12:48]MH_I2C_Read... [20:12:48]Read from MH i2c: E2 62 00 [20:12:48]MH_I2C_Read... [20:12:48]Read from MH i2c: E2 62 00 22 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1B 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [20:12:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1B 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:48]wFMCommunicate OK [20:12:48]SAM_PROTO_GetFieldsCounters done [20:12:48]requested_item shift.num is exist - process it [20:12:48]requested_item shift.opened is exist - process it [20:12:48]req_shift_opened [20:12:48]FM_GetShiftState [20:12:48]SAM_PROTO_GetShiftState [20:12:48]wFMCommunicate request_size=4 [20:12:48]MH_SAM_APDU [20:12:48]CAPDU: 80 13 01 00 [20:12:48]Write to MH i2c: E2 08 00 23 4E 80 13 01 00 00 00 00 00 EE [20:12:48]Write i2c OK [20:12:48]MH_I2C_Read... [20:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:48]Read from MH i2c: E2 [20:12:48]MH_I2C_Read... [20:12:48]Read from MH i2c: E2 0E 00 [20:12:48]MH_I2C_Read... [20:12:48]Read from MH i2c: E2 0E 00 23 4E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 62 [20:12:48]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:12:48]wFMCommunicate OK [20:12:48]SAM_PROTO_GetShiftState done [20:12:48]FM_GetShiftState done [20:12:48]req_shift_opened done [20:12:48]requested_item shift.open_date is exist - process it [20:12:48]req_shift_open_date [20:12:48]req_shift_open_date done [20:12:48]produce_requested_data done [20:12:48]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95259,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [20:12:48]process_action_free close_receipt [20:12:48]json_value_free [20:12:48]json_value_free done [20:12:48]process_json_proto returns [20:12:48]Send response to host [20:12:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95259,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [20:12:48]free response buf [20:12:48]execute_script done [20:12:48]execute_script returns [20:12:48]free content buf [20:12:48]Sock 9.Close socket [20:12:48]Sock 9.Thread stoped [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:02]accept exits with 8 [20:26:02]New connection [20:26:02]New thread 3066813796 created [20:26:02]Thread 3066957156 joined [20:26:02]Waiting for new connection... [20:26:02] Sock 8.Parse request [20:26:02]Sock 8.Check first char [20:26:02]Sock 8.First char is OK [20:26:02]request: POST /json_proto HTTP/1.0 [20:26:02]Method: POST [20:26:02]URL: /json_proto [20:26:02]Method is POST - this is cgi request [20:26:02]url: /json_proto [20:26:02]query_string will be loaded in cgi processing [20:26:02]execute_cgi json_proto POST (null) [20:26:02]execute_cgi path=json_proto method=POST [20:26:02]POST find Content-Length [20:26:02]Host: 172.17.62.67:8080 [20:26:02]Content-Length: 816 [20:26:02]Content-Type: application/json [20:26:02] [20:26:02]POST finish read [20:26:02]Found Content-Length = 816 [20:26:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:02]execute_script... [20:26: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)196236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:02]POST & json_proto [20:26:02]process_json_proto [20:26:02]json parsed OK: [20:26:02]protocol is kg_v1.0 [20:26:02]action value=close_receipt [20:26:02]process_action close_receipt [20:26:02]cmd_close_receipt [20:26:02]MH_GetDate [20:26:02]Write to MH i2c: F0 00 00 24 4E 61 [20:26:02]Write i2c OK [20:26:02]MH_I2C_Read... [20:26:02]Read from MH i2c: F0 [20:26:02]MH_I2C_Read... [20:26:02]Read from MH i2c: F0 05 00 [20:26:02]MH_I2C_Read... [20:26:02]Read from MH i2c: F0 05 00 24 4E 00 61 BA F0 65 D6 [20:26:02]GetLastDocTimeStamp 1710274372 [20:26:02]current date 1710275169 [20:26:02]FM_GetShiftState [20:26:02]SAM_PROTO_GetShiftState [20:26:02]wFMCommunicate request_size=4 [20:26:02]MH_SAM_APDU [20:26:02]CAPDU: 80 13 01 00 [20:26:02]Write to MH i2c: E2 08 00 25 4E 80 13 01 00 00 00 00 00 F0 [20:26:02]Write i2c OK [20:26:02]MH_I2C_Read... [20:26:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:02]Read from MH i2c: E2 [20:26:02]MH_I2C_Read... [20:26:02]Read from MH i2c: E2 0E 00 [20:26:02]MH_I2C_Read... [20:26:02]Read from MH i2c: E2 0E 00 25 4E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 64 [20:26:02]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:26:02]wFMCommunicate OK [20:26:02]SAM_PROTO_GetShiftState done [20:26:02]FM_GetShiftState done [20:26:02]opened in 1710201976 [20:26:02]opened+sec_in_day 1710288376 [20:26:02]quantity*price = 50005 [20:26:02]sum+1 = 50007 [20:26:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.06 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.06 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 190 12.03.2024 20:26 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95260 ФПД: 141663177928109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T202609&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95260&fm=141663177928109&tin=02508201610067®Number=0000000000090555&sum=50006 [20:26:03]StoreToDocumentArchive [20:26:03]shift 327 fd 95260 [20:26:03]save to /storage/0327/doc_00095260 [20:26:03]save last doc name /storage/0327/doc_00095260 to /storage/kkm_last_doc_name [20:26:03]save OK [20:26:03]Clear old archive folders... [20:26:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:03]tlvbuf is 01A284C0 [20:26:03]SAM_PROTO_ClearQueue [20:26:03]wFMCommunicate request_size=4 [20:26:03]MH_SAM_APDU [20:26:03]CAPDU: 80 09 00 00 [20:26:03]Write to MH i2c: E2 08 00 32 4E 80 09 00 00 00 00 00 00 F2 [20:26:03]Write i2c OK [20:26:03]MH_I2C_Read... [20:26:03]Read from MH i2c: E2 [20:26:03]MH_I2C_Read... [20:26:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:03]Read from MH i2c: E2 03 00 [20:26:03]MH_I2C_Read... [20:26:03]Read from MH i2c: E2 03 00 32 4E 00 90 00 F4 [20:26:03]RAPDU: 90 00 [20:26:03]wFMCommunicate OK [20:26:03]SAM_PROTO_ClearQueue done [20:26:03]KKMCreateOFDPacket [20:26:03]OFDProtocolAddRootSTLVToBuf [20:26:03]FM_MakeSignedData [20:26:03]FM_MakeSignedData [20:26:03]SAM_PROTO_SignData [20:26:03]wFMCommunicate request_size=4 [20:26:03]MH_SAM_APDU [20:26:03]CAPDU: 80 0D 01 02 [20:26:03]Write to MH i2c: E2 08 00 33 4E 80 0D 01 02 00 00 00 00 FA [20:26:03]Write i2c OK [20:26:03]MH_I2C_Read... [20:26:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:03]Read from MH i2c: E2 [20:26:03]MH_I2C_Read... [20:26:03]Read from MH i2c: E2 03 00 [20:26:03]MH_I2C_Read... [20:26:03]Read from MH i2c: E2 03 00 33 4E 00 90 00 F5 [20:26:03]RAPDU: 90 00 [20:26:03]wFMCommunicate OK [20:26:03]wFMCommunicate request_size=255 [20:26:03]MH_SAM_APDU [20:26:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 61 BA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1C 74 01 00 35 04 06 00 80 [20:26:03]Write to MH i2c: E2 02 01 34 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 61 BA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1C 74 01 00 35 04 06 00 80 00 00 36 [20:26:03]Write i2c OK [20:26:03]MH_I2C_Read... [20:26:04]OFD Sender: No OFD packet to send [20:26:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:04]Read from MH i2c: E2 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: E2 03 00 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: E2 03 00 34 4E 00 90 00 F6 [20:26:04]RAPDU: 90 00 [20:26:04]wFMCommunicate OK [20:26:04]wFMCommunicate request_size=10 [20:26:04]MH_SAM_APDU [20:26:04]CAPDU: 80 0D 02 02 05 D7 87 65 ED AD [20:26:04]Write to MH i2c: E2 0D 00 35 4E 80 0D 02 02 05 00 D7 87 65 ED AD 00 00 64 [20:26:04]Write i2c OK [20:26:04]MH_I2C_Read... [20:26:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:04]Read from MH i2c: E2 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: E2 03 00 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: E2 03 00 35 4E 00 90 00 F7 [20:26:04]RAPDU: 90 00 [20:26:04]wFMCommunicate OK [20:26:04]wFMCommunicate request_size=4 [20:26:04]MH_SAM_APDU [20:26:04]CAPDU: 80 0D 03 02 [20:26:04]Write to MH i2c: E2 08 00 36 4E 80 0D 03 02 00 00 00 00 FF [20:26:04]Write i2c OK [20:26:04]MH_I2C_Read... [20:26:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:04]Read from MH i2c: E2 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: E2 0B 00 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: E2 0B 00 36 4E 00 FA 88 5E 25 EE 95 9E CD 90 00 F3 [20:26:04]RAPDU: FA 88 5E 25 EE 95 9E CD 90 00 [20:26:04]wFMCommunicate OK [20:26:04]SAM_PROTO_SignData done [20:26:04]FM_MakeSignedData done [20:26:04]CreateOFDProtocolMessage [20:26:04]wFMCommunicate request_size=4 [20:26:04]MH_SAM_APDU [20:26:04]CAPDU: 80 11 00 00 [20:26:04]Write to MH i2c: E2 08 00 37 4E 80 11 00 00 00 00 00 00 FF [20:26:04]Write i2c OK [20:26:04]MH_I2C_Read... [20:26:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:04]Read from MH i2c: E2 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: E2 17 00 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: E2 17 00 37 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4F [20:26:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:26:04]wFMCommunicate OK [20:26:04]CreateOFDProtocolMessage done [20:26:04]OFDSenderStorePacket 95260 [20:26:04]StoreOFDPacket docnum=95260 [20:26:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C4 64 07 01 CE EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 61 BA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1C 74 01 00 35 04 06 00 80 D7 87 65 ED AD FA 88 5E 25 EE 95 9E CD [20:26:04]CheckFolder [20:26:04]dirname=/storage/ofd_packets [20:26:04]CheckFolder done [20:26:04]ProducePacketName [20:26:04]name=ofd_packets/00095260 [20:26:04]NVStorageSaveData ofd_packets/00095260 [20:26:04]File name is /storage/ofd_packets/00095260 [20:26:04]Write 301 bytes [20:26:04]NVStorageSaveData done [20:26:04]OFDSenderStorePacket done [20:26:04]KKMCreateOFDPacket done [20:26:04]NVStorageSaveData kkm_last_timestamp [20:26:04]File name is /storage/kkm_last_timestamp [20:26:04]Write 4 bytes [20:26:04]NVStorageSaveData done [20:26:04]ExternCall_PrintAddStr [20:26:04]wPrintStart [20:26:04]Write to MH i2c: 01 00 00 38 4E 86 [20:26:04]Write i2c OK [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: 01 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: 01 07 00 [20:26:04]MH_I2C_Read... [20:26:04]Read from MH i2c: 01 07 00 38 4E 00 80 00 00 00 FF 0F 1B [20:26:04]RasterBufferAndPrint [20:26:04]line Счет N : (1)196236 [20:26:04]line ИНН: 02508201610067 [20:26:04]line Контрольно-Кассовый Чек [20:26:04]line ПРОДАЖА [20:26:04]line ТРК (МРК, ГНК) : 12 [20:26:04]line Товар: 2710124130 [20:26:04]line Аи-92-К-5 [20:26:04]line 7.950 * 62.90 [20:26:04]line = 500.06 [20:26:04]line НДС 12% НСП 1% [20:26:04]line > о реализуемом товаре [20:26:04]line ИТОГО: 500.06 [20:26:04]line НСП 1% : 4.42 [20:26:04]line НДС 12% : 53.10 [20:26:04]line Наличными: 0.00 [20:26:04]line Безнал.: 500.06 [20:26:04]line Место: АЗС № 6 "Партнер Нефть" [20:26:04]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:26:04]line СНО: Общий режим [20:26:04]line Чек 190 12.03.2024 20:26 [20:26:04]line Смена: 327 ФФД: 1.0 [20:26:04]line ЗНМ: 0300000009 [20:26:04]line РНМ: 0000000000090555 [20:26:04]line Версия ККМ: 001 [20:26:04]line Платежная система: Бакай Банк [20:26:04]line ФМ: 0000000000874811 [20:26:04]line ФД: 95260 [20:26:04]line ФПД: 141663177928109 [20:26:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T202609&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95260&fm=141663177928109&tin=02508201610067®Number=0000000000090555&sum=50006 [20:26:04]written 0, free lines is 4095 [20:26:04]OFD Sender: Processing packet 95260 [packets to send 30, broken 29] [20:26:04]ProducePacketName [20:26:04]name=ofd_packets/00095260 [20:26:04]OFD Sender: To server: pG, [20:26:04]CommunicateWithHost lk.salyk.kg:30040 [20:26:04]ConnectInit lk.salyk.kg [20:26:04]Connected sock=10 [20:26:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C4 64 07 01 CE EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 61 BA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1C 74 01 00 35 04 06 00 80 D7 87 65 ED AD FA 88 5E 25 EE 95 9E CD [20:26:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 97 8C 47 00 DB CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1C 74 01 00 F4 03 04 00 B6 65 F0 65 B6 04 01 00 00 88 F4 EF AF 47 8D B0 84 [20:26:04]CommunicateWithHost err = 0 [20:26:04]CheckOFDResponse [20:26:04]1017 (14) - 77093643461234 [20:26:04]1041 (16) - 0000000000874811 [20:26:04]1040 (4) - 95260 [20:26:04]1012 (4) - 12.03.2024 14:24 [20:26:04]1206 (1) - 0 [20:26:04]OFD Sender: Remove packet 95260 [20:26:04]ProducePacketName [20:26:04]name=ofd_packets/00095260 [20:26:04]NVStorageDeleteData [20:26:05]Write to MH i2c: 01 00 00 62 4E B0 [20:26:05]Write i2c OK [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: 01 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: 01 07 00 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: 01 07 00 62 4E 00 80 00 00 00 62 0D A6 [20:26:05]RasterBufferAndPrint [20:26:05]line [20:26:05]line [20:26:05]line [20:26:05]line [20:26:05]line [20:26:05]written 0, free lines is 3432 [20:26:05]process_action close_receipt done [20:26:05]requested_data is exist [20:26:05]produce_requested_data [20:26:05]requested_item fm.sn is exist - process it [20:26:05]wFMCommunicate request_size=4 [20:26:05]MH_SAM_APDU [20:26:05]CAPDU: 80 11 00 00 [20:26:05]Write to MH i2c: E2 08 00 69 4E 80 11 00 00 00 00 00 00 31 [20:26:05]Write i2c OK [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: E2 [20:26:05]MH_I2C_Read... [20:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:05]Read from MH i2c: E2 17 00 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: E2 17 00 69 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 81 [20:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:26:05]wFMCommunicate OK [20:26:05]requested_item fd.num is exist - process it [20:26:05]SAM_PROTO_GetFieldsCounters [20:26:05]wFMCommunicate request_size=4 [20:26:05]MH_SAM_APDU [20:26:05]CAPDU: 80 13 00 00 [20:26:05]Write to MH i2c: E2 08 00 6A 4E 80 13 00 00 00 00 00 00 34 [20:26:05]Write i2c OK [20:26:05]MH_I2C_Read... [20:26:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:05]Read from MH i2c: E2 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: E2 62 00 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: E2 62 00 6A 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1C 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [20:26:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1C 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:26:05]wFMCommunicate OK [20:26:05]SAM_PROTO_GetFieldsCounters done [20:26:05]requested_item shift.num is exist - process it [20:26:05]requested_item shift.opened is exist - process it [20:26:05]req_shift_opened [20:26:05]FM_GetShiftState [20:26:05]SAM_PROTO_GetShiftState [20:26:05]wFMCommunicate request_size=4 [20:26:05]MH_SAM_APDU [20:26:05]CAPDU: 80 13 01 00 [20:26:05]Write to MH i2c: E2 08 00 6B 4E 80 13 01 00 00 00 00 00 36 [20:26:05]Write i2c OK [20:26:05]MH_I2C_Read... [20:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:05]Read from MH i2c: E2 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: E2 0E 00 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: E2 0E 00 6B 4E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 AA [20:26:05]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:26:05]wFMCommunicate OK [20:26:05]SAM_PROTO_GetShiftState done [20:26:05]FM_GetShiftState done [20:26:05]req_shift_opened done [20:26:05]requested_item shift.open_date is exist - process it [20:26:05]req_shift_open_date [20:26:05]req_shift_open_date done [20:26:05]produce_requested_data done [20:26:05]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95260,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [20:26:05]process_action_free close_receipt [20:26:05]json_value_free [20:26:05]json_value_free done [20:26:05]process_json_proto returns [20:26:05]Send response to host [20:26:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95260,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [20:26:05]free response buf [20:26:05]execute_script done [20:26:05]execute_script returns [20:26:05]free content buf [20:26:05]Sock 8.Close socket [20:26:05]Sock 8.Thread stoped [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:51]accept exits with 9 [20:30:51]New connection [20:30:51]New thread 3066957156 created [20:30:51]Thread 3066813796 joined [20:30:51]Waiting for new connection... [20:30:51] Sock 9.Parse request [20:30:51]Sock 9.Check first char [20:30:51]Sock 9.First char is OK [20:30:51]request: POST /json_proto HTTP/1.0 [20:30:51]Method: POST [20:30:51]URL: /json_proto [20:30:51]Method is POST - this is cgi request [20:30:51]url: /json_proto [20:30:51]query_string will be loaded in cgi processing [20:30:51]execute_cgi json_proto POST (null) [20:30:51]execute_cgi path=json_proto method=POST [20:30:51]POST find Content-Length [20:30:51]Host: 172.17.62.67:8080 [20:30:51]Content-Length: 677 [20:30:51]Content-Type: application/json [20:30:51] [20:30:51]POST finish read [20:30:51]Found Content-Length = 677 [20:30:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:51]execute_script... [20:30:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:51]POST & json_proto [20:30:51]process_json_proto [20:30:51]json parsed OK: [20:30:51]protocol is kg_v1.0 [20:30:51]action value=close_receipt [20:30:51]process_action close_receipt [20:30:51]cmd_close_receipt [20:30:51]MH_GetDate [20:30:51]Write to MH i2c: F0 00 00 6C 4E A9 [20:30:51]Write i2c OK [20:30:51]MH_I2C_Read... [20:30:51]Read from MH i2c: F0 [20:30:51]MH_I2C_Read... [20:30:51]Read from MH i2c: F0 05 00 [20:30:51]MH_I2C_Read... [20:30:51]Read from MH i2c: F0 05 00 6C 4E 00 82 BB F0 65 40 [20:30:51]GetLastDocTimeStamp 1710275169 [20:30:51]current date 1710275458 [20:30:51]FM_GetShiftState [20:30:51]SAM_PROTO_GetShiftState [20:30:51]wFMCommunicate request_size=4 [20:30:51]MH_SAM_APDU [20:30:51]CAPDU: 80 13 01 00 [20:30:51]Write to MH i2c: E2 08 00 6D 4E 80 13 01 00 00 00 00 00 38 [20:30:51]Write i2c OK [20:30:51]MH_I2C_Read... [20:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:51]Read from MH i2c: E2 [20:30:51]MH_I2C_Read... [20:30:51]Read from MH i2c: E2 0E 00 [20:30:51]MH_I2C_Read... [20:30:51]Read from MH i2c: E2 0E 00 6D 4E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 AC [20:30:51]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:30:51]wFMCommunicate OK [20:30:51]SAM_PROTO_GetShiftState done [20:30:51]FM_GetShiftState done [20:30:51]opened in 1710201976 [20:30:51]opened+sec_in_day 1710288376 [20:30:51]quantity*price = 50005 [20:30:51]sum+1 = 50007 [20:30:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 191 12.03.2024 20:30 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95261 ФПД: 29009607133556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T203058&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95261&fm=29009607133556&tin=02508201610067®Number=0000000000090555&sum=50000 [20:30:52]StoreToDocumentArchive [20:30:52]shift 327 fd 95261 [20:30:52]save to /storage/0327/doc_00095261 [20:30:52]save last doc name /storage/0327/doc_00095261 to /storage/kkm_last_doc_name [20:30:52]save OK [20:30:52]Clear old archive folders... [20:30:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:30:52]tlvbuf is 01A5F720 [20:30:52]SAM_PROTO_ClearQueue [20:30:52]wFMCommunicate request_size=4 [20:30:52]MH_SAM_APDU [20:30:52]CAPDU: 80 09 00 00 [20:30:52]Write to MH i2c: E2 08 00 7A 4E 80 09 00 00 00 00 00 00 3A [20:30:52]Write i2c OK [20:30:52]MH_I2C_Read... [20:30:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:52]Read from MH i2c: E2 [20:30:52]MH_I2C_Read... [20:30:52]Read from MH i2c: E2 03 00 [20:30:52]MH_I2C_Read... [20:30:52]Read from MH i2c: E2 03 00 7A 4E 00 90 00 3C [20:30:52]RAPDU: 90 00 [20:30:52]wFMCommunicate OK [20:30:52]SAM_PROTO_ClearQueue done [20:30:52]KKMCreateOFDPacket [20:30:52]OFDProtocolAddRootSTLVToBuf [20:30:52]FM_MakeSignedData [20:30:52]FM_MakeSignedData [20:30:52]SAM_PROTO_SignData [20:30:52]wFMCommunicate request_size=4 [20:30:52]MH_SAM_APDU [20:30:52]CAPDU: 80 0D 01 02 [20:30:52]Write to MH i2c: E2 08 00 7B 4E 80 0D 01 02 00 00 00 00 42 [20:30:52]Write i2c OK [20:30:52]MH_I2C_Read... [20:30:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:52]Read from MH i2c: E2 [20:30:52]MH_I2C_Read... [20:30:52]Read from MH i2c: E2 03 00 [20:30:52]MH_I2C_Read... [20:30:52]Read from MH i2c: E2 03 00 7B 4E 00 90 00 3D [20:30:52]RAPDU: 90 00 [20:30:52]wFMCommunicate OK [20:30:52]wFMCommunicate request_size=255 [20:30:52]MH_SAM_APDU [20:30:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 82 BB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1D 74 01 00 35 04 06 00 1A [20:30:52]Write to MH i2c: E2 02 01 7C 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 82 BB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1D 74 01 00 35 04 06 00 1A 00 00 30 [20:30:52]Write i2c OK [20:30:52]MH_I2C_Read... [20:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:53]Read from MH i2c: E2 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 03 00 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 03 00 7C 4E 00 90 00 3E [20:30:53]RAPDU: 90 00 [20:30:53]wFMCommunicate OK [20:30:53]wFMCommunicate request_size=10 [20:30:53]MH_SAM_APDU [20:30:53]CAPDU: 80 0D 02 02 05 62 53 54 09 74 [20:30:53]Write to MH i2c: E2 0D 00 7D 4E 80 0D 02 02 05 00 62 53 54 09 74 00 00 D5 [20:30:53]Write i2c OK [20:30:53]MH_I2C_Read... [20:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:53]Read from MH i2c: E2 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 03 00 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 03 00 7D 4E 00 90 00 3F [20:30:53]RAPDU: 90 00 [20:30:53]wFMCommunicate OK [20:30:53]wFMCommunicate request_size=4 [20:30:53]MH_SAM_APDU [20:30:53]CAPDU: 80 0D 03 02 [20:30:53]Write to MH i2c: E2 08 00 7E 4E 80 0D 03 02 00 00 00 00 47 [20:30:53]Write i2c OK [20:30:53]MH_I2C_Read... [20:30:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:53]Read from MH i2c: E2 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 0B 00 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 0B 00 7E 4E 00 1C 72 12 24 C2 B3 5F DC 90 00 BC [20:30:53]RAPDU: 1C 72 12 24 C2 B3 5F DC 90 00 [20:30:53]wFMCommunicate OK [20:30:53]SAM_PROTO_SignData done [20:30:53]FM_MakeSignedData done [20:30:53]CreateOFDProtocolMessage [20:30:53]wFMCommunicate request_size=4 [20:30:53]MH_SAM_APDU [20:30:53]CAPDU: 80 11 00 00 [20:30:53]Write to MH i2c: E2 08 00 7F 4E 80 11 00 00 00 00 00 00 47 [20:30:53]Write i2c OK [20:30:53]MH_I2C_Read... [20:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:53]Read from MH i2c: E2 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 17 00 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 17 00 7F 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 97 [20:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:30:53]wFMCommunicate OK [20:30:53]CreateOFDProtocolMessage done [20:30:53]OFDSenderStorePacket 95261 [20:30:53]StoreOFDPacket docnum=95261 [20:30:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 41 BB 07 01 E4 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 82 BB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1D 74 01 00 35 04 06 00 1A 62 53 54 09 74 1C 72 12 24 C2 B3 5F DC [20:30:53]CheckFolder [20:30:53]dirname=/storage/ofd_packets [20:30:53]CheckFolder done [20:30:53]ProducePacketName [20:30:53]name=ofd_packets/00095261 [20:30:53]NVStorageSaveData ofd_packets/00095261 [20:30:53]File name is /storage/ofd_packets/00095261 [20:30:53]Write 301 bytes [20:30:53]NVStorageSaveData done [20:30:53]OFDSenderStorePacket done [20:30:53]KKMCreateOFDPacket done [20:30:53]NVStorageSaveData kkm_last_timestamp [20:30:53]File name is /storage/kkm_last_timestamp [20:30:53]Write 4 bytes [20:30:53]NVStorageSaveData done [20:30:53]ExternCall_PrintAddStr [20:30:53]wPrintStart [20:30:53]Write to MH i2c: 01 00 00 80 4E CE [20:30:53]Write i2c OK [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: 01 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: 01 07 00 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: 01 07 00 80 4E 00 80 00 00 00 FF 0F 63 [20:30:53]RasterBufferAndPrint [20:30:53]line Счет N : (1)196237 [20:30:53]line ИНН: 02508201610067 [20:30:53]line Контрольно-Кассовый Чек [20:30:53]line ПРОДАЖА [20:30:53]line ТРК (МРК, ГНК) : 32 [20:30:53]line Товар: 2710124130 [20:30:53]line Аи-92-К-5 [20:30:53]line 7.950 * 62.90 [20:30:53]line = 500.06 [20:30:53]line НДС 12% НСП 1% [20:30:53]line > о реализуемом товаре [20:30:53]line ОКРУГЛЕНИЕ: -0.06 [20:30:53]line ИТОГО: 500.00 [20:30:53]line Внесено: 500.00 [20:30:53]line СДАЧА: 0.00 [20:30:53]line НСП 1% : 4.42 [20:30:53]line НДС 12% : 53.10 [20:30:53]line Наличными: 500.00 [20:30:53]line Безнал.: 0.00 [20:30:53]line Место: АЗС № 6 "Партнер Нефть" [20:30:53]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:30:53]line СНО: Общий режим [20:30:53]line Чек 191 12.03.2024 20:30 [20:30:53]line Смена: 327 ФФД: 1.0 [20:30:53]line ЗНМ: 0300000009 [20:30:53]line РНМ: 0000000000090555 [20:30:53]line Версия ККМ: 001 [20:30:53]line ФМ: 0000000000874811 [20:30:53]line ФД: 95261 [20:30:53]line ФПД: 29009607133556 [20:30:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T203058&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95261&fm=29009607133556&tin=02508201610067®Number=0000000000090555&sum=50000 [20:30:53]OFD Sender: Processing packet 95261 [packets to send 30, broken 29] [20:30:53]ProducePacketName [20:30:53]name=ofd_packets/00095261 [20:30:53]OFD Sender: To server: pG, [20:30:53]CommunicateWithHost lk.salyk.kg:30040 [20:30:53]ConnectInit lk.salyk.kg [20:30:53]written 0, free lines is 4095 [20:30:53]Connected sock=10 [20:30:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 41 BB 07 01 E4 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 82 BB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1D 74 01 00 35 04 06 00 1A 62 53 54 09 74 1C 72 12 24 C2 B3 5F DC [20:30:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 65 69 47 00 FE 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 38 37 34 38 31 31 10 04 04 00 1D 74 01 00 F4 03 04 00 D7 66 F0 65 B6 04 01 00 00 0C DC 4F 67 66 D5 B3 F7 [20:30:53]CommunicateWithHost err = 0 [20:30:53]CheckOFDResponse [20:30:53]1017 (14) - 77093643461234 [20:30:53]1041 (16) - 0000000000874811 [20:30:53]1040 (4) - 95261 [20:30:53]1012 (4) - 12.03.2024 14:29 [20:30:53]1206 (1) - 0 [20:30:53]OFD Sender: Remove packet 95261 [20:30:53]ProducePacketName [20:30:53]name=ofd_packets/00095261 [20:30:53]NVStorageDeleteData [20:30:54]Write to MH i2c: 01 00 00 AB 4E F9 [20:30:54]Write i2c OK [20:30:54]MH_I2C_Read... [20:30:54]Read from MH i2c: 01 [20:30:54]MH_I2C_Read... [20:30:54]Read from MH i2c: 01 07 00 [20:30:54]MH_I2C_Read... [20:30:54]Read from MH i2c: 01 07 00 AB 4E 00 80 00 00 00 63 0D F0 [20:30:54]RasterBufferAndPrint [20:30:54]line [20:30:54]line [20:30:54]line [20:30:54]line [20:30:54]line [20:30:54]written 0, free lines is 3433 [20:30:54]process_action close_receipt done [20:30:54]requested_data is exist [20:30:54]produce_requested_data [20:30:54]requested_item fm.sn is exist - process it [20:30:54]wFMCommunicate request_size=4 [20:30:54]MH_SAM_APDU [20:30:54]CAPDU: 80 11 00 00 [20:30:54]Write to MH i2c: E2 08 00 B2 4E 80 11 00 00 00 00 00 00 7A [20:30:54]Write i2c OK [20:30:54]MH_I2C_Read... [20:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:54]Read from MH i2c: E2 [20:30:54]MH_I2C_Read... [20:30:54]Read from MH i2c: E2 17 00 [20:30:54]MH_I2C_Read... [20:30:54]Read from MH i2c: E2 17 00 B2 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CA [20:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:30:54]wFMCommunicate OK [20:30:54]requested_item fd.num is exist - process it [20:30:54]SAM_PROTO_GetFieldsCounters [20:30:54]wFMCommunicate request_size=4 [20:30:54]MH_SAM_APDU [20:30:54]CAPDU: 80 13 00 00 [20:30:54]Write to MH i2c: E2 08 00 B3 4E 80 13 00 00 00 00 00 00 7D [20:30:54]Write i2c OK [20:30:54]MH_I2C_Read... [20:30:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:54]Read from MH i2c: E2 [20:30:54]MH_I2C_Read... [20:30:54]Read from MH i2c: E2 62 00 [20:30:54]MH_I2C_Read... [20:30:54]Read from MH i2c: E2 62 00 B3 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1D 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [20:30:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1D 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:30:54]wFMCommunicate OK [20:30:54]SAM_PROTO_GetFieldsCounters done [20:30:54]requested_item shift.num is exist - process it [20:30:54]requested_item shift.opened is exist - process it [20:30:54]req_shift_opened [20:30:54]FM_GetShiftState [20:30:54]SAM_PROTO_GetShiftState [20:30:54]wFMCommunicate request_size=4 [20:30:54]MH_SAM_APDU [20:30:54]CAPDU: 80 13 01 00 [20:30:54]Write to MH i2c: E2 08 00 B4 4E 80 13 01 00 00 00 00 00 7F [20:30:54]Write i2c OK [20:30:54]MH_I2C_Read... [20:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:54]Read from MH i2c: E2 [20:30:54]MH_I2C_Read... [20:30:54]Read from MH i2c: E2 0E 00 [20:30:54]MH_I2C_Read... [20:30:54]Read from MH i2c: E2 0E 00 B4 4E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F3 [20:30:54]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:30:54]wFMCommunicate OK [20:30:54]SAM_PROTO_GetShiftState done [20:30:54]FM_GetShiftState done [20:30:54]req_shift_opened done [20:30:54]requested_item shift.open_date is exist - process it [20:30:54]req_shift_open_date [20:30:54]req_shift_open_date done [20:30:54]produce_requested_data done [20:30:54]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95261,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [20:30:54]process_action_free close_receipt [20:30:54]json_value_free [20:30:54]json_value_free done [20:30:54]process_json_proto returns [20:30:54]Send response to host [20:30:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95261,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [20:30:54]free response buf [20:30:54]execute_script done [20:30:54]execute_script returns [20:30:54]free content buf [20:30:54]Sock 9.Close socket [20:30:54]Sock 9.Thread stoped [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:30:59]accept exits with 8 [20:30:59]New connection [20:30:59]New thread 3066813796 created [20:30:59]Thread 3066957156 joined [20:30:59]Waiting for new connection... [20:30:59] Sock 8.Parse request [20:30:59]Sock 8.Check first char [20:30:59]Sock 8.First char is OK [20:30:59]request: POST /json_proto HTTP/1.0 [20:30:59]Method: POST [20:30:59]URL: /json_proto [20:30:59]Method is POST - this is cgi request [20:30:59]url: /json_proto [20:30:59]query_string will be loaded in cgi processing [20:30:59]execute_cgi json_proto POST (null) [20:30:59]execute_cgi path=json_proto method=POST [20:30:59]POST find Content-Length [20:30:59]Host: 172.17.62.67:8080 [20:30:59]Content-Length: 677 [20:30:59]Content-Type: application/json [20:30:59] [20:30:59]POST finish read [20:30:59]Found Content-Length = 677 [20:30:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:59]execute_script... [20:30:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:59]POST & json_proto [20:30:59]process_json_proto [20:30:59]json parsed OK: [20:30:59]protocol is kg_v1.0 [20:30:59]action value=close_receipt [20:30:59]process_action close_receipt [20:30:59]cmd_close_receipt [20:30:59]MH_GetDate [20:30:59]Write to MH i2c: F0 00 00 B5 4E F2 [20:30:59]Write i2c OK [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: F0 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: F0 05 00 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: F0 05 00 B5 4E 00 8A BB F0 65 91 [20:30:59]GetLastDocTimeStamp 1710275458 [20:30:59]current date 1710275466 [20:30:59]FM_GetShiftState [20:30:59]SAM_PROTO_GetShiftState [20:30:59]wFMCommunicate request_size=4 [20:30:59]MH_SAM_APDU [20:30:59]CAPDU: 80 13 01 00 [20:30:59]Write to MH i2c: E2 08 00 B6 4E 80 13 01 00 00 00 00 00 81 [20:30:59]Write i2c OK [20:30:59]MH_I2C_Read... [20:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:59]Read from MH i2c: E2 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: E2 0E 00 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: E2 0E 00 B6 4E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F5 [20:30:59]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:30:59]wFMCommunicate OK [20:30:59]SAM_PROTO_GetShiftState done [20:30:59]FM_GetShiftState done [20:30:59]opened in 1710201976 [20:30:59]opened+sec_in_day 1710288376 [20:30:59]quantity*price = 50005 [20:30:59]sum+1 = 50007 [20:30:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 192 12.03.2024 20:31 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95262 ФПД: 74870799310650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T203106&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95262&fm=74870799310650&tin=02508201610067®Number=0000000000090555&sum=50000 [20:31:01]StoreToDocumentArchive [20:31:01]shift 327 fd 95262 [20:31:01]save to /storage/0327/doc_00095262 [20:31:01]save last doc name /storage/0327/doc_00095262 to /storage/kkm_last_doc_name [20:31:01]save OK [20:31:01]Clear old archive folders... [20:31:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:01]tlvbuf is 01AF2570 [20:31:01]SAM_PROTO_ClearQueue [20:31:01]wFMCommunicate request_size=4 [20:31:01]MH_SAM_APDU [20:31:01]CAPDU: 80 09 00 00 [20:31:01]Write to MH i2c: E2 08 00 C3 4E 80 09 00 00 00 00 00 00 83 [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:01]Read from MH i2c: E2 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 C3 4E 00 90 00 85 [20:31:01]RAPDU: 90 00 [20:31:01]wFMCommunicate OK [20:31:01]SAM_PROTO_ClearQueue done [20:31:01]KKMCreateOFDPacket [20:31:01]OFDProtocolAddRootSTLVToBuf [20:31:01]FM_MakeSignedData [20:31:01]FM_MakeSignedData [20:31:01]SAM_PROTO_SignData [20:31:01]wFMCommunicate request_size=4 [20:31:01]MH_SAM_APDU [20:31:01]CAPDU: 80 0D 01 02 [20:31:01]Write to MH i2c: E2 08 00 C4 4E 80 0D 01 02 00 00 00 00 8B [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:01]Read from MH i2c: E2 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 C4 4E 00 90 00 86 [20:31:01]RAPDU: 90 00 [20:31:01]wFMCommunicate OK [20:31:01]wFMCommunicate request_size=255 [20:31:01]MH_SAM_APDU [20:31:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 8A BB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1E 74 01 00 35 04 06 00 44 [20:31:01]Write to MH i2c: E2 02 01 C5 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 8A BB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1E 74 01 00 35 04 06 00 44 00 00 AD [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:01]Read from MH i2c: E2 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 C5 4E 00 90 00 87 [20:31:01]RAPDU: 90 00 [20:31:01]wFMCommunicate OK [20:31:01]wFMCommunicate request_size=10 [20:31:01]MH_SAM_APDU [20:31:01]CAPDU: 80 0D 02 02 05 18 37 65 9F 3A [20:31:01]Write to MH i2c: E2 0D 00 C6 4E 80 0D 02 02 05 00 18 37 65 9F 3A 00 00 25 [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:01]Read from MH i2c: E2 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 C6 4E 00 90 00 88 [20:31:01]RAPDU: 90 00 [20:31:01]wFMCommunicate OK [20:31:01]wFMCommunicate request_size=4 [20:31:01]MH_SAM_APDU [20:31:01]CAPDU: 80 0D 03 02 [20:31:01]Write to MH i2c: E2 08 00 C7 4E 80 0D 03 02 00 00 00 00 90 [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:01]Read from MH i2c: E2 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 0B 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 0B 00 C7 4E 00 C0 CF E7 5E AD 5C D0 52 90 00 90 [20:31:01]RAPDU: C0 CF E7 5E AD 5C D0 52 90 00 [20:31:01]wFMCommunicate OK [20:31:01]SAM_PROTO_SignData done [20:31:01]FM_MakeSignedData done [20:31:01]CreateOFDProtocolMessage [20:31:01]wFMCommunicate request_size=4 [20:31:01]MH_SAM_APDU [20:31:01]CAPDU: 80 11 00 00 [20:31:01]Write to MH i2c: E2 08 00 C8 4E 80 11 00 00 00 00 00 00 90 [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:01]Read from MH i2c: E2 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 17 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 17 00 C8 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E0 [20:31:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:31:01]wFMCommunicate OK [20:31:01]CreateOFDProtocolMessage done [20:31:01]OFDSenderStorePacket 95262 [20:31:01]StoreOFDPacket docnum=95262 [20:31:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B0 89 07 01 A1 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 8A BB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1E 74 01 00 35 04 06 00 44 18 37 65 9F 3A C0 CF E7 5E AD 5C D0 52 [20:31:01]CheckFolder [20:31:01]dirname=/storage/ofd_packets [20:31:01]CheckFolder done [20:31:01]ProducePacketName [20:31:01]name=ofd_packets/00095262 [20:31:01]NVStorageSaveData ofd_packets/00095262 [20:31:01]File name is /storage/ofd_packets/00095262 [20:31:01]Write 301 bytes [20:31:01]NVStorageSaveData done [20:31:01]OFDSenderStorePacket done [20:31:01]KKMCreateOFDPacket done [20:31:01]NVStorageSaveData kkm_last_timestamp [20:31:01]File name is /storage/kkm_last_timestamp [20:31:01]Write 4 bytes [20:31:01]NVStorageSaveData done [20:31:01]ExternCall_PrintAddStr [20:31:01]wPrintStart [20:31:01]Write to MH i2c: 01 00 00 C9 4E 17 [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: 01 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: 01 07 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: 01 07 00 C9 4E 00 80 00 00 00 FF 0F AC [20:31:01]RasterBufferAndPrint [20:31:01]line Счет N : (1)196238 [20:31:01]line ИНН: 02508201610067 [20:31:01]line Контрольно-Кассовый Чек [20:31:01]line ПРОДАЖА [20:31:01]line ТРК (МРК, ГНК) : 12 [20:31:01]line Товар: 2710124130 [20:31:01]line Аи-92-К-5 [20:31:01]line 7.950 * 62.90 [20:31:01]line = 500.06 [20:31:01]line НДС 12% НСП 1% [20:31:01]line > о реализуемом товаре [20:31:01]line ОКРУГЛЕНИЕ: -0.06 [20:31:01]line ИТОГО: 500.00 [20:31:01]line Внесено: 500.00 [20:31:01]line СДАЧА: 0.00 [20:31:01]line НСП 1% : 4.42 [20:31:01]line НДС 12% : 53.10 [20:31:01]line Наличными: 500.00 [20:31:01]line Безнал.: 0.00 [20:31:01]line Место: АЗС № 6 "Партнер Нефть" [20:31:01]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:31:01]line СНО: Общий режим [20:31:01]line Чек 192 12.03.2024 20:31 [20:31:01]line Смена: 327 ФФД: 1.0 [20:31:01]line ЗНМ: 0300000009 [20:31:01]line РНМ: 0000000000090555 [20:31:01]line Версия ККМ: 001 [20:31:01]line ФМ: 0000000000874811 [20:31:01]line ФД: 95262 [20:31:01]line ФПД: 74870799310650 [20:31:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T203106&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95262&fm=74870799310650&tin=02508201610067®Number=0000000000090555&sum=50000 [20:31:01]written 0, free lines is 4095 [20:31:01]OFD Sender: Processing packet 95262 [packets to send 30, broken 29] [20:31:01]ProducePacketName [20:31:01]name=ofd_packets/00095262 [20:31:01]OFD Sender: To server: pG, [20:31:01]CommunicateWithHost lk.salyk.kg:30040 [20:31:01]ConnectInit lk.salyk.kg [20:31:02]Write to MH i2c: 01 00 00 F4 4E 42 [20:31:02]Write i2c OK [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: 01 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: 01 07 00 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: 01 07 00 F4 4E 00 80 00 00 00 4F 0D 25 [20:31:02]RasterBufferAndPrint [20:31:02]line [20:31:02]line [20:31:02]line [20:31:02]line [20:31:02]line [20:31:02]written 0, free lines is 3417 [20:31:02]process_action close_receipt done [20:31:02]requested_data is exist [20:31:02]produce_requested_data [20:31:02]requested_item fm.sn is exist - process it [20:31:02]wFMCommunicate request_size=4 [20:31:02]MH_SAM_APDU [20:31:02]CAPDU: 80 11 00 00 [20:31:02]Write to MH i2c: E2 08 00 FB 4E 80 11 00 00 00 00 00 00 C3 [20:31:02]Write i2c OK [20:31:02]MH_I2C_Read... [20:31:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:02]Read from MH i2c: E2 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: E2 17 00 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: E2 17 00 FB 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 13 [20:31:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:31:02]wFMCommunicate OK [20:31:02]requested_item fd.num is exist - process it [20:31:02]SAM_PROTO_GetFieldsCounters [20:31:02]wFMCommunicate request_size=4 [20:31:02]MH_SAM_APDU [20:31:02]CAPDU: 80 13 00 00 [20:31:02]Write to MH i2c: E2 08 00 FC 4E 80 13 00 00 00 00 00 00 C6 [20:31:02]Write i2c OK [20:31:02]MH_I2C_Read... [20:31:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:02]Read from MH i2c: E2 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: E2 62 00 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: E2 62 00 FC 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1E 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [20:31:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1E 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:02]wFMCommunicate OK [20:31:02]SAM_PROTO_GetFieldsCounters done [20:31:02]requested_item shift.num is exist - process it [20:31:02]requested_item shift.opened is exist - process it [20:31:02]req_shift_opened [20:31:02]FM_GetShiftState [20:31:02]SAM_PROTO_GetShiftState [20:31:02]wFMCommunicate request_size=4 [20:31:02]MH_SAM_APDU [20:31:02]CAPDU: 80 13 01 00 [20:31:02]Write to MH i2c: E2 08 00 FD 4E 80 13 01 00 00 00 00 00 C8 [20:31:02]Write i2c OK [20:31:02]MH_I2C_Read... [20:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:02]Read from MH i2c: E2 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: E2 0E 00 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: E2 0E 00 FD 4E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 3C [20:31:02]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:31:02]wFMCommunicate OK [20:31:02]SAM_PROTO_GetShiftState done [20:31:02]FM_GetShiftState done [20:31:02]req_shift_opened done [20:31:02]requested_item shift.open_date is exist - process it [20:31:02]req_shift_open_date [20:31:02]req_shift_open_date done [20:31:02]produce_requested_data done [20:31:02]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95262,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [20:31:02]process_action_free close_receipt [20:31:02]json_value_free [20:31:02]json_value_free done [20:31:02]process_json_proto returns [20:31:02]Send response to host [20:31:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95262,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [20:31:02]free response buf [20:31:02]execute_script done [20:31:02]execute_script returns [20:31:02]free content buf [20:31:02]Sock 8.Close socket [20:31:02]Sock 8.Thread stoped [20:31:06]ConnectInit Can't take IP for lk.salyk.kg [20:31:06]CommunicateWithHost connect error [20:31:06]CommunicateWithHost err = -1 [20:31:06]OFD Sender: Server communicate error [20:31:11]OFD Sender: Processing packet 95262 [packets to send 30, broken 29] [20:31:11]ProducePacketName [20:31:11]name=ofd_packets/00095262 [20:31:11]OFD Sender: To server: pG, [20:31:11]CommunicateWithHost lk.salyk.kg:30040 [20:31:11]ConnectInit lk.salyk.kg [20:31:11]Connected sock=8 [20:31:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B0 89 07 01 A1 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 8A BB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1E 74 01 00 35 04 06 00 44 18 37 65 9F 3A C0 CF E7 5E AD 5C D0 52 [20:31:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 85 25 47 00 A7 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1E 74 01 00 F4 03 04 00 E9 66 F0 65 B6 04 01 00 00 9C DB DA E7 22 56 FB AE [20:31:11]CommunicateWithHost err = 0 [20:31:11]CheckOFDResponse [20:31:11]1017 (14) - 77093643461234 [20:31:11]1041 (16) - 0000000000874811 [20:31:11]1040 (4) - 95262 [20:31:11]1012 (4) - 12.03.2024 14:30 [20:31:11]1206 (1) - 0 [20:31:11]OFD Sender: Remove packet 95262 [20:31:11]ProducePacketName [20:31:11]name=ofd_packets/00095262 [20:31:11]NVStorageDeleteData [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:17]recv_with_timeout no data received [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:39:59]recv_with_timeout no data received [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:35]accept exits with 9 [20:41:35]New connection [20:41:35]New thread 3066957156 created [20:41:35]Thread 3066813796 joined [20:41:35]Waiting for new connection... [20:41:35] Sock 9.Parse request [20:41:35]Sock 9.Check first char [20:41:35]Sock 9.First char is OK [20:41:35]request: POST /json_proto HTTP/1.0 [20:41:35]Method: POST [20:41:35]URL: /json_proto [20:41:35]Method is POST - this is cgi request [20:41:35]url: /json_proto [20:41:35]query_string will be loaded in cgi processing [20:41:35]execute_cgi json_proto POST (null) [20:41:35]execute_cgi path=json_proto method=POST [20:41:35]POST find Content-Length [20:41:35]Host: 172.17.62.67:8080 [20:41:35]Content-Length: 819 [20:41:35]Content-Type: application/json [20:41:35] [20:41:35]POST finish read [20:41:35]Found Content-Length = 819 [20:41:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 20.000, "sum" : 1390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:35]execute_script... [20:41: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)196239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 20.000, "sum" : 1390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:35]POST & json_proto [20:41:35]process_json_proto [20:41:35]json parsed OK: [20:41:35]protocol is kg_v1.0 [20:41:35]action value=close_receipt [20:41:35]process_action close_receipt [20:41:35]cmd_close_receipt [20:41:35]MH_GetDate [20:41:35]Write to MH i2c: F0 00 00 FE 4E 3B [20:41:35]Write i2c OK [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: F0 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: F0 05 00 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: F0 05 00 FE 4E 00 06 BE F0 65 59 [20:41:35]GetLastDocTimeStamp 1710275466 [20:41:35]current date 1710276102 [20:41:35]FM_GetShiftState [20:41:35]SAM_PROTO_GetShiftState [20:41:35]wFMCommunicate request_size=4 [20:41:35]MH_SAM_APDU [20:41:35]CAPDU: 80 13 01 00 [20:41:35]Write to MH i2c: E2 08 00 FF 4E 80 13 01 00 00 00 00 00 CA [20:41:35]Write i2c OK [20:41:35]MH_I2C_Read... [20:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:35]Read from MH i2c: E2 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: E2 0E 00 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: E2 0E 00 FF 4E 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 3E [20:41:35]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:41:35]wFMCommunicate OK [20:41:35]SAM_PROTO_GetShiftState done [20:41:35]FM_GetShiftState done [20:41:35]opened in 1710201976 [20:41:35]opened+sec_in_day 1710288376 [20:41:35]quantity*price = 139000 [20:41:35]sum+1 = 139001 [20:41:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1390.00 НСП 1% : 12.30 НДС 12% : 147.61 Наличными: 0.00 Безнал.: 1390.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 193 12.03.2024 20:41 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95263 ФПД: 31950083735254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T204142&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95263&fm=31950083735254&tin=02508201610067®Number=0000000000090555&sum=139000 [20:41:36]StoreToDocumentArchive [20:41:36]shift 327 fd 95263 [20:41:36]save to /storage/0327/doc_00095263 [20:41:36]save last doc name /storage/0327/doc_00095263 to /storage/kkm_last_doc_name [20:41:36]save OK [20:41:36]Clear old archive folders... [20:41:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:41:36]tlvbuf is 01A8D740 [20:41:36]SAM_PROTO_ClearQueue [20:41:36]wFMCommunicate request_size=4 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 09 00 00 [20:41:36]Write to MH i2c: E2 08 00 0C 4F 80 09 00 00 00 00 00 00 CD [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 0C 4F 00 90 00 CF [20:41:36]RAPDU: 90 00 [20:41:36]wFMCommunicate OK [20:41:36]SAM_PROTO_ClearQueue done [20:41:36]KKMCreateOFDPacket [20:41:36]OFDProtocolAddRootSTLVToBuf [20:41:36]FM_MakeSignedData [20:41:36]FM_MakeSignedData [20:41:36]SAM_PROTO_SignData [20:41:36]wFMCommunicate request_size=4 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 0D 01 02 [20:41:36]Write to MH i2c: E2 08 00 0D 4F 80 0D 01 02 00 00 00 00 D5 [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:36]Read from MH i2c: E2 03 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 0D 4F 00 90 00 D0 [20:41:36]RAPDU: 90 00 [20:41:36]wFMCommunicate OK [20:41:36]wFMCommunicate request_size=255 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 F8 1E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 1E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 39 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 1E 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 06 BE F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1F 74 01 00 35 04 06 00 1D [20:41:36]Write to MH i2c: E2 02 01 0E 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 F8 1E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 1E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 39 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 1E 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 06 BE F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1F 74 01 00 35 04 06 00 1D 00 00 5D [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 0E 4F 00 90 00 D1 [20:41:36]RAPDU: 90 00 [20:41:36]wFMCommunicate OK [20:41:36]wFMCommunicate request_size=10 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 0D 02 02 05 0E F5 64 3E D6 [20:41:36]Write to MH i2c: E2 0D 00 0F 4F 80 0D 02 02 05 00 0E F5 64 3E D6 00 00 5D [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 0F 4F 00 90 00 D2 [20:41:36]RAPDU: 90 00 [20:41:36]wFMCommunicate OK [20:41:36]wFMCommunicate request_size=4 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 0D 03 02 [20:41:36]Write to MH i2c: E2 08 00 10 4F 80 0D 03 02 00 00 00 00 DA [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 0B 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 0B 00 10 4F 00 68 B1 2C 31 A5 A6 2A 6F 90 00 35 [20:41:36]RAPDU: 68 B1 2C 31 A5 A6 2A 6F 90 00 [20:41:36]wFMCommunicate OK [20:41:36]SAM_PROTO_SignData done [20:41:36]FM_MakeSignedData done [20:41:36]CreateOFDProtocolMessage [20:41:36]wFMCommunicate request_size=4 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 11 00 00 [20:41:36]Write to MH i2c: E2 08 00 11 4F 80 11 00 00 00 00 00 00 DA [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 17 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 17 00 11 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2A [20:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:41:36]wFMCommunicate OK [20:41:36]CreateOFDProtocolMessage done [20:41:36]OFDSenderStorePacket 95263 [20:41:36]StoreOFDPacket docnum=95263 [20:41:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8B C3 07 01 57 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 F8 1E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 1E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 39 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 1E 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 06 BE F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1F 74 01 00 35 04 06 00 1D 0E F5 64 3E D6 68 B1 2C 31 A5 A6 2A 6F [20:41:36]CheckFolder [20:41:36]dirname=/storage/ofd_packets [20:41:36]CheckFolder done [20:41:36]ProducePacketName [20:41:36]name=ofd_packets/00095263 [20:41:36]NVStorageSaveData ofd_packets/00095263 [20:41:36]File name is /storage/ofd_packets/00095263 [20:41:36]Write 301 bytes [20:41:36]NVStorageSaveData done [20:41:36]OFDSenderStorePacket done [20:41:36]KKMCreateOFDPacket done [20:41:36]NVStorageSaveData kkm_last_timestamp [20:41:36]File name is /storage/kkm_last_timestamp [20:41:36]Write 4 bytes [20:41:36]NVStorageSaveData done [20:41:36]ExternCall_PrintAddStr [20:41:36]wPrintStart [20:41:36]Write to MH i2c: 01 00 00 12 4F 61 [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: 01 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: 01 07 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: 01 07 00 12 4F 00 80 00 00 00 FF 0F F6 [20:41:36]RasterBufferAndPrint [20:41:36]line Счет N : (1)196239 [20:41:36]line ИНН: 02508201610067 [20:41:36]line Контрольно-Кассовый Чек [20:41:36]line ПРОДАЖА [20:41:36]line ТРК (МРК, ГНК) : 31 [20:41:36]line Товар: 2710124500 [20:41:36]line Аи-95-К-5 [20:41:36]line 20.000 * 69.50 [20:41:36]line = 1390.00 [20:41:36]line НДС 12% НСП 1% [20:41:36]line > о реализуемом товаре [20:41:36]line ИТОГО: 1390.00 [20:41:36]line НСП 1% : 12.30 [20:41:36]line НДС 12% : 147.61 [20:41:36]line Наличными: 0.00 [20:41:36]line Безнал.: 1390.00 [20:41:36]line Место: АЗС № 6 "Партнер Нефть" [20:41:36]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:41:36]line СНО: Общий режим [20:41:36]line Чек 193 12.03.2024 20:41 [20:41:36]line Смена: 327 ФФД: 1.0 [20:41:36]line ЗНМ: 0300000009 [20:41:36]line РНМ: 0000000000090555 [20:41:36]line Версия ККМ: 001 [20:41:36]line Платежная система: Бакай Банк [20:41:36]line ФМ: 0000000000874811 [20:41:36]line ФД: 95263 [20:41:36]line ФПД: 31950083735254 [20:41:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T204142&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95263&fm=31950083735254&tin=02508201610067®Number=0000000000090555&sum=139000 [20:41:37]OFD Sender: Processing packet 95263 [packets to send 30, broken 29] [20:41:37]ProducePacketName [20:41:37]name=ofd_packets/00095263 [20:41:37]OFD Sender: To server: pG, [20:41:37]CommunicateWithHost lk.salyk.kg:30040 [20:41:37]ConnectInit lk.salyk.kg [20:41:37]written 0, free lines is 4095 [20:41:37]Connected sock=10 [20:41:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8B C3 07 01 57 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 F8 1E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 1E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 39 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 1E 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 06 BE F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1F 74 01 00 35 04 06 00 1D 0E F5 64 3E D6 68 B1 2C 31 A5 A6 2A 6F [20:41:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 68 79 47 00 6E EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1F 74 01 00 F4 03 04 00 5B 69 F0 65 B6 04 01 00 00 04 C2 10 D6 33 84 8F 47 [20:41:37]CommunicateWithHost err = 0 [20:41:37]CheckOFDResponse [20:41:37]1017 (14) - 77093643461234 [20:41:37]1041 (16) - 0000000000874811 [20:41:37]1040 (4) - 95263 [20:41:37]1012 (4) - 12.03.2024 14:40 [20:41:37]1206 (1) - 0 [20:41:37]OFD Sender: Remove packet 95263 [20:41:37]ProducePacketName [20:41:37]name=ofd_packets/00095263 [20:41:37]NVStorageDeleteData [20:41:37]Write to MH i2c: 01 00 00 3C 4F 8B [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: 01 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: 01 07 00 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: 01 07 00 3C 4F 00 80 00 00 00 63 0D 82 [20:41:37]RasterBufferAndPrint [20:41:37]line [20:41:37]line [20:41:37]line [20:41:37]line [20:41:37]line [20:41:37]written 0, free lines is 3433 [20:41:37]process_action close_receipt done [20:41:37]requested_data is exist [20:41:37]produce_requested_data [20:41:37]requested_item fm.sn is exist - process it [20:41:37]wFMCommunicate request_size=4 [20:41:37]MH_SAM_APDU [20:41:37]CAPDU: 80 11 00 00 [20:41:37]Write to MH i2c: E2 08 00 43 4F 80 11 00 00 00 00 00 00 0C [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:37]Read from MH i2c: E2 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: E2 17 00 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: E2 17 00 43 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5C [20:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:41:37]wFMCommunicate OK [20:41:37]requested_item fd.num is exist - process it [20:41:37]SAM_PROTO_GetFieldsCounters [20:41:37]wFMCommunicate request_size=4 [20:41:37]MH_SAM_APDU [20:41:37]CAPDU: 80 13 00 00 [20:41:37]Write to MH i2c: E2 08 00 44 4F 80 13 00 00 00 00 00 00 0F [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:37]Read from MH i2c: E2 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: E2 62 00 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: E2 62 00 44 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1F 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [20:41:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1F 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:37]wFMCommunicate OK [20:41:37]SAM_PROTO_GetFieldsCounters done [20:41:37]requested_item shift.num is exist - process it [20:41:37]requested_item shift.opened is exist - process it [20:41:37]req_shift_opened [20:41:37]FM_GetShiftState [20:41:37]SAM_PROTO_GetShiftState [20:41:37]wFMCommunicate request_size=4 [20:41:37]MH_SAM_APDU [20:41:37]CAPDU: 80 13 01 00 [20:41:37]Write to MH i2c: E2 08 00 45 4F 80 13 01 00 00 00 00 00 11 [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:38]Read from MH i2c: E2 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: E2 0E 00 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: E2 0E 00 45 4F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 85 [20:41:38]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:41:38]wFMCommunicate OK [20:41:38]SAM_PROTO_GetShiftState done [20:41:38]FM_GetShiftState done [20:41:38]req_shift_opened done [20:41:38]requested_item shift.open_date is exist - process it [20:41:38]req_shift_open_date [20:41:38]req_shift_open_date done [20:41:38]produce_requested_data done [20:41:38]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95263,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [20:41:38]process_action_free close_receipt [20:41:38]json_value_free [20:41:38]json_value_free done [20:41:38]process_json_proto returns [20:41:38]Send response to host [20:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95263,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [20:41:38]free response buf [20:41:38]execute_script done [20:41:38]execute_script returns [20:41:38]free content buf [20:41:38]Sock 9.Close socket [20:41:38]Sock 9.Thread stoped [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:00]accept exits with 8 [20:50:00]New connection [20:50:00]New thread 3066813796 created [20:50:00]Thread 3066957156 joined [20:50:00]Waiting for new connection... [20:50:00] Sock 8.Parse request [20:50:00]Sock 8.Check first char [20:50:00]Sock 8.First char is OK [20:50:00]request: POST /json_proto HTTP/1.0 [20:50:00]Method: POST [20:50:00]URL: /json_proto [20:50:00]Method is POST - this is cgi request [20:50:00]url: /json_proto [20:50:00]query_string will be loaded in cgi processing [20:50:00]execute_cgi json_proto POST (null) [20:50:00]execute_cgi path=json_proto method=POST [20:50:00]POST find Content-Length [20:50:00]Host: 172.17.62.67:8080 [20:50:00]Content-Length: 819 [20:50:00]Content-Type: application/json [20:50:00] [20:50:00]POST finish read [20:50:00]Found Content-Length = 819 [20:50:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:00]execute_script... [20:50: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)196240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:00]POST & json_proto [20:50:00]process_json_proto [20:50:00]json parsed OK: [20:50:00]protocol is kg_v1.0 [20:50:00]action value=close_receipt [20:50:00]process_action close_receipt [20:50:00]cmd_close_receipt [20:50:00]MH_GetDate [20:50:00]Write to MH i2c: F0 00 00 46 4F 84 [20:50:00]Write i2c OK [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: F0 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: F0 05 00 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: F0 05 00 46 4F 00 FF BF F0 65 9C [20:50:00]GetLastDocTimeStamp 1710276102 [20:50:00]current date 1710276607 [20:50:00]FM_GetShiftState [20:50:00]SAM_PROTO_GetShiftState [20:50:00]wFMCommunicate request_size=4 [20:50:00]MH_SAM_APDU [20:50:00]CAPDU: 80 13 01 00 [20:50:00]Write to MH i2c: E2 08 00 47 4F 80 13 01 00 00 00 00 00 13 [20:50:00]Write i2c OK [20:50:00]MH_I2C_Read... [20:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:00]Read from MH i2c: E2 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: E2 0E 00 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: E2 0E 00 47 4F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 87 [20:50:00]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:50:00]wFMCommunicate OK [20:50:00]SAM_PROTO_GetShiftState done [20:50:00]FM_GetShiftState done [20:50:00]opened in 1710201976 [20:50:00]opened+sec_in_day 1710288376 [20:50:00]quantity*price = 200021 [20:50:00]sum+1 = 200022 [20:50:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.21 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 0.00 Безнал.: 2000.21 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 194 12.03.2024 20:50 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95264 ФПД: 3362514012528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T205007&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95264&fm=3362514012528&tin=02508201610067®Number=0000000000090555&sum=200021 [20:50:01]StoreToDocumentArchive [20:50:01]shift 327 fd 95264 [20:50:01]save to /storage/0327/doc_00095264 [20:50:01]save last doc name /storage/0327/doc_00095264 to /storage/kkm_last_doc_name [20:50:01]save OK [20:50:01]Clear old archive folders... [20:50:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:50:01]tlvbuf is 01A54940 [20:50:01]SAM_PROTO_ClearQueue [20:50:01]wFMCommunicate request_size=4 [20:50:01]MH_SAM_APDU [20:50:01]CAPDU: 80 09 00 00 [20:50:01]Write to MH i2c: E2 08 00 54 4F 80 09 00 00 00 00 00 00 15 [20:50:01]Write i2c OK [20:50:01]MH_I2C_Read... [20:50:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:01]Read from MH i2c: E2 [20:50:01]MH_I2C_Read... [20:50:01]Read from MH i2c: E2 03 00 [20:50:01]MH_I2C_Read... [20:50:01]Read from MH i2c: E2 03 00 54 4F 00 90 00 17 [20:50:01]RAPDU: 90 00 [20:50:01]wFMCommunicate OK [20:50:01]SAM_PROTO_ClearQueue done [20:50:01]KKMCreateOFDPacket [20:50:01]OFDProtocolAddRootSTLVToBuf [20:50:01]FM_MakeSignedData [20:50:01]FM_MakeSignedData [20:50:01]SAM_PROTO_SignData [20:50:01]wFMCommunicate request_size=4 [20:50:01]MH_SAM_APDU [20:50:01]CAPDU: 80 0D 01 02 [20:50:01]Write to MH i2c: E2 08 00 55 4F 80 0D 01 02 00 00 00 00 1D [20:50:01]Write i2c OK [20:50:01]MH_I2C_Read... [20:50:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:01]Read from MH i2c: E2 [20:50:01]MH_I2C_Read... [20:50:01]Read from MH i2c: E2 03 00 [20:50:01]MH_I2C_Read... [20:50:01]Read from MH i2c: E2 03 00 55 4F 00 90 00 18 [20:50:01]RAPDU: 90 00 [20:50:01]wFMCommunicate OK [20:50:01]wFMCommunicate request_size=255 [20:50:01]MH_SAM_APDU [20:50: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 FF BF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 20 74 01 00 35 04 06 00 03 [20:50:01]Write to MH i2c: E2 02 01 56 4F 80 0D 02 02 FA 00 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 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 FF BF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 20 74 01 00 35 04 06 00 03 00 00 63 [20:50:01]Write i2c OK [20:50:01]MH_I2C_Read... [20:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 56 4F 00 90 00 19 [20:50:02]RAPDU: 90 00 [20:50:02]wFMCommunicate OK [20:50:02]wFMCommunicate request_size=10 [20:50:02]MH_SAM_APDU [20:50:02]CAPDU: 80 0D 02 02 05 0E E5 74 09 70 [20:50:02]Write to MH i2c: E2 0D 00 57 4F 80 0D 02 02 05 00 0E E5 74 09 70 00 00 0A [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 57 4F 00 90 00 1A [20:50:02]RAPDU: 90 00 [20:50:02]wFMCommunicate OK [20:50:02]wFMCommunicate request_size=4 [20:50:02]MH_SAM_APDU [20:50:02]CAPDU: 80 0D 03 02 [20:50:02]Write to MH i2c: E2 08 00 58 4F 80 0D 03 02 00 00 00 00 22 [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 0B 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 0B 00 58 4F 00 0F 26 83 EB 21 51 94 EB 90 00 B7 [20:50:02]RAPDU: 0F 26 83 EB 21 51 94 EB 90 00 [20:50:02]wFMCommunicate OK [20:50:02]SAM_PROTO_SignData done [20:50:02]FM_MakeSignedData done [20:50:02]CreateOFDProtocolMessage [20:50:02]wFMCommunicate request_size=4 [20:50:02]MH_SAM_APDU [20:50:02]CAPDU: 80 11 00 00 [20:50:02]Write to MH i2c: E2 08 00 59 4F 80 11 00 00 00 00 00 00 22 [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 17 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 17 00 59 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 72 [20:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:50:02]wFMCommunicate OK [20:50:02]CreateOFDProtocolMessage done [20:50:02]OFDSenderStorePacket 95264 [20:50:02]StoreOFDPacket docnum=95264 [20:50:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D6 F1 07 01 10 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 FF BF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 20 74 01 00 35 04 06 00 03 0E E5 74 09 70 0F 26 83 EB 21 51 94 EB [20:50:02]CheckFolder [20:50:02]dirname=/storage/ofd_packets [20:50:02]CheckFolder done [20:50:02]ProducePacketName [20:50:02]name=ofd_packets/00095264 [20:50:02]NVStorageSaveData ofd_packets/00095264 [20:50:02]File name is /storage/ofd_packets/00095264 [20:50:02]Write 301 bytes [20:50:02]NVStorageSaveData done [20:50:02]OFDSenderStorePacket done [20:50:02]KKMCreateOFDPacket done [20:50:02]NVStorageSaveData kkm_last_timestamp [20:50:02]File name is /storage/kkm_last_timestamp [20:50:02]Write 4 bytes [20:50:02]NVStorageSaveData done [20:50:02]ExternCall_PrintAddStr [20:50:02]wPrintStart [20:50:02]Write to MH i2c: 01 00 00 5A 4F A9 [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: 01 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: 01 07 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: 01 07 00 5A 4F 00 80 00 00 00 FF 0F 3E [20:50:02]RasterBufferAndPrint [20:50:02]line Счет N : (1)196240 [20:50:02]line ИНН: 02508201610067 [20:50:02]line Контрольно-Кассовый Чек [20:50:02]line ПРОДАЖА [20:50:02]line ТРК (МРК, ГНК) : 21 [20:50:02]line Товар: 2710124500 [20:50:02]line Аи-95-К-5 [20:50:02]line 28.780 * 69.50 [20:50:02]line = 2000.21 [20:50:02]line НДС 12% НСП 1% [20:50:02]line > о реализуемом товаре [20:50:02]line ИТОГО: 2000.21 [20:50:02]line НСП 1% : 17.70 [20:50:02]line НДС 12% : 212.41 [20:50:02]line Наличными: 0.00 [20:50:02]line Безнал.: 2000.21 [20:50:02]line Место: АЗС № 6 "Партнер Нефть" [20:50:02]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:50:02]line СНО: Общий режим [20:50:02]line Чек 194 12.03.2024 20:50 [20:50:02]line Смена: 327 ФФД: 1.0 [20:50:02]line ЗНМ: 0300000009 [20:50:02]line РНМ: 0000000000090555 [20:50:02]line Версия ККМ: 001 [20:50:02]line Платежная система: Бакай Банк [20:50:02]line ФМ: 0000000000874811 [20:50:02]line ФД: 95264 [20:50:02]line ФПД: 3362514012528 [20:50:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T205007&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95264&fm=3362514012528&tin=02508201610067®Number=0000000000090555&sum=200021 [20:50:02]OFD Sender: Processing packet 95264 [packets to send 30, broken 29] [20:50:02]ProducePacketName [20:50:02]name=ofd_packets/00095264 [20:50:02]OFD Sender: To server: pG, [20:50:02]CommunicateWithHost lk.salyk.kg:30040 [20:50:02]ConnectInit lk.salyk.kg [20:50:02]written 0, free lines is 4095 [20:50:02]Connected sock=10 [20:50:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D6 F1 07 01 10 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 FF BF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 20 74 01 00 35 04 06 00 03 0E E5 74 09 70 0F 26 83 EB 21 51 94 EB [20:50:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 60 63 47 00 C2 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 20 74 01 00 F4 03 04 00 54 6B F0 65 B6 04 01 00 00 48 C1 BA F2 1E EA A5 09 [20:50:02]CommunicateWithHost err = 0 [20:50:02]CheckOFDResponse [20:50:02]1017 (14) - 77093643461234 [20:50:02]1041 (16) - 0000000000874811 [20:50:02]1040 (4) - 95264 [20:50:02]1012 (4) - 12.03.2024 14:48 [20:50:02]1206 (1) - 0 [20:50:02]OFD Sender: Remove packet 95264 [20:50:02]ProducePacketName [20:50:02]name=ofd_packets/00095264 [20:50:02]NVStorageDeleteData [20:50:02]Write to MH i2c: 01 00 00 84 4F D3 [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: 01 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: 01 07 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: 01 07 00 84 4F 00 80 00 00 00 68 0D CF [20:50:02]RasterBufferAndPrint [20:50:02]line [20:50:02]line [20:50:02]line [20:50:02]line [20:50:02]line [20:50:02]written 0, free lines is 3440 [20:50:03]process_action close_receipt done [20:50:03]requested_data is exist [20:50:03]produce_requested_data [20:50:03]requested_item fm.sn is exist - process it [20:50:03]wFMCommunicate request_size=4 [20:50:03]MH_SAM_APDU [20:50:03]CAPDU: 80 11 00 00 [20:50:03]Write to MH i2c: E2 08 00 8B 4F 80 11 00 00 00 00 00 00 54 [20:50:03]Write i2c OK [20:50:03]MH_I2C_Read... [20:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:03]Read from MH i2c: E2 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 17 00 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 17 00 8B 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A4 [20:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:50:03]wFMCommunicate OK [20:50:03]requested_item fd.num is exist - process it [20:50:03]SAM_PROTO_GetFieldsCounters [20:50:03]wFMCommunicate request_size=4 [20:50:03]MH_SAM_APDU [20:50:03]CAPDU: 80 13 00 00 [20:50:03]Write to MH i2c: E2 08 00 8C 4F 80 13 00 00 00 00 00 00 57 [20:50:03]Write i2c OK [20:50:03]MH_I2C_Read... [20:50:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:03]Read from MH i2c: E2 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 62 00 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 62 00 8C 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 20 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [20:50:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 20 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:50:03]wFMCommunicate OK [20:50:03]SAM_PROTO_GetFieldsCounters done [20:50:03]requested_item shift.num is exist - process it [20:50:03]requested_item shift.opened is exist - process it [20:50:03]req_shift_opened [20:50:03]FM_GetShiftState [20:50:03]SAM_PROTO_GetShiftState [20:50:03]wFMCommunicate request_size=4 [20:50:03]MH_SAM_APDU [20:50:03]CAPDU: 80 13 01 00 [20:50:03]Write to MH i2c: E2 08 00 8D 4F 80 13 01 00 00 00 00 00 59 [20:50:03]Write i2c OK [20:50:03]MH_I2C_Read... [20:50:03]OFD Sender: No OFD packet to send [20:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:03]Read from MH i2c: E2 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 0E 00 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 0E 00 8D 4F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CD [20:50:03]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [20:50:03]wFMCommunicate OK [20:50:03]SAM_PROTO_GetShiftState done [20:50:03]FM_GetShiftState done [20:50:03]req_shift_opened done [20:50:03]requested_item shift.open_date is exist - process it [20:50:03]req_shift_open_date [20:50:03]req_shift_open_date done [20:50:03]produce_requested_data done [20:50:03]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95264,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [20:50:03]process_action_free close_receipt [20:50:03]json_value_free [20:50:03]json_value_free done [20:50:03]process_json_proto returns [20:50:03]Send response to host [20:50:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95264,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [20:50:03]free response buf [20:50:03]execute_script done [20:50:03]execute_script returns [20:50:03]free content buf [20:50:03]Sock 8.Close socket [20:50:03]Sock 8.Thread stoped [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:05]recv_with_timeout no data received [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:42]accept exits with 9 [21:01:42]New connection [21:01:42]New thread 3066957156 created [21:01:42]Thread 3066813796 joined [21:01:42]Waiting for new connection... [21:01:42] Sock 9.Parse request [21:01:42]Sock 9.Check first char [21:01:42]Sock 9.First char is OK [21:01:42]request: POST /json_proto HTTP/1.0 [21:01:42]Method: POST [21:01:42]URL: /json_proto [21:01:42]Method is POST - this is cgi request [21:01:42]url: /json_proto [21:01:42]query_string will be loaded in cgi processing [21:01:42]execute_cgi json_proto POST (null) [21:01:42]execute_cgi path=json_proto method=POST [21:01:42]POST find Content-Length [21:01:42]Host: 172.17.62.67:8080 [21:01:42]Content-Length: 678 [21:01:42]Content-Type: application/json [21:01:42] [21:01:42]POST finish read [21:01:42]Found Content-Length = 678 [21:01:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:42]execute_script... [21:01: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)196241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:42]POST & json_proto [21:01:42]process_json_proto [21:01:42]json parsed OK: [21:01:42]protocol is kg_v1.0 [21:01:42]action value=close_receipt [21:01:42]process_action close_receipt [21:01:42]cmd_close_receipt [21:01:42]MH_GetDate [21:01:42]Write to MH i2c: F0 00 00 8E 4F CC [21:01:42]Write i2c OK [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: F0 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: F0 05 00 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: F0 05 00 8E 4F 00 BD C2 F0 65 A5 [21:01:42]GetLastDocTimeStamp 1710276607 [21:01:42]current date 1710277309 [21:01:42]FM_GetShiftState [21:01:42]SAM_PROTO_GetShiftState [21:01:42]wFMCommunicate request_size=4 [21:01:42]MH_SAM_APDU [21:01:42]CAPDU: 80 13 01 00 [21:01:42]Write to MH i2c: E2 08 00 8F 4F 80 13 01 00 00 00 00 00 5B [21:01:42]Write i2c OK [21:01:42]MH_I2C_Read... [21:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:42]Read from MH i2c: E2 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 0E 00 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 0E 00 8F 4F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CF [21:01:42]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:01:42]wFMCommunicate OK [21:01:42]SAM_PROTO_GetShiftState done [21:01:42]FM_GetShiftState done [21:01:42]opened in 1710201976 [21:01:42]opened+sec_in_day 1710288376 [21:01:42]quantity*price = 70007 [21:01:42]sum+1 = 70009 [21:01:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 195 12.03.2024 21:01 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95265 ФПД: 237957957192721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T210149&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95265&fm=237957957192721&tin=02508201610067®Number=0000000000090555&sum=70000 [21:01:43]StoreToDocumentArchive [21:01:43]shift 327 fd 95265 [21:01:43]save to /storage/0327/doc_00095265 [21:01:43]save last doc name /storage/0327/doc_00095265 to /storage/kkm_last_doc_name [21:01:43]save OK [21:01:43]Clear old archive folders... [21:01:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:01:43]tlvbuf is 01A71280 [21:01:43]SAM_PROTO_ClearQueue [21:01:43]wFMCommunicate request_size=4 [21:01:43]MH_SAM_APDU [21:01:43]CAPDU: 80 09 00 00 [21:01:43]Write to MH i2c: E2 08 00 9C 4F 80 09 00 00 00 00 00 00 5D [21:01:43]Write i2c OK [21:01:43]MH_I2C_Read... [21:01:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:43]Read from MH i2c: E2 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: E2 03 00 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: E2 03 00 9C 4F 00 90 00 5F [21:01:43]RAPDU: 90 00 [21:01:43]wFMCommunicate OK [21:01:43]SAM_PROTO_ClearQueue done [21:01:43]KKMCreateOFDPacket [21:01:43]OFDProtocolAddRootSTLVToBuf [21:01:43]FM_MakeSignedData [21:01:43]FM_MakeSignedData [21:01:43]SAM_PROTO_SignData [21:01:43]wFMCommunicate request_size=4 [21:01:43]MH_SAM_APDU [21:01:43]CAPDU: 80 0D 01 02 [21:01:43]Write to MH i2c: E2 08 00 9D 4F 80 0D 01 02 00 00 00 00 65 [21:01:43]Write i2c OK [21:01:43]MH_I2C_Read... [21:01:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:43]Read from MH i2c: E2 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: E2 03 00 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: E2 03 00 9D 4F 00 90 00 60 [21:01:43]RAPDU: 90 00 [21:01:43]wFMCommunicate OK [21:01:43]wFMCommunicate request_size=255 [21:01:43]MH_SAM_APDU [21:01:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 C3 00 00 00 F4 03 04 00 BD C2 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 21 74 01 00 35 04 06 00 D8 [21:01:43]Write to MH i2c: E2 02 01 9E 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 C3 00 00 00 F4 03 04 00 BD C2 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 21 74 01 00 35 04 06 00 D8 00 00 29 [21:01:43]Write i2c OK [21:01:43]MH_I2C_Read... [21:01:43]OFD Sender: No OFD packet to send [21:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:43]Read from MH i2c: E2 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: E2 03 00 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: E2 03 00 9E 4F 00 90 00 61 [21:01:43]RAPDU: 90 00 [21:01:43]wFMCommunicate OK [21:01:43]wFMCommunicate request_size=10 [21:01:43]MH_SAM_APDU [21:01:43]CAPDU: 80 0D 02 02 05 6B E7 82 8C 11 [21:01:43]Write to MH i2c: E2 0D 00 9F 4F 80 0D 02 02 05 00 6B E7 82 8C 11 00 00 E3 [21:01:43]Write i2c OK [21:01:43]MH_I2C_Read... [21:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:43]Read from MH i2c: E2 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: E2 03 00 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: E2 03 00 9F 4F 00 90 00 62 [21:01:43]RAPDU: 90 00 [21:01:43]wFMCommunicate OK [21:01:43]wFMCommunicate request_size=4 [21:01:43]MH_SAM_APDU [21:01:43]CAPDU: 80 0D 03 02 [21:01:43]Write to MH i2c: E2 08 00 A0 4F 80 0D 03 02 00 00 00 00 6A [21:01:44]Write i2c OK [21:01:44]MH_I2C_Read... [21:01:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:44]Read from MH i2c: E2 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 0B 00 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 0B 00 A0 4F 00 C7 41 32 6D 35 F1 F4 79 90 00 A5 [21:01:44]RAPDU: C7 41 32 6D 35 F1 F4 79 90 00 [21:01:44]wFMCommunicate OK [21:01:44]SAM_PROTO_SignData done [21:01:44]FM_MakeSignedData done [21:01:44]CreateOFDProtocolMessage [21:01:44]wFMCommunicate request_size=4 [21:01:44]MH_SAM_APDU [21:01:44]CAPDU: 80 11 00 00 [21:01:44]Write to MH i2c: E2 08 00 A1 4F 80 11 00 00 00 00 00 00 6A [21:01:44]Write i2c OK [21:01:44]MH_I2C_Read... [21:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:44]Read from MH i2c: E2 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 17 00 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 17 00 A1 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BA [21:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:01:44]wFMCommunicate OK [21:01:44]CreateOFDProtocolMessage done [21:01:44]OFDSenderStorePacket 95265 [21:01:44]StoreOFDPacket docnum=95265 [21:01:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CF 95 07 01 32 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 C3 00 00 00 F4 03 04 00 BD C2 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 21 74 01 00 35 04 06 00 D8 6B E7 82 8C 11 C7 41 32 6D 35 F1 F4 79 [21:01:44]CheckFolder [21:01:44]dirname=/storage/ofd_packets [21:01:44]CheckFolder done [21:01:44]ProducePacketName [21:01:44]name=ofd_packets/00095265 [21:01:44]NVStorageSaveData ofd_packets/00095265 [21:01:44]File name is /storage/ofd_packets/00095265 [21:01:44]Write 301 bytes [21:01:44]NVStorageSaveData done [21:01:44]OFDSenderStorePacket done [21:01:44]KKMCreateOFDPacket done [21:01:44]NVStorageSaveData kkm_last_timestamp [21:01:44]File name is /storage/kkm_last_timestamp [21:01:44]Write 4 bytes [21:01:44]NVStorageSaveData done [21:01:44]ExternCall_PrintAddStr [21:01:44]wPrintStart [21:01:44]Write to MH i2c: 01 00 00 A2 4F F1 [21:01:44]Write i2c OK [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: 01 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: 01 07 00 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: 01 07 00 A2 4F 00 80 00 00 00 FF 0F 86 [21:01:44]RasterBufferAndPrint [21:01:44]line Счет N : (1)196241 [21:01:44]line ИНН: 02508201610067 [21:01:44]line Контрольно-Кассовый Чек [21:01:44]line ПРОДАЖА [21:01:44]line ТРК (МРК, ГНК) : 22 [21:01:44]line Товар: 2710124130 [21:01:44]line Аи-92-К-5 [21:01:44]line 11.130 * 62.90 [21:01:44]line = 700.08 [21:01:44]line НДС 12% НСП 1% [21:01:44]line > о реализуемом товаре [21:01:44]line ОКРУГЛЕНИЕ: -0.08 [21:01:44]line ИТОГО: 700.00 [21:01:44]line Внесено: 700.00 [21:01:44]line СДАЧА: 0.00 [21:01:44]line НСП 1% : 6.19 [21:01:44]line НДС 12% : 74.34 [21:01:44]line Наличными: 700.00 [21:01:44]line Безнал.: 0.00 [21:01:44]line Место: АЗС № 6 "Партнер Нефть" [21:01:44]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:01:44]line СНО: Общий режим [21:01:44]line Чек 195 12.03.2024 21:01 [21:01:44]line Смена: 327 ФФД: 1.0 [21:01:44]line ЗНМ: 0300000009 [21:01:44]line РНМ: 0000000000090555 [21:01:44]line Версия ККМ: 001 [21:01:44]line ФМ: 0000000000874811 [21:01:44]line ФД: 95265 [21:01:44]line ФПД: 237957957192721 [21:01:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T210149&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95265&fm=237957957192721&tin=02508201610067®Number=0000000000090555&sum=70000 [21:01:44]written 0, free lines is 4095 [21:01:44]OFD Sender: Processing packet 95265 [packets to send 30, broken 29] [21:01:44]ProducePacketName [21:01:44]name=ofd_packets/00095265 [21:01:44]OFD Sender: To server: pG, [21:01:44]CommunicateWithHost lk.salyk.kg:30040 [21:01:44]ConnectInit lk.salyk.kg [21:01:44]Connected sock=10 [21:01:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CF 95 07 01 32 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 C3 00 00 00 F4 03 04 00 BD C2 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 21 74 01 00 35 04 06 00 D8 6B E7 82 8C 11 C7 41 32 6D 35 F1 F4 79 [21:01:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 90 C3 47 00 C9 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 21 74 01 00 F4 03 04 00 12 6E F0 65 B6 04 01 00 00 AB CD 2C 74 0F D5 C0 AD [21:01:44]CommunicateWithHost err = 0 [21:01:44]CheckOFDResponse [21:01:44]1017 (14) - 77093643461234 [21:01:44]1041 (16) - 0000000000874811 [21:01:44]1040 (4) - 95265 [21:01:44]1012 (4) - 12.03.2024 15:00 [21:01:44]1206 (1) - 0 [21:01:44]OFD Sender: Remove packet 95265 [21:01:44]ProducePacketName [21:01:44]name=ofd_packets/00095265 [21:01:44]NVStorageDeleteData [21:01:44]Write to MH i2c: 01 00 00 CD 4F 1C [21:01:44]Write i2c OK [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: 01 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: 01 07 00 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: 01 07 00 CD 4F 00 80 00 00 00 5D 0D 0D [21:01:44]RasterBufferAndPrint [21:01:44]line [21:01:44]line [21:01:44]line [21:01:44]line [21:01:44]line [21:01:44]written 0, free lines is 3429 [21:01:44]process_action close_receipt done [21:01:44]requested_data is exist [21:01:44]produce_requested_data [21:01:44]requested_item fm.sn is exist - process it [21:01:44]wFMCommunicate request_size=4 [21:01:44]MH_SAM_APDU [21:01:44]CAPDU: 80 11 00 00 [21:01:44]Write to MH i2c: E2 08 00 D4 4F 80 11 00 00 00 00 00 00 9D [21:01:44]Write i2c OK [21:01:44]MH_I2C_Read... [21:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:44]Read from MH i2c: E2 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 17 00 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 17 00 D4 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 ED [21:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:01:44]wFMCommunicate OK [21:01:44]requested_item fd.num is exist - process it [21:01:44]SAM_PROTO_GetFieldsCounters [21:01:44]wFMCommunicate request_size=4 [21:01:44]MH_SAM_APDU [21:01:44]CAPDU: 80 13 00 00 [21:01:44]Write to MH i2c: E2 08 00 D5 4F 80 13 00 00 00 00 00 00 A0 [21:01:44]Write i2c OK [21:01:44]MH_I2C_Read... [21:01:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:44]Read from MH i2c: E2 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 62 00 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 62 00 D5 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 21 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [21:01:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 21 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:44]wFMCommunicate OK [21:01:44]SAM_PROTO_GetFieldsCounters done [21:01:44]requested_item shift.num is exist - process it [21:01:44]requested_item shift.opened is exist - process it [21:01:44]req_shift_opened [21:01:44]FM_GetShiftState [21:01:44]SAM_PROTO_GetShiftState [21:01:44]wFMCommunicate request_size=4 [21:01:44]MH_SAM_APDU [21:01:44]CAPDU: 80 13 01 00 [21:01:44]Write to MH i2c: E2 08 00 D6 4F 80 13 01 00 00 00 00 00 A2 [21:01:44]Write i2c OK [21:01:44]MH_I2C_Read... [21:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:44]Read from MH i2c: E2 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 0E 00 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 0E 00 D6 4F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 16 [21:01:44]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:01:44]wFMCommunicate OK [21:01:44]SAM_PROTO_GetShiftState done [21:01:44]FM_GetShiftState done [21:01:44]req_shift_opened done [21:01:44]requested_item shift.open_date is exist - process it [21:01:44]req_shift_open_date [21:01:44]req_shift_open_date done [21:01:44]produce_requested_data done [21:01:44]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95265,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [21:01:44]process_action_free close_receipt [21:01:44]json_value_free [21:01:44]json_value_free done [21:01:44]process_json_proto returns [21:01:44]Send response to host [21:01:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95265,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [21:01:44]free response buf [21:01:44]execute_script done [21:01:44]execute_script returns [21:01:44]free content buf [21:01:44]Sock 9.Close socket [21:01:44]Sock 9.Thread stoped [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:06:55]accept exits with 8 [21:06:55]New connection [21:06:55]New thread 3066813796 created [21:06:55]Thread 3066957156 joined [21:06:55]Waiting for new connection... [21:06:55] Sock 8.Parse request [21:06:55]Sock 8.Check first char [21:06:55]Sock 8.First char is OK [21:06:55]request: POST /json_proto HTTP/1.0 [21:06:55]Method: POST [21:06:55]URL: /json_proto [21:06:55]Method is POST - this is cgi request [21:06:55]url: /json_proto [21:06:55]query_string will be loaded in cgi processing [21:06:55]execute_cgi json_proto POST (null) [21:06:55]execute_cgi path=json_proto method=POST [21:06:55]POST find Content-Length [21:06:55]Host: 172.17.62.67:8080 [21:06:55]Content-Length: 670 [21:06:55]Content-Type: application/json [21:06:55] [21:06:55]POST finish read [21:06:55]Found Content-Length = 670 [21:06:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 6.260, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:55]execute_script... [21:06: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)196242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 6.260, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:55]POST & json_proto [21:06:55]process_json_proto [21:06:55]json parsed OK: [21:06:55]protocol is kg_v1.0 [21:06:55]action value=close_receipt [21:06:55]process_action close_receipt [21:06:55]cmd_close_receipt [21:06:55]MH_GetDate [21:06:55]Write to MH i2c: F0 00 00 D7 4F 15 [21:06:55]Write i2c OK [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: F0 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: F0 05 00 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: F0 05 00 D7 4F 00 F6 C3 F0 65 28 [21:06:55]GetLastDocTimeStamp 1710277309 [21:06:55]current date 1710277622 [21:06:55]FM_GetShiftState [21:06:55]SAM_PROTO_GetShiftState [21:06:55]wFMCommunicate request_size=4 [21:06:55]MH_SAM_APDU [21:06:55]CAPDU: 80 13 01 00 [21:06:55]Write to MH i2c: E2 08 00 D8 4F 80 13 01 00 00 00 00 00 A4 [21:06:55]Write i2c OK [21:06:55]MH_I2C_Read... [21:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:55]Read from MH i2c: E2 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 0E 00 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 0E 00 D8 4F 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 18 [21:06:55]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:06:55]wFMCommunicate OK [21:06:55]SAM_PROTO_GetShiftState done [21:06:55]FM_GetShiftState done [21:06:55]opened in 1710201976 [21:06:55]opened+sec_in_day 1710288376 [21:06:55]quantity*price = 40001 [21:06:55]sum+1 = 40002 [21:06:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 196 12.03.2024 21:07 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95266 ФПД: 128797032173873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T210702&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95266&fm=128797032173873&tin=02508201610067®Number=0000000000090555&sum=40000 [21:06:56]StoreToDocumentArchive [21:06:56]shift 327 fd 95266 [21:06:56]save to /storage/0327/doc_00095266 [21:06:56]save last doc name /storage/0327/doc_00095266 to /storage/kkm_last_doc_name [21:06:56]save OK [21:06:56]Clear old archive folders... [21:06:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:06:56]tlvbuf is 01A18290 [21:06:56]SAM_PROTO_ClearQueue [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 09 00 00 [21:06:56]Write to MH i2c: E2 08 00 E5 4F 80 09 00 00 00 00 00 00 A6 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 E5 4F 00 90 00 A8 [21:06:56]RAPDU: 90 00 [21:06:56]wFMCommunicate OK [21:06:56]SAM_PROTO_ClearQueue done [21:06:56]KKMCreateOFDPacket [21:06:56]OFDProtocolAddRootSTLVToBuf [21:06:56]FM_MakeSignedData [21:06:56]FM_MakeSignedData [21:06:56]SAM_PROTO_SignData [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 0D 01 02 [21:06:56]Write to MH i2c: E2 08 00 E6 4F 80 0D 01 02 00 00 00 00 AE [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 E6 4F 00 90 00 A9 [21:06:56]RAPDU: 90 00 [21:06:56]wFMCommunicate OK [21:06:56]wFMCommunicate request_size=255 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 F6 C3 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 22 74 01 00 35 04 06 00 [21:06:56]Write to MH i2c: E2 02 01 E7 4F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 F6 C3 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 22 74 01 00 35 04 06 00 00 00 3C [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 E7 4F 00 90 00 AA [21:06:56]RAPDU: 90 00 [21:06:56]wFMCommunicate OK [21:06:56]wFMCommunicate request_size=11 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 0D 02 02 06 75 23 E5 59 D1 31 [21:06:56]Write to MH i2c: E2 0E 00 E8 4F 80 0D 02 02 06 00 75 23 E5 59 D1 31 00 00 95 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 E8 4F 00 90 00 AB [21:06:56]RAPDU: 90 00 [21:06:56]wFMCommunicate OK [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 0D 03 02 [21:06:56]Write to MH i2c: E2 08 00 E9 4F 80 0D 03 02 00 00 00 00 B3 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 0B 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 0B 00 E9 4F 00 37 9D 7D 50 F8 F1 E1 B3 90 00 D2 [21:06:56]RAPDU: 37 9D 7D 50 F8 F1 E1 B3 90 00 [21:06:56]wFMCommunicate OK [21:06:56]SAM_PROTO_SignData done [21:06:56]FM_MakeSignedData done [21:06:56]CreateOFDProtocolMessage [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 11 00 00 [21:06:56]Write to MH i2c: E2 08 00 EA 4F 80 11 00 00 00 00 00 00 B3 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 17 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 17 00 EA 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 03 [21:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:06:56]wFMCommunicate OK [21:06:56]CreateOFDProtocolMessage done [21:06:56]OFDSenderStorePacket 95266 [21:06:56]StoreOFDPacket docnum=95266 [21:06:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 BB 89 08 01 A0 16 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 F6 C3 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 22 74 01 00 35 04 06 00 75 23 E5 59 D1 31 37 9D 7D 50 F8 F1 E1 B3 [21:06:56]CheckFolder [21:06:56]dirname=/storage/ofd_packets [21:06:56]CheckFolder done [21:06:56]ProducePacketName [21:06:56]name=ofd_packets/00095266 [21:06:56]NVStorageSaveData ofd_packets/00095266 [21:06:56]File name is /storage/ofd_packets/00095266 [21:06:56]Write 302 bytes [21:06:56]NVStorageSaveData done [21:06:56]OFDSenderStorePacket done [21:06:56]KKMCreateOFDPacket done [21:06:56]NVStorageSaveData kkm_last_timestamp [21:06:56]File name is /storage/kkm_last_timestamp [21:06:56]Write 4 bytes [21:06:56]NVStorageSaveData done [21:06:56]ExternCall_PrintAddStr [21:06:56]wPrintStart [21:06:56]Write to MH i2c: 01 00 00 EB 4F 3A [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: 01 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: 01 07 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: 01 07 00 EB 4F 00 80 00 00 00 FF 0F CF [21:06:56]RasterBufferAndPrint [21:06:56]line Счет N : (1)196242 [21:06:56]line ИНН: 02508201610067 [21:06:56]line Контрольно-Кассовый Чек [21:06:56]line ПРОДАЖА [21:06:56]line ТРК (МРК, ГНК) : 33 [21:06:56]line Товар: 2710124130 [21:06:56]line SUPER 92-К-5 [21:06:56]line 6.260 * 63.90 [21:06:56]line = 400.01 [21:06:56]line НДС 12% НСП 1% [21:06:56]line > о реализуемом товаре [21:06:56]line ОКРУГЛЕНИЕ: -0.01 [21:06:56]line ИТОГО: 400.00 [21:06:56]line Внесено: 400.00 [21:06:56]line СДАЧА: 0.00 [21:06:56]line НСП 1% : 3.54 [21:06:56]line НДС 12% : 42.48 [21:06:56]line Наличными: 400.00 [21:06:56]line Безнал.: 0.00 [21:06:56]line Место: АЗС № 6 "Партнер Нефть" [21:06:56]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:06:56]line СНО: Общий режим [21:06:56]line Чек 196 12.03.2024 21:07 [21:06:56]line Смена: 327 ФФД: 1.0 [21:06:56]line ЗНМ: 0300000009 [21:06:56]line РНМ: 0000000000090555 [21:06:56]line Версия ККМ: 001 [21:06:56]line ФМ: 0000000000874811 [21:06:56]line ФД: 95266 [21:06:57]line ФПД: 128797032173873 [21:06:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T210702&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95266&fm=128797032173873&tin=02508201610067®Number=0000000000090555&sum=40000 [21:06:57]OFD Sender: Processing packet 95266 [packets to send 30, broken 29] [21:06:57]ProducePacketName [21:06:57]name=ofd_packets/00095266 [21:06:57]OFD Sender: To server: pG, [21:06:57]CommunicateWithHost lk.salyk.kg:30040 [21:06:57]ConnectInit lk.salyk.kg [21:06:57]written 0, free lines is 4095 [21:06:57]Connected sock=10 [21:06:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 BB 89 08 01 A0 16 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 F6 C3 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 22 74 01 00 35 04 06 00 75 23 E5 59 D1 31 37 9D 7D 50 F8 F1 E1 B3 [21:06:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 91 D9 47 00 7D 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 22 74 01 00 F4 03 04 00 4B 6F F0 65 B6 04 01 00 00 93 D3 F4 F0 89 0C AD 92 [21:06:57]CommunicateWithHost err = 0 [21:06:57]CheckOFDResponse [21:06:57]1017 (14) - 77093643461234 [21:06:57]1041 (16) - 0000000000874811 [21:06:57]1040 (4) - 95266 [21:06:57]1012 (4) - 12.03.2024 15:05 [21:06:57]1206 (1) - 0 [21:06:57]OFD Sender: Remove packet 95266 [21:06:57]ProducePacketName [21:06:57]name=ofd_packets/00095266 [21:06:57]NVStorageDeleteData [21:06:57]Write to MH i2c: 01 00 00 16 50 66 [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 07 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 07 00 16 50 00 80 00 00 00 56 0D 50 [21:06:57]RasterBufferAndPrint [21:06:57]line [21:06:57]line [21:06:57]line [21:06:57]line [21:06:57]line [21:06:57]written 0, free lines is 3419 [21:06:57]process_action close_receipt done [21:06:57]requested_data is exist [21:06:57]produce_requested_data [21:06:57]requested_item fm.sn is exist - process it [21:06:57]wFMCommunicate request_size=4 [21:06:57]MH_SAM_APDU [21:06:57]CAPDU: 80 11 00 00 [21:06:57]Write to MH i2c: E2 08 00 1D 50 80 11 00 00 00 00 00 00 E7 [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:57]Read from MH i2c: E2 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 17 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 17 00 1D 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 37 [21:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:06:57]wFMCommunicate OK [21:06:57]requested_item fd.num is exist - process it [21:06:57]SAM_PROTO_GetFieldsCounters [21:06:57]wFMCommunicate request_size=4 [21:06:57]MH_SAM_APDU [21:06:57]CAPDU: 80 13 00 00 [21:06:57]Write to MH i2c: E2 08 00 1E 50 80 13 00 00 00 00 00 00 EA [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:57]Read from MH i2c: E2 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 62 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 62 00 1E 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 22 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [21:06:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 22 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:57]wFMCommunicate OK [21:06:57]SAM_PROTO_GetFieldsCounters done [21:06:57]requested_item shift.num is exist - process it [21:06:57]requested_item shift.opened is exist - process it [21:06:57]req_shift_opened [21:06:57]FM_GetShiftState [21:06:57]SAM_PROTO_GetShiftState [21:06:57]wFMCommunicate request_size=4 [21:06:57]MH_SAM_APDU [21:06:57]CAPDU: 80 13 01 00 [21:06:57]Write to MH i2c: E2 08 00 1F 50 80 13 01 00 00 00 00 00 EC [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:58]Read from MH i2c: E2 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: E2 0E 00 [21:06:58]MH_I2C_Read... [21:06:58]OFD Sender: No OFD packet to send [21:06:58]Read from MH i2c: E2 0E 00 1F 50 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 60 [21:06:58]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:06:58]wFMCommunicate OK [21:06:58]SAM_PROTO_GetShiftState done [21:06:58]FM_GetShiftState done [21:06:58]req_shift_opened done [21:06:58]requested_item shift.open_date is exist - process it [21:06:58]req_shift_open_date [21:06:58]req_shift_open_date done [21:06:58]produce_requested_data done [21:06:58]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95266,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [21:06:58]process_action_free close_receipt [21:06:58]json_value_free [21:06:58]json_value_free done [21:06:58]process_json_proto returns [21:06:58]Send response to host [21:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95266,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [21:06:58]free response buf [21:06:58]execute_script done [21:06:58]execute_script returns [21:06:58]free content buf [21:06:58]Sock 8.Close socket [21:06:58]Sock 8.Thread stoped [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:51]accept exits with 9 [21:07:51]New connection [21:07:51]New thread 3066957156 created [21:07:51]Thread 3066813796 joined [21:07:51]Waiting for new connection... [21:07:51] Sock 9.Parse request [21:07:51]Sock 9.Check first char [21:07:51]Sock 9.First char is OK [21:07:51]request: POST /json_proto HTTP/1.0 [21:07:51]Method: POST [21:07:51]URL: /json_proto [21:07:51]Method is POST - this is cgi request [21:07:51]url: /json_proto [21:07:51]query_string will be loaded in cgi processing [21:07:51]execute_cgi json_proto POST (null) [21:07:51]execute_cgi path=json_proto method=POST [21:07:51]POST find Content-Length [21:07:51]Host: 172.17.62.67:8080 [21:07:51]Content-Length: 809 [21:07:51]Content-Type: application/json [21:07:51] [21:07:51]POST finish read [21:07:51]Found Content-Length = 809 [21:07:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 3.130, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:51]execute_script... [21:07: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)196243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 3.130, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:51]POST & json_proto [21:07:51]process_json_proto [21:07:51]json parsed OK: [21:07:51]protocol is kg_v1.0 [21:07:51]action value=close_receipt [21:07:51]process_action close_receipt [21:07:51]cmd_close_receipt [21:07:51]MH_GetDate [21:07:51]Write to MH i2c: F0 00 00 20 50 5F [21:07:51]Write i2c OK [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: F0 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: F0 05 00 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: F0 05 00 20 50 00 2E C4 F0 65 AB [21:07:51]GetLastDocTimeStamp 1710277622 [21:07:51]current date 1710277678 [21:07:51]FM_GetShiftState [21:07:51]SAM_PROTO_GetShiftState [21:07:51]wFMCommunicate request_size=4 [21:07:51]MH_SAM_APDU [21:07:51]CAPDU: 80 13 01 00 [21:07:51]Write to MH i2c: E2 08 00 21 50 80 13 01 00 00 00 00 00 EE [21:07:51]Write i2c OK [21:07:51]MH_I2C_Read... [21:07:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:51]Read from MH i2c: E2 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: E2 0E 00 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: E2 0E 00 21 50 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 62 [21:07:51]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:07:51]wFMCommunicate OK [21:07:51]SAM_PROTO_GetShiftState done [21:07:51]FM_GetShiftState done [21:07:51]opened in 1710201976 [21:07:51]opened+sec_in_day 1710288376 [21:07:51]quantity*price = 20000 [21:07:51]sum+1 = 20002 [21:07:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.01 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.01 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 197 12.03.2024 21:07 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95267 ФПД: 277762217703383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T210758&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95267&fm=277762217703383&tin=02508201610067®Number=0000000000090555&sum=20001 [21:07:52]StoreToDocumentArchive [21:07:52]shift 327 fd 95267 [21:07:52]save to /storage/0327/doc_00095267 [21:07:52]save last doc name /storage/0327/doc_00095267 to /storage/kkm_last_doc_name [21:07:52]save OK [21:07:52]Clear old archive folders... [21:07:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:07:52]tlvbuf is 01A03200 [21:07:52]SAM_PROTO_ClearQueue [21:07:52]wFMCommunicate request_size=4 [21:07:52]MH_SAM_APDU [21:07:52]CAPDU: 80 09 00 00 [21:07:52]Write to MH i2c: E2 08 00 2E 50 80 09 00 00 00 00 00 00 F0 [21:07:52]Write i2c OK [21:07:52]MH_I2C_Read... [21:07:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:52]Read from MH i2c: E2 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: E2 03 00 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: E2 03 00 2E 50 00 90 00 F2 [21:07:52]RAPDU: 90 00 [21:07:52]wFMCommunicate OK [21:07:52]SAM_PROTO_ClearQueue done [21:07:52]KKMCreateOFDPacket [21:07:52]OFDProtocolAddRootSTLVToBuf [21:07:52]FM_MakeSignedData [21:07:52]FM_MakeSignedData [21:07:52]SAM_PROTO_SignData [21:07:52]wFMCommunicate request_size=4 [21:07:52]MH_SAM_APDU [21:07:52]CAPDU: 80 0D 01 02 [21:07:52]Write to MH i2c: E2 08 00 2F 50 80 0D 01 02 00 00 00 00 F8 [21:07:52]Write i2c OK [21:07:52]MH_I2C_Read... [21:07:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:52]Read from MH i2c: E2 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: E2 03 00 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: E2 03 00 2F 50 00 90 00 F3 [21:07:52]RAPDU: 90 00 [21:07:52]wFMCommunicate OK [21:07:52]wFMCommunicate request_size=255 [21:07:52]MH_SAM_APDU [21:07:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 2E C4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 23 74 01 00 35 04 06 00 [21:07:52]Write to MH i2c: E2 02 01 30 50 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 2E C4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 23 74 01 00 35 04 06 00 00 00 2D [21:07:52]Write i2c OK [21:07:52]MH_I2C_Read... [21:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:52]Read from MH i2c: E2 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: E2 03 00 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: E2 03 00 30 50 00 90 00 F4 [21:07:52]RAPDU: 90 00 [21:07:52]wFMCommunicate OK [21:07:52]wFMCommunicate request_size=11 [21:07:52]MH_SAM_APDU [21:07:52]CAPDU: 80 0D 02 02 06 FC 9F 8E 51 77 D7 [21:07:52]Write to MH i2c: E2 0E 00 31 50 80 0D 02 02 06 00 FC 9F 8E 51 77 D7 00 00 CF [21:07:52]Write i2c OK [21:07:52]MH_I2C_Read... [21:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:52]Read from MH i2c: E2 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: E2 03 00 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: E2 03 00 31 50 00 90 00 F5 [21:07:52]RAPDU: 90 00 [21:07:52]wFMCommunicate OK [21:07:52]wFMCommunicate request_size=4 [21:07:52]MH_SAM_APDU [21:07:52]CAPDU: 80 0D 03 02 [21:07:52]Write to MH i2c: E2 08 00 32 50 80 0D 03 02 00 00 00 00 FD [21:07:52]Write i2c OK [21:07:52]MH_I2C_Read... [21:07:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:52]Read from MH i2c: E2 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: E2 0B 00 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: E2 0B 00 32 50 00 B4 30 83 E8 09 41 1D 08 90 00 BC [21:07:52]RAPDU: B4 30 83 E8 09 41 1D 08 90 00 [21:07:52]wFMCommunicate OK [21:07:52]SAM_PROTO_SignData done [21:07:52]FM_MakeSignedData done [21:07:52]CreateOFDProtocolMessage [21:07:52]wFMCommunicate request_size=4 [21:07:52]MH_SAM_APDU [21:07:52]CAPDU: 80 11 00 00 [21:07:52]Write to MH i2c: E2 08 00 33 50 80 11 00 00 00 00 00 00 FD [21:07:52]Write i2c OK [21:07:52]MH_I2C_Read... [21:07:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:52]Read from MH i2c: E2 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: E2 17 00 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: E2 17 00 33 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4D [21:07:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:07:52]wFMCommunicate OK [21:07:52]CreateOFDProtocolMessage done [21:07:52]OFDSenderStorePacket 95267 [21:07:52]StoreOFDPacket docnum=95267 [21:07:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 4E 01 08 01 5B 6D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 2E C4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 23 74 01 00 35 04 06 00 FC 9F 8E 51 77 D7 B4 30 83 E8 09 41 1D 08 [21:07:52]CheckFolder [21:07:52]dirname=/storage/ofd_packets [21:07:52]CheckFolder done [21:07:52]ProducePacketName [21:07:52]name=ofd_packets/00095267 [21:07:52]NVStorageSaveData ofd_packets/00095267 [21:07:52]File name is /storage/ofd_packets/00095267 [21:07:52]Write 302 bytes [21:07:52]NVStorageSaveData done [21:07:52]OFDSenderStorePacket done [21:07:52]KKMCreateOFDPacket done [21:07:52]NVStorageSaveData kkm_last_timestamp [21:07:52]File name is /storage/kkm_last_timestamp [21:07:52]Write 4 bytes [21:07:52]NVStorageSaveData done [21:07:52]ExternCall_PrintAddStr [21:07:52]wPrintStart [21:07:52]Write to MH i2c: 01 00 00 34 50 84 [21:07:52]Write i2c OK [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: 01 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: 01 07 00 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: 01 07 00 34 50 00 80 00 00 00 FF 0F 19 [21:07:52]RasterBufferAndPrint [21:07:52]line Счет N : (1)196243 [21:07:52]line ИНН: 02508201610067 [21:07:52]line Контрольно-Кассовый Чек [21:07:52]line ПРОДАЖА [21:07:52]line ТРК (МРК, ГНК) : 33 [21:07:52]line Товар: 2710124130 [21:07:52]line SUPER 92-К-5 [21:07:52]line 3.130 * 63.90 [21:07:52]line = 200.01 [21:07:52]line НДС 12% НСП 1% [21:07:52]line > о реализуемом товаре [21:07:52]line ИТОГО: 200.01 [21:07:52]line НСП 1% : 1.77 [21:07:52]line НДС 12% : 21.24 [21:07:52]line Наличными: 0.00 [21:07:52]line Безнал.: 200.01 [21:07:52]line Место: АЗС № 6 "Партнер Нефть" [21:07:52]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:07:52]line СНО: Общий режим [21:07:52]line Чек 197 12.03.2024 21:07 [21:07:52]line Смена: 327 ФФД: 1.0 [21:07:52]line ЗНМ: 0300000009 [21:07:52]line РНМ: 0000000000090555 [21:07:52]line Версия ККМ: 001 [21:07:52]line Платежная система: Бакай Банк [21:07:52]line ФМ: 0000000000874811 [21:07:52]line ФД: 95267 [21:07:52]line ФПД: 277762217703383 [21:07:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T210758&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95267&fm=277762217703383&tin=02508201610067®Number=0000000000090555&sum=20001 [21:07:53]OFD Sender: Processing packet 95267 [packets to send 30, broken 29] [21:07:53]ProducePacketName [21:07:53]name=ofd_packets/00095267 [21:07:53]OFD Sender: To server: pG, [21:07:53]CommunicateWithHost lk.salyk.kg:30040 [21:07:53]ConnectInit lk.salyk.kg [21:07:53]written 0, free lines is 4095 [21:07:53]Connected sock=10 [21:07:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 4E 01 08 01 5B 6D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 2E C4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 23 74 01 00 35 04 06 00 FC 9F 8E 51 77 D7 B4 30 83 E8 09 41 1D 08 [21:07:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 DC 25 47 00 39 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 23 74 01 00 F4 03 04 00 83 6F F0 65 B6 04 01 00 00 EB 08 11 EF 35 DA A9 2B [21:07:53]CommunicateWithHost err = 0 [21:07:53]CheckOFDResponse [21:07:53]1017 (14) - 77093643461234 [21:07:53]1041 (16) - 0000000000874811 [21:07:53]1040 (4) - 95267 [21:07:53]1012 (4) - 12.03.2024 15:06 [21:07:53]1206 (1) - 0 [21:07:53]OFD Sender: Remove packet 95267 [21:07:53]ProducePacketName [21:07:53]name=ofd_packets/00095267 [21:07:53]NVStorageDeleteData [21:07:53]Write to MH i2c: 01 00 00 5E 50 AE [21:07:53]Write i2c OK [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: 01 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: 01 07 00 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: 01 07 00 5E 50 00 80 00 00 00 6B 0D AD [21:07:53]RasterBufferAndPrint [21:07:53]line [21:07:53]line [21:07:53]line [21:07:53]line [21:07:53]line [21:07:53]written 0, free lines is 3441 [21:07:53]process_action close_receipt done [21:07:53]requested_data is exist [21:07:53]produce_requested_data [21:07:53]requested_item fm.sn is exist - process it [21:07:53]wFMCommunicate request_size=4 [21:07:53]MH_SAM_APDU [21:07:53]CAPDU: 80 11 00 00 [21:07:53]Write to MH i2c: E2 08 00 65 50 80 11 00 00 00 00 00 00 2F [21:07:53]Write i2c OK [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 [21:07:53]MH_I2C_Read... [21:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:53]Read from MH i2c: E2 17 00 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 17 00 65 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7F [21:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:07:53]wFMCommunicate OK [21:07:53]requested_item fd.num is exist - process it [21:07:53]SAM_PROTO_GetFieldsCounters [21:07:53]wFMCommunicate request_size=4 [21:07:53]MH_SAM_APDU [21:07:53]CAPDU: 80 13 00 00 [21:07:53]Write to MH i2c: E2 08 00 66 50 80 13 00 00 00 00 00 00 32 [21:07:53]Write i2c OK [21:07:53]MH_I2C_Read... [21:07:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:53]Read from MH i2c: E2 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 62 00 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 62 00 66 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 23 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [21:07:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 23 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:53]wFMCommunicate OK [21:07:53]SAM_PROTO_GetFieldsCounters done [21:07:53]requested_item shift.num is exist - process it [21:07:53]requested_item shift.opened is exist - process it [21:07:53]req_shift_opened [21:07:53]FM_GetShiftState [21:07:53]SAM_PROTO_GetShiftState [21:07:53]wFMCommunicate request_size=4 [21:07:53]MH_SAM_APDU [21:07:53]CAPDU: 80 13 01 00 [21:07:53]Write to MH i2c: E2 08 00 67 50 80 13 01 00 00 00 00 00 34 [21:07:53]Write i2c OK [21:07:53]MH_I2C_Read... [21:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:53]Read from MH i2c: E2 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 0E 00 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 0E 00 67 50 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A8 [21:07:53]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:07:53]wFMCommunicate OK [21:07:53]SAM_PROTO_GetShiftState done [21:07:53]FM_GetShiftState done [21:07:53]req_shift_opened done [21:07:53]requested_item shift.open_date is exist - process it [21:07:53]req_shift_open_date [21:07:53]req_shift_open_date done [21:07:53]produce_requested_data done [21:07:53]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95267,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [21:07:53]process_action_free close_receipt [21:07:53]json_value_free [21:07:53]json_value_free done [21:07:53]process_json_proto returns [21:07:53]Send response to host [21:07:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95267,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [21:07:53]free response buf [21:07:53]execute_script done [21:07:53]execute_script returns [21:07:53]free content buf [21:07:53]Sock 9.Close socket [21:07:53]Sock 9.Thread stoped [21:07:53]OFD Sender: No OFD packet to send [21:07:54]accept exits with 8 [21:07:54]New connection [21:07:54]New thread 3066813796 created [21:07:54]Thread 3066957156 joined [21:07:54]Waiting for new connection... [21:07:54] Sock 8.Parse request [21:07:54]Sock 8.Check first char [21:07:54]Sock 8.First char is OK [21:07:54]request: POST /json_proto HTTP/1.0 [21:07:54]Method: POST [21:07:54]URL: /json_proto [21:07:54]Method is POST - this is cgi request [21:07:54]url: /json_proto [21:07:54]query_string will be loaded in cgi processing [21:07:54]execute_cgi json_proto POST (null) [21:07:54]execute_cgi path=json_proto method=POST [21:07:54]POST find Content-Length [21:07:54]Host: 172.17.62.67:8080 [21:07:54]Content-Length: 677 [21:07:54]Content-Type: application/json [21:07:54] [21:07:54]POST finish read [21:07:54]Found Content-Length = 677 [21:07:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "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" ] } } [21:07:54]execute_script... [21:07:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "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" ] } } [21:07:54]POST & json_proto [21:07:54]process_json_proto [21:07:54]json parsed OK: [21:07:54]protocol is kg_v1.0 [21:07:54]action value=close_receipt [21:07:54]process_action close_receipt [21:07:54]cmd_close_receipt [21:07:54]MH_GetDate [21:07:54]Write to MH i2c: F0 00 00 68 50 A7 [21:07:54]Write i2c OK [21:07:54]MH_I2C_Read... [21:07:54]Read from MH i2c: F0 [21:07:54]MH_I2C_Read... [21:07:54]Read from MH i2c: F0 05 00 [21:07:54]MH_I2C_Read... [21:07:54]Read from MH i2c: F0 05 00 68 50 00 31 C4 F0 65 F6 [21:07:54]GetLastDocTimeStamp 1710277678 [21:07:54]current date 1710277681 [21:07:54]FM_GetShiftState [21:07:54]SAM_PROTO_GetShiftState [21:07:54]wFMCommunicate request_size=4 [21:07:54]MH_SAM_APDU [21:07:54]CAPDU: 80 13 01 00 [21:07:54]Write to MH i2c: E2 08 00 69 50 80 13 01 00 00 00 00 00 36 [21:07:54]Write i2c OK [21:07:54]MH_I2C_Read... [21:07:54]Read from MH i2c: E2 [21:07:54]MH_I2C_Read... [21:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:54]Read from MH i2c: E2 0E 00 [21:07:54]MH_I2C_Read... [21:07:54]Read from MH i2c: E2 0E 00 69 50 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 AA [21:07:54]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:07:54]wFMCommunicate OK [21:07:54]SAM_PROTO_GetShiftState done [21:07:54]FM_GetShiftState done [21:07:54]opened in 1710201976 [21:07:54]opened+sec_in_day 1710288376 [21:07:54]quantity*price = 40004 [21:07:54]sum+1 = 40005 [21:07:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 198 12.03.2024 21:08 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95268 ФПД: 71333904579514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T210801&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95268&fm=71333904579514&tin=02508201610067®Number=0000000000090555&sum=40000 [21:07:55]StoreToDocumentArchive [21:07:55]shift 327 fd 95268 [21:07:55]save to /storage/0327/doc_00095268 [21:07:55]save last doc name /storage/0327/doc_00095268 to /storage/kkm_last_doc_name [21:07:55]save OK [21:07:55]Clear old archive folders... [21:07:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:07:55]tlvbuf is 01A7E2E0 [21:07:55]SAM_PROTO_ClearQueue [21:07:55]wFMCommunicate request_size=4 [21:07:55]MH_SAM_APDU [21:07:55]CAPDU: 80 09 00 00 [21:07:55]Write to MH i2c: E2 08 00 76 50 80 09 00 00 00 00 00 00 38 [21:07:55]Write i2c OK [21:07:55]MH_I2C_Read... [21:07:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:55]Read from MH i2c: E2 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: E2 03 00 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: E2 03 00 76 50 00 90 00 3A [21:07:55]RAPDU: 90 00 [21:07:55]wFMCommunicate OK [21:07:55]SAM_PROTO_ClearQueue done [21:07:55]KKMCreateOFDPacket [21:07:55]OFDProtocolAddRootSTLVToBuf [21:07:55]FM_MakeSignedData [21:07:55]FM_MakeSignedData [21:07:55]SAM_PROTO_SignData [21:07:55]wFMCommunicate request_size=4 [21:07:55]MH_SAM_APDU [21:07:55]CAPDU: 80 0D 01 02 [21:07:55]Write to MH i2c: E2 08 00 77 50 80 0D 01 02 00 00 00 00 40 [21:07:55]Write i2c OK [21:07:55]MH_I2C_Read... [21:07:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:55]Read from MH i2c: E2 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: E2 03 00 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: E2 03 00 77 50 00 90 00 3B [21:07:55]RAPDU: 90 00 [21:07:55]wFMCommunicate OK [21:07:55]wFMCommunicate request_size=255 [21:07:55]MH_SAM_APDU [21:07:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 31 C4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 24 74 01 00 35 04 06 00 40 [21:07:55]Write to MH i2c: E2 02 01 78 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 31 C4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 24 74 01 00 35 04 06 00 40 00 00 B4 [21:07:55]Write i2c OK [21:07:55]MH_I2C_Read... [21:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:56]Read from MH i2c: E2 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 03 00 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 03 00 78 50 00 90 00 3C [21:07:56]RAPDU: 90 00 [21:07:56]wFMCommunicate OK [21:07:56]wFMCommunicate request_size=10 [21:07:56]MH_SAM_APDU [21:07:56]CAPDU: 80 0D 02 02 05 E0 B8 0A FB BA [21:07:56]Write to MH i2c: E2 0D 00 79 50 80 0D 02 02 05 00 E0 B8 0A FB BA 00 00 A4 [21:07:56]Write i2c OK [21:07:56]MH_I2C_Read... [21:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:56]Read from MH i2c: E2 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 03 00 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 03 00 79 50 00 90 00 3D [21:07:56]RAPDU: 90 00 [21:07:56]wFMCommunicate OK [21:07:56]wFMCommunicate request_size=4 [21:07:56]MH_SAM_APDU [21:07:56]CAPDU: 80 0D 03 02 [21:07:56]Write to MH i2c: E2 08 00 7A 50 80 0D 03 02 00 00 00 00 45 [21:07:56]Write i2c OK [21:07:56]MH_I2C_Read... [21:07:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:56]Read from MH i2c: E2 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 0B 00 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 0B 00 7A 50 00 5C 38 53 23 6B D6 74 46 90 00 4B [21:07:56]RAPDU: 5C 38 53 23 6B D6 74 46 90 00 [21:07:56]wFMCommunicate OK [21:07:56]SAM_PROTO_SignData done [21:07:56]FM_MakeSignedData done [21:07:56]CreateOFDProtocolMessage [21:07:56]wFMCommunicate request_size=4 [21:07:56]MH_SAM_APDU [21:07:56]CAPDU: 80 11 00 00 [21:07:56]Write to MH i2c: E2 08 00 7B 50 80 11 00 00 00 00 00 00 45 [21:07:56]Write i2c OK [21:07:56]MH_I2C_Read... [21:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:56]Read from MH i2c: E2 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 17 00 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 17 00 7B 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 95 [21:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:07:56]wFMCommunicate OK [21:07:56]CreateOFDProtocolMessage done [21:07:56]OFDSenderStorePacket 95268 [21:07:56]StoreOFDPacket docnum=95268 [21:07:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C2 CE 07 01 24 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 31 C4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 24 74 01 00 35 04 06 00 40 E0 B8 0A FB BA 5C 38 53 23 6B D6 74 46 [21:07:56]CheckFolder [21:07:56]dirname=/storage/ofd_packets [21:07:56]CheckFolder done [21:07:56]ProducePacketName [21:07:56]name=ofd_packets/00095268 [21:07:56]NVStorageSaveData ofd_packets/00095268 [21:07:56]File name is /storage/ofd_packets/00095268 [21:07:56]Write 301 bytes [21:07:56]NVStorageSaveData done [21:07:56]OFDSenderStorePacket done [21:07:56]KKMCreateOFDPacket done [21:07:56]NVStorageSaveData kkm_last_timestamp [21:07:56]File name is /storage/kkm_last_timestamp [21:07:56]Write 4 bytes [21:07:56]NVStorageSaveData done [21:07:56]ExternCall_PrintAddStr [21:07:56]wPrintStart [21:07:56]Write to MH i2c: 01 00 00 7C 50 CC [21:07:56]Write i2c OK [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: 01 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: 01 07 00 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: 01 07 00 7C 50 00 80 00 00 00 FF 0F 61 [21:07:56]RasterBufferAndPrint [21:07:56]line Счет N : (1)196244 [21:07:56]line ИНН: 02508201610067 [21:07:56]line Контрольно-Кассовый Чек [21:07:56]line ПРОДАЖА [21:07:56]line ТРК (МРК, ГНК) : 12 [21:07:56]line Товар: 2710124130 [21:07:56]line Аи-92-К-5 [21:07:56]line 6.360 * 62.90 [21:07:56]line = 400.04 [21:07:56]line НДС 12% НСП 1% [21:07:56]line > о реализуемом товаре [21:07:56]line ОКРУГЛЕНИЕ: -0.04 [21:07:56]line ИТОГО: 400.00 [21:07:56]line Внесено: 400.00 [21:07:56]line СДАЧА: 0.00 [21:07:56]line НСП 1% : 3.54 [21:07:56]line НДС 12% : 42.48 [21:07:56]line Наличными: 400.00 [21:07:56]line Безнал.: 0.00 [21:07:56]line Место: АЗС № 6 "Партнер Нефть" [21:07:56]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:07:56]line СНО: Общий режим [21:07:56]line Чек 198 12.03.2024 21:08 [21:07:56]line Смена: 327 ФФД: 1.0 [21:07:56]line ЗНМ: 0300000009 [21:07:56]line РНМ: 0000000000090555 [21:07:56]line Версия ККМ: 001 [21:07:56]line ФМ: 0000000000874811 [21:07:56]line ФД: 95268 [21:07:56]line ФПД: 71333904579514 [21:07:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T210801&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95268&fm=71333904579514&tin=02508201610067®Number=0000000000090555&sum=40000 [21:07:56]written 0, free lines is 4095 [21:07:56]OFD Sender: Processing packet 95268 [packets to send 30, broken 29] [21:07:56]ProducePacketName [21:07:56]name=ofd_packets/00095268 [21:07:56]OFD Sender: To server: pG, [21:07:56]CommunicateWithHost lk.salyk.kg:30040 [21:07:56]ConnectInit lk.salyk.kg [21:07:56]Connected sock=10 [21:07:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C2 CE 07 01 24 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 31 C4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 24 74 01 00 35 04 06 00 40 E0 B8 0A FB BA 5C 38 53 23 6B D6 74 46 [21:07:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 CD CB 47 00 8C 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 24 74 01 00 F4 03 04 00 86 6F F0 65 B6 04 01 00 00 EC DB 0B 56 48 2B 74 01 [21:07:57]CommunicateWithHost err = 0 [21:07:57]CheckOFDResponse [21:07:57]1017 (14) - 77093643461234 [21:07:57]1041 (16) - 0000000000874811 [21:07:57]1040 (4) - 95268 [21:07:57]1012 (4) - 12.03.2024 15:06 [21:07:57]1206 (1) - 0 [21:07:57]OFD Sender: Remove packet 95268 [21:07:57]ProducePacketName [21:07:57]name=ofd_packets/00095268 [21:07:57]NVStorageDeleteData [21:07:57]Write to MH i2c: 01 00 00 A7 50 F7 [21:07:57]Write i2c OK [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: 01 [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: 01 07 00 [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: 01 07 00 A7 50 00 80 00 00 00 6B 0D F6 [21:07:57]RasterBufferAndPrint [21:07:57]line [21:07:57]line [21:07:57]line [21:07:57]line [21:07:57]line [21:07:57]written 0, free lines is 3450 [21:07:57]process_action close_receipt done [21:07:57]requested_data is exist [21:07:57]produce_requested_data [21:07:57]requested_item fm.sn is exist - process it [21:07:57]wFMCommunicate request_size=4 [21:07:57]MH_SAM_APDU [21:07:57]CAPDU: 80 11 00 00 [21:07:57]Write to MH i2c: E2 08 00 AE 50 80 11 00 00 00 00 00 00 78 [21:07:57]Write i2c OK [21:07:57]MH_I2C_Read... [21:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:57]Read from MH i2c: E2 [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: E2 17 00 [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: E2 17 00 AE 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C8 [21:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:07:57]wFMCommunicate OK [21:07:57]requested_item fd.num is exist - process it [21:07:57]SAM_PROTO_GetFieldsCounters [21:07:57]wFMCommunicate request_size=4 [21:07:57]MH_SAM_APDU [21:07:57]CAPDU: 80 13 00 00 [21:07:57]Write to MH i2c: E2 08 00 AF 50 80 13 00 00 00 00 00 00 7B [21:07:57]Write i2c OK [21:07:57]MH_I2C_Read... [21:07:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:57]Read from MH i2c: E2 [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: E2 62 00 [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: E2 62 00 AF 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 24 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [21:07:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 24 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:57]wFMCommunicate OK [21:07:57]SAM_PROTO_GetFieldsCounters done [21:07:57]requested_item shift.num is exist - process it [21:07:57]requested_item shift.opened is exist - process it [21:07:57]req_shift_opened [21:07:57]FM_GetShiftState [21:07:57]SAM_PROTO_GetShiftState [21:07:57]wFMCommunicate request_size=4 [21:07:57]MH_SAM_APDU [21:07:57]CAPDU: 80 13 01 00 [21:07:57]Write to MH i2c: E2 08 00 B0 50 80 13 01 00 00 00 00 00 7D [21:07:57]Write i2c OK [21:07:57]MH_I2C_Read... [21:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:57]Read from MH i2c: E2 [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: E2 0E 00 [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: E2 0E 00 B0 50 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F1 [21:07:57]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:07:57]wFMCommunicate OK [21:07:57]SAM_PROTO_GetShiftState done [21:07:57]FM_GetShiftState done [21:07:57]req_shift_opened done [21:07:57]requested_item shift.open_date is exist - process it [21:07:57]req_shift_open_date [21:07:57]req_shift_open_date done [21:07:57]produce_requested_data done [21:07:57]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95268,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [21:07:57]process_action_free close_receipt [21:07:57]json_value_free [21:07:57]json_value_free done [21:07:57]process_json_proto returns [21:07:57]Send response to host [21:07:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95268,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [21:07:57]free response buf [21:07:57]execute_script done [21:07:57]execute_script returns [21:07:57]free content buf [21:07:57]Sock 8.Close socket [21:07:57]Sock 8.Thread stoped [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:04]accept exits with 9 [21:10:04]New connection [21:10:04]New thread 3066957156 created [21:10:04]Thread 3066813796 joined [21:10:04]Waiting for new connection... [21:10:04] Sock 9.Parse request [21:10:04]Sock 9.Check first char [21:10:04]Sock 9.First char is OK [21:10:04]request: POST /json_proto HTTP/1.0 [21:10:04]Method: POST [21:10:04]URL: /json_proto [21:10:04]Method is POST - this is cgi request [21:10:04]url: /json_proto [21:10:04]query_string will be loaded in cgi processing [21:10:04]execute_cgi json_proto POST (null) [21:10:04]execute_cgi path=json_proto method=POST [21:10:04]POST find Content-Length [21:10:04]Host: 172.17.62.67:8080 [21:10:04]Content-Length: 674 [21:10:04]Content-Type: application/json [21:10:04] [21:10:04]POST finish read [21:10:04]Found Content-Length = 674 [21:10:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 2.830, "sum" : 200.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:04]execute_script... [21:10: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)196245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 2.830, "sum" : 200.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:04]POST & json_proto [21:10:04]process_json_proto [21:10:04]json parsed OK: [21:10:04]protocol is kg_v1.0 [21:10:04]action value=close_receipt [21:10:04]process_action close_receipt [21:10:04]cmd_close_receipt [21:10:04]MH_GetDate [21:10:04]Write to MH i2c: F0 00 00 B1 50 F0 [21:10:04]Write i2c OK [21:10:04]MH_I2C_Read... [21:10:04]Read from MH i2c: F0 [21:10:04]MH_I2C_Read... [21:10:04]Read from MH i2c: F0 05 00 [21:10:04]MH_I2C_Read... [21:10:04]Read from MH i2c: F0 05 00 B1 50 00 B3 C4 F0 65 C1 [21:10:04]GetLastDocTimeStamp 1710277681 [21:10:04]current date 1710277811 [21:10:04]FM_GetShiftState [21:10:04]SAM_PROTO_GetShiftState [21:10:04]wFMCommunicate request_size=4 [21:10:04]MH_SAM_APDU [21:10:04]CAPDU: 80 13 01 00 [21:10:04]Write to MH i2c: E2 08 00 B2 50 80 13 01 00 00 00 00 00 7F [21:10:04]Write i2c OK [21:10:04]MH_I2C_Read... [21:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:04]Read from MH i2c: E2 [21:10:04]MH_I2C_Read... [21:10:04]Read from MH i2c: E2 0E 00 [21:10:04]MH_I2C_Read... [21:10:04]Read from MH i2c: E2 0E 00 B2 50 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F3 [21:10:04]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:10:04]wFMCommunicate OK [21:10:04]SAM_PROTO_GetShiftState done [21:10:04]FM_GetShiftState done [21:10:04]opened in 1710201976 [21:10:04]opened+sec_in_day 1710288376 [21:10:04]quantity*price = 20064 [21:10:04]sum+1 = 20066 [21:10:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.78 НДС 12% : 21.31 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 199 12.03.2024 21:10 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95269 ФПД: 127349885081896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T211011&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95269&fm=127349885081896&tin=02508201610067®Number=0000000000090555&sum=20000 [21:10:05]StoreToDocumentArchive [21:10:05]shift 327 fd 95269 [21:10:05]save to /storage/0327/doc_00095269 [21:10:05]save last doc name /storage/0327/doc_00095269 to /storage/kkm_last_doc_name [21:10:05]save OK [21:10:05]Clear old archive folders... [21:10:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:10:05]tlvbuf is 01A03840 [21:10:05]SAM_PROTO_ClearQueue [21:10:05]wFMCommunicate request_size=4 [21:10:05]MH_SAM_APDU [21:10:05]CAPDU: 80 09 00 00 [21:10:05]Write to MH i2c: E2 08 00 BF 50 80 09 00 00 00 00 00 00 81 [21:10:05]Write i2c OK [21:10:05]MH_I2C_Read... [21:10:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:05]Read from MH i2c: E2 [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: E2 03 00 [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: E2 03 00 BF 50 00 90 00 83 [21:10:05]RAPDU: 90 00 [21:10:05]wFMCommunicate OK [21:10:05]SAM_PROTO_ClearQueue done [21:10:05]KKMCreateOFDPacket [21:10:05]OFDProtocolAddRootSTLVToBuf [21:10:05]FM_MakeSignedData [21:10:05]FM_MakeSignedData [21:10:05]SAM_PROTO_SignData [21:10:05]wFMCommunicate request_size=4 [21:10:05]MH_SAM_APDU [21:10:05]CAPDU: 80 0D 01 02 [21:10:05]Write to MH i2c: E2 08 00 C0 50 80 0D 01 02 00 00 00 00 89 [21:10:05]Write i2c OK [21:10:05]MH_I2C_Read... [21:10:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:05]Read from MH i2c: E2 [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: E2 03 00 [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: E2 03 00 C0 50 00 90 00 84 [21:10:05]RAPDU: 90 00 [21:10:05]wFMCommunicate OK [21:10:05]wFMCommunicate request_size=255 [21:10:05]MH_SAM_APDU [21:10:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 0B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 61 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 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 C7 00 00 00 F4 03 04 00 B3 C4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 25 74 01 00 35 04 06 00 73 D2 F4 A9 [21:10:05]Write to MH i2c: E2 02 01 C1 50 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 0B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 61 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 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 C7 00 00 00 F4 03 04 00 B3 C4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 25 74 01 00 35 04 06 00 73 D2 F4 A9 00 00 B7 [21:10:05]Write i2c OK [21:10:05]MH_I2C_Read... [21:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:05]Read from MH i2c: E2 [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: E2 03 00 [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: E2 03 00 C1 50 00 90 00 85 [21:10:05]RAPDU: 90 00 [21:10:05]wFMCommunicate OK [21:10:05]wFMCommunicate request_size=7 [21:10:05]MH_SAM_APDU [21:10:05]CAPDU: 80 0D 02 02 02 99 28 [21:10:05]Write to MH i2c: E2 0A 00 C2 50 80 0D 02 02 02 00 99 28 00 00 51 [21:10:05]Write i2c OK [21:10:05]MH_I2C_Read... [21:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:05]Read from MH i2c: E2 [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: E2 03 00 [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: E2 03 00 C2 50 00 90 00 86 [21:10:05]RAPDU: 90 00 [21:10:05]wFMCommunicate OK [21:10:05]wFMCommunicate request_size=4 [21:10:05]MH_SAM_APDU [21:10:05]CAPDU: 80 0D 03 02 [21:10:05]Write to MH i2c: E2 08 00 C3 50 80 0D 03 02 00 00 00 00 8E [21:10:05]Write i2c OK [21:10:05]MH_I2C_Read... [21:10:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:05]Read from MH i2c: E2 [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: E2 0B 00 [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: E2 0B 00 C3 50 00 08 97 E3 A7 A3 66 2B 08 90 00 F4 [21:10:05]RAPDU: 08 97 E3 A7 A3 66 2B 08 90 00 [21:10:05]wFMCommunicate OK [21:10:05]SAM_PROTO_SignData done [21:10:05]FM_MakeSignedData done [21:10:05]CreateOFDProtocolMessage [21:10:05]wFMCommunicate request_size=4 [21:10:05]MH_SAM_APDU [21:10:05]CAPDU: 80 11 00 00 [21:10:05]Write to MH i2c: E2 08 00 C4 50 80 11 00 00 00 00 00 00 8E [21:10:05]Write i2c OK [21:10:05]MH_I2C_Read... [21:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:05]Read from MH i2c: E2 [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: E2 17 00 [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: E2 17 00 C4 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DE [21:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:10:05]wFMCommunicate OK [21:10:05]CreateOFDProtocolMessage done [21:10:05]OFDSenderStorePacket 95269 [21:10:05]StoreOFDPacket docnum=95269 [21:10:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 0F 99 04 01 64 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 0B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 61 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 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 C7 00 00 00 F4 03 04 00 B3 C4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 25 74 01 00 35 04 06 00 73 D2 F4 A9 99 28 08 97 E3 A7 A3 66 2B 08 [21:10:05]CheckFolder [21:10:05]dirname=/storage/ofd_packets [21:10:05]CheckFolder done [21:10:05]ProducePacketName [21:10:05]name=ofd_packets/00095269 [21:10:05]NVStorageSaveData ofd_packets/00095269 [21:10:05]File name is /storage/ofd_packets/00095269 [21:10:05]Write 298 bytes [21:10:05]NVStorageSaveData done [21:10:05]OFDSenderStorePacket done [21:10:05]KKMCreateOFDPacket done [21:10:05]NVStorageSaveData kkm_last_timestamp [21:10:05]File name is /storage/kkm_last_timestamp [21:10:05]Write 4 bytes [21:10:05]NVStorageSaveData done [21:10:05]ExternCall_PrintAddStr [21:10:05]wPrintStart [21:10:05]Write to MH i2c: 01 00 00 C5 50 15 [21:10:05]Write i2c OK [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: 01 [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: 01 07 00 [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: 01 07 00 C5 50 00 80 00 00 00 FF 0F AA [21:10:05]RasterBufferAndPrint [21:10:05]line Счет N : (1)196245 [21:10:05]line ИНН: 02508201610067 [21:10:05]line Контрольно-Кассовый Чек [21:10:05]line ПРОДАЖА [21:10:05]line ТРК (МРК, ГНК) : 61 [21:10:05]line Товар: 2710194210 [21:10:05]line ДТ-К-5 [21:10:05]line 2.830 * 70.90 [21:10:05]line = 200.65 [21:10:05]line НДС 12% НСП 1% [21:10:05]line > о реализуемом товаре [21:10:05]line ОКРУГЛЕНИЕ: -0.65 [21:10:05]line ИТОГО: 200.00 [21:10:05]line Внесено: 200.00 [21:10:05]line СДАЧА: 0.00 [21:10:05]line НСП 1% : 1.78 [21:10:05]line НДС 12% : 21.31 [21:10:05]line Наличными: 200.00 [21:10:05]line Безнал.: 0.00 [21:10:05]line Место: АЗС № 6 "Партнер Нефть" [21:10:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:10:05]line СНО: Общий режим [21:10:05]line Чек 199 12.03.2024 21:10 [21:10:05]line Смена: 327 ФФД: 1.0 [21:10:05]line ЗНМ: 0300000009 [21:10:05]line РНМ: 0000000000090555 [21:10:05]line Версия ККМ: 001 [21:10:05]line ФМ: 0000000000874811 [21:10:05]line ФД: 95269 [21:10:05]line ФПД: 127349885081896 [21:10:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T211011&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95269&fm=127349885081896&tin=02508201610067®Number=0000000000090555&sum=20000 [21:10:06]OFD Sender: Processing packet 95269 [packets to send 30, broken 29] [21:10:06]ProducePacketName [21:10:06]name=ofd_packets/00095269 [21:10:06]OFD Sender: To server: pG, [21:10:06]CommunicateWithHost lk.salyk.kg:30040 [21:10:06]ConnectInit lk.salyk.kg [21:10:06]written 0, free lines is 4095 [21:10:06]Connected sock=10 [21:10:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 0F 99 04 01 64 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 0B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 61 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 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 C7 00 00 00 F4 03 04 00 B3 C4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 25 74 01 00 35 04 06 00 73 D2 F4 A9 99 28 08 97 E3 A7 A3 66 2B 08 [21:10:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D5 52 47 00 20 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 25 74 01 00 F4 03 04 00 08 70 F0 65 B6 04 01 00 00 33 31 6B 0C C6 D3 79 79 [21:10:06]CommunicateWithHost err = 0 [21:10:06]CheckOFDResponse [21:10:06]1017 (14) - 77093643461234 [21:10:06]1041 (16) - 0000000000874811 [21:10:06]1040 (4) - 95269 [21:10:06]1012 (4) - 12.03.2024 15:08 [21:10:06]1206 (1) - 0 [21:10:06]OFD Sender: Remove packet 95269 [21:10:06]ProducePacketName [21:10:06]name=ofd_packets/00095269 [21:10:06]NVStorageDeleteData [21:10:06]Write to MH i2c: 01 00 00 F0 50 40 [21:10:06]Write i2c OK [21:10:06]MH_I2C_Read... [21:10:06]Read from MH i2c: 01 [21:10:06]MH_I2C_Read... [21:10:06]Read from MH i2c: 01 07 00 [21:10:06]MH_I2C_Read... [21:10:06]Read from MH i2c: 01 07 00 F0 50 00 80 00 00 00 52 0D 26 [21:10:06]RasterBufferAndPrint [21:10:06]line [21:10:06]line [21:10:06]line [21:10:06]line [21:10:06]line [21:10:06]written 0, free lines is 3416 [21:10:06]process_action close_receipt done [21:10:06]requested_data is exist [21:10:06]produce_requested_data [21:10:06]requested_item fm.sn is exist - process it [21:10:06]wFMCommunicate request_size=4 [21:10:06]MH_SAM_APDU [21:10:06]CAPDU: 80 11 00 00 [21:10:06]Write to MH i2c: E2 08 00 F7 50 80 11 00 00 00 00 00 00 C1 [21:10:06]Write i2c OK [21:10:06]MH_I2C_Read... [21:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:06]Read from MH i2c: E2 [21:10:06]MH_I2C_Read... [21:10:06]Read from MH i2c: E2 17 00 [21:10:06]MH_I2C_Read... [21:10:06]Read from MH i2c: E2 17 00 F7 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 11 [21:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:10:06]wFMCommunicate OK [21:10:06]requested_item fd.num is exist - process it [21:10:06]SAM_PROTO_GetFieldsCounters [21:10:06]wFMCommunicate request_size=4 [21:10:06]MH_SAM_APDU [21:10:06]CAPDU: 80 13 00 00 [21:10:06]Write to MH i2c: E2 08 00 F8 50 80 13 00 00 00 00 00 00 C4 [21:10:06]Write i2c OK [21:10:06]MH_I2C_Read... [21:10:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:06]Read from MH i2c: E2 [21:10:06]MH_I2C_Read... [21:10:06]Read from MH i2c: E2 62 00 [21:10:06]MH_I2C_Read... [21:10:06]Read from MH i2c: E2 62 00 F8 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 25 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [21:10:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 25 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:10:06]wFMCommunicate OK [21:10:06]SAM_PROTO_GetFieldsCounters done [21:10:06]requested_item shift.num is exist - process it [21:10:06]requested_item shift.opened is exist - process it [21:10:06]req_shift_opened [21:10:06]FM_GetShiftState [21:10:06]SAM_PROTO_GetShiftState [21:10:06]wFMCommunicate request_size=4 [21:10:06]MH_SAM_APDU [21:10:06]CAPDU: 80 13 01 00 [21:10:06]Write to MH i2c: E2 08 00 F9 50 80 13 01 00 00 00 00 00 C6 [21:10:06]Write i2c OK [21:10:06]MH_I2C_Read... [21:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:06]Read from MH i2c: E2 [21:10:06]MH_I2C_Read... [21:10:06]Read from MH i2c: E2 0E 00 [21:10:06]MH_I2C_Read... [21:10:06]Read from MH i2c: E2 0E 00 F9 50 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 3A [21:10:06]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:10:06]wFMCommunicate OK [21:10:06]SAM_PROTO_GetShiftState done [21:10:06]FM_GetShiftState done [21:10:06]req_shift_opened done [21:10:06]requested_item shift.open_date is exist - process it [21:10:06]req_shift_open_date [21:10:06]req_shift_open_date done [21:10:06]produce_requested_data done [21:10:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95269,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [21:10:06]process_action_free close_receipt [21:10:06]json_value_free [21:10:06]json_value_free done [21:10:06]process_json_proto returns [21:10:06]Send response to host [21:10:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95269,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [21:10:06]free response buf [21:10:06]execute_script done [21:10:06]execute_script returns [21:10:06]free content buf [21:10:06]Sock 9.Close socket [21:10:06]Sock 9.Thread stoped [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:32]accept exits with 8 [21:10:32]New connection [21:10:32]New thread 3066813796 created [21:10:32]Thread 3066957156 joined [21:10:32]Waiting for new connection... [21:10:32] Sock 8.Parse request [21:10:32]Sock 8.Check first char [21:10:32]Sock 8.First char is OK [21:10:32]request: POST /json_proto HTTP/1.0 [21:10:32]Method: POST [21:10:32]URL: /json_proto [21:10:32]Method is POST - this is cgi request [21:10:32]url: /json_proto [21:10:32]query_string will be loaded in cgi processing [21:10:32]execute_cgi json_proto POST (null) [21:10:32]execute_cgi path=json_proto method=POST [21:10:32]POST find Content-Length [21:10:32]Host: 172.17.62.67:8080 [21:10:32]Content-Length: 682 [21:10:32]Content-Type: application/json [21:10:32] [21:10:32]POST finish read [21:10:32]Found Content-Length = 682 [21:10:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:32]execute_script... [21:10:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:32]POST & json_proto [21:10:32]process_json_proto [21:10:32]json parsed OK: [21:10:32]protocol is kg_v1.0 [21:10:32]action value=close_receipt [21:10:32]process_action close_receipt [21:10:32]cmd_close_receipt [21:10:32]MH_GetDate [21:10:32]Write to MH i2c: F0 00 00 FA 50 39 [21:10:32]Write i2c OK [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: F0 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: F0 05 00 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: F0 05 00 FA 50 00 CF C4 F0 65 26 [21:10:32]GetLastDocTimeStamp 1710277811 [21:10:32]current date 1710277839 [21:10:32]FM_GetShiftState [21:10:32]SAM_PROTO_GetShiftState [21:10:32]wFMCommunicate request_size=4 [21:10:32]MH_SAM_APDU [21:10:32]CAPDU: 80 13 01 00 [21:10:32]Write to MH i2c: E2 08 00 FB 50 80 13 01 00 00 00 00 00 C8 [21:10:32]Write i2c OK [21:10:32]MH_I2C_Read... [21:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:32]Read from MH i2c: E2 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: E2 0E 00 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: E2 0E 00 FB 50 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 3C [21:10:32]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:10:32]wFMCommunicate OK [21:10:32]SAM_PROTO_GetShiftState done [21:10:32]FM_GetShiftState done [21:10:32]opened in 1710201976 [21:10:32]opened+sec_in_day 1710288376 [21:10:32]quantity*price = 100011 [21:10:32]sum+1 = 100012 [21:10:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 200 12.03.2024 21:10 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95270 ФПД: 80393964761845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T211039&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95270&fm=80393964761845&tin=02508201610067®Number=0000000000090555&sum=100000 [21:10:33]StoreToDocumentArchive [21:10:33]shift 327 fd 95270 [21:10:33]save to /storage/0327/doc_00095270 [21:10:33]save last doc name /storage/0327/doc_00095270 to /storage/kkm_last_doc_name [21:10:33]save OK [21:10:33]Clear old archive folders... [21:10:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:10:33]tlvbuf is 01BB70A0 [21:10:33]SAM_PROTO_ClearQueue [21:10:33]wFMCommunicate request_size=4 [21:10:33]MH_SAM_APDU [21:10:33]CAPDU: 80 09 00 00 [21:10:33]Write to MH i2c: E2 08 00 08 51 80 09 00 00 00 00 00 00 CB [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 [21:10:33]MH_I2C_Read... [21:10:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:33]Read from MH i2c: E2 03 00 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 03 00 08 51 00 90 00 CD [21:10:33]RAPDU: 90 00 [21:10:33]wFMCommunicate OK [21:10:33]SAM_PROTO_ClearQueue done [21:10:33]KKMCreateOFDPacket [21:10:33]OFDProtocolAddRootSTLVToBuf [21:10:33]FM_MakeSignedData [21:10:33]FM_MakeSignedData [21:10:33]SAM_PROTO_SignData [21:10:33]wFMCommunicate request_size=4 [21:10:33]MH_SAM_APDU [21:10:33]CAPDU: 80 0D 01 02 [21:10:33]Write to MH i2c: E2 08 00 09 51 80 0D 01 02 00 00 00 00 D3 [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:33]Read from MH i2c: E2 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 03 00 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 03 00 09 51 00 90 00 CE [21:10:33]RAPDU: 90 00 [21:10:33]wFMCommunicate OK [21:10:33]wFMCommunicate request_size=255 [21:10:33]MH_SAM_APDU [21:10:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 CF C4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 26 74 01 00 35 04 06 00 49 [21:10:33]Write to MH i2c: E2 02 01 0A 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 CF C4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 26 74 01 00 35 04 06 00 49 00 00 57 [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:33]Read from MH i2c: E2 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 03 00 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 03 00 0A 51 00 90 00 CF [21:10:33]RAPDU: 90 00 [21:10:33]wFMCommunicate OK [21:10:33]wFMCommunicate request_size=10 [21:10:33]MH_SAM_APDU [21:10:33]CAPDU: 80 0D 02 02 05 1E 2D B6 32 F5 [21:10:33]Write to MH i2c: E2 0D 00 0B 51 80 0D 02 02 05 00 1E 2D B6 32 F5 00 00 08 [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:33]Read from MH i2c: E2 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 03 00 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 03 00 0B 51 00 90 00 D0 [21:10:33]RAPDU: 90 00 [21:10:33]wFMCommunicate OK [21:10:33]wFMCommunicate request_size=4 [21:10:33]MH_SAM_APDU [21:10:33]CAPDU: 80 0D 03 02 [21:10:33]Write to MH i2c: E2 08 00 0C 51 80 0D 03 02 00 00 00 00 D8 [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:33]Read from MH i2c: E2 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 0B 00 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 0B 00 0C 51 00 28 94 4A 6E 2E B6 86 DD 90 00 94 [21:10:33]RAPDU: 28 94 4A 6E 2E B6 86 DD 90 00 [21:10:33]wFMCommunicate OK [21:10:33]SAM_PROTO_SignData done [21:10:33]FM_MakeSignedData done [21:10:33]CreateOFDProtocolMessage [21:10:33]wFMCommunicate request_size=4 [21:10:33]MH_SAM_APDU [21:10:33]CAPDU: 80 11 00 00 [21:10:33]Write to MH i2c: E2 08 00 0D 51 80 11 00 00 00 00 00 00 D8 [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:33]Read from MH i2c: E2 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 17 00 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: E2 17 00 0D 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 28 [21:10:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:10:33]wFMCommunicate OK [21:10:33]CreateOFDProtocolMessage done [21:10:33]OFDSenderStorePacket 95270 [21:10:33]StoreOFDPacket docnum=95270 [21:10:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CF 5F 07 01 E8 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 CF C4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 26 74 01 00 35 04 06 00 49 1E 2D B6 32 F5 28 94 4A 6E 2E B6 86 DD [21:10:33]CheckFolder [21:10:33]dirname=/storage/ofd_packets [21:10:33]CheckFolder done [21:10:33]ProducePacketName [21:10:33]name=ofd_packets/00095270 [21:10:33]NVStorageSaveData ofd_packets/00095270 [21:10:33]File name is /storage/ofd_packets/00095270 [21:10:33]Write 301 bytes [21:10:33]NVStorageSaveData done [21:10:33]OFDSenderStorePacket done [21:10:33]KKMCreateOFDPacket done [21:10:33]NVStorageSaveData kkm_last_timestamp [21:10:33]File name is /storage/kkm_last_timestamp [21:10:33]Write 4 bytes [21:10:33]NVStorageSaveData done [21:10:33]ExternCall_PrintAddStr [21:10:33]wPrintStart [21:10:33]Write to MH i2c: 01 00 00 0E 51 5F [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: 01 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: 01 07 00 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: 01 07 00 0E 51 00 80 00 00 00 FF 0F F4 [21:10:33]RasterBufferAndPrint [21:10:33]line Счет N : (1)196246 [21:10:33]line ИНН: 02508201610067 [21:10:33]line Контрольно-Кассовый Чек [21:10:33]line ПРОДАЖА [21:10:33]line ТРК (МРК, ГНК) : 12 [21:10:33]line Товар: 2710124130 [21:10:33]line Аи-92-К-5 [21:10:33]line 15.900 * 62.90 [21:10:33]line = 1000.11 [21:10:33]line НДС 12% НСП 1% [21:10:33]line > о реализуемом товаре [21:10:33]line ОКРУГЛЕНИЕ: -0.11 [21:10:33]line ИТОГО: 1000.00 [21:10:33]line Внесено: 1000.00 [21:10:33]line СДАЧА: 0.00 [21:10:33]line НСП 1% : 8.85 [21:10:33]line НДС 12% : 106.21 [21:10:33]line Наличными: 1000.00 [21:10:33]line Безнал.: 0.00 [21:10:33]line Место: АЗС № 6 "Партнер Нефть" [21:10:33]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:10:33]line СНО: Общий режим [21:10:33]line Чек 200 12.03.2024 21:10 [21:10:33]line Смена: 327 ФФД: 1.0 [21:10:33]line ЗНМ: 0300000009 [21:10:33]line РНМ: 0000000000090555 [21:10:33]line Версия ККМ: 001 [21:10:33]line ФМ: 0000000000874811 [21:10:33]line ФД: 95270 [21:10:33]line ФПД: 80393964761845 [21:10:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T211039&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95270&fm=80393964761845&tin=02508201610067®Number=0000000000090555&sum=100000 [21:10:34]written 0, free lines is 4095 [21:10:34]OFD Sender: Processing packet 95270 [packets to send 30, broken 29] [21:10:34]ProducePacketName [21:10:34]name=ofd_packets/00095270 [21:10:34]OFD Sender: To server: pG, [21:10:34]CommunicateWithHost lk.salyk.kg:30040 [21:10:34]ConnectInit lk.salyk.kg [21:10:34]Connected sock=10 [21:10:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CF 5F 07 01 E8 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 CF C4 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 26 74 01 00 35 04 06 00 49 1E 2D B6 32 F5 28 94 4A 6E 2E B6 86 DD [21:10:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D2 39 47 00 35 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 26 74 01 00 F4 03 04 00 24 70 F0 65 B6 04 01 00 00 67 35 B0 BE A6 13 88 D1 [21:10:34]CommunicateWithHost err = 0 [21:10:34]CheckOFDResponse [21:10:34]1017 (14) - 77093643461234 [21:10:34]1041 (16) - 0000000000874811 [21:10:34]1040 (4) - 95270 [21:10:34]1012 (4) - 12.03.2024 15:09 [21:10:34]1206 (1) - 0 [21:10:34]OFD Sender: Remove packet 95270 [21:10:34]ProducePacketName [21:10:34]name=ofd_packets/00095270 [21:10:34]NVStorageDeleteData [21:10:34]Write to MH i2c: 01 00 00 39 51 8A [21:10:34]Write i2c OK [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: 01 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: 01 07 00 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: 01 07 00 39 51 00 80 00 00 00 4E 0D 6C [21:10:34]RasterBufferAndPrint [21:10:34]line [21:10:34]line [21:10:34]line [21:10:34]line [21:10:34]line [21:10:34]written 0, free lines is 3413 [21:10:34]process_action close_receipt done [21:10:34]requested_data is exist [21:10:34]produce_requested_data [21:10:34]requested_item fm.sn is exist - process it [21:10:34]wFMCommunicate request_size=4 [21:10:34]MH_SAM_APDU [21:10:34]CAPDU: 80 11 00 00 [21:10:34]Write to MH i2c: E2 08 00 40 51 80 11 00 00 00 00 00 00 0B [21:10:34]Write i2c OK [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: E2 [21:10:34]MH_I2C_Read... [21:10:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:34]Read from MH i2c: E2 17 00 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: E2 17 00 40 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5B [21:10:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:10:34]wFMCommunicate OK [21:10:34]requested_item fd.num is exist - process it [21:10:34]SAM_PROTO_GetFieldsCounters [21:10:34]wFMCommunicate request_size=4 [21:10:34]MH_SAM_APDU [21:10:34]CAPDU: 80 13 00 00 [21:10:34]Write to MH i2c: E2 08 00 41 51 80 13 00 00 00 00 00 00 0E [21:10:34]Write i2c OK [21:10:34]MH_I2C_Read... [21:10:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:34]Read from MH i2c: E2 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: E2 62 00 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: E2 62 00 41 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 26 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [21:10:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 26 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:10:34]wFMCommunicate OK [21:10:34]SAM_PROTO_GetFieldsCounters done [21:10:34]requested_item shift.num is exist - process it [21:10:34]requested_item shift.opened is exist - process it [21:10:34]req_shift_opened [21:10:34]FM_GetShiftState [21:10:34]SAM_PROTO_GetShiftState [21:10:34]wFMCommunicate request_size=4 [21:10:34]MH_SAM_APDU [21:10:34]CAPDU: 80 13 01 00 [21:10:34]Write to MH i2c: E2 08 00 42 51 80 13 01 00 00 00 00 00 10 [21:10:34]Write i2c OK [21:10:34]MH_I2C_Read... [21:10:34]OFD Sender: No OFD packet to send [21:10:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:34]Read from MH i2c: E2 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: E2 0E 00 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: E2 0E 00 42 51 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 84 [21:10:34]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:10:34]wFMCommunicate OK [21:10:34]SAM_PROTO_GetShiftState done [21:10:34]FM_GetShiftState done [21:10:34]req_shift_opened done [21:10:34]requested_item shift.open_date is exist - process it [21:10:34]req_shift_open_date [21:10:34]req_shift_open_date done [21:10:34]produce_requested_data done [21:10:34]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95270,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [21:10:34]process_action_free close_receipt [21:10:34]json_value_free [21:10:34]json_value_free done [21:10:34]process_json_proto returns [21:10:34]Send response to host [21:10:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95270,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [21:10:34]free response buf [21:10:34]execute_script done [21:10:34]execute_script returns [21:10:34]free content buf [21:10:34]Sock 8.Close socket [21:10:34]Sock 8.Thread stoped [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:04]recv_with_timeout no data received [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]accept exits with 9 [21:23:00]New connection [21:23:00]New thread 3066957156 created [21:23:00]Thread 3066813796 joined [21:23:00]Waiting for new connection... [21:23:00] Sock 9.Parse request [21:23:00]Sock 9.Check first char [21:23:00]Sock 9.First char is OK [21:23:00]request: POST /json_proto HTTP/1.0 [21:23:00]Method: POST [21:23:00]URL: /json_proto [21:23:00]Method is POST - this is cgi request [21:23:00]url: /json_proto [21:23:00]query_string will be loaded in cgi processing [21:23:00]execute_cgi json_proto POST (null) [21:23:00]execute_cgi path=json_proto method=POST [21:23:00]POST find Content-Length [21:23:00]Host: 172.17.62.67:8080 [21:23:00]Content-Length: 677 [21:23:00]Content-Type: application/json [21:23:00] [21:23:00]POST finish read [21:23:00]Found Content-Length = 677 [21:23:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:00]execute_script... [21:23: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)196247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:00]POST & json_proto [21:23:00]process_json_proto [21:23:00]json parsed OK: [21:23:00]protocol is kg_v1.0 [21:23:00]action value=close_receipt [21:23:00]process_action close_receipt [21:23:00]cmd_close_receipt [21:23:00]MH_GetDate [21:23:00]Write to MH i2c: F0 00 00 43 51 83 [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: F0 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: F0 05 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: F0 05 00 43 51 00 BB C7 F0 65 5F [21:23:00]GetLastDocTimeStamp 1710277839 [21:23:00]current date 1710278587 [21:23:00]FM_GetShiftState [21:23:00]SAM_PROTO_GetShiftState [21:23:00]wFMCommunicate request_size=4 [21:23:00]MH_SAM_APDU [21:23:00]CAPDU: 80 13 01 00 [21:23:00]Write to MH i2c: E2 08 00 44 51 80 13 01 00 00 00 00 00 12 [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:00]Read from MH i2c: E2 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: E2 0E 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: E2 0E 00 44 51 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 86 [21:23:00]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:23:00]wFMCommunicate OK [21:23:00]SAM_PROTO_GetShiftState done [21:23:00]FM_GetShiftState done [21:23:00]opened in 1710201976 [21:23:00]opened+sec_in_day 1710288376 [21:23:00]quantity*price = 60006 [21:23:00]sum+1 = 60008 [21:23:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 201 12.03.2024 21:23 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95271 ФПД: 118836461173221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T212307&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95271&fm=118836461173221&tin=02508201610067®Number=0000000000090555&sum=60000 [21:23:01]StoreToDocumentArchive [21:23:01]shift 327 fd 95271 [21:23:01]save to /storage/0327/doc_00095271 [21:23:01]save last doc name /storage/0327/doc_00095271 to /storage/kkm_last_doc_name [21:23:01]save OK [21:23:01]Clear old archive folders... [21:23:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:23:01]tlvbuf is 01A46430 [21:23:01]SAM_PROTO_ClearQueue [21:23:01]wFMCommunicate request_size=4 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 09 00 00 [21:23:01]Write to MH i2c: E2 08 00 51 51 80 09 00 00 00 00 00 00 14 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 51 51 00 90 00 16 [21:23:01]RAPDU: 90 00 [21:23:01]wFMCommunicate OK [21:23:01]SAM_PROTO_ClearQueue done [21:23:01]KKMCreateOFDPacket [21:23:01]OFDProtocolAddRootSTLVToBuf [21:23:01]FM_MakeSignedData [21:23:01]FM_MakeSignedData [21:23:01]SAM_PROTO_SignData [21:23:01]wFMCommunicate request_size=4 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 0D 01 02 [21:23:01]Write to MH i2c: E2 08 00 52 51 80 0D 01 02 00 00 00 00 1C [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 52 51 00 90 00 17 [21:23:01]RAPDU: 90 00 [21:23:01]wFMCommunicate OK [21:23:01]wFMCommunicate request_size=255 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 BB C7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 27 74 01 00 35 04 06 00 6C [21:23:01]Write to MH i2c: E2 02 01 53 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 BB C7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 27 74 01 00 35 04 06 00 6C 00 00 1B [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 03 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 03 00 53 51 00 90 00 18 [21:23:02]RAPDU: 90 00 [21:23:02]wFMCommunicate OK [21:23:02]wFMCommunicate request_size=10 [21:23:02]MH_SAM_APDU [21:23:02]CAPDU: 80 0D 02 02 05 14 C5 0D F9 E5 [21:23:02]Write to MH i2c: E2 0D 00 54 51 80 0D 02 02 05 00 14 C5 0D F9 E5 00 00 ED [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 03 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 03 00 54 51 00 90 00 19 [21:23:02]RAPDU: 90 00 [21:23:02]wFMCommunicate OK [21:23:02]wFMCommunicate request_size=4 [21:23:02]MH_SAM_APDU [21:23:02]CAPDU: 80 0D 03 02 [21:23:02]Write to MH i2c: E2 08 00 55 51 80 0D 03 02 00 00 00 00 21 [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 0B 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 0B 00 55 51 00 13 3D 0E 9C 47 3C 88 1B 90 00 42 [21:23:02]RAPDU: 13 3D 0E 9C 47 3C 88 1B 90 00 [21:23:02]wFMCommunicate OK [21:23:02]SAM_PROTO_SignData done [21:23:02]FM_MakeSignedData done [21:23:02]CreateOFDProtocolMessage [21:23:02]wFMCommunicate request_size=4 [21:23:02]MH_SAM_APDU [21:23:02]CAPDU: 80 11 00 00 [21:23:02]Write to MH i2c: E2 08 00 56 51 80 11 00 00 00 00 00 00 21 [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 17 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 17 00 56 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 71 [21:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:23:02]wFMCommunicate OK [21:23:02]CreateOFDProtocolMessage done [21:23:02]OFDSenderStorePacket 95271 [21:23:02]StoreOFDPacket docnum=95271 [21:23:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 ED E2 07 01 AD 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 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 BB C7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 27 74 01 00 35 04 06 00 6C 14 C5 0D F9 E5 13 3D 0E 9C 47 3C 88 1B [21:23:02]CheckFolder [21:23:02]dirname=/storage/ofd_packets [21:23:02]CheckFolder done [21:23:02]ProducePacketName [21:23:02]name=ofd_packets/00095271 [21:23:02]NVStorageSaveData ofd_packets/00095271 [21:23:02]File name is /storage/ofd_packets/00095271 [21:23:02]Write 301 bytes [21:23:02]NVStorageSaveData done [21:23:02]OFDSenderStorePacket done [21:23:02]KKMCreateOFDPacket done [21:23:02]NVStorageSaveData kkm_last_timestamp [21:23:02]File name is /storage/kkm_last_timestamp [21:23:02]Write 4 bytes [21:23:02]NVStorageSaveData done [21:23:02]ExternCall_PrintAddStr [21:23:02]wPrintStart [21:23:02]Write to MH i2c: 01 00 00 57 51 A8 [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: 01 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: 01 07 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: 01 07 00 57 51 00 80 00 00 00 FF 0F 3D [21:23:02]RasterBufferAndPrint [21:23:02]line Счет N : (1)196247 [21:23:02]line ИНН: 02508201610067 [21:23:02]line Контрольно-Кассовый Чек [21:23:02]line ПРОДАЖА [21:23:02]line ТРК (МРК, ГНК) : 12 [21:23:02]line Товар: 2710124130 [21:23:02]line Аи-92-К-5 [21:23:02]line 9.540 * 62.90 [21:23:02]line = 600.07 [21:23:02]line НДС 12% НСП 1% [21:23:02]line > о реализуемом товаре [21:23:02]line ОКРУГЛЕНИЕ: -0.07 [21:23:02]line ИТОГО: 600.00 [21:23:02]line Внесено: 600.00 [21:23:02]line СДАЧА: 0.00 [21:23:02]line НСП 1% : 5.31 [21:23:02]line НДС 12% : 63.72 [21:23:02]line Наличными: 600.00 [21:23:02]line Безнал.: 0.00 [21:23:02]line Место: АЗС № 6 "Партнер Нефть" [21:23:02]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:23:02]line СНО: Общий режим [21:23:02]line Чек 201 12.03.2024 21:23 [21:23:02]line Смена: 327 ФФД: 1.0 [21:23:02]line ЗНМ: 0300000009 [21:23:02]line РНМ: 0000000000090555 [21:23:02]line Версия ККМ: 001 [21:23:02]line ФМ: 0000000000874811 [21:23:02]line ФД: 95271 [21:23:02]line ФПД: 118836461173221 [21:23:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T212307&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95271&fm=118836461173221&tin=02508201610067®Number=0000000000090555&sum=60000 [21:23:02]OFD Sender: Processing packet 95271 [packets to send 30, broken 29] [21:23:02]ProducePacketName [21:23:02]name=ofd_packets/00095271 [21:23:02]OFD Sender: To server: pG, [21:23:02]CommunicateWithHost lk.salyk.kg:30040 [21:23:02]ConnectInit lk.salyk.kg [21:23:02]written 0, free lines is 4095 [21:23:02]Connected sock=10 [21:23:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 ED E2 07 01 AD 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 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 BB C7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 27 74 01 00 35 04 06 00 6C 14 C5 0D F9 E5 13 3D 0E 9C 47 3C 88 1B [21:23:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 8C EC 47 00 08 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 27 74 01 00 F4 03 04 00 10 73 F0 65 B6 04 01 00 00 4B F3 2C 5D E2 F3 B6 CF [21:23:02]CommunicateWithHost err = 0 [21:23:02]CheckOFDResponse [21:23:02]1017 (14) - 77093643461234 [21:23:02]1041 (16) - 0000000000874811 [21:23:02]1040 (4) - 95271 [21:23:02]1012 (4) - 12.03.2024 15:21 [21:23:02]1206 (1) - 0 [21:23:02]OFD Sender: Remove packet 95271 [21:23:02]ProducePacketName [21:23:02]name=ofd_packets/00095271 [21:23:02]NVStorageDeleteData [21:23:03]Write to MH i2c: 01 00 00 82 51 D3 [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: 01 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: 01 07 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: 01 07 00 82 51 00 80 00 00 00 4E 0D B5 [21:23:03]RasterBufferAndPrint [21:23:03]line [21:23:03]line [21:23:03]line [21:23:03]line [21:23:03]line [21:23:03]written 0, free lines is 3412 [21:23:03]process_action close_receipt done [21:23:03]requested_data is exist [21:23:03]produce_requested_data [21:23:03]requested_item fm.sn is exist - process it [21:23:03]wFMCommunicate request_size=4 [21:23:03]MH_SAM_APDU [21:23:03]CAPDU: 80 11 00 00 [21:23:03]Write to MH i2c: E2 08 00 89 51 80 11 00 00 00 00 00 00 54 [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 [21:23:03]MH_I2C_Read... [21:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:03]Read from MH i2c: E2 17 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 17 00 89 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A4 [21:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:23:03]wFMCommunicate OK [21:23:03]requested_item fd.num is exist - process it [21:23:03]SAM_PROTO_GetFieldsCounters [21:23:03]wFMCommunicate request_size=4 [21:23:03]MH_SAM_APDU [21:23:03]CAPDU: 80 13 00 00 [21:23:03]Write to MH i2c: E2 08 00 8A 51 80 13 00 00 00 00 00 00 57 [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:03]Read from MH i2c: E2 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 62 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 62 00 8A 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 27 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [21:23:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 27 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:03]wFMCommunicate OK [21:23:03]SAM_PROTO_GetFieldsCounters done [21:23:03]requested_item shift.num is exist - process it [21:23:03]requested_item shift.opened is exist - process it [21:23:03]req_shift_opened [21:23:03]FM_GetShiftState [21:23:03]SAM_PROTO_GetShiftState [21:23:03]wFMCommunicate request_size=4 [21:23:03]MH_SAM_APDU [21:23:03]CAPDU: 80 13 01 00 [21:23:03]Write to MH i2c: E2 08 00 8B 51 80 13 01 00 00 00 00 00 59 [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:03]Read from MH i2c: E2 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 0E 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 0E 00 8B 51 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CD [21:23:03]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:23:03]wFMCommunicate OK [21:23:03]SAM_PROTO_GetShiftState done [21:23:03]FM_GetShiftState done [21:23:03]req_shift_opened done [21:23:03]requested_item shift.open_date is exist - process it [21:23:03]req_shift_open_date [21:23:03]req_shift_open_date done [21:23:03]produce_requested_data done [21:23:03]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95271,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [21:23:03]process_action_free close_receipt [21:23:03]json_value_free [21:23:03]json_value_free done [21:23:03]process_json_proto returns [21:23:03]Send response to host [21:23:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95271,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [21:23:03]free response buf [21:23:03]execute_script done [21:23:03]execute_script returns [21:23:03]free content buf [21:23:03]Sock 9.Close socket [21:23:03]Sock 9.Thread stoped [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:14]accept exits with 8 [21:23:14]New connection [21:23:14]New thread 3066813796 created [21:23:14]Thread 3066957156 joined [21:23:14]Waiting for new connection... [21:23:14] Sock 8.Parse request [21:23:14]Sock 8.Check first char [21:23:14]Sock 8.First char is OK [21:23:14]request: POST /json_proto HTTP/1.0 [21:23:14]Method: POST [21:23:14]URL: /json_proto [21:23:14]Method is POST - this is cgi request [21:23:14]url: /json_proto [21:23:14]query_string will be loaded in cgi processing [21:23:14]execute_cgi json_proto POST (null) [21:23:14]execute_cgi path=json_proto method=POST [21:23:14]POST find Content-Length [21:23:14]Host: 172.17.62.67:8080 [21:23:14]Content-Length: 674 [21:23:14]Content-Type: application/json [21:23:14] [21:23:14]POST finish read [21:23:14]Found Content-Length = 674 [21:23:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 2.260, "sum" : 160.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:14]execute_script... [21:23:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 2.260, "sum" : 160.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:14]POST & json_proto [21:23:14]process_json_proto [21:23:14]json parsed OK: [21:23:14]protocol is kg_v1.0 [21:23:14]action value=close_receipt [21:23:14]process_action close_receipt [21:23:14]cmd_close_receipt [21:23:14]MH_GetDate [21:23:14]Write to MH i2c: F0 00 00 8C 51 CC [21:23:14]Write i2c OK [21:23:14]MH_I2C_Read... [21:23:14]Read from MH i2c: F0 [21:23:14]MH_I2C_Read... [21:23:14]Read from MH i2c: F0 05 00 [21:23:14]MH_I2C_Read... [21:23:14]Read from MH i2c: F0 05 00 8C 51 00 CA C7 F0 65 B7 [21:23:14]GetLastDocTimeStamp 1710278587 [21:23:14]current date 1710278602 [21:23:14]FM_GetShiftState [21:23:14]SAM_PROTO_GetShiftState [21:23:14]wFMCommunicate request_size=4 [21:23:14]MH_SAM_APDU [21:23:14]CAPDU: 80 13 01 00 [21:23:14]Write to MH i2c: E2 08 00 8D 51 80 13 01 00 00 00 00 00 5B [21:23:14]Write i2c OK [21:23:14]MH_I2C_Read... [21:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:15]Read from MH i2c: E2 [21:23:15]MH_I2C_Read... [21:23:15]Read from MH i2c: E2 0E 00 [21:23:15]MH_I2C_Read... [21:23:15]Read from MH i2c: E2 0E 00 8D 51 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CF [21:23:15]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:23:15]wFMCommunicate OK [21:23:15]SAM_PROTO_GetShiftState done [21:23:15]FM_GetShiftState done [21:23:15]opened in 1710201976 [21:23:15]opened+sec_in_day 1710288376 [21:23:15]quantity*price = 16023 [21:23:15]sum+1 = 16024 [21:23:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 160.00 Внесено: 160.00 СДАЧА: 0.00 НСП 1% : 1.42 НДС 12% : 17.02 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 202 12.03.2024 21:23 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95272 ФПД: 16263772413142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T212322&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95272&fm=16263772413142&tin=02508201610067®Number=0000000000090555&sum=16000 [21:23:16]StoreToDocumentArchive [21:23:16]shift 327 fd 95272 [21:23:16]save to /storage/0327/doc_00095272 [21:23:16]save last doc name /storage/0327/doc_00095272 to /storage/kkm_last_doc_name [21:23:16]save OK [21:23:16]Clear old archive folders... [21:23:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:23:16]tlvbuf is 01AD22D0 [21:23:16]SAM_PROTO_ClearQueue [21:23:16]wFMCommunicate request_size=4 [21:23:16]MH_SAM_APDU [21:23:16]CAPDU: 80 09 00 00 [21:23:16]Write to MH i2c: E2 08 00 9A 51 80 09 00 00 00 00 00 00 5D [21:23:16]Write i2c OK [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 [21:23:16]MH_I2C_Read... [21:23:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:16]Read from MH i2c: E2 03 00 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 9A 51 00 90 00 5F [21:23:16]RAPDU: 90 00 [21:23:16]wFMCommunicate OK [21:23:16]SAM_PROTO_ClearQueue done [21:23:16]KKMCreateOFDPacket [21:23:16]OFDProtocolAddRootSTLVToBuf [21:23:16]FM_MakeSignedData [21:23:16]FM_MakeSignedData [21:23:16]SAM_PROTO_SignData [21:23:16]wFMCommunicate request_size=4 [21:23:16]MH_SAM_APDU [21:23:16]CAPDU: 80 0D 01 02 [21:23:16]Write to MH i2c: E2 08 00 9B 51 80 0D 01 02 00 00 00 00 65 [21:23:16]Write i2c OK [21:23:16]MH_I2C_Read... [21:23:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:16]Read from MH i2c: E2 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 9B 51 00 90 00 60 [21:23:16]RAPDU: 90 00 [21:23:16]wFMCommunicate OK [21:23:16]wFMCommunicate request_size=255 [21:23:16]MH_SAM_APDU [21:23:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 08 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 97 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CA C7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 28 74 01 00 35 04 06 00 0E CA B4 60 [21:23:16]Write to MH i2c: E2 02 01 9C 51 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 08 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 97 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CA C7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 28 74 01 00 35 04 06 00 0E CA B4 60 00 00 73 [21:23:16]Write i2c OK [21:23:16]MH_I2C_Read... [21:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:16]Read from MH i2c: E2 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 9C 51 00 90 00 61 [21:23:16]RAPDU: 90 00 [21:23:16]wFMCommunicate OK [21:23:16]wFMCommunicate request_size=7 [21:23:16]MH_SAM_APDU [21:23:16]CAPDU: 80 0D 02 02 02 9C D6 [21:23:16]Write to MH i2c: E2 0A 00 9D 51 80 0D 02 02 02 00 9C D6 00 00 DE [21:23:16]Write i2c OK [21:23:16]MH_I2C_Read... [21:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:16]Read from MH i2c: E2 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 9D 51 00 90 00 62 [21:23:16]RAPDU: 90 00 [21:23:16]wFMCommunicate OK [21:23:16]wFMCommunicate request_size=4 [21:23:16]MH_SAM_APDU [21:23:16]CAPDU: 80 0D 03 02 [21:23:16]Write to MH i2c: E2 08 00 9E 51 80 0D 03 02 00 00 00 00 6A [21:23:16]Write i2c OK [21:23:16]MH_I2C_Read... [21:23:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:16]Read from MH i2c: E2 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 0B 00 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 0B 00 9E 51 00 DD 6D 0E 67 FD 25 B8 18 90 00 1C [21:23:16]RAPDU: DD 6D 0E 67 FD 25 B8 18 90 00 [21:23:16]wFMCommunicate OK [21:23:16]SAM_PROTO_SignData done [21:23:16]FM_MakeSignedData done [21:23:16]CreateOFDProtocolMessage [21:23:16]wFMCommunicate request_size=4 [21:23:16]MH_SAM_APDU [21:23:16]CAPDU: 80 11 00 00 [21:23:16]Write to MH i2c: E2 08 00 9F 51 80 11 00 00 00 00 00 00 6A [21:23:16]Write i2c OK [21:23:16]MH_I2C_Read... [21:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:16]Read from MH i2c: E2 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 17 00 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 17 00 9F 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BA [21:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:23:16]wFMCommunicate OK [21:23:16]CreateOFDProtocolMessage done [21:23:16]OFDSenderStorePacket 95272 [21:23:16]StoreOFDPacket docnum=95272 [21:23:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 D3 25 04 01 CD 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 08 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 97 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CA C7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 28 74 01 00 35 04 06 00 0E CA B4 60 9C D6 DD 6D 0E 67 FD 25 B8 18 [21:23:16]CheckFolder [21:23:16]dirname=/storage/ofd_packets [21:23:16]CheckFolder done [21:23:16]ProducePacketName [21:23:16]name=ofd_packets/00095272 [21:23:16]NVStorageSaveData ofd_packets/00095272 [21:23:16]File name is /storage/ofd_packets/00095272 [21:23:16]Write 298 bytes [21:23:16]NVStorageSaveData done [21:23:16]OFDSenderStorePacket done [21:23:16]KKMCreateOFDPacket done [21:23:16]NVStorageSaveData kkm_last_timestamp [21:23:16]File name is /storage/kkm_last_timestamp [21:23:16]Write 4 bytes [21:23:16]NVStorageSaveData done [21:23:16]ExternCall_PrintAddStr [21:23:16]wPrintStart [21:23:16]Write to MH i2c: 01 00 00 A0 51 F1 [21:23:16]Write i2c OK [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: 01 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: 01 07 00 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: 01 07 00 A0 51 00 80 00 00 00 FF 0F 86 [21:23:16]RasterBufferAndPrint [21:23:16]line Счет N : (1)196248 [21:23:16]line ИНН: 02508201610067 [21:23:16]line Контрольно-Кассовый Чек [21:23:16]line ПРОДАЖА [21:23:16]line ТРК (МРК, ГНК) : 51 [21:23:16]line Товар: 2710194210 [21:23:16]line ДТ-К-5 [21:23:16]line 2.260 * 70.90 [21:23:16]line = 160.23 [21:23:16]line НДС 12% НСП 1% [21:23:16]line > о реализуемом товаре [21:23:16]line ОКРУГЛЕНИЕ: -0.23 [21:23:16]line ИТОГО: 160.00 [21:23:16]line Внесено: 160.00 [21:23:16]line СДАЧА: 0.00 [21:23:16]line НСП 1% : 1.42 [21:23:16]line НДС 12% : 17.02 [21:23:16]line Наличными: 160.00 [21:23:16]line Безнал.: 0.00 [21:23:16]line Место: АЗС № 6 "Партнер Нефть" [21:23:16]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:23:16]line СНО: Общий режим [21:23:16]line Чек 202 12.03.2024 21:23 [21:23:16]line Смена: 327 ФФД: 1.0 [21:23:16]line ЗНМ: 0300000009 [21:23:16]line РНМ: 0000000000090555 [21:23:16]line Версия ККМ: 001 [21:23:16]line ФМ: 0000000000874811 [21:23:16]line ФД: 95272 [21:23:16]line ФПД: 16263772413142 [21:23:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T212322&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95272&fm=16263772413142&tin=02508201610067®Number=0000000000090555&sum=16000 [21:23:16]OFD Sender: Processing packet 95272 [packets to send 30, broken 29] [21:23:16]ProducePacketName [21:23:16]name=ofd_packets/00095272 [21:23:16]OFD Sender: To server: pG, [21:23:16]CommunicateWithHost lk.salyk.kg:30040 [21:23:16]ConnectInit lk.salyk.kg [21:23:16]written 0, free lines is 4095 [21:23:17]Connected sock=10 [21:23:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 D3 25 04 01 CD 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 08 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 97 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CA C7 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 28 74 01 00 35 04 06 00 0E CA B4 60 9C D6 DD 6D 0E 67 FD 25 B8 18 [21:23:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 90 D4 47 00 75 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 28 74 01 00 F4 03 04 00 1F 73 F0 65 B6 04 01 00 00 E7 9B DC 5C 6F 5B AB E9 [21:23:17]CommunicateWithHost err = 0 [21:23:17]CheckOFDResponse [21:23:17]1017 (14) - 77093643461234 [21:23:17]1041 (16) - 0000000000874811 [21:23:17]1040 (4) - 95272 [21:23:17]1012 (4) - 12.03.2024 15:22 [21:23:17]1206 (1) - 0 [21:23:17]OFD Sender: Remove packet 95272 [21:23:17]ProducePacketName [21:23:17]name=ofd_packets/00095272 [21:23:17]NVStorageDeleteData [21:23:17]Write to MH i2c: 01 00 00 CB 51 1C [21:23:17]Write i2c OK [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: 01 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: 01 07 00 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: 01 07 00 CB 51 00 80 00 00 00 45 0D F5 [21:23:17]RasterBufferAndPrint [21:23:17]line [21:23:17]line [21:23:17]line [21:23:17]line [21:23:17]line [21:23:17]written 0, free lines is 3403 [21:23:17]process_action close_receipt done [21:23:17]requested_data is exist [21:23:17]produce_requested_data [21:23:17]requested_item fm.sn is exist - process it [21:23:17]wFMCommunicate request_size=4 [21:23:17]MH_SAM_APDU [21:23:17]CAPDU: 80 11 00 00 [21:23:17]Write to MH i2c: E2 08 00 D2 51 80 11 00 00 00 00 00 00 9D [21:23:17]Write i2c OK [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: E2 [21:23:17]MH_I2C_Read... [21:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:17]Read from MH i2c: E2 17 00 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: E2 17 00 D2 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 ED [21:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:23:17]wFMCommunicate OK [21:23:17]requested_item fd.num is exist - process it [21:23:17]SAM_PROTO_GetFieldsCounters [21:23:17]wFMCommunicate request_size=4 [21:23:17]MH_SAM_APDU [21:23:17]CAPDU: 80 13 00 00 [21:23:17]Write to MH i2c: E2 08 00 D3 51 80 13 00 00 00 00 00 00 A0 [21:23:17]Write i2c OK [21:23:17]MH_I2C_Read... [21:23:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:17]Read from MH i2c: E2 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: E2 62 00 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: E2 62 00 D3 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 28 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [21:23:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 28 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:17]wFMCommunicate OK [21:23:17]SAM_PROTO_GetFieldsCounters done [21:23:17]requested_item shift.num is exist - process it [21:23:17]requested_item shift.opened is exist - process it [21:23:17]req_shift_opened [21:23:17]FM_GetShiftState [21:23:17]SAM_PROTO_GetShiftState [21:23:17]wFMCommunicate request_size=4 [21:23:17]MH_SAM_APDU [21:23:17]CAPDU: 80 13 01 00 [21:23:17]Write to MH i2c: E2 08 00 D4 51 80 13 01 00 00 00 00 00 A2 [21:23:17]Write i2c OK [21:23:17]MH_I2C_Read... [21:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:17]OFD Sender: No OFD packet to send [21:23:17]Read from MH i2c: E2 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: E2 0E 00 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: E2 0E 00 D4 51 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 16 [21:23:17]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:23:17]wFMCommunicate OK [21:23:17]SAM_PROTO_GetShiftState done [21:23:17]FM_GetShiftState done [21:23:17]req_shift_opened done [21:23:17]requested_item shift.open_date is exist - process it [21:23:17]req_shift_open_date [21:23:17]req_shift_open_date done [21:23:17]produce_requested_data done [21:23:17]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95272,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [21:23:17]process_action_free close_receipt [21:23:17]json_value_free [21:23:17]json_value_free done [21:23:17]process_json_proto returns [21:23:17]Send response to host [21:23:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95272,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [21:23:17]free response buf [21:23:17]execute_script done [21:23:17]execute_script returns [21:23:17]free content buf [21:23:17]Sock 8.Close socket [21:23:17]Sock 8.Thread stoped [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24:17]OFD Sender: No OFD packet to send [21:24:22]OFD Sender: No OFD packet to send [21:24:27]OFD Sender: No OFD packet to send [21:24:32]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:57]OFD Sender: No OFD packet to send [21:25:02]OFD Sender: No OFD packet to send [21:25:07]OFD Sender: No OFD packet to send [21:25:12]OFD Sender: No OFD packet to send [21:25:17]OFD Sender: No OFD packet to send [21:25:22]OFD Sender: No OFD packet to send [21:25:27]OFD Sender: No OFD packet to send [21:25:32]OFD Sender: No OFD packet to send [21:25:37]OFD Sender: No OFD packet to send [21:25:42]OFD Sender: No OFD packet to send [21:25:47]OFD Sender: No OFD packet to send [21:25:52]OFD Sender: No OFD packet to send [21:25:57]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:27]OFD Sender: No OFD packet to send [21:26:32]OFD Sender: No OFD packet to send [21:26:37]OFD Sender: No OFD packet to send [21:26:42]OFD Sender: No OFD packet to send [21:26:47]OFD Sender: No OFD packet to send [21:26:52]OFD Sender: No OFD packet to send [21:26:57]OFD Sender: No OFD packet to send [21:27:01]accept exits with 9 [21:27:01]New connection [21:27:01]New thread 3066957156 created [21:27:01]Thread 3066813796 joined [21:27:01]Waiting for new connection... [21:27:01] Sock 9.Parse request [21:27:01]Sock 9.Check first char [21:27:01]Sock 9.First char is OK [21:27:01]request: POST /json_proto HTTP/1.0 [21:27:01]Method: POST [21:27:01]URL: /json_proto [21:27:01]Method is POST - this is cgi request [21:27:01]url: /json_proto [21:27:01]query_string will be loaded in cgi processing [21:27:01]execute_cgi json_proto POST (null) [21:27:01]execute_cgi path=json_proto method=POST [21:27:01]POST find Content-Length [21:27:01]Host: 172.17.62.67:8080 [21:27:01]Content-Length: 677 [21:27:01]Content-Type: application/json [21:27:01] [21:27:01]POST finish read [21:27:01]Found Content-Length = 677 [21:27:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:01]execute_script... [21:27: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)196249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:01]POST & json_proto [21:27:01]process_json_proto [21:27:01]json parsed OK: [21:27:01]protocol is kg_v1.0 [21:27:01]action value=close_receipt [21:27:01]process_action close_receipt [21:27:01]cmd_close_receipt [21:27:01]MH_GetDate [21:27:01]Write to MH i2c: F0 00 00 D5 51 15 [21:27:01]Write i2c OK [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: F0 [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: F0 05 00 [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: F0 05 00 D5 51 00 AC C8 F0 65 E3 [21:27:01]GetLastDocTimeStamp 1710278602 [21:27:01]current date 1710278828 [21:27:01]FM_GetShiftState [21:27:01]SAM_PROTO_GetShiftState [21:27:01]wFMCommunicate request_size=4 [21:27:01]MH_SAM_APDU [21:27:01]CAPDU: 80 13 01 00 [21:27:01]Write to MH i2c: E2 08 00 D6 51 80 13 01 00 00 00 00 00 A4 [21:27:01]Write i2c OK [21:27:01]MH_I2C_Read... [21:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:01]Read from MH i2c: E2 [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: E2 0E 00 [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: E2 0E 00 D6 51 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 18 [21:27:01]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:27:01]wFMCommunicate OK [21:27:01]SAM_PROTO_GetShiftState done [21:27:01]FM_GetShiftState done [21:27:01]opened in 1710201976 [21:27:01]opened+sec_in_day 1710288376 [21:27:01]quantity*price = 60006 [21:27:01]sum+1 = 60008 [21:27:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 203 12.03.2024 21:27 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95273 ФПД: 155056216347902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T212708&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95273&fm=155056216347902&tin=02508201610067®Number=0000000000090555&sum=60000 [21:27:02]StoreToDocumentArchive [21:27:02]shift 327 fd 95273 [21:27:02]save to /storage/0327/doc_00095273 [21:27:02]save last doc name /storage/0327/doc_00095273 to /storage/kkm_last_doc_name [21:27:02]save OK [21:27:02]Clear old archive folders... [21:27:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:27:02]tlvbuf is 01B54240 [21:27:02]SAM_PROTO_ClearQueue [21:27:02]wFMCommunicate request_size=4 [21:27:02]MH_SAM_APDU [21:27:02]CAPDU: 80 09 00 00 [21:27:02]Write to MH i2c: E2 08 00 E3 51 80 09 00 00 00 00 00 00 A6 [21:27:02]Write i2c OK [21:27:02]MH_I2C_Read... [21:27:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:02]Read from MH i2c: E2 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 03 00 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 03 00 E3 51 00 90 00 A8 [21:27:02]RAPDU: 90 00 [21:27:02]wFMCommunicate OK [21:27:02]SAM_PROTO_ClearQueue done [21:27:02]KKMCreateOFDPacket [21:27:02]OFDProtocolAddRootSTLVToBuf [21:27:02]FM_MakeSignedData [21:27:02]FM_MakeSignedData [21:27:02]SAM_PROTO_SignData [21:27:02]wFMCommunicate request_size=4 [21:27:02]MH_SAM_APDU [21:27:02]CAPDU: 80 0D 01 02 [21:27:02]Write to MH i2c: E2 08 00 E4 51 80 0D 01 02 00 00 00 00 AE [21:27:02]Write i2c OK [21:27:02]MH_I2C_Read... [21:27:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:02]Read from MH i2c: E2 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 03 00 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 03 00 E4 51 00 90 00 A9 [21:27:02]RAPDU: 90 00 [21:27:02]wFMCommunicate OK [21:27:02]wFMCommunicate request_size=255 [21:27:02]MH_SAM_APDU [21:27:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 AC C8 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 29 74 01 00 35 04 06 00 8D [21:27:02]Write to MH i2c: E2 02 01 E5 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 AC C8 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 29 74 01 00 35 04 06 00 8D 00 00 C4 [21:27:02]Write i2c OK [21:27:02]MH_I2C_Read... [21:27:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:02]Read from MH i2c: E2 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 03 00 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 03 00 E5 51 00 90 00 AA [21:27:02]RAPDU: 90 00 [21:27:02]wFMCommunicate OK [21:27:02]wFMCommunicate request_size=10 [21:27:02]MH_SAM_APDU [21:27:02]CAPDU: 80 0D 02 02 05 05 D6 B2 14 FE [21:27:02]Write to MH i2c: E2 0D 00 E6 51 80 0D 02 02 05 00 05 D6 B2 14 FE 00 00 5A [21:27:02]Write i2c OK [21:27:02]MH_I2C_Read... [21:27:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:02]Read from MH i2c: E2 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 03 00 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 03 00 E6 51 00 90 00 AB [21:27:02]RAPDU: 90 00 [21:27:02]wFMCommunicate OK [21:27:02]wFMCommunicate request_size=4 [21:27:02]MH_SAM_APDU [21:27:02]CAPDU: 80 0D 03 02 [21:27:02]Write to MH i2c: E2 08 00 E7 51 80 0D 03 02 00 00 00 00 B3 [21:27:02]Write i2c OK [21:27:02]MH_I2C_Read... [21:27:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:02]Read from MH i2c: E2 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 0B 00 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 0B 00 E7 51 00 EF 01 91 E1 41 43 3F 0E 90 00 E7 [21:27:02]RAPDU: EF 01 91 E1 41 43 3F 0E 90 00 [21:27:02]wFMCommunicate OK [21:27:02]SAM_PROTO_SignData done [21:27:02]FM_MakeSignedData done [21:27:02]CreateOFDProtocolMessage [21:27:02]wFMCommunicate request_size=4 [21:27:02]MH_SAM_APDU [21:27:02]CAPDU: 80 11 00 00 [21:27:02]Write to MH i2c: E2 08 00 E8 51 80 11 00 00 00 00 00 00 B3 [21:27:02]Write i2c OK [21:27:02]MH_I2C_Read... [21:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:02]Read from MH i2c: E2 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 17 00 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 17 00 E8 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 03 [21:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:27:02]wFMCommunicate OK [21:27:02]CreateOFDProtocolMessage done [21:27:02]OFDSenderStorePacket 95273 [21:27:02]StoreOFDPacket docnum=95273 [21:27:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B5 07 07 01 B9 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 AC C8 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 29 74 01 00 35 04 06 00 8D 05 D6 B2 14 FE EF 01 91 E1 41 43 3F 0E [21:27:02]CheckFolder [21:27:02]dirname=/storage/ofd_packets [21:27:02]CheckFolder done [21:27:02]ProducePacketName [21:27:02]name=ofd_packets/00095273 [21:27:02]NVStorageSaveData ofd_packets/00095273 [21:27:02]File name is /storage/ofd_packets/00095273 [21:27:02]Write 301 bytes [21:27:02]NVStorageSaveData done [21:27:02]OFDSenderStorePacket done [21:27:02]KKMCreateOFDPacket done [21:27:02]NVStorageSaveData kkm_last_timestamp [21:27:02]File name is /storage/kkm_last_timestamp [21:27:02]Write 4 bytes [21:27:02]NVStorageSaveData done [21:27:02]ExternCall_PrintAddStr [21:27:02]wPrintStart [21:27:02]Write to MH i2c: 01 00 00 E9 51 3A [21:27:02]Write i2c OK [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: 01 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: 01 07 00 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: 01 07 00 E9 51 00 80 00 00 00 FF 0F CF [21:27:02]RasterBufferAndPrint [21:27:02]line Счет N : (1)196249 [21:27:02]line ИНН: 02508201610067 [21:27:02]line Контрольно-Кассовый Чек [21:27:02]line ПРОДАЖА [21:27:02]line ТРК (МРК, ГНК) : 12 [21:27:02]line Товар: 2710124130 [21:27:02]line Аи-92-К-5 [21:27:02]line 9.540 * 62.90 [21:27:02]line = 600.07 [21:27:02]line НДС 12% НСП 1% [21:27:02]line > о реализуемом товаре [21:27:02]line ОКРУГЛЕНИЕ: -0.07 [21:27:02]line ИТОГО: 600.00 [21:27:02]line Внесено: 600.00 [21:27:02]line СДАЧА: 0.00 [21:27:02]line НСП 1% : 5.31 [21:27:02]line НДС 12% : 63.72 [21:27:02]line Наличными: 600.00 [21:27:02]line Безнал.: 0.00 [21:27:02]line Место: АЗС № 6 "Партнер Нефть" [21:27:02]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:27:02]line СНО: Общий режим [21:27:02]line Чек 203 12.03.2024 21:27 [21:27:02]line Смена: 327 ФФД: 1.0 [21:27:02]line ЗНМ: 0300000009 [21:27:02]line РНМ: 0000000000090555 [21:27:02]line Версия ККМ: 001 [21:27:02]line ФМ: 0000000000874811 [21:27:02]line ФД: 95273 [21:27:02]line ФПД: 155056216347902 [21:27:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T212708&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95273&fm=155056216347902&tin=02508201610067®Number=0000000000090555&sum=60000 [21:27:03]OFD Sender: Processing packet 95273 [packets to send 30, broken 29] [21:27:03]ProducePacketName [21:27:03]name=ofd_packets/00095273 [21:27:03]OFD Sender: To server: pG, [21:27:03]CommunicateWithHost lk.salyk.kg:30040 [21:27:03]ConnectInit lk.salyk.kg [21:27:03]written 0, free lines is 4095 [21:27:03]Connected sock=10 [21:27:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B5 07 07 01 B9 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 AC C8 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 29 74 01 00 35 04 06 00 8D 05 D6 B2 14 FE EF 01 91 E1 41 43 3F 0E [21:27:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 8A B6 47 00 41 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 29 74 01 00 F4 03 04 00 01 74 F0 65 B6 04 01 00 00 01 CC CC B5 A6 09 5C D6 [21:27:03]CommunicateWithHost err = 0 [21:27:03]CheckOFDResponse [21:27:03]1017 (14) - 77093643461234 [21:27:03]1041 (16) - 0000000000874811 [21:27:03]1040 (4) - 95273 [21:27:03]1012 (4) - 12.03.2024 15:25 [21:27:03]1206 (1) - 0 [21:27:03]OFD Sender: Remove packet 95273 [21:27:03]ProducePacketName [21:27:03]name=ofd_packets/00095273 [21:27:03]NVStorageDeleteData [21:27:03]Write to MH i2c: 01 00 00 14 52 66 [21:27:03]Write i2c OK [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: 01 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: 01 07 00 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: 01 07 00 14 52 00 80 00 00 00 49 0D 43 [21:27:03]RasterBufferAndPrint [21:27:03]line [21:27:03]line [21:27:03]line [21:27:03]line [21:27:03]line [21:27:03]written 0, free lines is 3409 [21:27:03]process_action close_receipt done [21:27:03]requested_data is exist [21:27:03]produce_requested_data [21:27:03]requested_item fm.sn is exist - process it [21:27:03]wFMCommunicate request_size=4 [21:27:03]MH_SAM_APDU [21:27:03]CAPDU: 80 11 00 00 [21:27:03]Write to MH i2c: E2 08 00 1B 52 80 11 00 00 00 00 00 00 E7 [21:27:03]Write i2c OK [21:27:03]MH_I2C_Read... [21:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:03]Read from MH i2c: E2 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: E2 17 00 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: E2 17 00 1B 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 37 [21:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:27:03]wFMCommunicate OK [21:27:03]requested_item fd.num is exist - process it [21:27:03]SAM_PROTO_GetFieldsCounters [21:27:03]wFMCommunicate request_size=4 [21:27:03]MH_SAM_APDU [21:27:03]CAPDU: 80 13 00 00 [21:27:03]Write to MH i2c: E2 08 00 1C 52 80 13 00 00 00 00 00 00 EA [21:27:03]Write i2c OK [21:27:03]MH_I2C_Read... [21:27:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:03]Read from MH i2c: E2 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: E2 62 00 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: E2 62 00 1C 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 29 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [21:27:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 29 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:03]wFMCommunicate OK [21:27:03]SAM_PROTO_GetFieldsCounters done [21:27:03]requested_item shift.num is exist - process it [21:27:03]requested_item shift.opened is exist - process it [21:27:03]req_shift_opened [21:27:03]FM_GetShiftState [21:27:03]SAM_PROTO_GetShiftState [21:27:03]wFMCommunicate request_size=4 [21:27:03]MH_SAM_APDU [21:27:03]CAPDU: 80 13 01 00 [21:27:03]Write to MH i2c: E2 08 00 1D 52 80 13 01 00 00 00 00 00 EC [21:27:03]Write i2c OK [21:27:03]MH_I2C_Read... [21:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:03]OFD Sender: No OFD packet to send [21:27:03]Read from MH i2c: E2 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: E2 0E 00 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: E2 0E 00 1D 52 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 60 [21:27:03]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:27:03]wFMCommunicate OK [21:27:03]SAM_PROTO_GetShiftState done [21:27:03]FM_GetShiftState done [21:27:03]req_shift_opened done [21:27:03]requested_item shift.open_date is exist - process it [21:27:03]req_shift_open_date [21:27:03]req_shift_open_date done [21:27:03]produce_requested_data done [21:27:03]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95273,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [21:27:03]process_action_free close_receipt [21:27:03]json_value_free [21:27:03]json_value_free done [21:27:03]process_json_proto returns [21:27:03]Send response to host [21:27:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95273,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [21:27:03]free response buf [21:27:03]execute_script done [21:27:03]execute_script returns [21:27:03]free content buf [21:27:03]Sock 9.Close socket [21:27:03]Sock 9.Thread stoped [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:44]accept exits with 8 [21:31:44]New connection [21:31:44]New thread 3066813796 created [21:31:44]Thread 3066957156 joined [21:31:44]Waiting for new connection... [21:31:44] Sock 8.Parse request [21:31:44]Sock 8.Check first char [21:31:44]Sock 8.First char is OK [21:31:44]request: POST /json_proto HTTP/1.0 [21:31:44]Method: POST [21:31:44]URL: /json_proto [21:31:44]Method is POST - this is cgi request [21:31:44]url: /json_proto [21:31:44]query_string will be loaded in cgi processing [21:31:44]execute_cgi json_proto POST (null) [21:31:44]execute_cgi path=json_proto method=POST [21:31:44]POST find Content-Length [21:31:44]Host: 172.17.62.67:8080 [21:31:44]Content-Length: 1026 [21:31:44]Content-Type: application/json [21:31:44] [21:31:44]POST finish read [21:31:44]Found Content-Length = 1026 [21:31:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11536", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 279.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:44]execute_script... [21:31: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 : (3)11536", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 279.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:44]POST & json_proto [21:31:44]process_json_proto [21:31:44]json parsed OK: [21:31:44]protocol is kg_v1.0 [21:31:44]action value=close_receipt [21:31:44]process_action close_receipt [21:31:44]cmd_close_receipt [21:31:44]MH_GetDate [21:31:44]Write to MH i2c: F0 00 00 1E 52 5F [21:31:44]Write i2c OK [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: F0 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: F0 05 00 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: F0 05 00 1E 52 00 C7 C9 F0 65 49 [21:31:44]GetLastDocTimeStamp 1710278828 [21:31:44]current date 1710279111 [21:31:44]FM_GetShiftState [21:31:44]SAM_PROTO_GetShiftState [21:31:44]wFMCommunicate request_size=4 [21:31:44]MH_SAM_APDU [21:31:44]CAPDU: 80 13 01 00 [21:31:44]Write to MH i2c: E2 08 00 1F 52 80 13 01 00 00 00 00 00 EE [21:31:44]Write i2c OK [21:31:44]MH_I2C_Read... [21:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:44]Read from MH i2c: E2 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 0E 00 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 0E 00 1F 52 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 62 [21:31:44]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:31:44]wFMCommunicate OK [21:31:44]SAM_PROTO_GetShiftState done [21:31:44]FM_GetShiftState done [21:31:44]opened in 1710201976 [21:31:44]opened+sec_in_day 1710288376 [21:31:44]quantity*price = 13500 [21:31:44]sum+1 = 13501 [21:31:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48742245 Сигареты Parliament Silver Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 279.00 НСП 1% : 2.46 НДС 12% : 29.63 Наличными: 0.00 Безнал.: 279.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 204 12.03.2024 21:31 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95274 ФПД: 137315339768229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T213151&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95274&fm=137315339768229&tin=02508201610067®Number=0000000000090555&sum=27900 0 [21:31:45]StoreToDocumentArchive [21:31:45]shift 327 fd 95274 [21:31:45]save to /storage/0327/doc_00095274 [21:31:45]save last doc name /storage/0327/doc_00095274 to /storage/kkm_last_doc_name [21:31:45]save OK [21:31:45]Clear old archive folders... [21:31:45]ProcessDocumentItem done err = 0, tmpTLVsize=379 [21:31:45]tlvbuf is 01B3CE30 [21:31:45]SAM_PROTO_ClearQueue [21:31:45]wFMCommunicate request_size=4 [21:31:45]MH_SAM_APDU [21:31:45]CAPDU: 80 09 00 00 [21:31:45]Write to MH i2c: E2 08 00 2C 52 80 09 00 00 00 00 00 00 F0 [21:31:45]Write i2c OK [21:31:45]MH_I2C_Read... [21:31:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:45]Read from MH i2c: E2 [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: E2 03 00 [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: E2 03 00 2C 52 00 90 00 F2 [21:31:45]RAPDU: 90 00 [21:31:45]wFMCommunicate OK [21:31:45]SAM_PROTO_ClearQueue done [21:31:45]KKMCreateOFDPacket [21:31:45]OFDProtocolAddRootSTLVToBuf [21:31:45]FM_MakeSignedData [21:31:45]FM_MakeSignedData [21:31:45]SAM_PROTO_SignData [21:31:45]wFMCommunicate request_size=4 [21:31:45]MH_SAM_APDU [21:31:45]CAPDU: 80 0D 01 02 [21:31:45]Write to MH i2c: E2 08 00 2D 52 80 0D 01 02 00 00 00 00 F8 [21:31:45]Write i2c OK [21:31:45]MH_I2C_Read... [21:31:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:45]Read from MH i2c: E2 [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: E2 03 00 [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: E2 03 00 2D 52 00 90 00 F3 [21:31:45]RAPDU: 90 00 [21:31:45]wFMCommunicate OK [21:31:45]wFMCommunicate request_size=255 [21:31:45]MH_SAM_APDU [21:31:45]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 [21:31:45]Write to MH i2c: E2 02 01 2E 52 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 00 70 [21:31:45]Write i2c OK [21:31:45]MH_I2C_Read... [21:31:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:45]Read from MH i2c: E2 [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: E2 03 00 [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: E2 03 00 2E 52 00 90 00 F4 [21:31:45]RAPDU: 90 00 [21:31:45]wFMCommunicate OK [21:31:45]wFMCommunicate request_size=138 [21:31:45]MH_SAM_APDU [21:31:45]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 C7 C9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2A 74 01 00 35 04 06 00 7C E3 38 0C 91 A5 [21:31:45]Write to MH i2c: E2 8D 00 2F 52 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 C7 C9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2A 74 01 00 35 04 06 00 7C E3 38 0C 91 A5 00 00 A5 [21:31:45]Write i2c OK [21:31:45]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 [21:31:46]MH_I2C_Read... [21:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:46]Read from MH i2c: E2 03 00 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 03 00 2F 52 00 90 00 F5 [21:31:46]RAPDU: 90 00 [21:31:46]wFMCommunicate OK [21:31:46]wFMCommunicate request_size=4 [21:31:46]MH_SAM_APDU [21:31:46]CAPDU: 80 0D 03 02 [21:31:46]Write to MH i2c: E2 08 00 30 52 80 0D 03 02 00 00 00 00 FD [21:31:46]Write i2c OK [21:31:46]MH_I2C_Read... [21:31:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:46]Read from MH i2c: E2 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 0B 00 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 0B 00 30 52 00 2D AA AE 10 B6 8A D5 5A 90 00 02 [21:31:46]RAPDU: 2D AA AE 10 B6 8A D5 5A 90 00 [21:31:46]wFMCommunicate OK [21:31:46]SAM_PROTO_SignData done [21:31:46]FM_MakeSignedData done [21:31:46]CreateOFDProtocolMessage [21:31:46]wFMCommunicate request_size=4 [21:31:46]MH_SAM_APDU [21:31:46]CAPDU: 80 11 00 00 [21:31:46]Write to MH i2c: E2 08 00 31 52 80 11 00 00 00 00 00 00 FD [21:31:46]Write i2c OK [21:31:46]MH_I2C_Read... [21:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:46]Read from MH i2c: E2 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 17 00 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 17 00 31 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4D [21:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:31:46]wFMCommunicate OK [21:31:46]CreateOFDProtocolMessage done [21:31:46]OFDSenderStorePacket 95274 [21:31:46]StoreOFDPacket docnum=95274 [21:31:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 8F 01 00 00 67 00 87 01 41 53 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 C7 C9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2A 74 01 00 35 04 06 00 7C E3 38 0C 91 A5 2D AA AE 10 B6 8A D5 5A [21:31:46]CheckFolder [21:31:46]dirname=/storage/ofd_packets [21:31:46]CheckFolder done [21:31:46]ProducePacketName [21:31:46]name=ofd_packets/00095274 [21:31:46]NVStorageSaveData ofd_packets/00095274 [21:31:46]File name is /storage/ofd_packets/00095274 [21:31:46]Write 429 bytes [21:31:46]NVStorageSaveData done [21:31:46]OFDSenderStorePacket done [21:31:46]KKMCreateOFDPacket done [21:31:46]NVStorageSaveData kkm_last_timestamp [21:31:46]File name is /storage/kkm_last_timestamp [21:31:46]Write 4 bytes [21:31:46]NVStorageSaveData done [21:31:46]ExternCall_PrintAddStr [21:31:46]wPrintStart [21:31:46]Write to MH i2c: 01 00 00 32 52 84 [21:31:46]Write i2c OK [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: 01 [21:31:46]MH_I2C_Read... [21:31:46]OFD Sender: Processing packet 95274 [packets to send 30, broken 29] [21:31:46]Read from MH i2c: ProducePacketName [21:31:46]01 name=ofd_packets/00095274 [21:31:46]07 00 [21:31:46]MH_I2C_Read... [21:31:46]OFD Sender: To server: pG, [21:31:46]CommunicateWithHost lk.salyk.kg:30040 [21:31:46]ConnectInit lk.salyk.kg [21:31:46]Read from MH i2c: 01 07 00 32 52 00 80 00 00 00 FF 0F 19 [21:31:46]RasterBufferAndPrint [21:31:46]line Счет N : (3)11536 [21:31:46]line ИНН: 02508201610067 [21:31:46]line Контрольно-Кассовый Чек [21:31:46]line ПРОДАЖА [21:31:46]line Товар: 48747059 [21:31:46]line Сигареты Winston Legend Blue [21:31:46]line 1.000 * 135.00 [21:31:46]line = 135.00 [21:31:46]line НДС 12% НСП 1% [21:31:46]line > о реализуемом товаре [21:31:46]line Товар: 48742245 [21:31:46]line Сигареты Parliament Silver Blue [21:31:46]line 1.000 * 144.00 [21:31:46]line = 144.00 [21:31:46]line НДС 12% НСП 1% [21:31:46]line > о реализуемом товаре [21:31:46]line ИТОГО: 279.00 [21:31:46]line НСП 1% : 2.46 [21:31:46]line НДС 12% : 29.63 [21:31:46]line Наличными: 0.00 [21:31:46]line Безнал.: 279.00 [21:31:46]line Место: АЗС № 6 "Партнер Нефть" [21:31:46]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:31:46]line СНО: Общий режим [21:31:46]line Чек 204 12.03.2024 21:31 [21:31:46]line Смена: 327 ФФД: 1.0 [21:31:46]line ЗНМ: 0300000009 [21:31:46]line РНМ: 0000000000090555 [21:31:46]line Версия ККМ: 001 [21:31:46]line Платежная система: О! деньги [21:31:46]line ФМ: 0000000000874811 [21:31:46]line ФД: 95274 [21:31:46]line ФПД: 137315339768229 [21:31:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T213151&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95274&fm=137315339768229&tin=02508201610067®Number=0000000000090555&sum=27900 [21:31:46]line 0 [21:31:46]written 0, free lines is 4095 [21:31:46]Connected sock=10 [21:31:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 8F 01 00 00 67 00 87 01 41 53 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 C7 C9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2A 74 01 00 35 04 06 00 7C E3 38 0C 91 A5 2D AA AE 10 B6 8A D5 5A [21:31:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F4 73 47 00 D2 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2A 74 01 00 F4 03 04 00 1C 75 F0 65 B6 04 01 00 00 33 03 F7 3A E0 1E 3E 15 [21:31:46]CommunicateWithHost err = 0 [21:31:46]CheckOFDResponse [21:31:46]1017 (14) - 77093643461234 [21:31:46]1041 (16) - 0000000000874811 [21:31:46]1040 (4) - 95274 [21:31:46]1012 (4) - 12.03.2024 15:30 [21:31:46]1206 (1) - 0 [21:31:46]OFD Sender: Remove packet 95274 [21:31:46]ProducePacketName [21:31:46]name=ofd_packets/00095274 [21:31:46]NVStorageDeleteData [21:31:47]Write to MH i2c: 01 00 00 64 52 B6 [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: 01 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: 01 07 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: 01 07 00 64 52 00 80 00 00 00 EA 0C 33 [21:31:47]RasterBufferAndPrint [21:31:47]line [21:31:47]line [21:31:47]line [21:31:47]line [21:31:47]line [21:31:47]written 0, free lines is 3314 [21:31:47]process_action close_receipt done [21:31:47]requested_data is exist [21:31:47]produce_requested_data [21:31:47]requested_item fm.sn is exist - process it [21:31:47]wFMCommunicate request_size=4 [21:31:47]MH_SAM_APDU [21:31:47]CAPDU: 80 11 00 00 [21:31:47]Write to MH i2c: E2 08 00 6B 52 80 11 00 00 00 00 00 00 37 [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:47]Read from MH i2c: E2 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 17 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 17 00 6B 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 87 [21:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:31:47]wFMCommunicate OK [21:31:47]requested_item fd.num is exist - process it [21:31:47]SAM_PROTO_GetFieldsCounters [21:31:47]wFMCommunicate request_size=4 [21:31:47]MH_SAM_APDU [21:31:47]CAPDU: 80 13 00 00 [21:31:47]Write to MH i2c: E2 08 00 6C 52 80 13 00 00 00 00 00 00 3A [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]OFD Sender: No OFD packet to send [21:31:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:47]Read from MH i2c: E2 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 62 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 62 00 6C 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2A 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [21:31:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2A 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:47]wFMCommunicate OK [21:31:47]SAM_PROTO_GetFieldsCounters done [21:31:47]requested_item shift.num is exist - process it [21:31:47]requested_item shift.opened is exist - process it [21:31:47]req_shift_opened [21:31:47]FM_GetShiftState [21:31:47]SAM_PROTO_GetShiftState [21:31:47]wFMCommunicate request_size=4 [21:31:47]MH_SAM_APDU [21:31:47]CAPDU: 80 13 01 00 [21:31:47]Write to MH i2c: E2 08 00 6D 52 80 13 01 00 00 00 00 00 3C [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:47]Read from MH i2c: E2 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 0E 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 0E 00 6D 52 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B0 [21:31:47]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:31:47]wFMCommunicate OK [21:31:47]SAM_PROTO_GetShiftState done [21:31:47]FM_GetShiftState done [21:31:47]req_shift_opened done [21:31:47]requested_item shift.open_date is exist - process it [21:31:47]req_shift_open_date [21:31:47]req_shift_open_date done [21:31:47]produce_requested_data done [21:31:47]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95274,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [21:31:47]process_action_free close_receipt [21:31:47]json_value_free [21:31:47]json_value_free done [21:31:47]process_json_proto returns [21:31:47]Send response to host [21:31:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95274,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [21:31:47]free response buf [21:31:47]execute_script done [21:31:47]execute_script returns [21:31:47]free content buf [21:31:47]Sock 8.Close socket [21:31:47]Sock 8.Thread stoped [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:32:59]accept exits with 9 [21:32:59]New connection [21:32:59]New thread 3066957156 created [21:32:59]Thread 3066813796 joined [21:32:59]Waiting for new connection... [21:32:59] Sock 9.Parse request [21:32:59]Sock 9.Check first char [21:32:59]Sock 9.First char is OK [21:32:59]request: POST /json_proto HTTP/1.0 [21:32:59]Method: POST [21:32:59]URL: /json_proto [21:32:59]Method is POST - this is cgi request [21:32:59]url: /json_proto [21:32:59]query_string will be loaded in cgi processing [21:32:59]execute_cgi json_proto POST (null) [21:32:59]execute_cgi path=json_proto method=POST [21:32:59]POST find Content-Length [21:32:59]Host: 172.17.62.67:8080 [21:32:59]Content-Length: 1201 [21:32:59]Content-Type: application/json [21:32:59] [21:32:59]POST finish read [21:32:59]Found Content-Length = 1201 [21:32:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196250\u000A12.03.2024 21:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A3583504\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:59]execute_script... [21:32:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)196250\u000A12.03.2024 21:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A3583504\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:59]POST & json_proto [21:32:59]process_json_proto [21:32:59]json parsed OK: [21:32:59]protocol is kg_v1.0 [21:32:59]action value=print_text [21:32:59]process_action print_text [21:32:59]cmd_print_text [21:32:59]ExternCall_PrintAddStr [21:32:59]wPrintStart [21:32:59]Write to MH i2c: 01 00 00 6E 52 C0 [21:32:59]Write i2c OK [21:32:59]MH_I2C_Read... [21:32:59]Read from MH i2c: 01 [21:32:59]MH_I2C_Read... [21:32:59]Read from MH i2c: 01 07 00 [21:32:59]MH_I2C_Read... [21:32:59]Read from MH i2c: 01 07 00 6E 52 00 80 00 00 00 FF 0F 55 [21:32:59]RasterBufferAndPrint [21:32:59]line *****ТОВАРНЫЙ ЧЕК***** [21:32:59]line АЗС 6 [21:32:59]line Партнер нефть [21:32:59]line 02508201610067 [21:32:59]line Кассир : Мыктыбекова И. [21:32:59]line Счет N : (1)196250 [21:32:59]line 12.03.2024 21:27 [21:32:59]line ПРОДАЖА [21:32:59]line ТРК (МРК, ГНК): 32 [21:32:59]line Вид ГСМ : 2710124130 [21:32:59]line Аи-92-К-5 [21:32:59]line 20.000 x 62.90 [21:32:59]line ИТОГ: 1258.00 [21:32:59]line Тип оплаты: Талоны: Партнер нефть [21:32:59]line 3583504 [21:32:59]line ______________________ [21:32:59]line (подпись) [21:32:59]written 0, free lines is 4095 [21:32:59]Write to MH i2c: 01 00 00 82 52 D4 [21:32:59]Write i2c OK [21:32:59]MH_I2C_Read... [21:32:59]Read from MH i2c: 01 [21:32:59]MH_I2C_Read... [21:32:59]Read from MH i2c: 01 07 00 [21:32:59]MH_I2C_Read... [21:32:59]Read from MH i2c: 01 07 00 82 52 00 80 00 00 00 6B 0E D4 [21:32:59]RasterBufferAndPrint [21:32:59]line [21:32:59]line [21:32:59]line [21:32:59]line [21:32:59]line [21:32:59]written 0, free lines is 3694 [21:32:59]process_action print_text done [21:32:59]requested_data is exist [21:32:59]produce_requested_data [21:32:59]requested_item fm.sn is exist - process it [21:32:59]wFMCommunicate request_size=4 [21:32:59]MH_SAM_APDU [21:32:59]CAPDU: 80 11 00 00 [21:32:59]Write to MH i2c: E2 08 00 89 52 80 11 00 00 00 00 00 00 55 [21:32:59]Write i2c OK [21:32:59]MH_I2C_Read... [21:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:00]Read from MH i2c: E2 [21:33:00]MH_I2C_Read... [21:33:00]Read from MH i2c: E2 17 00 [21:33:00]MH_I2C_Read... [21:33:00]Read from MH i2c: E2 17 00 89 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A5 [21:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:33:00]wFMCommunicate OK [21:33:00]requested_item fd.num is exist - process it [21:33:00]SAM_PROTO_GetFieldsCounters [21:33:00]wFMCommunicate request_size=4 [21:33:00]MH_SAM_APDU [21:33:00]CAPDU: 80 13 00 00 [21:33:00]Write to MH i2c: E2 08 00 8A 52 80 13 00 00 00 00 00 00 58 [21:33:00]Write i2c OK [21:33:00]MH_I2C_Read... [21:33:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:33:00]Read from MH i2c: E2 [21:33:00]MH_I2C_Read... [21:33:00]Read from MH i2c: E2 62 00 [21:33:00]MH_I2C_Read... [21:33:00]Read from MH i2c: E2 62 00 8A 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2A 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [21:33:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2A 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:33:00]wFMCommunicate OK [21:33:00]SAM_PROTO_GetFieldsCounters done [21:33:00]requested_item shift.num is exist - process it [21:33:00]requested_item shift.opened is exist - process it [21:33:00]req_shift_opened [21:33:00]FM_GetShiftState [21:33:00]SAM_PROTO_GetShiftState [21:33:00]wFMCommunicate request_size=4 [21:33:00]MH_SAM_APDU [21:33:00]CAPDU: 80 13 01 00 [21:33:00]Write to MH i2c: E2 08 00 8B 52 80 13 01 00 00 00 00 00 5A [21:33:00]Write i2c OK [21:33:00]MH_I2C_Read... [21:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:00]Read from MH i2c: E2 [21:33:00]MH_I2C_Read... [21:33:00]Read from MH i2c: E2 0E 00 [21:33:00]MH_I2C_Read... [21:33:00]Read from MH i2c: E2 0E 00 8B 52 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CE [21:33:00]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:33:00]wFMCommunicate OK [21:33:00]SAM_PROTO_GetShiftState done [21:33:00]FM_GetShiftState done [21:33:00]req_shift_opened done [21:33:00]requested_item shift.open_date is exist - process it [21:33:00]req_shift_open_date [21:33:00]req_shift_open_date done [21:33:00]produce_requested_data done [21:33:00]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95274,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [21:33:00]process_action_free print_text [21:33:00]json_value_free [21:33:00]json_value_free done [21:33:00]process_json_proto returns [21:33:00]Send response to host [21:33:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95274,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [21:33:00]free response buf [21:33:00]execute_script done [21:33:00]execute_script returns [21:33:00]free content buf [21:33:00]Sock 9.Close socket [21:33:00]Sock 9.Thread stoped [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:09]accept exits with 8 [21:34:09]New connection [21:34:09]New thread 3066813796 created [21:34:09]Thread 3066957156 joined [21:34:09]Waiting for new connection... [21:34:09] Sock 8.Parse request [21:34:09]Sock 8.Check first char [21:34:09]Sock 8.First char is OK [21:34:09]request: POST /json_proto HTTP/1.0 [21:34:09]Method: POST [21:34:09]URL: /json_proto [21:34:09]Method is POST - this is cgi request [21:34:09]url: /json_proto [21:34:09]query_string will be loaded in cgi processing [21:34:09]execute_cgi json_proto POST (null) [21:34:09]execute_cgi path=json_proto method=POST [21:34:09]POST find Content-Length [21:34:09]Host: 172.17.62.67:8080 [21:34:09]Content-Length: 682 [21:34:09]Content-Type: application/json [21:34:09] [21:34:09]POST finish read [21:34:09]Found Content-Length = 682 [21:34:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:09]execute_script... [21:34: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)196251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:09]POST & json_proto [21:34:09]process_json_proto [21:34:09]json parsed OK: [21:34:09]protocol is kg_v1.0 [21:34:09]action value=close_receipt [21:34:09]process_action close_receipt [21:34:09]cmd_close_receipt [21:34:09]MH_GetDate [21:34:09]Write to MH i2c: F0 00 00 8C 52 CD [21:34:09]Write i2c OK [21:34:09]MH_I2C_Read... [21:34:09]Read from MH i2c: F0 [21:34:09]MH_I2C_Read... [21:34:09]Read from MH i2c: F0 05 00 [21:34:09]MH_I2C_Read... [21:34:09]Read from MH i2c: F0 05 00 8C 52 00 58 CA F0 65 49 [21:34:09]GetLastDocTimeStamp 1710279111 [21:34:09]current date 1710279256 [21:34:09]FM_GetShiftState [21:34:09]SAM_PROTO_GetShiftState [21:34:09]wFMCommunicate request_size=4 [21:34:09]MH_SAM_APDU [21:34:09]CAPDU: 80 13 01 00 [21:34:09]Write to MH i2c: E2 08 00 8D 52 80 13 01 00 00 00 00 00 5C [21:34:09]Write i2c OK [21:34:09]MH_I2C_Read... [21:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:09]Read from MH i2c: E2 [21:34:09]MH_I2C_Read... [21:34:09]Read from MH i2c: E2 0E 00 [21:34:09]MH_I2C_Read... [21:34:09]Read from MH i2c: E2 0E 00 8D 52 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D0 [21:34:09]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:34:09]wFMCommunicate OK [21:34:09]SAM_PROTO_GetShiftState done [21:34:09]FM_GetShiftState done [21:34:09]opened in 1710201976 [21:34:09]opened+sec_in_day 1710288376 [21:34:09]quantity*price = 100010 [21:34:09]sum+1 = 100012 [21:34:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 205 12.03.2024 21:34 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95275 ФПД: 58594494265267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T213416&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95275&fm=58594494265267&tin=02508201610067®Number=0000000000090555&sum=100000 [21:34:10]StoreToDocumentArchive [21:34:10]shift 327 fd 95275 [21:34:10]save to /storage/0327/doc_00095275 [21:34:10]save last doc name /storage/0327/doc_00095275 to /storage/kkm_last_doc_name [21:34:10]save OK [21:34:10]Clear old archive folders... [21:34:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:34:10]tlvbuf is 01B61770 [21:34:10]SAM_PROTO_ClearQueue [21:34:10]wFMCommunicate request_size=4 [21:34:10]MH_SAM_APDU [21:34:10]CAPDU: 80 09 00 00 [21:34:10]Write to MH i2c: E2 08 00 9A 52 80 09 00 00 00 00 00 00 5E [21:34:10]Write i2c OK [21:34:10]MH_I2C_Read... [21:34:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:34:10]Read from MH i2c: E2 [21:34:10]MH_I2C_Read... [21:34:10]Read from MH i2c: E2 03 00 [21:34:10]MH_I2C_Read... [21:34:10]Read from MH i2c: E2 03 00 9A 52 00 90 00 60 [21:34:10]RAPDU: 90 00 [21:34:10]wFMCommunicate OK [21:34:10]SAM_PROTO_ClearQueue done [21:34:10]KKMCreateOFDPacket [21:34:10]OFDProtocolAddRootSTLVToBuf [21:34:10]FM_MakeSignedData [21:34:10]FM_MakeSignedData [21:34:10]SAM_PROTO_SignData [21:34:10]wFMCommunicate request_size=4 [21:34:10]MH_SAM_APDU [21:34:10]CAPDU: 80 0D 01 02 [21:34:10]Write to MH i2c: E2 08 00 9B 52 80 0D 01 02 00 00 00 00 66 [21:34:10]Write i2c OK [21:34:10]MH_I2C_Read... [21:34:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:34:10]Read from MH i2c: E2 [21:34:10]MH_I2C_Read... [21:34:10]Read from MH i2c: E2 03 00 [21:34:10]MH_I2C_Read... [21:34:10]Read from MH i2c: E2 03 00 9B 52 00 90 00 61 [21:34:10]RAPDU: 90 00 [21:34:10]wFMCommunicate OK [21:34:10]wFMCommunicate request_size=255 [21:34:10]MH_SAM_APDU [21:34: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 58 CA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2B 74 01 00 35 04 06 00 35 [21:34:10]Write to MH i2c: E2 02 01 9C 52 80 0D 02 02 FA 00 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 58 CA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2B 74 01 00 35 04 06 00 35 00 00 1E [21:34:10]Write i2c OK [21:34:10]MH_I2C_Read... [21:34:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:11]Read from MH i2c: E2 [21:34:11]MH_I2C_Read... [21:34:11]Read from MH i2c: E2 03 00 [21:34:11]MH_I2C_Read... [21:34:11]Read from MH i2c: E2 03 00 9C 52 00 90 00 62 [21:34:11]RAPDU: 90 00 [21:34:11]wFMCommunicate OK [21:34:11]wFMCommunicate request_size=10 [21:34:11]MH_SAM_APDU [21:34:11]CAPDU: 80 0D 02 02 05 4A 98 04 37 B3 [21:34:11]Write to MH i2c: E2 0D 00 9D 52 80 0D 02 02 05 00 4A 98 04 37 B3 00 00 43 [21:34:11]Write i2c OK [21:34:11]MH_I2C_Read... [21:34:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:11]Read from MH i2c: E2 [21:34:11]MH_I2C_Read... [21:34:11]Read from MH i2c: E2 03 00 [21:34:11]MH_I2C_Read... [21:34:11]Read from MH i2c: E2 03 00 9D 52 00 90 00 63 [21:34:11]RAPDU: 90 00 [21:34:11]wFMCommunicate OK [21:34:11]wFMCommunicate request_size=4 [21:34:11]MH_SAM_APDU [21:34:11]CAPDU: 80 0D 03 02 [21:34:11]Write to MH i2c: E2 08 00 9E 52 80 0D 03 02 00 00 00 00 6B [21:34:11]Write i2c OK [21:34:11]MH_I2C_Read... [21:34:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:34:11]Read from MH i2c: E2 [21:34:11]MH_I2C_Read... [21:34:11]Read from MH i2c: E2 0B 00 [21:34:11]MH_I2C_Read... [21:34:11]Read from MH i2c: E2 0B 00 9E 52 00 30 B2 6A A6 74 27 14 AC 90 00 B9 [21:34:11]RAPDU: 30 B2 6A A6 74 27 14 AC 90 00 [21:34:11]wFMCommunicate OK [21:34:11]SAM_PROTO_SignData done [21:34:11]FM_MakeSignedData done [21:34:11]CreateOFDProtocolMessage [21:34:11]wFMCommunicate request_size=4 [21:34:11]MH_SAM_APDU [21:34:11]CAPDU: 80 11 00 00 [21:34:11]Write to MH i2c: E2 08 00 9F 52 80 11 00 00 00 00 00 00 6B [21:34:11]Write i2c OK [21:34:11]MH_I2C_Read... [21:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:11]Read from MH i2c: E2 [21:34:11]MH_I2C_Read... [21:34:11]Read from MH i2c: E2 17 00 [21:34:11]MH_I2C_Read... [21:34:11]Read from MH i2c: E2 17 00 9F 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BB [21:34:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:34:11]wFMCommunicate OK [21:34:11]CreateOFDProtocolMessage done [21:34:11]OFDSenderStorePacket 95275 [21:34:11]StoreOFDPacket docnum=95275 [21:34:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C5 3C 07 01 BF B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 58 CA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2B 74 01 00 35 04 06 00 35 4A 98 04 37 B3 30 B2 6A A6 74 27 14 AC [21:34:11]CheckFolder [21:34:11]dirname=/storage/ofd_packets [21:34:11]CheckFolder done [21:34:11]ProducePacketName [21:34:11]name=ofd_packets/00095275 [21:34:11]NVStorageSaveData ofd_packets/00095275 [21:34:11]File name is /storage/ofd_packets/00095275 [21:34:11]Write 301 bytes [21:34:11]NVStorageSaveData done [21:34:11]OFDSenderStorePacket done [21:34:11]KKMCreateOFDPacket done [21:34:11]NVStorageSaveData kkm_last_timestamp [21:34:11]File name is /storage/kkm_last_timestamp [21:34:11]Write 4 bytes [21:34:11]NVStorageSaveData done [21:34:11]ExternCall_PrintAddStr [21:34:11]wPrintStart [21:34:11]Write to MH i2c: 01 00 00 A0 52 F2 [21:34:11]Write i2c OK [21:34:11]MH_I2C_Read... [21:34:11]Read from MH i2c: 01 [21:34:11]MH_I2C_Read... [21:34:11]Read from MH i2c: 01 07 00 [21:34:11]MH_I2C_Read... [21:34:11]Read from MH i2c: 01 07 00 A0 52 00 80 00 00 00 FF 0F 87 [21:34:11]RasterBufferAndPrint [21:34:11]line Счет N : (1)196251 [21:34:11]line ИНН: 02508201610067 [21:34:11]line Контрольно-Кассовый Чек [21:34:11]line ПРОДАЖА [21:34:11]line ТРК (МРК, ГНК) : 41 [21:34:11]line Товар: 2710124500 [21:34:11]line Аи-95-К-5 [21:34:11]line 14.390 * 69.50 [21:34:11]line = 1000.11 [21:34:11]line НДС 12% НСП 1% [21:34:11]line > о реализуемом товаре [21:34:11]line ОКРУГЛЕНИЕ: -0.11 [21:34:11]line ИТОГО: 1000.00 [21:34:11]line Внесено: 1000.00 [21:34:11]line СДАЧА: 0.00 [21:34:11]line НСП 1% : 8.85 [21:34:11]line НДС 12% : 106.21 [21:34:11]line Наличными: 1000.00 [21:34:11]line Безнал.: 0.00 [21:34:11]line Место: АЗС № 6 "Партнер Нефть" [21:34:11]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:34:11]line СНО: Общий режим [21:34:11]line Чек 205 12.03.2024 21:34 [21:34:11]line Смена: 327 ФФД: 1.0 [21:34:11]line ЗНМ: 0300000009 [21:34:11]line РНМ: 0000000000090555 [21:34:11]line Версия ККМ: 001 [21:34:11]line ФМ: 0000000000874811 [21:34:11]line ФД: 95275 [21:34:11]line ФПД: 58594494265267 [21:34:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T213416&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95275&fm=58594494265267&tin=02508201610067®Number=0000000000090555&sum=100000 [21:34:11]OFD Sender: Processing packet 95275 [packets to send 30, broken 29] [21:34:11]ProducePacketName [21:34:11]name=ofd_packets/00095275 [21:34:11]OFD Sender: To server: pG, [21:34:11]CommunicateWithHost lk.salyk.kg:30040 [21:34:11]ConnectInit lk.salyk.kg [21:34:11]written 0, free lines is 4095 [21:34:11]Connected sock=9 [21:34:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C5 3C 07 01 BF B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 58 CA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2B 74 01 00 35 04 06 00 35 4A 98 04 37 B3 30 B2 6A A6 74 27 14 AC [21:34:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 25 0B 47 00 D3 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2B 74 01 00 F4 03 04 00 AD 75 F0 65 B6 04 01 00 00 10 CB BF 35 67 1B A0 25 [21:34:11]CommunicateWithHost err = 0 [21:34:11]CheckOFDResponse [21:34:11]1017 (14) - 77093643461234 [21:34:11]1041 (16) - 0000000000874811 [21:34:11]1040 (4) - 95275 [21:34:11]1012 (4) - 12.03.2024 15:33 [21:34:11]1206 (1) - 0 [21:34:11]OFD Sender: Remove packet 95275 [21:34:11]ProducePacketName [21:34:11]name=ofd_packets/00095275 [21:34:11]NVStorageDeleteData [21:34:12]Write to MH i2c: 01 00 00 CB 52 1D [21:34:12]Write i2c OK [21:34:12]MH_I2C_Read... [21:34:12]Read from MH i2c: 01 [21:34:12]MH_I2C_Read... [21:34:12]Read from MH i2c: 01 07 00 [21:34:12]MH_I2C_Read... [21:34:12]Read from MH i2c: 01 07 00 CB 52 00 80 00 00 00 51 0D 02 [21:34:12]RasterBufferAndPrint [21:34:12]line [21:34:12]line [21:34:12]line [21:34:12]line [21:34:12]line [21:34:12]written 0, free lines is 3416 [21:34:12]process_action close_receipt done [21:34:12]requested_data is exist [21:34:12]produce_requested_data [21:34:12]requested_item fm.sn is exist - process it [21:34:12]wFMCommunicate request_size=4 [21:34:12]MH_SAM_APDU [21:34:12]CAPDU: 80 11 00 00 [21:34:12]Write to MH i2c: E2 08 00 D2 52 80 11 00 00 00 00 00 00 9E [21:34:12]Write i2c OK [21:34:12]MH_I2C_Read... [21:34:12]Read from MH i2c: E2 [21:34:12]MH_I2C_Read... [21:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:12]Read from MH i2c: E2 17 00 [21:34:12]MH_I2C_Read... [21:34:12]Read from MH i2c: E2 17 00 D2 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EE [21:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:34:12]wFMCommunicate OK [21:34:12]requested_item fd.num is exist - process it [21:34:12]SAM_PROTO_GetFieldsCounters [21:34:12]wFMCommunicate request_size=4 [21:34:12]MH_SAM_APDU [21:34:12]CAPDU: 80 13 00 00 [21:34:12]Write to MH i2c: E2 08 00 D3 52 80 13 00 00 00 00 00 00 A1 [21:34:12]Write i2c OK [21:34:12]MH_I2C_Read... [21:34:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:34:12]Read from MH i2c: E2 [21:34:12]MH_I2C_Read... [21:34:12]Read from MH i2c: E2 62 00 [21:34:12]MH_I2C_Read... [21:34:12]Read from MH i2c: E2 62 00 D3 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2B 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [21:34:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2B 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:34:12]wFMCommunicate OK [21:34:12]SAM_PROTO_GetFieldsCounters done [21:34:12]requested_item shift.num is exist - process it [21:34:12]requested_item shift.opened is exist - process it [21:34:12]req_shift_opened [21:34:12]FM_GetShiftState [21:34:12]SAM_PROTO_GetShiftState [21:34:12]wFMCommunicate request_size=4 [21:34:12]MH_SAM_APDU [21:34:12]CAPDU: 80 13 01 00 [21:34:12]Write to MH i2c: E2 08 00 D4 52 80 13 01 00 00 00 00 00 A3 [21:34:12]Write i2c OK [21:34:12]MH_I2C_Read... [21:34:12]OFD Sender: No OFD packet to send [21:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:12]Read from MH i2c: E2 [21:34:12]MH_I2C_Read... [21:34:12]Read from MH i2c: E2 0E 00 [21:34:12]MH_I2C_Read... [21:34:12]Read from MH i2c: E2 0E 00 D4 52 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 17 [21:34:12]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:34:12]wFMCommunicate OK [21:34:12]SAM_PROTO_GetShiftState done [21:34:12]FM_GetShiftState done [21:34:12]req_shift_opened done [21:34:12]requested_item shift.open_date is exist - process it [21:34:12]req_shift_open_date [21:34:12]req_shift_open_date done [21:34:12]produce_requested_data done [21:34:12]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95275,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [21:34:12]process_action_free close_receipt [21:34:12]json_value_free [21:34:12]json_value_free done [21:34:12]process_json_proto returns [21:34:12]Send response to host [21:34:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95275,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [21:34:12]free response buf [21:34:12]execute_script done [21:34:12]execute_script returns [21:34:12]free content buf [21:34:12]Sock 8.Close socket [21:34:12]Sock 8.Thread stoped [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]accept exits with 10 [21:38:17]New connection [21:38:17]New thread 3066957156 created [21:38:17]Thread 3066813796 joined [21:38:17]Waiting for new connection... [21:38:17] Sock 10.Parse request [21:38:17]Sock 10.Check first char [21:38:17]Sock 10.First char is OK [21:38:17]request: POST /json_proto HTTP/1.0 [21:38:17]Method: POST [21:38:17]URL: /json_proto [21:38:17]Method is POST - this is cgi request [21:38:17]url: /json_proto [21:38:17]query_string will be loaded in cgi processing [21:38:17]execute_cgi json_proto POST (null) [21:38:17]execute_cgi path=json_proto method=POST [21:38:17]POST find Content-Length [21:38:17]Host: 172.17.62.67:8080 [21:38:17]Content-Length: 672 [21:38:17]Content-Type: application/json [21:38:17] [21:38:17]POST finish read [21:38:17]Found Content-Length = 672 [21:38:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 14.000, "sum" : 894.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 894.00, "payments": [ { "type": 0, "sum" : 894.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:17]execute_script... [21:38: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)196252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 14.000, "sum" : 894.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 894.00, "payments": [ { "type": 0, "sum" : 894.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:17]POST & json_proto [21:38:17]process_json_proto [21:38:17]json parsed OK: [21:38:17]protocol is kg_v1.0 [21:38:17]action value=close_receipt [21:38:17]process_action close_receipt [21:38:17]cmd_close_receipt [21:38:17]MH_GetDate [21:38:17]Write to MH i2c: F0 00 00 D5 52 16 [21:38:17]Write i2c OK [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: F0 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: F0 05 00 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: F0 05 00 D5 52 00 50 CB F0 65 8B [21:38:17]GetLastDocTimeStamp 1710279256 [21:38:17]current date 1710279504 [21:38:17]FM_GetShiftState [21:38:17]SAM_PROTO_GetShiftState [21:38:17]wFMCommunicate request_size=4 [21:38:17]MH_SAM_APDU [21:38:17]CAPDU: 80 13 01 00 [21:38:17]Write to MH i2c: E2 08 00 D6 52 80 13 01 00 00 00 00 00 A5 [21:38:17]Write i2c OK [21:38:17]MH_I2C_Read... [21:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:17]Read from MH i2c: E2 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: E2 0E 00 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: E2 0E 00 D6 52 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 19 [21:38:17]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:38:17]wFMCommunicate OK [21:38:17]SAM_PROTO_GetShiftState done [21:38:17]FM_GetShiftState done [21:38:17]opened in 1710201976 [21:38:17]opened+sec_in_day 1710288376 [21:38:17]quantity*price = 89460 [21:38:17]sum+1 = 89461 [21:38:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 894.00 Внесено: 1000.00 СДАЧА: 106.00 НСП 1% : 7.92 НДС 12% : 95.00 Наличными: 894.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 206 12.03.2024 21:38 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95276 ФПД: 207247501057684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T213824&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95276&fm=207247501057684&tin=02508201610067®Number=0000000000090555&sum=89400 [21:38:18]StoreToDocumentArchive [21:38:18]shift 327 fd 95276 [21:38:18]save to /storage/0327/doc_00095276 [21:38:18]save last doc name /storage/0327/doc_00095276 to /storage/kkm_last_doc_name [21:38:18]save OK [21:38:18]Clear old archive folders... [21:38:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:38:18]tlvbuf is 01AF2AE0 [21:38:18]SAM_PROTO_ClearQueue [21:38:18]wFMCommunicate request_size=4 [21:38:18]MH_SAM_APDU [21:38:18]CAPDU: 80 09 00 00 [21:38:18]Write to MH i2c: E2 08 00 E3 52 80 09 00 00 00 00 00 00 A7 [21:38:18]Write i2c OK [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 [21:38:18]MH_I2C_Read... [21:38:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:18]Read from MH i2c: E2 03 00 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 03 00 E3 52 00 90 00 A9 [21:38:18]RAPDU: 90 00 [21:38:18]wFMCommunicate OK [21:38:18]SAM_PROTO_ClearQueue done [21:38:18]KKMCreateOFDPacket [21:38:18]OFDProtocolAddRootSTLVToBuf [21:38:18]FM_MakeSignedData [21:38:18]FM_MakeSignedData [21:38:18]SAM_PROTO_SignData [21:38:18]wFMCommunicate request_size=4 [21:38:18]MH_SAM_APDU [21:38:18]CAPDU: 80 0D 01 02 [21:38:18]Write to MH i2c: E2 08 00 E4 52 80 0D 01 02 00 00 00 00 AF [21:38:18]Write i2c OK [21:38:18]MH_I2C_Read... [21:38:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:18]Read from MH i2c: E2 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 03 00 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 03 00 E4 52 00 90 00 AA [21:38:18]RAPDU: 90 00 [21:38:18]wFMCommunicate OK [21:38:18]wFMCommunicate request_size=255 [21:38:18]MH_SAM_APDU [21:38: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 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 74 5D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 5D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 25 00 00 00 00 07 04 06 00 38 5D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 50 CB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2C 74 01 00 35 04 06 00 [21:38:18]Write to MH i2c: E2 02 01 E5 52 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 74 5D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 5D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 25 00 00 00 00 07 04 06 00 38 5D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 50 CB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2C 74 01 00 35 04 06 00 00 00 C7 [21:38:18]Write i2c OK [21:38:18]MH_I2C_Read... [21:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:18]Read from MH i2c: E2 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 03 00 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 03 00 E5 52 00 90 00 AB [21:38:18]RAPDU: 90 00 [21:38:18]wFMCommunicate OK [21:38:18]wFMCommunicate request_size=11 [21:38:18]MH_SAM_APDU [21:38:18]CAPDU: 80 0D 02 02 06 BC 7D 91 AE 5E 94 [21:38:18]Write to MH i2c: E2 0E 00 E6 52 80 0D 02 02 06 00 BC 7D 91 AE 5E 94 00 00 28 [21:38:18]Write i2c OK [21:38:18]MH_I2C_Read... [21:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:18]Read from MH i2c: E2 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 03 00 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 03 00 E6 52 00 90 00 AC [21:38:18]RAPDU: 90 00 [21:38:18]wFMCommunicate OK [21:38:18]wFMCommunicate request_size=4 [21:38:18]MH_SAM_APDU [21:38:18]CAPDU: 80 0D 03 02 [21:38:18]Write to MH i2c: E2 08 00 E7 52 80 0D 03 02 00 00 00 00 B4 [21:38:18]Write i2c OK [21:38:18]MH_I2C_Read... [21:38:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:18]Read from MH i2c: E2 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 0B 00 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 0B 00 E7 52 00 C3 5E 08 66 48 41 D3 78 90 00 18 [21:38:18]RAPDU: C3 5E 08 66 48 41 D3 78 90 00 [21:38:18]wFMCommunicate OK [21:38:18]SAM_PROTO_SignData done [21:38:18]FM_MakeSignedData done [21:38:18]CreateOFDProtocolMessage [21:38:18]wFMCommunicate request_size=4 [21:38:18]MH_SAM_APDU [21:38:18]CAPDU: 80 11 00 00 [21:38:18]Write to MH i2c: E2 08 00 E8 52 80 11 00 00 00 00 00 00 B4 [21:38:18]Write i2c OK [21:38:18]MH_I2C_Read... [21:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:18]Read from MH i2c: E2 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 17 00 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 17 00 E8 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 04 [21:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:38:18]wFMCommunicate OK [21:38:18]CreateOFDProtocolMessage done [21:38:18]OFDSenderStorePacket 95276 [21:38:18]StoreOFDPacket docnum=95276 [21:38:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 2F 2B 08 01 3D 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 74 5D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 5D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 25 00 00 00 00 07 04 06 00 38 5D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 50 CB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2C 74 01 00 35 04 06 00 BC 7D 91 AE 5E 94 C3 5E 08 66 48 41 D3 78 [21:38:18]CheckFolder [21:38:18]dirname=/storage/ofd_packets [21:38:18]CheckFolder done [21:38:18]ProducePacketName [21:38:18]name=ofd_packets/00095276 [21:38:18]NVStorageSaveData ofd_packets/00095276 [21:38:18]File name is /storage/ofd_packets/00095276 [21:38:18]Write 302 bytes [21:38:18]NVStorageSaveData done [21:38:18]OFDSenderStorePacket done [21:38:18]KKMCreateOFDPacket done [21:38:18]NVStorageSaveData kkm_last_timestamp [21:38:18]File name is /storage/kkm_last_timestamp [21:38:18]Write 4 bytes [21:38:18]NVStorageSaveData done [21:38:18]ExternCall_PrintAddStr [21:38:18]wPrintStart [21:38:18]Write to MH i2c: 01 00 00 E9 52 3B [21:38:18]Write i2c OK [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: 01 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: 01 07 00 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: 01 07 00 E9 52 00 80 00 00 00 FF 0F D0 [21:38:18]RasterBufferAndPrint [21:38:18]line Счет N : (1)196252 [21:38:18]line ИНН: 02508201610067 [21:38:18]line Контрольно-Кассовый Чек [21:38:18]line ПРОДАЖА [21:38:18]line ТРК (МРК, ГНК) : 23 [21:38:18]line Товар: 2710124130 [21:38:18]line SUPER 92-К-5 [21:38:18]line 14.000 * 63.90 [21:38:18]line = 894.60 [21:38:18]line НДС 12% НСП 1% [21:38:18]line > о реализуемом товаре [21:38:18]line ОКРУГЛЕНИЕ: -0.60 [21:38:18]line ИТОГО: 894.00 [21:38:18]line Внесено: 1000.00 [21:38:18]line СДАЧА: 106.00 [21:38:18]line НСП 1% : 7.92 [21:38:18]line НДС 12% : 95.00 [21:38:18]line Наличными: 894.00 [21:38:18]line Безнал.: 0.00 [21:38:18]line Место: АЗС № 6 "Партнер Нефть" [21:38:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:38:18]line СНО: Общий режим [21:38:18]line Чек 206 12.03.2024 21:38 [21:38:18]line Смена: 327 ФФД: 1.0 [21:38:18]line ЗНМ: 0300000009 [21:38:18]line РНМ: 0000000000090555 [21:38:18]line Версия ККМ: 001 [21:38:18]line ФМ: 0000000000874811 [21:38:18]line ФД: 95276 [21:38:18]line ФПД: 207247501057684 [21:38:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T213824&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95276&fm=207247501057684&tin=02508201610067®Number=0000000000090555&sum=89400 [21:38:19]OFD Sender: Processing packet 95276 [packets to send 30, broken 29] [21:38:19]ProducePacketName [21:38:19]name=ofd_packets/00095276 [21:38:19]OFD Sender: To server: pG, [21:38:19]CommunicateWithHost lk.salyk.kg:30040 [21:38:19]ConnectInit lk.salyk.kg [21:38:19]written 0, free lines is 4095 [21:38:19]Connected sock=9 [21:38:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 2F 2B 08 01 3D 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 74 5D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 5D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 25 00 00 00 00 07 04 06 00 38 5D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 50 CB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2C 74 01 00 35 04 06 00 BC 7D 91 AE 5E 94 C3 5E 08 66 48 41 D3 78 [21:38:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 4A 2F 47 00 7F 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2C 74 01 00 F4 03 04 00 A5 76 F0 65 B6 04 01 00 00 D3 2B F4 8C AA 83 EA BA [21:38:19]CommunicateWithHost err = 0 [21:38:19]CheckOFDResponse [21:38:19]1017 (14) - 77093643461234 [21:38:19]1041 (16) - 0000000000874811 [21:38:19]1040 (4) - 95276 [21:38:19]1012 (4) - 12.03.2024 15:37 [21:38:19]1206 (1) - 0 [21:38:19]OFD Sender: Remove packet 95276 [21:38:19]ProducePacketName [21:38:19]name=ofd_packets/00095276 [21:38:19]NVStorageDeleteData [21:38:19]Write to MH i2c: 01 00 00 14 53 67 [21:38:19]Write i2c OK [21:38:19]MH_I2C_Read... [21:38:19]Read from MH i2c: 01 [21:38:19]MH_I2C_Read... [21:38:19]Read from MH i2c: 01 07 00 [21:38:19]MH_I2C_Read... [21:38:19]Read from MH i2c: 01 07 00 14 53 00 80 00 00 00 5A 0D 55 [21:38:19]RasterBufferAndPrint [21:38:19]line [21:38:19]line [21:38:19]line [21:38:19]line [21:38:19]line [21:38:19]written 0, free lines is 3424 [21:38:19]process_action close_receipt done [21:38:19]requested_data is exist [21:38:19]produce_requested_data [21:38:19]requested_item fm.sn is exist - process it [21:38:19]wFMCommunicate request_size=4 [21:38:19]MH_SAM_APDU [21:38:19]CAPDU: 80 11 00 00 [21:38:19]Write to MH i2c: E2 08 00 1B 53 80 11 00 00 00 00 00 00 E8 [21:38:19]Write i2c OK [21:38:19]MH_I2C_Read... [21:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:19]Read from MH i2c: E2 [21:38:19]MH_I2C_Read... [21:38:19]Read from MH i2c: E2 17 00 [21:38:19]MH_I2C_Read... [21:38:19]Read from MH i2c: E2 17 00 1B 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 38 [21:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:38:19]wFMCommunicate OK [21:38:19]requested_item fd.num is exist - process it [21:38:19]SAM_PROTO_GetFieldsCounters [21:38:19]wFMCommunicate request_size=4 [21:38:19]MH_SAM_APDU [21:38:19]CAPDU: 80 13 00 00 [21:38:19]Write to MH i2c: E2 08 00 1C 53 80 13 00 00 00 00 00 00 EB [21:38:19]Write i2c OK [21:38:19]MH_I2C_Read... [21:38:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:19]Read from MH i2c: E2 [21:38:19]MH_I2C_Read... [21:38:19]Read from MH i2c: E2 62 00 [21:38:19]MH_I2C_Read... [21:38:19]Read from MH i2c: E2 62 00 1C 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2C 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [21:38:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2C 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:19]wFMCommunicate OK [21:38:19]SAM_PROTO_GetFieldsCounters done [21:38:19]requested_item shift.num is exist - process it [21:38:19]requested_item shift.opened is exist - process it [21:38:19]req_shift_opened [21:38:19]FM_GetShiftState [21:38:19]SAM_PROTO_GetShiftState [21:38:19]wFMCommunicate request_size=4 [21:38:19]MH_SAM_APDU [21:38:19]CAPDU: 80 13 01 00 [21:38:19]Write to MH i2c: E2 08 00 1D 53 80 13 01 00 00 00 00 00 ED [21:38:19]Write i2c OK [21:38:19]MH_I2C_Read... [21:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:19]Read from MH i2c: E2 [21:38:19]MH_I2C_Read... [21:38:19]Read from MH i2c: E2 0E 00 [21:38:19]MH_I2C_Read... [21:38:19]Read from MH i2c: E2 0E 00 1D 53 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 61 [21:38:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:38:19]wFMCommunicate OK [21:38:19]SAM_PROTO_GetShiftState done [21:38:19]FM_GetShiftState done [21:38:19]req_shift_opened done [21:38:19]requested_item shift.open_date is exist - process it [21:38:19]req_shift_open_date [21:38:19]req_shift_open_date done [21:38:19]produce_requested_data done [21:38:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95276,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [21:38:19]process_action_free close_receipt [21:38:19]json_value_free [21:38:19]json_value_free done [21:38:19]process_json_proto returns [21:38:19]Send response to host [21:38:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95276,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [21:38:19]free response buf [21:38:19]execute_script done [21:38:19]execute_script returns [21:38:19]free content buf [21:38:19]Sock 10.Close socket [21:38:19]Sock 10.Thread stoped [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:55]accept exits with 8 [21:38:55]New connection [21:38:55]New thread 3066813796 created [21:38:55]Thread 3066957156 joined [21:38:55]Waiting for new connection... [21:38:55] Sock 8.Parse request [21:38:55]Sock 8.Check first char [21:38:55]Sock 8.First char is OK [21:38:55]request: POST /json_proto HTTP/1.0 [21:38:55]Method: POST [21:38:55]URL: /json_proto [21:38:55]Method is POST - this is cgi request [21:38:55]url: /json_proto [21:38:55]query_string will be loaded in cgi processing [21:38:55]execute_cgi json_proto POST (null) [21:38:55]execute_cgi path=json_proto method=POST [21:38:55]POST find Content-Length [21:38:55]Host: 172.17.62.67:8080 [21:38:55]Content-Length: 677 [21:38:55]Content-Type: application/json [21:38:55] [21:38:55]POST finish read [21:38:55]Found Content-Length = 677 [21:38:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:55]execute_script... [21:38: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)196253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:55]POST & json_proto [21:38:55]process_json_proto [21:38:55]json parsed OK: [21:38:55]protocol is kg_v1.0 [21:38:55]action value=close_receipt [21:38:55]process_action close_receipt [21:38:55]cmd_close_receipt [21:38:55]MH_GetDate [21:38:55]Write to MH i2c: F0 00 00 1E 53 60 [21:38:55]Write i2c OK [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: F0 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: F0 05 00 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: F0 05 00 1E 53 00 76 CB F0 65 FB [21:38:55]GetLastDocTimeStamp 1710279504 [21:38:55]current date 1710279542 [21:38:55]FM_GetShiftState [21:38:55]SAM_PROTO_GetShiftState [21:38:55]wFMCommunicate request_size=4 [21:38:55]MH_SAM_APDU [21:38:55]CAPDU: 80 13 01 00 [21:38:55]Write to MH i2c: E2 08 00 1F 53 80 13 01 00 00 00 00 00 EF [21:38:55]Write i2c OK [21:38:55]MH_I2C_Read... [21:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:55]Read from MH i2c: E2 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: E2 0E 00 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: E2 0E 00 1F 53 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 63 [21:38:55]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:38:55]wFMCommunicate OK [21:38:55]SAM_PROTO_GetShiftState done [21:38:55]FM_GetShiftState done [21:38:55]opened in 1710201976 [21:38:55]opened+sec_in_day 1710288376 [21:38:55]quantity*price = 50040 [21:38:55]sum+1 = 50041 [21:38:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 207 12.03.2024 21:39 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95277 ФПД: 47360500718465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T213902&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95277&fm=47360500718465&tin=02508201610067®Number=0000000000090555&sum=50000 [21:38:56]StoreToDocumentArchive [21:38:56]shift 327 fd 95277 [21:38:56]save to /storage/0327/doc_00095277 [21:38:56]save last doc name /storage/0327/doc_00095277 to /storage/kkm_last_doc_name [21:38:56]save OK [21:38:56]Clear old archive folders... [21:38:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:38:56]tlvbuf is 01A287D0 [21:38:56]SAM_PROTO_ClearQueue [21:38:56]wFMCommunicate request_size=4 [21:38:56]MH_SAM_APDU [21:38:56]CAPDU: 80 09 00 00 [21:38:56]Write to MH i2c: E2 08 00 2C 53 80 09 00 00 00 00 00 00 F1 [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:56]Read from MH i2c: E2 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 2C 53 00 90 00 F3 [21:38:56]RAPDU: 90 00 [21:38:56]wFMCommunicate OK [21:38:56]SAM_PROTO_ClearQueue done [21:38:56]KKMCreateOFDPacket [21:38:56]OFDProtocolAddRootSTLVToBuf [21:38:56]FM_MakeSignedData [21:38:56]FM_MakeSignedData [21:38:56]SAM_PROTO_SignData [21:38:56]wFMCommunicate request_size=4 [21:38:56]MH_SAM_APDU [21:38:56]CAPDU: 80 0D 01 02 [21:38:56]Write to MH i2c: E2 08 00 2D 53 80 0D 01 02 00 00 00 00 F9 [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:56]Read from MH i2c: E2 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 2D 53 00 90 00 F4 [21:38:56]RAPDU: 90 00 [21:38:56]wFMCommunicate OK [21:38:56]wFMCommunicate request_size=255 [21:38:56]MH_SAM_APDU [21:38:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 CF 00 00 00 F4 03 04 00 76 CB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2D 74 01 00 35 04 06 00 2B [21:38:56]Write to MH i2c: E2 02 01 2E 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 CF 00 00 00 F4 03 04 00 76 CB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2D 74 01 00 35 04 06 00 2B 00 00 ED [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:56]Read from MH i2c: E2 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 2E 53 00 90 00 F5 [21:38:56]RAPDU: 90 00 [21:38:56]wFMCommunicate OK [21:38:56]wFMCommunicate request_size=10 [21:38:56]MH_SAM_APDU [21:38:56]CAPDU: 80 0D 02 02 05 12 F9 D2 5B 81 [21:38:56]Write to MH i2c: E2 0D 00 2F 53 80 0D 02 02 05 00 12 F9 D2 5B 81 00 00 BF [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:56]Read from MH i2c: E2 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 2F 53 00 90 00 F6 [21:38:56]RAPDU: 90 00 [21:38:56]wFMCommunicate OK [21:38:56]wFMCommunicate request_size=4 [21:38:56]MH_SAM_APDU [21:38:56]CAPDU: 80 0D 03 02 [21:38:56]Write to MH i2c: E2 08 00 30 53 80 0D 03 02 00 00 00 00 FE [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:56]Read from MH i2c: E2 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 0B 00 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 0B 00 30 53 00 73 80 64 4E 24 AA BD B3 90 00 E2 [21:38:56]RAPDU: 73 80 64 4E 24 AA BD B3 90 00 [21:38:56]wFMCommunicate OK [21:38:56]SAM_PROTO_SignData done [21:38:56]FM_MakeSignedData done [21:38:56]CreateOFDProtocolMessage [21:38:56]wFMCommunicate request_size=4 [21:38:56]MH_SAM_APDU [21:38:56]CAPDU: 80 11 00 00 [21:38:56]Write to MH i2c: E2 08 00 31 53 80 11 00 00 00 00 00 00 FE [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:56]Read from MH i2c: E2 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 17 00 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 17 00 31 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4E [21:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:38:56]wFMCommunicate OK [21:38:56]CreateOFDProtocolMessage done [21:38:56]OFDSenderStorePacket 95277 [21:38:56]StoreOFDPacket docnum=95277 [21:38:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 81 8D 07 01 F8 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 CF 00 00 00 F4 03 04 00 76 CB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2D 74 01 00 35 04 06 00 2B 12 F9 D2 5B 81 73 80 64 4E 24 AA BD B3 [21:38:56]CheckFolder [21:38:56]dirname=/storage/ofd_packets [21:38:56]CheckFolder done [21:38:56]ProducePacketName [21:38:56]name=ofd_packets/00095277 [21:38:56]NVStorageSaveData ofd_packets/00095277 [21:38:56]File name is /storage/ofd_packets/00095277 [21:38:56]Write 301 bytes [21:38:56]NVStorageSaveData done [21:38:56]OFDSenderStorePacket done [21:38:56]KKMCreateOFDPacket done [21:38:56]NVStorageSaveData kkm_last_timestamp [21:38:56]File name is /storage/kkm_last_timestamp [21:38:56]Write 4 bytes [21:38:56]NVStorageSaveData done [21:38:56]ExternCall_PrintAddStr [21:38:56]wPrintStart [21:38:56]Write to MH i2c: 01 00 00 32 53 85 [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: 01 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: 01 07 00 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: 01 07 00 32 53 00 80 00 00 00 FF 0F 1A [21:38:56]RasterBufferAndPrint [21:38:56]line Счет N : (1)196253 [21:38:56]line ИНН: 02508201610067 [21:38:56]line Контрольно-Кассовый Чек [21:38:56]line ПРОДАЖА [21:38:56]line ТРК (МРК, ГНК) : 41 [21:38:56]line Товар: 2710124500 [21:38:56]line Аи-95-К-5 [21:38:56]line 7.200 * 69.50 [21:38:56]line = 500.40 [21:38:56]line НДС 12% НСП 1% [21:38:56]line > о реализуемом товаре [21:38:56]line ОКРУГЛЕНИЕ: -0.40 [21:38:56]line ИТОГО: 500.00 [21:38:56]line Внесено: 500.00 [21:38:56]line СДАЧА: 0.00 [21:38:56]line НСП 1% : 4.43 [21:38:56]line НДС 12% : 53.14 [21:38:56]line Наличными: 500.00 [21:38:56]line Безнал.: 0.00 [21:38:56]line Место: АЗС № 6 "Партнер Нефть" [21:38:56]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:38:56]line СНО: Общий режим [21:38:56]line Чек 207 12.03.2024 21:39 [21:38:56]line Смена: 327 ФФД: 1.0 [21:38:56]line ЗНМ: 0300000009 [21:38:56]line РНМ: 0000000000090555 [21:38:56]line Версия ККМ: 001 [21:38:56]line ФМ: 0000000000874811 [21:38:56]line ФД: 95277 [21:38:56]line ФПД: 47360500718465 [21:38:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T213902&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95277&fm=47360500718465&tin=02508201610067®Number=0000000000090555&sum=50000 [21:38:57]OFD Sender: Processing packet 95277 [packets to send 30, broken 29] [21:38:57]ProducePacketName [21:38:57]name=ofd_packets/00095277 [21:38:57]OFD Sender: To server: pG, [21:38:57]CommunicateWithHost lk.salyk.kg:30040 [21:38:57]ConnectInit lk.salyk.kg [21:38:57]written 0, free lines is 4095 [21:38:57]Connected sock=10 [21:38:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 81 8D 07 01 F8 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 CF 00 00 00 F4 03 04 00 76 CB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2D 74 01 00 35 04 06 00 2B 12 F9 D2 5B 81 73 80 64 4E 24 AA BD B3 [21:38:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 7A D3 47 00 E6 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2D 74 01 00 F4 03 04 00 CB 76 F0 65 B6 04 01 00 00 77 0F B5 CD 7C 68 CF DF [21:38:57]CommunicateWithHost err = 0 [21:38:57]CheckOFDResponse [21:38:57]1017 (14) - 77093643461234 [21:38:57]1041 (16) - 0000000000874811 [21:38:57]1040 (4) - 95277 [21:38:57]1012 (4) - 12.03.2024 15:37 [21:38:57]1206 (1) - 0 [21:38:57]OFD Sender: Remove packet 95277 [21:38:57]ProducePacketName [21:38:57]name=ofd_packets/00095277 [21:38:57]NVStorageDeleteData [21:38:57]Write to MH i2c: 01 00 00 5D 53 B0 [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: 01 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: 01 07 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: 01 07 00 5D 53 00 80 00 00 00 4B 0D 8F [21:38:57]RasterBufferAndPrint [21:38:57]line [21:38:57]line [21:38:57]line [21:38:57]line [21:38:57]line [21:38:57]written 0, free lines is 3409 [21:38:57]process_action close_receipt done [21:38:57]requested_data is exist [21:38:57]produce_requested_data [21:38:57]requested_item fm.sn is exist - process it [21:38:57]wFMCommunicate request_size=4 [21:38:57]MH_SAM_APDU [21:38:57]CAPDU: 80 11 00 00 [21:38:57]Write to MH i2c: E2 08 00 64 53 80 11 00 00 00 00 00 00 31 [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:57]Read from MH i2c: E2 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 17 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 17 00 64 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 81 [21:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:38:57]wFMCommunicate OK [21:38:57]requested_item fd.num is exist - process it [21:38:57]SAM_PROTO_GetFieldsCounters [21:38:57]wFMCommunicate request_size=4 [21:38:57]MH_SAM_APDU [21:38:57]CAPDU: 80 13 00 00 [21:38:57]Write to MH i2c: E2 08 00 65 53 80 13 00 00 00 00 00 00 34 [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:57]Read from MH i2c: E2 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 62 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 62 00 65 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2D 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [21:38:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2D 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:57]wFMCommunicate OK [21:38:57]SAM_PROTO_GetFieldsCounters done [21:38:57]requested_item shift.num is exist - process it [21:38:57]requested_item shift.opened is exist - process it [21:38:57]req_shift_opened [21:38:57]FM_GetShiftState [21:38:57]SAM_PROTO_GetShiftState [21:38:57]wFMCommunicate request_size=4 [21:38:57]MH_SAM_APDU [21:38:57]CAPDU: 80 13 01 00 [21:38:57]Write to MH i2c: E2 08 00 66 53 80 13 01 00 00 00 00 00 36 [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:57]Read from MH i2c: E2 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 0E 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 0E 00 66 53 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 AA [21:38:57]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:38:57]wFMCommunicate OK [21:38:57]SAM_PROTO_GetShiftState done [21:38:57]FM_GetShiftState done [21:38:57]req_shift_opened done [21:38:57]requested_item shift.open_date is exist - process it [21:38:57]req_shift_open_date [21:38:57]req_shift_open_date done [21:38:57]produce_requested_data done [21:38:57]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95277,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [21:38:57]process_action_free close_receipt [21:38:57]json_value_free [21:38:57]json_value_free done [21:38:57]process_json_proto returns [21:38:57]Send response to host [21:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95277,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [21:38:57]free response buf [21:38:57]execute_script done [21:38:57]execute_script returns [21:38:57]free content buf [21:38:57]Sock 8.Close socket [21:38:57]Sock 8.Thread stoped [21:38:58]OFD Sender: No OFD packet to send [21:39:03]OFD Sender: No OFD packet to send [21:39:08]OFD Sender: No OFD packet to send [21:39:13]OFD Sender: No OFD packet to send [21:39:18]OFD Sender: No OFD packet to send [21:39:23]OFD Sender: No OFD packet to send [21:39:28]OFD Sender: No OFD packet to send [21:39:33]OFD Sender: No OFD packet to send [21:39:38]OFD Sender: No OFD packet to send [21:39:43]OFD Sender: No OFD packet to send [21:39:48]OFD Sender: No OFD packet to send [21:39:53]OFD Sender: No OFD packet to send [21:39:58]OFD Sender: No OFD packet to send [21:40:03]OFD Sender: No OFD packet to send [21:40:08]OFD Sender: No OFD packet to send [21:40:13]OFD Sender: No OFD packet to send [21:40:18]OFD Sender: No OFD packet to send [21:40:23]OFD Sender: No OFD packet to send [21:40:28]OFD Sender: No OFD packet to send [21:40:33]OFD Sender: No OFD packet to send [21:40:38]OFD Sender: No OFD packet to send [21:40:43]OFD Sender: No OFD packet to send [21:40:48]OFD Sender: No OFD packet to send [21:40:53]OFD Sender: No OFD packet to send [21:40:58]OFD Sender: No OFD packet to send [21:41:03]OFD Sender: No OFD packet to send [21:41:08]OFD Sender: No OFD packet to send [21:41:13]OFD Sender: No OFD packet to send [21:41:18]OFD Sender: No OFD packet to send [21:41:23]OFD Sender: No OFD packet to send [21:41:28]OFD Sender: No OFD packet to send [21:41:33]OFD Sender: No OFD packet to send [21:41:38]OFD Sender: No OFD packet to send [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:13]OFD Sender: No OFD packet to send [21:42:18]OFD Sender: No OFD packet to send [21:42:23]OFD Sender: No OFD packet to send [21:42:28]OFD Sender: No OFD packet to send [21:42:33]OFD Sender: No OFD packet to send [21:42:38]OFD Sender: No OFD packet to send [21:42:43]OFD Sender: No OFD packet to send [21:42:48]OFD Sender: No OFD packet to send [21:42:53]OFD Sender: No OFD packet to send [21:42:58]OFD Sender: No OFD packet to send [21:43:03]OFD Sender: No OFD packet to send [21:43:08]OFD Sender: No OFD packet to send [21:43:13]OFD Sender: No OFD packet to send [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]accept exits with 9 [21:46:43]New connection [21:46:43]New thread 3066957156 created [21:46:43]Thread 3066813796 joined [21:46:43]Waiting for new connection... [21:46:43] Sock 9.Parse request [21:46:43]Sock 9.Check first char [21:46:43]Sock 9.First char is OK [21:46:43]request: POST /json_proto HTTP/1.0 [21:46:43]Method: POST [21:46:43]URL: /json_proto [21:46:43]Method is POST - this is cgi request [21:46:43]url: /json_proto [21:46:43]query_string will be loaded in cgi processing [21:46:43]execute_cgi json_proto POST (null) [21:46:43]execute_cgi path=json_proto method=POST [21:46:43]POST find Content-Length [21:46:43]Host: 172.17.62.67:8080 [21:46:43]Content-Length: 816 [21:46:43]Content-Type: application/json [21:46:43] [21:46:43]POST finish read [21:46:43]Found Content-Length = 816 [21:46:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:43]execute_script... [21:46: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)196254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:43]POST & json_proto [21:46:43]process_json_proto [21:46:43]json parsed OK: [21:46:43]protocol is kg_v1.0 [21:46:43]action value=close_receipt [21:46:43]process_action close_receipt [21:46:43]cmd_close_receipt [21:46:43]MH_GetDate [21:46:43]Write to MH i2c: F0 00 00 67 53 A9 [21:46:43]Write i2c OK [21:46:43]MH_I2C_Read... [21:46:43]Read from MH i2c: F0 [21:46:43]MH_I2C_Read... [21:46:43]Read from MH i2c: F0 05 00 [21:46:43]MH_I2C_Read... [21:46:43]Read from MH i2c: F0 05 00 67 53 00 4A CD F0 65 1A [21:46:43]GetLastDocTimeStamp 1710279542 [21:46:43]current date 1710280010 [21:46:43]FM_GetShiftState [21:46:43]SAM_PROTO_GetShiftState [21:46:43]wFMCommunicate request_size=4 [21:46:43]MH_SAM_APDU [21:46:43]CAPDU: 80 13 01 00 [21:46:43]Write to MH i2c: E2 08 00 68 53 80 13 01 00 00 00 00 00 38 [21:46:43]Write i2c OK [21:46:43]MH_I2C_Read... [21:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:43]Read from MH i2c: E2 [21:46:43]MH_I2C_Read... [21:46:43]Read from MH i2c: E2 0E 00 [21:46:43]MH_I2C_Read... [21:46:43]Read from MH i2c: E2 0E 00 68 53 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 AC [21:46:43]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:46:43]wFMCommunicate OK [21:46:43]SAM_PROTO_GetShiftState done [21:46:43]FM_GetShiftState done [21:46:43]opened in 1710201976 [21:46:43]opened+sec_in_day 1710288376 [21:46:43]quantity*price = 50005 [21:46:43]sum+1 = 50007 [21:46:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.06 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.06 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 208 12.03.2024 21:46 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95278 ФПД: 77261956721513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T214650&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95278&fm=77261956721513&tin=02508201610067®Number=0000000000090555&sum=50006 [21:46:44]StoreToDocumentArchive [21:46:44]shift 327 fd 95278 [21:46:44]save to /storage/0327/doc_00095278 [21:46:44]save last doc name /storage/0327/doc_00095278 to /storage/kkm_last_doc_name [21:46:44]save OK [21:46:44]Clear old archive folders... [21:46:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:46:44]tlvbuf is 01AD21D0 [21:46:44]SAM_PROTO_ClearQueue [21:46:44]wFMCommunicate request_size=4 [21:46:44]MH_SAM_APDU [21:46:44]CAPDU: 80 09 00 00 [21:46:44]Write to MH i2c: E2 08 00 75 53 80 09 00 00 00 00 00 00 3A [21:46:44]Write i2c OK [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: E2 [21:46:44]MH_I2C_Read... [21:46:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:46:44]Read from MH i2c: E2 03 00 [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: E2 03 00 75 53 00 90 00 3C [21:46:44]RAPDU: 90 00 [21:46:44]wFMCommunicate OK [21:46:44]SAM_PROTO_ClearQueue done [21:46:44]KKMCreateOFDPacket [21:46:44]OFDProtocolAddRootSTLVToBuf [21:46:44]FM_MakeSignedData [21:46:44]FM_MakeSignedData [21:46:44]SAM_PROTO_SignData [21:46:44]wFMCommunicate request_size=4 [21:46:44]MH_SAM_APDU [21:46:44]CAPDU: 80 0D 01 02 [21:46:44]Write to MH i2c: E2 08 00 76 53 80 0D 01 02 00 00 00 00 42 [21:46:44]Write i2c OK [21:46:44]MH_I2C_Read... [21:46:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:46:44]Read from MH i2c: E2 [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: E2 03 00 [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: E2 03 00 76 53 00 90 00 3D [21:46:44]RAPDU: 90 00 [21:46:44]wFMCommunicate OK [21:46:44]wFMCommunicate request_size=255 [21:46:44]MH_SAM_APDU [21: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 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 4A CD F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2E 74 01 00 35 04 06 00 46 [21:46:44]Write to MH i2c: E2 02 01 77 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 4A CD F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2E 74 01 00 35 04 06 00 46 00 00 64 [21:46:44]Write i2c OK [21:46:44]MH_I2C_Read... [21:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:44]Read from MH i2c: E2 [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: E2 03 00 [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: E2 03 00 77 53 00 90 00 3E [21:46:44]RAPDU: 90 00 [21:46:44]wFMCommunicate OK [21:46:44]wFMCommunicate request_size=10 [21:46:44]MH_SAM_APDU [21:46:44]CAPDU: 80 0D 02 02 05 44 F3 7C 2B 69 [21:46:44]Write to MH i2c: E2 0D 00 78 53 80 0D 02 02 05 00 44 F3 7C 2B 69 00 00 96 [21:46:44]Write i2c OK [21:46:44]MH_I2C_Read... [21:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:44]Read from MH i2c: E2 [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: E2 03 00 [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: E2 03 00 78 53 00 90 00 3F [21:46:44]RAPDU: 90 00 [21:46:44]wFMCommunicate OK [21:46:44]wFMCommunicate request_size=4 [21:46:44]MH_SAM_APDU [21:46:44]CAPDU: 80 0D 03 02 [21:46:44]Write to MH i2c: E2 08 00 79 53 80 0D 03 02 00 00 00 00 47 [21:46:44]Write i2c OK [21:46:44]MH_I2C_Read... [21:46:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:46:44]Read from MH i2c: E2 [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: E2 0B 00 [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: E2 0B 00 79 53 00 5E 9D 5A 7D B7 2F D2 B6 90 00 88 [21:46:44]RAPDU: 5E 9D 5A 7D B7 2F D2 B6 90 00 [21:46:44]wFMCommunicate OK [21:46:44]SAM_PROTO_SignData done [21:46:44]FM_MakeSignedData done [21:46:44]CreateOFDProtocolMessage [21:46:44]wFMCommunicate request_size=4 [21:46:44]MH_SAM_APDU [21:46:44]CAPDU: 80 11 00 00 [21:46:44]Write to MH i2c: E2 08 00 7A 53 80 11 00 00 00 00 00 00 47 [21:46:44]Write i2c OK [21:46:44]MH_I2C_Read... [21:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:44]Read from MH i2c: E2 [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: E2 17 00 [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: E2 17 00 7A 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 97 [21:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:46:44]wFMCommunicate OK [21:46:44]CreateOFDProtocolMessage done [21:46:44]OFDSenderStorePacket 95278 [21:46:44]StoreOFDPacket docnum=95278 [21:46:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 74 F3 07 01 B4 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 4A CD F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2E 74 01 00 35 04 06 00 46 44 F3 7C 2B 69 5E 9D 5A 7D B7 2F D2 B6 [21:46:44]CheckFolder [21:46:44]dirname=/storage/ofd_packets [21:46:44]CheckFolder done [21:46:44]ProducePacketName [21:46:44]name=ofd_packets/00095278 [21:46:44]NVStorageSaveData ofd_packets/00095278 [21:46:44]File name is /storage/ofd_packets/00095278 [21:46:44]Write 301 bytes [21:46:44]NVStorageSaveData done [21:46:44]OFDSenderStorePacket done [21:46:44]KKMCreateOFDPacket done [21:46:44]NVStorageSaveData kkm_last_timestamp [21:46:44]File name is /storage/kkm_last_timestamp [21:46:44]Write 4 bytes [21:46:44]NVStorageSaveData done [21:46:44]ExternCall_PrintAddStr [21:46:44]wPrintStart [21:46:44]Write to MH i2c: 01 00 00 7B 53 CE [21:46:44]Write i2c OK [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: 01 [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: 01 07 00 [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: 01 07 00 7B 53 00 80 00 00 00 FF 0F 63 [21:46:44]RasterBufferAndPrint [21:46:44]line Счет N : (1)196254 [21:46:44]line ИНН: 02508201610067 [21:46:44]line Контрольно-Кассовый Чек [21:46:44]line ПРОДАЖА [21:46:44]line ТРК (МРК, ГНК) : 12 [21:46:44]line Товар: 2710124130 [21:46:44]line Аи-92-К-5 [21:46:44]line 7.950 * 62.90 [21:46:44]line = 500.06 [21:46:44]line НДС 12% НСП 1% [21:46:44]line > о реализуемом товаре [21:46:44]line ИТОГО: 500.06 [21:46:44]line НСП 1% : 4.42 [21:46:44]line НДС 12% : 53.10 [21:46:44]line Наличными: 0.00 [21:46:44]line Безнал.: 500.06 [21:46:44]line Место: АЗС № 6 "Партнер Нефть" [21:46:44]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:46:44]line СНО: Общий режим [21:46:44]line Чек 208 12.03.2024 21:46 [21:46:44]line Смена: 327 ФФД: 1.0 [21:46:44]line ЗНМ: 0300000009 [21:46:44]line РНМ: 0000000000090555 [21:46:44]line Версия ККМ: 001 [21:46:44]line Платежная система: Бакай Банк [21:46:44]line ФМ: 0000000000874811 [21:46:44]line ФД: 95278 [21:46:44]line ФПД: 77261956721513 [21:46:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T214650&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95278&fm=77261956721513&tin=02508201610067®Number=0000000000090555&sum=50006 [21:46:44]written 0, free lines is 4095 [21:46:44]OFD Sender: Processing packet 95278 [packets to send 30, broken 29] [21:46:44]ProducePacketName [21:46:44]name=ofd_packets/00095278 [21:46:44]OFD Sender: To server: pG, [21:46:44]CommunicateWithHost lk.salyk.kg:30040 [21:46:44]ConnectInit lk.salyk.kg [21:46:44]Connected sock=8 [21:46:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 74 F3 07 01 B4 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 4A CD F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2E 74 01 00 35 04 06 00 46 44 F3 7C 2B 69 5E 9D 5A 7D B7 2F D2 B6 [21:46:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 65 55 47 00 89 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2E 74 01 00 F4 03 04 00 9E 78 F0 65 B6 04 01 00 00 BA 60 00 24 94 23 6B 26 [21:46:45]CommunicateWithHost err = 0 [21:46:45]CheckOFDResponse [21:46:45]1017 (14) - 77093643461234 [21:46:45]1041 (16) - 0000000000874811 [21:46:45]1040 (4) - 95278 [21:46:45]1012 (4) - 12.03.2024 15:45 [21:46:45]1206 (1) - 0 [21:46:45]OFD Sender: Remove packet 95278 [21:46:45]ProducePacketName [21:46:45]name=ofd_packets/00095278 [21:46:45]NVStorageDeleteData [21:46:45]Write to MH i2c: 01 00 00 A5 53 F8 [21:46:45]Write i2c OK [21:46:45]MH_I2C_Read... [21:46:45]Read from MH i2c: 01 [21:46:45]MH_I2C_Read... [21:46:45]Read from MH i2c: 01 07 00 [21:46:45]MH_I2C_Read... [21:46:45]Read from MH i2c: 01 07 00 A5 53 00 80 00 00 00 60 0D EC [21:46:45]RasterBufferAndPrint [21:46:45]line [21:46:45]line [21:46:45]line [21:46:45]line [21:46:45]line [21:46:45]written 0, free lines is 3432 [21:46:45]process_action close_receipt done [21:46:45]requested_data is exist [21:46:45]produce_requested_data [21:46:45]requested_item fm.sn is exist - process it [21:46:45]wFMCommunicate request_size=4 [21:46:45]MH_SAM_APDU [21:46:45]CAPDU: 80 11 00 00 [21:46:45]Write to MH i2c: E2 08 00 AC 53 80 11 00 00 00 00 00 00 79 [21:46:45]Write i2c OK [21:46:45]MH_I2C_Read... [21:46:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:45]Read from MH i2c: E2 [21:46:45]MH_I2C_Read... [21:46:45]Read from MH i2c: E2 17 00 [21:46:45]MH_I2C_Read... [21:46:45]Read from MH i2c: E2 17 00 AC 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C9 [21:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:46:45]wFMCommunicate OK [21:46:45]requested_item fd.num is exist - process it [21:46:45]SAM_PROTO_GetFieldsCounters [21:46:45]wFMCommunicate request_size=4 [21:46:45]MH_SAM_APDU [21:46:45]CAPDU: 80 13 00 00 [21:46:45]Write to MH i2c: E2 08 00 AD 53 80 13 00 00 00 00 00 00 7C [21:46:45]Write i2c OK [21:46:45]MH_I2C_Read... [21:46:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:46:45]Read from MH i2c: E2 [21:46:45]MH_I2C_Read... [21:46:45]Read from MH i2c: E2 62 00 [21:46:45]MH_I2C_Read... [21:46:45]Read from MH i2c: E2 62 00 AD 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2E 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [21:46:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2E 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:46:45]wFMCommunicate OK [21:46:45]SAM_PROTO_GetFieldsCounters done [21:46:45]requested_item shift.num is exist - process it [21:46:45]requested_item shift.opened is exist - process it [21:46:45]req_shift_opened [21:46:45]FM_GetShiftState [21:46:45]SAM_PROTO_GetShiftState [21:46:45]wFMCommunicate request_size=4 [21:46:45]MH_SAM_APDU [21:46:45]CAPDU: 80 13 01 00 [21:46:45]Write to MH i2c: E2 08 00 AE 53 80 13 01 00 00 00 00 00 7E [21:46:45]Write i2c OK [21:46:45]MH_I2C_Read... [21:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:45]Read from MH i2c: E2 [21:46:45]MH_I2C_Read... [21:46:45]Read from MH i2c: E2 0E 00 [21:46:45]MH_I2C_Read... [21:46:45]Read from MH i2c: E2 0E 00 AE 53 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F2 [21:46:45]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:46:45]wFMCommunicate OK [21:46:45]SAM_PROTO_GetShiftState done [21:46:45]FM_GetShiftState done [21:46:45]req_shift_opened done [21:46:45]requested_item shift.open_date is exist - process it [21:46:45]req_shift_open_date [21:46:45]req_shift_open_date done [21:46:45]produce_requested_data done [21:46:45]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95278,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [21:46:45]process_action_free close_receipt [21:46:45]json_value_free [21:46:45]json_value_free done [21:46:45]process_json_proto returns [21:46:45]Send response to host [21:46:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95278,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [21:46:45]free response buf [21:46:45]execute_script done [21:46:45]execute_script returns [21:46:45]free content buf [21:46:45]Sock 9.Close socket [21:46:45]Sock 9.Thread stoped [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]recv_with_timeout no data received [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:18]accept exits with 10 [21:51:18]New connection [21:51:18]New thread 3066813796 created [21:51:18]Thread 3066957156 joined [21:51:18]Waiting for new connection... [21:51:18] Sock 10.Parse request [21:51:18]Sock 10.Check first char [21:51:18]Sock 10.First char is OK [21:51:18]request: POST /json_proto HTTP/1.0 [21:51:18]Method: POST [21:51:18]URL: /json_proto [21:51:18]Method is POST - this is cgi request [21:51:18]url: /json_proto [21:51:18]query_string will be loaded in cgi processing [21:51:18]execute_cgi json_proto POST (null) [21:51:18]execute_cgi path=json_proto method=POST [21:51:18]POST find Content-Length [21:51:18]Host: 172.17.62.67:8080 [21:51:18]Content-Length: 817 [21:51:18]Content-Type: application/json [21:51:18] [21:51:18]POST finish read [21:51:18]Found Content-Length = 817 [21:51:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:18]execute_script... [21:51:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:18]POST & json_proto [21:51:18]process_json_proto [21:51:18]json parsed OK: [21:51:18]protocol is kg_v1.0 [21:51:18]action value=close_receipt [21:51:18]process_action close_receipt [21:51:18]cmd_close_receipt [21:51:18]MH_GetDate [21:51:18]Write to MH i2c: F0 00 00 AF 53 F1 [21:51:18]Write i2c OK [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: F0 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: F0 05 00 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: F0 05 00 AF 53 00 5D CE F0 65 76 [21:51:18]GetLastDocTimeStamp 1710280010 [21:51:18]current date 1710280285 [21:51:18]FM_GetShiftState [21:51:18]SAM_PROTO_GetShiftState [21:51:18]wFMCommunicate request_size=4 [21:51:18]MH_SAM_APDU [21:51:18]CAPDU: 80 13 01 00 [21:51:18]Write to MH i2c: E2 08 00 B0 53 80 13 01 00 00 00 00 00 80 [21:51:18]Write i2c OK [21:51:18]MH_I2C_Read... [21:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:18]Read from MH i2c: E2 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: E2 0E 00 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: E2 0E 00 B0 53 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F4 [21:51:18]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:51:18]wFMCommunicate OK [21:51:18]SAM_PROTO_GetShiftState done [21:51:18]FM_GetShiftState done [21:51:18]opened in 1710201976 [21:51:18]opened+sec_in_day 1710288376 [21:51:18]quantity*price = 62900 [21:51:18]sum+1 = 62901 [21:51:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 0.00 Безнал.: 629.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 209 12.03.2024 21:51 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95279 ФПД: 31589998622002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T215125&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95279&fm=31589998622002&tin=02508201610067®Number=0000000000090555&sum=62900 [21:51:19]StoreToDocumentArchive [21:51:19]shift 327 fd 95279 [21:51:19]save to /storage/0327/doc_00095279 [21:51:19]save last doc name /storage/0327/doc_00095279 to /storage/kkm_last_doc_name [21:51:19]save OK [21:51:19]Clear old archive folders... [21:51:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:51:19]tlvbuf is 01A5F640 [21:51:19]SAM_PROTO_ClearQueue [21:51:19]wFMCommunicate request_size=4 [21:51:19]MH_SAM_APDU [21:51:19]CAPDU: 80 09 00 00 [21:51:19]Write to MH i2c: E2 08 00 BD 53 80 09 00 00 00 00 00 00 82 [21:51:19]Write i2c OK [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 [21:51:19]MH_I2C_Read... [21:51:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:19]Read from MH i2c: E2 03 00 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 03 00 BD 53 00 90 00 84 [21:51:19]RAPDU: 90 00 [21:51:19]wFMCommunicate OK [21:51:19]SAM_PROTO_ClearQueue done [21:51:19]KKMCreateOFDPacket [21:51:19]OFDProtocolAddRootSTLVToBuf [21:51:19]FM_MakeSignedData [21:51:19]FM_MakeSignedData [21:51:19]SAM_PROTO_SignData [21:51:19]wFMCommunicate request_size=4 [21:51:19]MH_SAM_APDU [21:51:19]CAPDU: 80 0D 01 02 [21:51:19]Write to MH i2c: E2 08 00 BE 53 80 0D 01 02 00 00 00 00 8A [21:51:19]Write i2c OK [21:51:19]MH_I2C_Read... [21:51:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:19]Read from MH i2c: E2 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 03 00 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 03 00 BE 53 00 90 00 85 [21:51:19]RAPDU: 90 00 [21:51:19]wFMCommunicate OK [21:51:19]wFMCommunicate request_size=255 [21:51:19]MH_SAM_APDU [21:51:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 5D CE F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2F 74 01 00 35 04 06 00 1C [21:51:19]Write to MH i2c: E2 02 01 BF 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 5D CE F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2F 74 01 00 35 04 06 00 1C 00 00 26 [21:51:19]Write i2c OK [21:51:19]MH_I2C_Read... [21:51:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:19]Read from MH i2c: E2 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 03 00 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 03 00 BF 53 00 90 00 86 [21:51:19]RAPDU: 90 00 [21:51:19]wFMCommunicate OK [21:51:19]wFMCommunicate request_size=10 [21:51:19]MH_SAM_APDU [21:51:19]CAPDU: 80 0D 02 02 05 BB 1E A5 75 32 [21:51:19]Write to MH i2c: E2 0D 00 C0 53 80 0D 02 02 05 00 BB 1E A5 75 32 00 00 BC [21:51:19]Write i2c OK [21:51:19]MH_I2C_Read... [21:51:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:19]Read from MH i2c: E2 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 03 00 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 03 00 C0 53 00 90 00 87 [21:51:19]RAPDU: 90 00 [21:51:19]wFMCommunicate OK [21:51:19]wFMCommunicate request_size=4 [21:51:19]MH_SAM_APDU [21:51:19]CAPDU: 80 0D 03 02 [21:51:19]Write to MH i2c: E2 08 00 C1 53 80 0D 03 02 00 00 00 00 8F [21:51:19]Write i2c OK [21:51:19]MH_I2C_Read... [21:51:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:19]Read from MH i2c: E2 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 0B 00 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 0B 00 C1 53 00 FD 97 FF 06 F6 B7 50 75 90 00 9B [21:51:19]RAPDU: FD 97 FF 06 F6 B7 50 75 90 00 [21:51:19]wFMCommunicate OK [21:51:19]SAM_PROTO_SignData done [21:51:19]FM_MakeSignedData done [21:51:19]CreateOFDProtocolMessage [21:51:19]wFMCommunicate request_size=4 [21:51:19]MH_SAM_APDU [21:51:19]CAPDU: 80 11 00 00 [21:51:19]Write to MH i2c: E2 08 00 C2 53 80 11 00 00 00 00 00 00 8F [21:51:19]Write i2c OK [21:51:19]MH_I2C_Read... [21:51:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:19]Read from MH i2c: E2 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 17 00 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 17 00 C2 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DF [21:51:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:51:19]wFMCommunicate OK [21:51:19]CreateOFDProtocolMessage done [21:51:19]OFDSenderStorePacket 95279 [21:51:19]StoreOFDPacket docnum=95279 [21:51:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2A C1 07 01 08 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 5D CE F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2F 74 01 00 35 04 06 00 1C BB 1E A5 75 32 FD 97 FF 06 F6 B7 50 75 [21:51:19]CheckFolder [21:51:19]dirname=/storage/ofd_packets [21:51:19]CheckFolder done [21:51:19]ProducePacketName [21:51:19]name=ofd_packets/00095279 [21:51:19]NVStorageSaveData ofd_packets/00095279 [21:51:19]File name is /storage/ofd_packets/00095279 [21:51:19]Write 301 bytes [21:51:19]NVStorageSaveData done [21:51:19]OFDSenderStorePacket done [21:51:19]KKMCreateOFDPacket done [21:51:19]NVStorageSaveData kkm_last_timestamp [21:51:19]File name is /storage/kkm_last_timestamp [21:51:19]Write 4 bytes [21:51:19]NVStorageSaveData done [21:51:19]ExternCall_PrintAddStr [21:51:19]wPrintStart [21:51:19]Write to MH i2c: 01 00 00 C3 53 16 [21:51:19]Write i2c OK [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: 01 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: 01 07 00 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: 01 07 00 C3 53 00 80 00 00 00 FF 0F AB [21:51:19]RasterBufferAndPrint [21:51:19]line Счет N : (1)196255 [21:51:19]line ИНН: 02508201610067 [21:51:19]line Контрольно-Кассовый Чек [21:51:19]line ПРОДАЖА [21:51:19]line ТРК (МРК, ГНК) : 22 [21:51:19]line Товар: 2710124130 [21:51:19]line Аи-92-К-5 [21:51:19]line 10.000 * 62.90 [21:51:19]line = 629.00 [21:51:19]line НДС 12% НСП 1% [21:51:19]line > о реализуемом товаре [21:51:19]line ИТОГО: 629.00 [21:51:19]line НСП 1% : 5.57 [21:51:19]line НДС 12% : 66.80 [21:51:19]line Наличными: 0.00 [21:51:19]line Безнал.: 629.00 [21:51:19]line Место: АЗС № 6 "Партнер Нефть" [21:51:19]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:51:19]line СНО: Общий режим [21:51:19]line Чек 209 12.03.2024 21:51 [21:51:19]line Смена: 327 ФФД: 1.0 [21:51:19]line ЗНМ: 0300000009 [21:51:19]line РНМ: 0000000000090555 [21:51:19]line Версия ККМ: 001 [21:51:19]line Платежная система: Бакай Банк [21:51:19]line ФМ: 0000000000874811 [21:51:19]line ФД: 95279 [21:51:19]line ФПД: 31589998622002 [21:51:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T215125&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95279&fm=31589998622002&tin=02508201610067®Number=0000000000090555&sum=62900 [21:51:20]OFD Sender: Processing packet 95279 [packets to send 30, broken 29] [21:51:20]ProducePacketName [21:51:20]name=ofd_packets/00095279 [21:51:20]OFD Sender: To server: pG, [21:51:20]CommunicateWithHost lk.salyk.kg:30040 [21:51:20]ConnectInit lk.salyk.kg [21:51:20]written 0, free lines is 4095 [21:51:20]Connected sock=9 [21:51:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2A C1 07 01 08 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 5D CE F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2F 74 01 00 35 04 06 00 1C BB 1E A5 75 32 FD 97 FF 06 F6 B7 50 75 [21:51:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 CE 97 47 00 87 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2F 74 01 00 F4 03 04 00 B2 79 F0 65 B6 04 01 00 00 6E 9B 63 C8 96 7E 9C CD [21:51:20]CommunicateWithHost err = 0 [21:51:20]CheckOFDResponse [21:51:20]1017 (14) - 77093643461234 [21:51:20]1041 (16) - 0000000000874811 [21:51:20]1040 (4) - 95279 [21:51:20]1012 (4) - 12.03.2024 15:50 [21:51:20]1206 (1) - 0 [21:51:20]OFD Sender: Remove packet 95279 [21:51:20]ProducePacketName [21:51:20]name=ofd_packets/00095279 [21:51:20]NVStorageDeleteData [21:51:20]Write to MH i2c: 01 00 00 ED 53 40 [21:51:20]Write i2c OK [21:51:20]MH_I2C_Read... [21:51:20]Read from MH i2c: 01 [21:51:20]MH_I2C_Read... [21:51:20]Read from MH i2c: 01 07 00 [21:51:20]MH_I2C_Read... [21:51:20]Read from MH i2c: 01 07 00 ED 53 00 80 00 00 00 5B 0D 2F [21:51:20]RasterBufferAndPrint [21:51:20]line [21:51:20]line [21:51:20]line [21:51:20]line [21:51:20]line [21:51:20]written 0, free lines is 3425 [21:51:20]process_action close_receipt done [21:51:20]requested_data is exist [21:51:20]produce_requested_data [21:51:20]requested_item fm.sn is exist - process it [21:51:20]wFMCommunicate request_size=4 [21:51:20]MH_SAM_APDU [21:51:20]CAPDU: 80 11 00 00 [21:51:20]Write to MH i2c: E2 08 00 F4 53 80 11 00 00 00 00 00 00 C1 [21:51:20]Write i2c OK [21:51:20]MH_I2C_Read... [21:51:20]Read from MH i2c: E2 [21:51:20]MH_I2C_Read... [21:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:20]Read from MH i2c: E2 17 00 [21:51:20]MH_I2C_Read... [21:51:20]Read from MH i2c: E2 17 00 F4 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 11 [21:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:51:20]wFMCommunicate OK [21:51:20]requested_item fd.num is exist - process it [21:51:20]SAM_PROTO_GetFieldsCounters [21:51:20]wFMCommunicate request_size=4 [21:51:20]MH_SAM_APDU [21:51:20]CAPDU: 80 13 00 00 [21:51:20]Write to MH i2c: E2 08 00 F5 53 80 13 00 00 00 00 00 00 C4 [21:51:20]Write i2c OK [21:51:20]MH_I2C_Read... [21:51:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:20]Read from MH i2c: E2 [21:51:20]MH_I2C_Read... [21:51:20]Read from MH i2c: E2 62 00 [21:51:20]MH_I2C_Read... [21:51:20]Read from MH i2c: E2 62 00 F5 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2F 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [21:51:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2F 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:51:20]wFMCommunicate OK [21:51:20]SAM_PROTO_GetFieldsCounters done [21:51:20]requested_item shift.num is exist - process it [21:51:20]requested_item shift.opened is exist - process it [21:51:20]req_shift_opened [21:51:20]FM_GetShiftState [21:51:20]SAM_PROTO_GetShiftState [21:51:20]wFMCommunicate request_size=4 [21:51:20]MH_SAM_APDU [21:51:20]CAPDU: 80 13 01 00 [21:51:20]Write to MH i2c: E2 08 00 F6 53 80 13 01 00 00 00 00 00 C6 [21:51:20]Write i2c OK [21:51:20]MH_I2C_Read... [21:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:20]OFD Sender: No OFD packet to send [21:51:20]Read from MH i2c: E2 [21:51:20]MH_I2C_Read... [21:51:20]Read from MH i2c: E2 0E 00 [21:51:20]MH_I2C_Read... [21:51:20]Read from MH i2c: E2 0E 00 F6 53 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 3A [21:51:20]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [21:51:20]wFMCommunicate OK [21:51:20]SAM_PROTO_GetShiftState done [21:51:20]FM_GetShiftState done [21:51:20]req_shift_opened done [21:51:20]requested_item shift.open_date is exist - process it [21:51:20]req_shift_open_date [21:51:20]req_shift_open_date done [21:51:20]produce_requested_data done [21:51:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95279,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [21:51:20]process_action_free close_receipt [21:51:20]json_value_free [21:51:20]json_value_free done [21:51:20]process_json_proto returns [21:51:20]Send response to host [21:51:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95279,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [21:51:20]free response buf [21:51:20]execute_script done [21:51:20]execute_script returns [21:51:20]free content buf [21:51:20]Sock 10.Close socket [21:51:20]Sock 10.Thread stoped [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:15]accept exits with 8 [22:00:15]New connection [22:00:15]New thread 3066957156 created [22:00:15]Thread 3066813796 joined [22:00:15]Waiting for new connection... [22:00:15] Sock 8.Parse request [22:00:15]Sock 8.Check first char [22:00:15]Sock 8.First char is OK [22:00:15]request: POST /json_proto HTTP/1.0 [22:00:15]Method: POST [22:00:15]URL: /json_proto [22:00:15]Method is POST - this is cgi request [22:00:15]url: /json_proto [22:00:15]query_string will be loaded in cgi processing [22:00:15]execute_cgi json_proto POST (null) [22:00:15]execute_cgi path=json_proto method=POST [22:00:15]POST find Content-Length [22:00:15]Host: 172.17.62.67:8080 [22:00:15]Content-Length: 677 [22:00:15]Content-Type: application/json [22:00:15] [22:00:15]POST finish read [22:00:15]Found Content-Length = 677 [22:00:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:15]execute_script... [22:00: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)196256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:15]POST & json_proto [22:00:15]process_json_proto [22:00:15]json parsed OK: [22:00:15]protocol is kg_v1.0 [22:00:15]action value=close_receipt [22:00:15]process_action close_receipt [22:00:15]cmd_close_receipt [22:00:15]MH_GetDate [22:00:15]Write to MH i2c: F0 00 00 F7 53 39 [22:00:15]Write i2c OK [22:00:15]MH_I2C_Read... [22:00:15]Read from MH i2c: F0 [22:00:15]MH_I2C_Read... [22:00:15]Read from MH i2c: F0 05 00 [22:00:15]MH_I2C_Read... [22:00:15]Read from MH i2c: F0 05 00 F7 53 00 77 D0 F0 65 DA [22:00:15]GetLastDocTimeStamp 1710280285 [22:00:15]current date 1710280823 [22:00:15]FM_GetShiftState [22:00:15]SAM_PROTO_GetShiftState [22:00:15]wFMCommunicate request_size=4 [22:00:15]MH_SAM_APDU [22:00:15]CAPDU: 80 13 01 00 [22:00:15]Write to MH i2c: E2 08 00 F8 53 80 13 01 00 00 00 00 00 C8 [22:00:15]Write i2c OK [22:00:15]MH_I2C_Read... [22:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:15]Read from MH i2c: E2 [22:00:15]MH_I2C_Read... [22:00:15]Read from MH i2c: E2 0E 00 [22:00:15]MH_I2C_Read... [22:00:15]Read from MH i2c: E2 0E 00 F8 53 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 3C [22:00:15]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:00:15]wFMCommunicate OK [22:00:15]SAM_PROTO_GetShiftState done [22:00:15]FM_GetShiftState done [22:00:15]opened in 1710201976 [22:00:15]opened+sec_in_day 1710288376 [22:00:15]quantity*price = 40004 [22:00:15]sum+1 = 40005 [22:00:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 210 12.03.2024 22:00 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95280 ФПД: 250349220044464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T220023&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95280&fm=250349220044464&tin=02508201610067®Number=0000000000090555&sum=40000 [22:00:17]StoreToDocumentArchive [22:00:17]shift 327 fd 95280 [22:00:17]save to /storage/0327/doc_00095280 [22:00:17]save last doc name /storage/0327/doc_00095280 to /storage/kkm_last_doc_name [22:00:17]save OK [22:00:17]Clear old archive folders... [22:00:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:00:17]tlvbuf is 01B6DBB0 [22:00:17]SAM_PROTO_ClearQueue [22:00:17]wFMCommunicate request_size=4 [22:00:17]MH_SAM_APDU [22:00:17]CAPDU: 80 09 00 00 [22:00:17]Write to MH i2c: E2 08 00 05 54 80 09 00 00 00 00 00 00 CB [22:00:17]Write i2c OK [22:00:17]MH_I2C_Read... [22:00:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:00:17]Read from MH i2c: E2 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 03 00 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 03 00 05 54 00 90 00 CD [22:00:17]RAPDU: 90 00 [22:00:17]wFMCommunicate OK [22:00:17]SAM_PROTO_ClearQueue done [22:00:17]KKMCreateOFDPacket [22:00:17]OFDProtocolAddRootSTLVToBuf [22:00:17]FM_MakeSignedData [22:00:17]FM_MakeSignedData [22:00:17]SAM_PROTO_SignData [22:00:17]wFMCommunicate request_size=4 [22:00:17]MH_SAM_APDU [22:00:17]CAPDU: 80 0D 01 02 [22:00:17]Write to MH i2c: E2 08 00 06 54 80 0D 01 02 00 00 00 00 D3 [22:00:17]Write i2c OK [22:00:17]MH_I2C_Read... [22:00:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:00:17]Read from MH i2c: E2 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 03 00 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 03 00 06 54 00 90 00 CE [22:00:17]RAPDU: 90 00 [22:00:17]wFMCommunicate OK [22:00:17]wFMCommunicate request_size=255 [22:00:17]MH_SAM_APDU [22:00:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 D2 00 00 00 F4 03 04 00 77 D0 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 30 74 01 00 35 04 06 00 E3 [22:00:17]Write to MH i2c: E2 02 01 07 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 D2 00 00 00 F4 03 04 00 77 D0 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 30 74 01 00 35 04 06 00 E3 00 00 54 [22:00:17]Write i2c OK [22:00:17]MH_I2C_Read... [22:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:17]Read from MH i2c: E2 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 03 00 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 03 00 07 54 00 90 00 CF [22:00:17]RAPDU: 90 00 [22:00:17]wFMCommunicate OK [22:00:17]wFMCommunicate request_size=10 [22:00:17]MH_SAM_APDU [22:00:17]CAPDU: 80 0D 02 02 05 B0 F8 54 9E B0 [22:00:17]Write to MH i2c: E2 0D 00 08 54 80 0D 02 02 05 00 B0 F8 54 9E B0 00 00 2A [22:00:17]Write i2c OK [22:00:17]MH_I2C_Read... [22:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:17]Read from MH i2c: E2 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 03 00 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 03 00 08 54 00 90 00 D0 [22:00:17]RAPDU: 90 00 [22:00:17]wFMCommunicate OK [22:00:17]wFMCommunicate request_size=4 [22:00:17]MH_SAM_APDU [22:00:17]CAPDU: 80 0D 03 02 [22:00:17]Write to MH i2c: E2 08 00 09 54 80 0D 03 02 00 00 00 00 D8 [22:00:17]Write i2c OK [22:00:17]MH_I2C_Read... [22:00:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:00:17]Read from MH i2c: E2 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 0B 00 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 0B 00 09 54 00 37 DF 63 3F 82 3E 33 64 90 00 E8 [22:00:17]RAPDU: 37 DF 63 3F 82 3E 33 64 90 00 [22:00:17]wFMCommunicate OK [22:00:17]SAM_PROTO_SignData done [22:00:17]FM_MakeSignedData done [22:00:17]CreateOFDProtocolMessage [22:00:17]wFMCommunicate request_size=4 [22:00:17]MH_SAM_APDU [22:00:17]CAPDU: 80 11 00 00 [22:00:17]Write to MH i2c: E2 08 00 0A 54 80 11 00 00 00 00 00 00 D8 [22:00:17]Write i2c OK [22:00:17]MH_I2C_Read... [22:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:17]Read from MH i2c: E2 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 17 00 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 17 00 0A 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 28 [22:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:00:17]wFMCommunicate OK [22:00:17]CreateOFDProtocolMessage done [22:00:17]OFDSenderStorePacket 95280 [22:00:17]StoreOFDPacket docnum=95280 [22:00:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 5E F4 07 01 7D 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 D2 00 00 00 F4 03 04 00 77 D0 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 30 74 01 00 35 04 06 00 E3 B0 F8 54 9E B0 37 DF 63 3F 82 3E 33 64 [22:00:17]CheckFolder [22:00:17]dirname=/storage/ofd_packets [22:00:17]CheckFolder done [22:00:17]ProducePacketName [22:00:17]name=ofd_packets/00095280 [22:00:17]NVStorageSaveData ofd_packets/00095280 [22:00:17]File name is /storage/ofd_packets/00095280 [22:00:17]Write 301 bytes [22:00:17]NVStorageSaveData done [22:00:17]OFDSenderStorePacket done [22:00:17]KKMCreateOFDPacket done [22:00:17]NVStorageSaveData kkm_last_timestamp [22:00:17]File name is /storage/kkm_last_timestamp [22:00:17]Write 4 bytes [22:00:17]NVStorageSaveData done [22:00:17]ExternCall_PrintAddStr [22:00:17]wPrintStart [22:00:17]Write to MH i2c: 01 00 00 0B 54 5F [22:00:17]Write i2c OK [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: 01 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: 01 07 00 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: 01 07 00 0B 54 00 80 00 00 00 FF 0F F4 [22:00:17]RasterBufferAndPrint [22:00:17]line Счет N : (1)196256 [22:00:17]line ИНН: 02508201610067 [22:00:17]line Контрольно-Кассовый Чек [22:00:17]line ПРОДАЖА [22:00:17]line ТРК (МРК, ГНК) : 12 [22:00:17]line Товар: 2710124130 [22:00:17]line Аи-92-К-5 [22:00:17]line 6.360 * 62.90 [22:00:17]line = 400.04 [22:00:17]line НДС 12% НСП 1% [22:00:17]line > о реализуемом товаре [22:00:17]line ОКРУГЛЕНИЕ: -0.04 [22:00:17]line ИТОГО: 400.00 [22:00:17]line Внесено: 400.00 [22:00:17]line СДАЧА: 0.00 [22:00:17]line НСП 1% : 3.54 [22:00:17]line НДС 12% : 42.48 [22:00:17]line Наличными: 400.00 [22:00:17]line Безнал.: 0.00 [22:00:17]line Место: АЗС № 6 "Партнер Нефть" [22:00:17]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:00:17]line СНО: Общий режим [22:00:17]line Чек 210 12.03.2024 22:00 [22:00:17]line Смена: 327 ФФД: 1.0 [22:00:17]line ЗНМ: 0300000009 [22:00:17]line РНМ: 0000000000090555 [22:00:17]line Версия ККМ: 001 [22:00:17]line ФМ: 0000000000874811 [22:00:17]line ФД: 95280 [22:00:17]line ФПД: 250349220044464 [22:00:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T220023&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95280&fm=250349220044464&tin=02508201610067®Number=0000000000090555&sum=40000 [22:00:17]OFD Sender: Processing packet 95280 [packets to send 30, broken 29] [22:00:17]ProducePacketName [22:00:17]name=ofd_packets/00095280 [22:00:17]OFD Sender: To server: pG, [22:00:17]CommunicateWithHost lk.salyk.kg:30040 [22:00:17]ConnectInit lk.salyk.kg [22:00:17]written 0, free lines is 4095 [22:00:18]Write to MH i2c: 01 00 00 36 54 8A [22:00:18]Write i2c OK [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: 01 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: 01 07 00 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: 01 07 00 36 54 00 80 00 00 00 4A 0D 68 [22:00:18]RasterBufferAndPrint [22:00:18]line [22:00:18]line [22:00:18]line [22:00:18]line [22:00:18]line [22:00:18]written 0, free lines is 3408 [22:00:18]process_action close_receipt done [22:00:18]requested_data is exist [22:00:18]produce_requested_data [22:00:18]requested_item fm.sn is exist - process it [22:00:18]wFMCommunicate request_size=4 [22:00:18]MH_SAM_APDU [22:00:18]CAPDU: 80 11 00 00 [22:00:18]Write to MH i2c: E2 08 00 3D 54 80 11 00 00 00 00 00 00 0B [22:00:18]Write i2c OK [22:00:18]MH_I2C_Read... [22:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:18]Read from MH i2c: E2 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: E2 17 00 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: E2 17 00 3D 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5B [22:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:00:18]wFMCommunicate OK [22:00:18]requested_item fd.num is exist - process it [22:00:18]SAM_PROTO_GetFieldsCounters [22:00:18]wFMCommunicate request_size=4 [22:00:18]MH_SAM_APDU [22:00:18]CAPDU: 80 13 00 00 [22:00:18]Write to MH i2c: E2 08 00 3E 54 80 13 00 00 00 00 00 00 0E [22:00:18]Write i2c OK [22:00:18]MH_I2C_Read... [22:00:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:18]Read from MH i2c: E2 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: E2 62 00 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: E2 62 00 3E 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 30 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [22:00:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 30 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:00:18]wFMCommunicate OK [22:00:18]SAM_PROTO_GetFieldsCounters done [22:00:18]requested_item shift.num is exist - process it [22:00:18]requested_item shift.opened is exist - process it [22:00:18]req_shift_opened [22:00:18]FM_GetShiftState [22:00:18]SAM_PROTO_GetShiftState [22:00:18]wFMCommunicate request_size=4 [22:00:18]MH_SAM_APDU [22:00:18]CAPDU: 80 13 01 00 [22:00:18]Write to MH i2c: E2 08 00 3F 54 80 13 01 00 00 00 00 00 10 [22:00:18]Write i2c OK [22:00:18]MH_I2C_Read... [22:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:18]Read from MH i2c: E2 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: E2 0E 00 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: E2 0E 00 3F 54 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 84 [22:00:18]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:00:18]wFMCommunicate OK [22:00:18]SAM_PROTO_GetShiftState done [22:00:18]FM_GetShiftState done [22:00:18]req_shift_opened done [22:00:18]requested_item shift.open_date is exist - process it [22:00:18]req_shift_open_date [22:00:18]req_shift_open_date done [22:00:18]produce_requested_data done [22:00:18]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95280,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [22:00:18]process_action_free close_receipt [22:00:18]json_value_free [22:00:18]json_value_free done [22:00:18]process_json_proto returns [22:00:18]Send response to host [22:00:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95280,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [22:00:18]free response buf [22:00:18]execute_script done [22:00:18]execute_script returns [22:00:18]free content buf [22:00:18]Sock 8.Close socket [22:00:18]Sock 8.Thread stoped [22:00:27]recv_with_timeout no data received [22:00:54]Connected sock=11 [22:00:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 5E F4 07 01 7D 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 D2 00 00 00 F4 03 04 00 77 D0 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 30 74 01 00 35 04 06 00 E3 B0 F8 54 9E B0 37 DF 63 3F 82 3E 33 64 [22:00:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 07 A8 47 00 02 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 30 74 01 00 F4 03 04 00 F1 7B F0 65 B6 04 01 00 00 E2 28 AF 56 59 62 12 82 [22:00:55]CommunicateWithHost err = 0 [22:00:55]CheckOFDResponse [22:00:55]1017 (14) - 77093643461234 [22:00:55]1041 (16) - 0000000000874811 [22:00:55]1040 (4) - 95280 [22:00:55]1012 (4) - 12.03.2024 15:59 [22:00:55]1206 (1) - 0 [22:00:55]OFD Sender: Remove packet 95280 [22:00:55]ProducePacketName [22:00:55]name=ofd_packets/00095280 [22:00:55]NVStorageDeleteData [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:31]recv_with_timeout no data received [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:16]accept exits with 9 [22:06:16]New connection [22:06:16]New thread 3066813796 created [22:06:16]Thread 3066957156 joined [22:06:16]Waiting for new connection... [22:06:16] Sock 9.Parse request [22:06:16]Sock 9.Check first char [22:06:16]Sock 9.First char is OK [22:06:16]request: POST /json_proto HTTP/1.0 [22:06:16]Method: POST [22:06:16]URL: /json_proto [22:06:16]Method is POST - this is cgi request [22:06:16]url: /json_proto [22:06:16]query_string will be loaded in cgi processing [22:06:16]execute_cgi json_proto POST (null) [22:06:16]execute_cgi path=json_proto method=POST [22:06:16]POST find Content-Length [22:06:16]Host: 172.17.62.67:8080 [22:06:16]Content-Length: 682 [22:06:16]Content-Type: application/json [22:06:16] [22:06:16]POST finish read [22:06:16]Found Content-Length = 682 [22:06:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 15.000, "sum" : 1042.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1042.00, "total" : 1042.00, "payments": [ { "type": 0, "sum" : 1042.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:16]execute_script... [22:06: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)196257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 15.000, "sum" : 1042.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1042.00, "total" : 1042.00, "payments": [ { "type": 0, "sum" : 1042.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:16]POST & json_proto [22:06:16]process_json_proto [22:06:16]json parsed OK: [22:06:16]protocol is kg_v1.0 [22:06:16]action value=close_receipt [22:06:16]process_action close_receipt [22:06:16]cmd_close_receipt [22:06:16]MH_GetDate [22:06:16]Write to MH i2c: F0 00 00 40 54 83 [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: F0 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: F0 05 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: F0 05 00 40 54 00 E0 D1 F0 65 8E [22:06:16]GetLastDocTimeStamp 1710280823 [22:06:16]current date 1710281184 [22:06:16]FM_GetShiftState [22:06:16]SAM_PROTO_GetShiftState [22:06:16]wFMCommunicate request_size=4 [22:06:16]MH_SAM_APDU [22:06:16]CAPDU: 80 13 01 00 [22:06:16]Write to MH i2c: E2 08 00 41 54 80 13 01 00 00 00 00 00 12 [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:16]Read from MH i2c: E2 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 0E 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 0E 00 41 54 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 86 [22:06:16]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:06:16]wFMCommunicate OK [22:06:16]SAM_PROTO_GetShiftState done [22:06:16]FM_GetShiftState done [22:06:16]opened in 1710201976 [22:06:16]opened+sec_in_day 1710288376 [22:06:16]quantity*price = 104250 [22:06:16]sum+1 = 104251 [22:06:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1042.00 Внесено: 1042.00 СДАЧА: 0.00 НСП 1% : 9.23 НДС 12% : 110.71 Наличными: 1042.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 211 12.03.2024 22:06 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95281 ФПД: 8363678316219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T220624&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95281&fm=8363678316219&tin=02508201610067®Number=0000000000090555&sum=104200 [22:06:17]StoreToDocumentArchive [22:06:17]shift 327 fd 95281 [22:06:17]save to /storage/0327/doc_00095281 [22:06:17]save last doc name /storage/0327/doc_00095281 to /storage/kkm_last_doc_name [22:06:17]save OK [22:06:17]Clear old archive folders... [22:06:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:06:17]tlvbuf is 01A25DE0 [22:06:17]SAM_PROTO_ClearQueue [22:06:17]wFMCommunicate request_size=4 [22:06:17]MH_SAM_APDU [22:06:17]CAPDU: 80 09 00 00 [22:06:17]Write to MH i2c: E2 08 00 4E 54 80 09 00 00 00 00 00 00 14 [22:06:17]Write i2c OK [22:06:17]MH_I2C_Read... [22:06:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:17]Read from MH i2c: E2 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: E2 03 00 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: E2 03 00 4E 54 00 90 00 16 [22:06:17]RAPDU: 90 00 [22:06:17]wFMCommunicate OK [22:06:17]SAM_PROTO_ClearQueue done [22:06:17]KKMCreateOFDPacket [22:06:17]OFDProtocolAddRootSTLVToBuf [22:06:17]FM_MakeSignedData [22:06:17]FM_MakeSignedData [22:06:17]SAM_PROTO_SignData [22:06:17]wFMCommunicate request_size=4 [22:06:17]MH_SAM_APDU [22:06:17]CAPDU: 80 0D 01 02 [22:06:17]Write to MH i2c: E2 08 00 4F 54 80 0D 01 02 00 00 00 00 1C [22:06:17]Write i2c OK [22:06:17]MH_I2C_Read... [22:06:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:18]Read from MH i2c: E2 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 03 00 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 03 00 4F 54 00 90 00 17 [22:06:18]RAPDU: 90 00 [22:06:18]wFMCommunicate OK [22:06:18]wFMCommunicate request_size=255 [22:06:18]MH_SAM_APDU [22:06: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 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 3A 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 3A 97 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 97 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 2B 00 00 00 00 07 04 06 00 08 97 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 E0 D1 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 31 74 01 00 35 04 06 00 07 [22:06:18]Write to MH i2c: E2 02 01 50 54 80 0D 02 02 FA 00 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 3A 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 3A 97 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 97 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 2B 00 00 00 00 07 04 06 00 08 97 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 E0 D1 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 31 74 01 00 35 04 06 00 07 00 00 21 [22:06:18]Write i2c OK [22:06:18]MH_I2C_Read... [22:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:18]Read from MH i2c: E2 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 03 00 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 03 00 50 54 00 90 00 18 [22:06:18]RAPDU: 90 00 [22:06:18]wFMCommunicate OK [22:06:18]wFMCommunicate request_size=10 [22:06:18]MH_SAM_APDU [22:06:18]CAPDU: 80 0D 02 02 05 9B 52 13 36 BB [22:06:18]Write to MH i2c: E2 0D 00 51 54 80 0D 02 02 05 00 9B 52 13 36 BB 00 00 1A [22:06:18]Write i2c OK [22:06:18]MH_I2C_Read... [22:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:18]Read from MH i2c: E2 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 03 00 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 03 00 51 54 00 90 00 19 [22:06:18]RAPDU: 90 00 [22:06:18]wFMCommunicate OK [22:06:18]wFMCommunicate request_size=4 [22:06:18]MH_SAM_APDU [22:06:18]CAPDU: 80 0D 03 02 [22:06:18]Write to MH i2c: E2 08 00 52 54 80 0D 03 02 00 00 00 00 21 [22:06:18]Write i2c OK [22:06:18]MH_I2C_Read... [22:06:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:18]Read from MH i2c: E2 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 0B 00 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 0B 00 52 54 00 9D 86 81 50 B4 BE CB 00 90 00 53 [22:06:18]RAPDU: 9D 86 81 50 B4 BE CB 00 90 00 [22:06:18]wFMCommunicate OK [22:06:18]SAM_PROTO_SignData done [22:06:18]FM_MakeSignedData done [22:06:18]CreateOFDProtocolMessage [22:06:18]wFMCommunicate request_size=4 [22:06:18]MH_SAM_APDU [22:06:18]CAPDU: 80 11 00 00 [22:06:18]Write to MH i2c: E2 08 00 53 54 80 11 00 00 00 00 00 00 21 [22:06:18]Write i2c OK [22:06:18]MH_I2C_Read... [22:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:18]Read from MH i2c: E2 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 17 00 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 17 00 53 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 71 [22:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:06:18]wFMCommunicate OK [22:06:18]CreateOFDProtocolMessage done [22:06:18]OFDSenderStorePacket 95281 [22:06:18]StoreOFDPacket docnum=95281 [22:06:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 FA 6A 07 01 FA D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 3A 97 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 97 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 2B 00 00 00 00 07 04 06 00 08 97 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 E0 D1 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 31 74 01 00 35 04 06 00 07 9B 52 13 36 BB 9D 86 81 50 B4 BE CB 00 [22:06:18]CheckFolder [22:06:18]dirname=/storage/ofd_packets [22:06:18]CheckFolder done [22:06:18]ProducePacketName [22:06:18]name=ofd_packets/00095281 [22:06:18]NVStorageSaveData ofd_packets/00095281 [22:06:18]File name is /storage/ofd_packets/00095281 [22:06:18]Write 301 bytes [22:06:18]NVStorageSaveData done [22:06:18]OFDSenderStorePacket done [22:06:18]KKMCreateOFDPacket done [22:06:18]NVStorageSaveData kkm_last_timestamp [22:06:18]File name is /storage/kkm_last_timestamp [22:06:18]Write 4 bytes [22:06:18]NVStorageSaveData done [22:06:18]ExternCall_PrintAddStr [22:06:18]wPrintStart [22:06:18]Write to MH i2c: 01 00 00 54 54 A8 [22:06:18]Write i2c OK [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: 01 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: 01 07 00 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: 01 07 00 54 54 00 80 00 00 00 FF 0F 3D [22:06:18]RasterBufferAndPrint [22:06:18]line Счет N : (1)196257 [22:06:18]line ИНН: 02508201610067 [22:06:18]line Контрольно-Кассовый Чек [22:06:18]line ПРОДАЖА [22:06:18]line ТРК (МРК, ГНК) : 31 [22:06:18]line Товар: 2710124500 [22:06:18]line Аи-95-К-5 [22:06:18]line 15.000 * 69.50 [22:06:18]line = 1042.50 [22:06:18]line НДС 12% НСП 1% [22:06:18]line > о реализуемом товаре [22:06:18]line ОКРУГЛЕНИЕ: -0.50 [22:06:18]line ИТОГО: 1042.00 [22:06:18]line Внесено: 1042.00 [22:06:18]line СДАЧА: 0.00 [22:06:18]line НСП 1% : 9.23 [22:06:18]line НДС 12% : 110.71 [22:06:18]line Наличными: 1042.00 [22:06:18]line Безнал.: 0.00 [22:06:18]line Место: АЗС № 6 "Партнер Нефть" [22:06:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:06:18]line СНО: Общий режим [22:06:18]line Чек 211 12.03.2024 22:06 [22:06:18]line Смена: 327 ФФД: 1.0 [22:06:18]line ЗНМ: 0300000009 [22:06:18]line РНМ: 0000000000090555 [22:06:18]line Версия ККМ: 001 [22:06:18]line ФМ: 0000000000874811 [22:06:18]line ФД: 95281 [22:06:18]line ФПД: 8363678316219 [22:06:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T220624&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95281&fm=8363678316219&tin=02508201610067®Number=0000000000090555&sum=104200 [22:06:18]OFD Sender: Processing packet 95281 [packets to send 30, broken 29] [22:06:18]ProducePacketName [22:06:18]name=ofd_packets/00095281 [22:06:18]OFD Sender: To server: pG, [22:06:18]CommunicateWithHost lk.salyk.kg:30040 [22:06:18]ConnectInit lk.salyk.kg [22:06:18]written 0, free lines is 4095 [22:06:18]Connected sock=10 [22:06:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 FA 6A 07 01 FA D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 3A 97 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 97 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 2B 00 00 00 00 07 04 06 00 08 97 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 E0 D1 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 31 74 01 00 35 04 06 00 07 9B 52 13 36 BB 9D 86 81 50 B4 BE CB 00 [22:06:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 37 FE 47 00 65 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 31 74 01 00 F4 03 04 00 35 7D F0 65 B6 04 01 00 00 FD BA E0 23 BB 76 93 1A [22:06:19]CommunicateWithHost err = 0 [22:06:19]CheckOFDResponse [22:06:19]1017 (14) - 77093643461234 [22:06:19]1041 (16) - 0000000000874811 [22:06:19]1040 (4) - 95281 [22:06:19]1012 (4) - 12.03.2024 16:05 [22:06:19]1206 (1) - 0 [22:06:19]OFD Sender: Remove packet 95281 [22:06:19]ProducePacketName [22:06:19]name=ofd_packets/00095281 [22:06:19]NVStorageDeleteData [22:06:19]Write to MH i2c: 01 00 00 7F 54 D3 [22:06:19]Write i2c OK [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: 01 [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: 01 07 00 [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: 01 07 00 7F 54 00 80 00 00 00 4E 0D B5 [22:06:19]RasterBufferAndPrint [22:06:19]line [22:06:19]line [22:06:19]line [22:06:19]line [22:06:19]line [22:06:19]written 0, free lines is 3414 [22:06:19]process_action close_receipt done [22:06:19]requested_data is exist [22:06:19]produce_requested_data [22:06:19]requested_item fm.sn is exist - process it [22:06:19]wFMCommunicate request_size=4 [22:06:19]MH_SAM_APDU [22:06:19]CAPDU: 80 11 00 00 [22:06:19]Write to MH i2c: E2 08 00 86 54 80 11 00 00 00 00 00 00 54 [22:06:19]Write i2c OK [22:06:19]MH_I2C_Read... [22:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:19]Read from MH i2c: E2 [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: E2 17 00 [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: E2 17 00 86 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A4 [22:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:06:19]wFMCommunicate OK [22:06:19]requested_item fd.num is exist - process it [22:06:19]SAM_PROTO_GetFieldsCounters [22:06:19]wFMCommunicate request_size=4 [22:06:19]MH_SAM_APDU [22:06:19]CAPDU: 80 13 00 00 [22:06:19]Write to MH i2c: E2 08 00 87 54 80 13 00 00 00 00 00 00 57 [22:06:19]Write i2c OK [22:06:19]MH_I2C_Read... [22:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:19]Read from MH i2c: E2 [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: E2 62 00 [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: E2 62 00 87 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 31 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [22:06:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 31 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:19]wFMCommunicate OK [22:06:19]SAM_PROTO_GetFieldsCounters done [22:06:19]requested_item shift.num is exist - process it [22:06:19]requested_item shift.opened is exist - process it [22:06:19]req_shift_opened [22:06:19]FM_GetShiftState [22:06:19]SAM_PROTO_GetShiftState [22:06:19]wFMCommunicate request_size=4 [22:06:19]MH_SAM_APDU [22:06:19]CAPDU: 80 13 01 00 [22:06:19]Write to MH i2c: E2 08 00 88 54 80 13 01 00 00 00 00 00 59 [22:06:19]Write i2c OK [22:06:19]MH_I2C_Read... [22:06:19]OFD Sender: No OFD packet to send [22:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:19]Read from MH i2c: E2 [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: E2 0E 00 [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: E2 0E 00 88 54 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CD [22:06:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:06:19]wFMCommunicate OK [22:06:19]SAM_PROTO_GetShiftState done [22:06:19]FM_GetShiftState done [22:06:19]req_shift_opened done [22:06:19]requested_item shift.open_date is exist - process it [22:06:19]req_shift_open_date [22:06:19]req_shift_open_date done [22:06:19]produce_requested_data done [22:06:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95281,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [22:06:19]process_action_free close_receipt [22:06:19]json_value_free [22:06:19]json_value_free done [22:06:19]process_json_proto returns [22:06:19]Send response to host [22:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95281,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [22:06:19]free response buf [22:06:19]execute_script done [22:06:19]execute_script returns [22:06:19]free content buf [22:06:19]Sock 9.Close socket [22:06:19]Sock 9.Thread stoped [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]recv_with_timeout no data received [22:08:34]OFD Sender: No OFD packet to send [22:18:08]ConnectInit Can't connect to host [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:49]recv_with_timeout no data received [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:02]recv_with_timeout no data received [22:20:03]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:27]recv_with_timeout no data received [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:44]recv_with_timeout no data received [22:20:48]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:32]recv_with_timeout no data received [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:45]recv_with_timeout no data received [22:21:48]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]ConnectInit Can't connect to host [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:50]recv_with_timeout no data received [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:18]recv_with_timeout no data received [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:51]accept exits with 10 [22:27:51]New connection [22:27:51]New thread 3066813796 created [22:27:51]Thread 3066957156 joined [22:27:51]Waiting for new connection... [22:27:51] Sock 10.Parse request [22:27:51]Sock 10.Check first char [22:27:51]Sock 10.First char is OK [22:27:51]request: POST /json_proto HTTP/1.0 [22:27:51]Method: POST [22:27:51]URL: /json_proto [22:27:51]Method is POST - this is cgi request [22:27:51]url: /json_proto [22:27:51]query_string will be loaded in cgi processing [22:27:51]execute_cgi json_proto POST (null) [22:27:51]execute_cgi path=json_proto method=POST [22:27:51]POST find Content-Length [22:27:51]Host: 172.17.62.67:8080 [22:27:51]Content-Length: 674 [22:27:51]Content-Type: application/json [22:27:51] [22:27:51]POST finish read [22:27:51]Found Content-Length = 674 [22:27:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 8.470, "sum" : 600.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:51]execute_script... [22:27:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 8.470, "sum" : 600.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:51]POST & json_proto [22:27:51]process_json_proto [22:27:51]json parsed OK: [22:27:51]protocol is kg_v1.0 [22:27:51]action value=close_receipt [22:27:51]process_action close_receipt [22:27:51]cmd_close_receipt [22:27:51]MH_GetDate [22:27:51]Write to MH i2c: F0 00 00 D2 54 15 [22:27:51]Write i2c OK [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: F0 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: F0 05 00 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: F0 05 00 D2 54 00 EE D6 F0 65 33 [22:27:51]GetLastDocTimeStamp 1710281402 [22:27:51]current date 1710282478 [22:27:51]FM_GetShiftState [22:27:51]SAM_PROTO_GetShiftState [22:27:51]wFMCommunicate request_size=4 [22:27:51]MH_SAM_APDU [22:27:51]CAPDU: 80 13 01 00 [22:27:51]Write to MH i2c: E2 08 00 D3 54 80 13 01 00 00 00 00 00 A4 [22:27:51]Write i2c OK [22:27:51]MH_I2C_Read... [22:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:51]Read from MH i2c: E2 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: E2 0E 00 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: E2 0E 00 D3 54 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 18 [22:27:51]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:27:51]wFMCommunicate OK [22:27:51]SAM_PROTO_GetShiftState done [22:27:51]FM_GetShiftState done [22:27:51]opened in 1710201976 [22:27:51]opened+sec_in_day 1710288376 [22:27:51]quantity*price = 60052 [22:27:51]sum+1 = 60053 [22:27:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 213 12.03.2024 22:27 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95283 ФПД: 145300207094346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T222758&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95283&fm=145300207094346&tin=02508201610067®Number=0000000000090555&sum=60000 [22:27:52]StoreToDocumentArchive [22:27:52]shift 327 fd 95283 [22:27:52]save to /storage/0327/doc_00095283 [22:27:52]save last doc name /storage/0327/doc_00095283 to /storage/kkm_last_doc_name [22:27:52]save OK [22:27:52]Clear old archive folders... [22:27:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:27:52]tlvbuf is 01B53B00 [22:27:52]SAM_PROTO_ClearQueue [22:27:52]wFMCommunicate request_size=4 [22:27:52]MH_SAM_APDU [22:27:52]CAPDU: 80 09 00 00 [22:27:52]Write to MH i2c: E2 08 00 E0 54 80 09 00 00 00 00 00 00 A6 [22:27:52]Write i2c OK [22:27:52]MH_I2C_Read... [22:27:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:52]Read from MH i2c: E2 [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: E2 03 00 [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: E2 03 00 E0 54 00 90 00 A8 [22:27:52]RAPDU: 90 00 [22:27:52]wFMCommunicate OK [22:27:52]SAM_PROTO_ClearQueue done [22:27:52]KKMCreateOFDPacket [22:27:52]OFDProtocolAddRootSTLVToBuf [22:27:52]FM_MakeSignedData [22:27:52]FM_MakeSignedData [22:27:52]SAM_PROTO_SignData [22:27:52]wFMCommunicate request_size=4 [22:27:52]MH_SAM_APDU [22:27:52]CAPDU: 80 0D 01 02 [22:27:52]Write to MH i2c: E2 08 00 E1 54 80 0D 01 02 00 00 00 00 AE [22:27:52]Write i2c OK [22:27:52]MH_I2C_Read... [22:27:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:52]Read from MH i2c: E2 [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: E2 03 00 [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: E2 03 00 E1 54 00 90 00 A9 [22:27:52]RAPDU: 90 00 [22:27:52]wFMCommunicate OK [22:27:52]wFMCommunicate request_size=255 [22:27:52]MH_SAM_APDU [22:27:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 21 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 94 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 E9 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 D5 00 00 00 F4 03 04 00 EE D6 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 33 74 01 00 35 04 06 00 84 26 57 3A [22:27:52]Write to MH i2c: E2 02 01 E2 54 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 21 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 94 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 E9 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 D5 00 00 00 F4 03 04 00 EE D6 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 33 74 01 00 35 04 06 00 84 26 57 3A 00 00 4C [22:27:52]Write i2c OK [22:27:52]MH_I2C_Read... [22:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:52]Read from MH i2c: E2 [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: E2 03 00 [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: E2 03 00 E2 54 00 90 00 AA [22:27:52]RAPDU: 90 00 [22:27:52]wFMCommunicate OK [22:27:52]wFMCommunicate request_size=7 [22:27:52]MH_SAM_APDU [22:27:52]CAPDU: 80 0D 02 02 02 CA 4A [22:27:52]Write to MH i2c: E2 0A 00 E3 54 80 0D 02 02 02 00 CA 4A 00 00 C9 [22:27:52]Write i2c OK [22:27:52]MH_I2C_Read... [22:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:53]Read from MH i2c: E2 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 03 00 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 03 00 E3 54 00 90 00 AB [22:27:53]RAPDU: 90 00 [22:27:53]wFMCommunicate OK [22:27:53]wFMCommunicate request_size=4 [22:27:53]MH_SAM_APDU [22:27:53]CAPDU: 80 0D 03 02 [22:27:53]Write to MH i2c: E2 08 00 E4 54 80 0D 03 02 00 00 00 00 B3 [22:27:53]Write i2c OK [22:27:53]MH_I2C_Read... [22:27:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:53]Read from MH i2c: E2 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 0B 00 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 0B 00 E4 54 00 81 BE 9B D7 40 9B 8E EC 90 00 BA [22:27:53]RAPDU: 81 BE 9B D7 40 9B 8E EC 90 00 [22:27:53]wFMCommunicate OK [22:27:53]SAM_PROTO_SignData done [22:27:53]FM_MakeSignedData done [22:27:53]CreateOFDProtocolMessage [22:27:53]wFMCommunicate request_size=4 [22:27:53]MH_SAM_APDU [22:27:53]CAPDU: 80 11 00 00 [22:27:53]Write to MH i2c: E2 08 00 E5 54 80 11 00 00 00 00 00 00 B3 [22:27:53]Write i2c OK [22:27:53]MH_I2C_Read... [22:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:53]Read from MH i2c: E2 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 17 00 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 17 00 E5 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 03 [22:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:27:53]wFMCommunicate OK [22:27:53]CreateOFDProtocolMessage done [22:27:53]OFDSenderStorePacket 95283 [22:27:53]StoreOFDPacket docnum=95283 [22:27:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 EA DF 04 01 32 E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 21 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 94 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 E9 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 D5 00 00 00 F4 03 04 00 EE D6 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 33 74 01 00 35 04 06 00 84 26 57 3A CA 4A 81 BE 9B D7 40 9B 8E EC [22:27:53]CheckFolder [22:27:53]dirname=/storage/ofd_packets [22:27:53]CheckFolder done [22:27:53]ProducePacketName [22:27:53]name=ofd_packets/00095283 [22:27:53]NVStorageSaveData ofd_packets/00095283 [22:27:53]File name is /storage/ofd_packets/00095283 [22:27:53]Write 298 bytes [22:27:53]NVStorageSaveData done [22:27:53]OFDSenderStorePacket done [22:27:53]KKMCreateOFDPacket done [22:27:53]NVStorageSaveData kkm_last_timestamp [22:27:53]File name is /storage/kkm_last_timestamp [22:27:53]Write 4 bytes [22:27:53]NVStorageSaveData done [22:27:53]ExternCall_PrintAddStr [22:27:53]wPrintStart [22:27:53]Write to MH i2c: 01 00 00 E6 54 3A [22:27:53]Write i2c OK [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: 01 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: 01 07 00 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: 01 07 00 E6 54 00 80 00 00 00 FF 0F CF [22:27:53]RasterBufferAndPrint [22:27:53]line Счет N : (1)196259 [22:27:53]line ИНН: 02508201610067 [22:27:53]line Контрольно-Кассовый Чек [22:27:53]line ПРОДАЖА [22:27:53]line ТРК (МРК, ГНК) : 51 [22:27:53]line Товар: 2710194210 [22:27:53]line ДТ-К-5 [22:27:53]line 8.470 * 70.90 [22:27:53]line = 600.52 [22:27:53]line НДС 12% НСП 1% [22:27:53]line > о реализуемом товаре [22:27:53]line ОКРУГЛЕНИЕ: -0.52 [22:27:53]line ИТОГО: 600.00 [22:27:53]line Внесено: 600.00 [22:27:53]line СДАЧА: 0.00 [22:27:53]line НСП 1% : 5.31 [22:27:53]line НДС 12% : 63.77 [22:27:53]line Наличными: 600.00 [22:27:53]line Безнал.: 0.00 [22:27:53]line Место: АЗС № 6 "Партнер Нефть" [22:27:53]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:27:53]line СНО: Общий режим [22:27:53]line Чек 213 12.03.2024 22:27 [22:27:53]line Смена: 327 ФФД: 1.0 [22:27:53]line ЗНМ: 0300000009 [22:27:53]line РНМ: 0000000000090555 [22:27:53]line Версия ККМ: 001 [22:27:53]line ФМ: 0000000000874811 [22:27:53]line ФД: 95283 [22:27:53]line ФПД: 145300207094346 [22:27:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T222758&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95283&fm=145300207094346&tin=02508201610067®Number=0000000000090555&sum=60000 [22:27:53]OFD Sender: Processing packet 95283 [packets to send 30, broken 29] [22:27:53]ProducePacketName [22:27:53]name=ofd_packets/00095283 [22:27:53]OFD Sender: To server: pG, [22:27:53]CommunicateWithHost lk.salyk.kg:30040 [22:27:53]ConnectInit lk.salyk.kg [22:27:53]written 0, free lines is 4095 [22:27:53]Connected sock=11 [22:27:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 EA DF 04 01 32 E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 21 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 94 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 E9 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 D5 00 00 00 F4 03 04 00 EE D6 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 33 74 01 00 35 04 06 00 84 26 57 3A CA 4A 81 BE 9B D7 40 9B 8E EC [22:27:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 0E 97 47 00 99 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 33 74 01 00 F4 03 04 00 43 82 F0 65 B6 04 01 00 00 0C E0 49 E7 04 69 D6 97 [22:27:53]CommunicateWithHost err = 0 [22:27:53]CheckOFDResponse [22:27:53]1017 (14) - 77093643461234 [22:27:53]1041 (16) - 0000000000874811 [22:27:53]1040 (4) - 95283 [22:27:53]1012 (4) - 12.03.2024 16:26 [22:27:53]1206 (1) - 0 [22:27:53]OFD Sender: Remove packet 95283 [22:27:53]ProducePacketName [22:27:53]name=ofd_packets/00095283 [22:27:53]NVStorageDeleteData [22:27:53]Write to MH i2c: 01 00 00 11 55 66 [22:27:53]Write i2c OK [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: 01 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: 01 07 00 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: 01 07 00 11 55 00 80 00 00 00 4C 0D 46 [22:27:53]RasterBufferAndPrint [22:27:53]line [22:27:53]line [22:27:53]line [22:27:53]line [22:27:53]line [22:27:53]written 0, free lines is 3410 [22:27:53]process_action close_receipt done [22:27:53]requested_data is exist [22:27:53]produce_requested_data [22:27:53]requested_item fm.sn is exist - process it [22:27:53]wFMCommunicate request_size=4 [22:27:53]MH_SAM_APDU [22:27:53]CAPDU: 80 11 00 00 [22:27:53]Write to MH i2c: E2 08 00 18 55 80 11 00 00 00 00 00 00 E7 [22:27:53]Write i2c OK [22:27:53]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 [22:27:54]MH_I2C_Read... [22:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:54]Read from MH i2c: E2 17 00 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 17 00 18 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 37 [22:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:27:54]wFMCommunicate OK [22:27:54]requested_item fd.num is exist - process it [22:27:54]SAM_PROTO_GetFieldsCounters [22:27:54]wFMCommunicate request_size=4 [22:27:54]MH_SAM_APDU [22:27:54]CAPDU: 80 13 00 00 [22:27:54]Write to MH i2c: E2 08 00 19 55 80 13 00 00 00 00 00 00 EA [22:27:54]Write i2c OK [22:27:54]MH_I2C_Read... [22:27:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:54]Read from MH i2c: E2 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 62 00 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 62 00 19 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 33 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [22:27:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 33 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:54]wFMCommunicate OK [22:27:54]SAM_PROTO_GetFieldsCounters done [22:27:54]requested_item shift.num is exist - process it [22:27:54]requested_item shift.opened is exist - process it [22:27:54]req_shift_opened [22:27:54]FM_GetShiftState [22:27:54]SAM_PROTO_GetShiftState [22:27:54]wFMCommunicate request_size=4 [22:27:54]MH_SAM_APDU [22:27:54]CAPDU: 80 13 01 00 [22:27:54]Write to MH i2c: E2 08 00 1A 55 80 13 01 00 00 00 00 00 EC [22:27:54]Write i2c OK [22:27:54]MH_I2C_Read... [22:27:54]OFD Sender: No OFD packet to send [22:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:54]Read from MH i2c: E2 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 0E 00 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 0E 00 1A 55 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 60 [22:27:54]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:27:54]wFMCommunicate OK [22:27:54]SAM_PROTO_GetShiftState done [22:27:54]FM_GetShiftState done [22:27:54]req_shift_opened done [22:27:54]requested_item shift.open_date is exist - process it [22:27:54]req_shift_open_date [22:27:54]req_shift_open_date done [22:27:54]produce_requested_data done [22:27:54]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95283,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [22:27:54]process_action_free close_receipt [22:27:54]json_value_free [22:27:54]json_value_free done [22:27:54]process_json_proto returns [22:27:54]Send response to host [22:27:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95283,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [22:27:54]free response buf [22:27:54]execute_script done [22:27:54]execute_script returns [22:27:54]free content buf [22:27:54]Sock 10.Close socket [22:27:54]Sock 10.Thread stoped [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:33]ConnectInit Can't connect to host [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:16]accept exits with 9 [22:34:16]New connection [22:34:16]New thread 3066957156 created [22:34:16]Thread 3066813796 joined [22:34:16]Waiting for new connection... [22:34:16] Sock 9.Parse request [22:34:16]Sock 9.Check first char [22:34:16]Sock 9.First char is OK [22:34:16]request: POST /json_proto HTTP/1.0 [22:34:16]Method: POST [22:34:16]URL: /json_proto [22:34:16]Method is POST - this is cgi request [22:34:16]url: /json_proto [22:34:16]query_string will be loaded in cgi processing [22:34:16]execute_cgi json_proto POST (null) [22:34:16]execute_cgi path=json_proto method=POST [22:34:16]POST find Content-Length [22:34:16]Host: 172.17.62.67:8080 [22:34:16]Content-Length: 675 [22:34:16]Content-Type: application/json [22:34:16] [22:34:16]POST finish read [22:34:16]Found Content-Length = 675 [22:34:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 31.300, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:16]execute_script... [22:34: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)196260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 31.300, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:16]POST & json_proto [22:34:16]process_json_proto [22:34:16]json parsed OK: [22:34:16]protocol is kg_v1.0 [22:34:16]action value=close_receipt [22:34:16]process_action close_receipt [22:34:16]cmd_close_receipt [22:34:16]MH_GetDate [22:34:16]Write to MH i2c: F0 00 00 1B 55 5F [22:34:16]Write i2c OK [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: F0 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: F0 05 00 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: F0 05 00 1B 55 00 6F D8 F0 65 00 [22:34:16]GetLastDocTimeStamp 1710282478 [22:34:16]current date 1710282863 [22:34:16]FM_GetShiftState [22:34:16]SAM_PROTO_GetShiftState [22:34:16]wFMCommunicate request_size=4 [22:34:16]MH_SAM_APDU [22:34:16]CAPDU: 80 13 01 00 [22:34:16]Write to MH i2c: E2 08 00 1C 55 80 13 01 00 00 00 00 00 EE [22:34:16]Write i2c OK [22:34:16]MH_I2C_Read... [22:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:16]Read from MH i2c: E2 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: E2 0E 00 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: E2 0E 00 1C 55 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 62 [22:34:16]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:34:16]wFMCommunicate OK [22:34:16]SAM_PROTO_GetShiftState done [22:34:16]FM_GetShiftState done [22:34:16]opened in 1710201976 [22:34:16]opened+sec_in_day 1710288376 [22:34:16]quantity*price = 200007 [22:34:16]sum+1 = 200008 [22:34:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 214 12.03.2024 22:34 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95284 ФПД: 38934978578883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T223423&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95284&fm=38934978578883&tin=02508201610067®Number=0000000000090555&sum=200000 [22:34:17]StoreToDocumentArchive [22:34:17]shift 327 fd 95284 [22:34:17]save to /storage/0327/doc_00095284 [22:34:17]save last doc name /storage/0327/doc_00095284 to /storage/kkm_last_doc_name [22:34:17]save OK [22:34:17]Clear old archive folders... [22:34:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:34:17]tlvbuf is 01B53E60 [22:34:17]SAM_PROTO_ClearQueue [22:34:17]wFMCommunicate request_size=4 [22:34:17]MH_SAM_APDU [22:34:17]CAPDU: 80 09 00 00 [22:34:17]Write to MH i2c: E2 08 00 29 55 80 09 00 00 00 00 00 00 F0 [22:34:17]Write i2c OK [22:34:17]MH_I2C_Read... [22:34:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:34:17]Read from MH i2c: E2 [22:34:17]MH_I2C_Read... [22:34:17]Read from MH i2c: E2 03 00 [22:34:17]MH_I2C_Read... [22:34:17]Read from MH i2c: E2 03 00 29 55 00 90 00 F2 [22:34:17]RAPDU: 90 00 [22:34:17]wFMCommunicate OK [22:34:17]SAM_PROTO_ClearQueue done [22:34:17]KKMCreateOFDPacket [22:34:17]OFDProtocolAddRootSTLVToBuf [22:34:17]FM_MakeSignedData [22:34:17]FM_MakeSignedData [22:34:17]SAM_PROTO_SignData [22:34:17]wFMCommunicate request_size=4 [22:34:17]MH_SAM_APDU [22:34:17]CAPDU: 80 0D 01 02 [22:34:17]Write to MH i2c: E2 08 00 2A 55 80 0D 01 02 00 00 00 00 F8 [22:34:17]Write i2c OK [22:34:17]MH_I2C_Read... [22:34:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:34:17]Read from MH i2c: E2 [22:34:17]MH_I2C_Read... [22:34:17]Read from MH i2c: E2 03 00 [22:34:17]MH_I2C_Read... [22:34:17]Read from MH i2c: E2 03 00 2A 55 00 90 00 F3 [22:34:17]RAPDU: 90 00 [22:34:17]wFMCommunicate OK [22:34:17]wFMCommunicate request_size=255 [22:34:17]MH_SAM_APDU [22:34: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 6F D8 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 34 74 01 00 35 04 06 00 [22:34:17]Write to MH i2c: E2 02 01 2B 55 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 6F D8 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 34 74 01 00 35 04 06 00 00 00 FB [22:34:17]Write i2c OK [22:34:17]MH_I2C_Read... [22:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:17]Read from MH i2c: E2 [22:34:17]MH_I2C_Read... [22:34:17]Read from MH i2c: E2 03 00 [22:34:17]MH_I2C_Read... [22:34:17]Read from MH i2c: E2 03 00 2B 55 00 90 00 F4 [22:34:17]RAPDU: 90 00 [22:34:17]wFMCommunicate OK [22:34:17]wFMCommunicate request_size=11 [22:34:17]MH_SAM_APDU [22:34:17]CAPDU: 80 0D 02 02 06 23 69 41 91 49 C3 [22:34:17]Write to MH i2c: E2 0E 00 2C 55 80 0D 02 02 06 00 23 69 41 91 49 C3 00 00 71 [22:34:17]Write i2c OK [22:34:17]MH_I2C_Read... [22:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:17]Read from MH i2c: E2 [22:34:17]MH_I2C_Read... [22:34:17]Read from MH i2c: E2 03 00 [22:34:17]MH_I2C_Read... [22:34:17]Read from MH i2c: E2 03 00 2C 55 00 90 00 F5 [22:34:17]RAPDU: 90 00 [22:34:17]wFMCommunicate OK [22:34:17]wFMCommunicate request_size=4 [22:34:17]MH_SAM_APDU [22:34:17]CAPDU: 80 0D 03 02 [22:34:17]Write to MH i2c: E2 08 00 2D 55 80 0D 03 02 00 00 00 00 FD [22:34:17]Write i2c OK [22:34:17]MH_I2C_Read... [22:34:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:34:17]Read from MH i2c: E2 [22:34:17]MH_I2C_Read... [22:34:17]Read from MH i2c: E2 0B 00 [22:34:17]MH_I2C_Read... [22:34:17]Read from MH i2c: E2 0B 00 2D 55 00 35 EB 95 A8 87 97 D6 10 90 00 5F [22:34:17]RAPDU: 35 EB 95 A8 87 97 D6 10 90 00 [22:34:17]wFMCommunicate OK [22:34:17]SAM_PROTO_SignData done [22:34:17]FM_MakeSignedData done [22:34:17]CreateOFDProtocolMessage [22:34:17]wFMCommunicate request_size=4 [22:34:17]MH_SAM_APDU [22:34:17]CAPDU: 80 11 00 00 [22:34:17]Write to MH i2c: E2 08 00 2E 55 80 11 00 00 00 00 00 00 FD [22:34:17]Write i2c OK [22:34:17]MH_I2C_Read... [22:34:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:18]Read from MH i2c: E2 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: E2 17 00 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: E2 17 00 2E 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4D [22:34:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:34:18]wFMCommunicate OK [22:34:18]CreateOFDProtocolMessage done [22:34:18]OFDSenderStorePacket 95284 [22:34:18]StoreOFDPacket docnum=95284 [22:34:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 25 6A 08 01 BD A2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 6F D8 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 34 74 01 00 35 04 06 00 23 69 41 91 49 C3 35 EB 95 A8 87 97 D6 10 [22:34:18]CheckFolder [22:34:18]dirname=/storage/ofd_packets [22:34:18]CheckFolder done [22:34:18]ProducePacketName [22:34:18]name=ofd_packets/00095284 [22:34:18]NVStorageSaveData ofd_packets/00095284 [22:34:18]File name is /storage/ofd_packets/00095284 [22:34:18]Write 302 bytes [22:34:18]NVStorageSaveData done [22:34:18]OFDSenderStorePacket done [22:34:18]KKMCreateOFDPacket done [22:34:18]NVStorageSaveData kkm_last_timestamp [22:34:18]File name is /storage/kkm_last_timestamp [22:34:18]Write 4 bytes [22:34:18]NVStorageSaveData done [22:34:18]ExternCall_PrintAddStr [22:34:18]wPrintStart [22:34:18]Write to MH i2c: 01 00 00 2F 55 84 [22:34:18]Write i2c OK [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: 01 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: 01 07 00 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: 01 07 00 2F 55 00 80 00 00 00 FF 0F 19 [22:34:18]RasterBufferAndPrint [22:34:18]line Счет N : (1)196260 [22:34:18]line ИНН: 02508201610067 [22:34:18]line Контрольно-Кассовый Чек [22:34:18]line ПРОДАЖА [22:34:18]line ТРК (МРК, ГНК) : 13 [22:34:18]line Товар: 2710124130 [22:34:18]line SUPER 92-К-5 [22:34:18]line 31.300 * 63.90 [22:34:18]line = 2000.07 [22:34:18]line НДС 12% НСП 1% [22:34:18]line > о реализуемом товаре [22:34:18]line ОКРУГЛЕНИЕ: -0.07 [22:34:18]line ИТОГО: 2000.00 [22:34:18]line Внесено: 2000.00 [22:34:18]line СДАЧА: 0.00 [22:34:18]line НСП 1% : 17.70 [22:34:18]line НДС 12% : 212.40 [22:34:18]line Наличными: 2000.00 [22:34:18]line Безнал.: 0.00 [22:34:18]line Место: АЗС № 6 "Партнер Нефть" [22:34:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:34:18]line СНО: Общий режим [22:34:18]line Чек 214 12.03.2024 22:34 [22:34:18]line Смена: 327 ФФД: 1.0 [22:34:18]line ЗНМ: 0300000009 [22:34:18]line РНМ: 0000000000090555 [22:34:18]line Версия ККМ: 001 [22:34:18]line ФМ: 0000000000874811 [22:34:18]line ФД: 95284 [22:34:18]line ФПД: 38934978578883 [22:34:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T223423&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95284&fm=38934978578883&tin=02508201610067®Number=0000000000090555&sum=200000 [22:34:18]OFD Sender: Processing packet 95284 [packets to send 30, broken 29] [22:34:18]ProducePacketName [22:34:18]name=ofd_packets/00095284 [22:34:18]OFD Sender: To server: pG, [22:34:18]CommunicateWithHost lk.salyk.kg:30040 [22:34:18]ConnectInit lk.salyk.kg [22:34:18]written 0, free lines is 4095 [22:34:18]Connected sock=10 [22:34:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 25 6A 08 01 BD A2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 6F D8 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 34 74 01 00 35 04 06 00 23 69 41 91 49 C3 35 EB 95 A8 87 97 D6 10 [22:34:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 56 03 47 00 2F 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 34 74 01 00 F4 03 04 00 C4 83 F0 65 B6 04 01 00 00 C2 6D 24 3A 68 06 01 94 [22:34:18]CommunicateWithHost err = 0 [22:34:18]CheckOFDResponse [22:34:18]1017 (14) - 77093643461234 [22:34:18]1041 (16) - 0000000000874811 [22:34:18]1040 (4) - 95284 [22:34:18]1012 (4) - 12.03.2024 16:33 [22:34:18]1206 (1) - 0 [22:34:18]OFD Sender: Remove packet 95284 [22:34:18]ProducePacketName [22:34:18]name=ofd_packets/00095284 [22:34:18]NVStorageDeleteData [22:34:18]Write to MH i2c: 01 00 00 5A 55 AF [22:34:18]Write i2c OK [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: 01 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: 01 07 00 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: 01 07 00 5A 55 00 80 00 00 00 50 0D 93 [22:34:18]RasterBufferAndPrint [22:34:18]line [22:34:18]line [22:34:18]line [22:34:18]line [22:34:18]line [22:34:18]written 0, free lines is 3414 [22:34:18]process_action close_receipt done [22:34:18]requested_data is exist [22:34:18]produce_requested_data [22:34:18]requested_item fm.sn is exist - process it [22:34:18]wFMCommunicate request_size=4 [22:34:18]MH_SAM_APDU [22:34:18]CAPDU: 80 11 00 00 [22:34:18]Write to MH i2c: E2 08 00 61 55 80 11 00 00 00 00 00 00 30 [22:34:18]Write i2c OK [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: E2 [22:34:18]MH_I2C_Read... [22:34:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:18]Read from MH i2c: E2 17 00 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: E2 17 00 61 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 80 [22:34:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:34:18]wFMCommunicate OK [22:34:18]requested_item fd.num is exist - process it [22:34:18]SAM_PROTO_GetFieldsCounters [22:34:18]wFMCommunicate request_size=4 [22:34:18]MH_SAM_APDU [22:34:18]CAPDU: 80 13 00 00 [22:34:18]Write to MH i2c: E2 08 00 62 55 80 13 00 00 00 00 00 00 33 [22:34:18]Write i2c OK [22:34:18]MH_I2C_Read... [22:34:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:19]Read from MH i2c: E2 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: E2 62 00 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: E2 62 00 62 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 34 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [22:34:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 34 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:34:19]wFMCommunicate OK [22:34:19]SAM_PROTO_GetFieldsCounters done [22:34:19]requested_item shift.num is exist - process it [22:34:19]requested_item shift.opened is exist - process it [22:34:19]req_shift_opened [22:34:19]FM_GetShiftState [22:34:19]SAM_PROTO_GetShiftState [22:34:19]wFMCommunicate request_size=4 [22:34:19]MH_SAM_APDU [22:34:19]CAPDU: 80 13 01 00 [22:34:19]Write to MH i2c: E2 08 00 63 55 80 13 01 00 00 00 00 00 35 [22:34:19]Write i2c OK [22:34:19]MH_I2C_Read... [22:34:19]OFD Sender: No OFD packet to send [22:34:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:19]Read from MH i2c: E2 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: E2 0E 00 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: E2 0E 00 63 55 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A9 [22:34:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:34:19]wFMCommunicate OK [22:34:19]SAM_PROTO_GetShiftState done [22:34:19]FM_GetShiftState done [22:34:19]req_shift_opened done [22:34:19]requested_item shift.open_date is exist - process it [22:34:19]req_shift_open_date [22:34:19]req_shift_open_date done [22:34:19]produce_requested_data done [22:34:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95284,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [22:34:19]process_action_free close_receipt [22:34:19]json_value_free [22:34:19]json_value_free done [22:34:19]process_json_proto returns [22:34:19]Send response to host [22:34:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95284,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [22:34:19]free response buf [22:34:19]execute_script done [22:34:19]execute_script returns [22:34:19]free content buf [22:34:19]Sock 9.Close socket [22:34:19]Sock 9.Thread stoped [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:05]accept exits with 8 [22:37:05]New connection [22:37:05]New thread 3066813796 created [22:37:05]Thread 3066957156 joined [22:37:05]Waiting for new connection... [22:37:05] Sock 8.Parse request [22:37:05]Sock 8.Check first char [22:37:05]Sock 8.First char is OK [22:37:05]request: POST /json_proto HTTP/1.0 [22:37:05]Method: POST [22:37:05]URL: /json_proto [22:37:05]Method is POST - this is cgi request [22:37:05]url: /json_proto [22:37:05]query_string will be loaded in cgi processing [22:37:05]execute_cgi json_proto POST (null) [22:37:05]execute_cgi path=json_proto method=POST [22:37:05]POST find Content-Length [22:37:05]Host: 172.17.62.67:8080 [22:37:05]Content-Length: 661 [22:37:05]Content-Type: application/json [22:37:05] [22:37:05]POST finish read [22:37:05]Found Content-Length = 661 [22:37:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1029.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:05]execute_script... [22:37: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)196261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1029.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:05]POST & json_proto [22:37:05]process_json_proto [22:37:05]json parsed OK: [22:37:05]protocol is kg_v1.0 [22:37:05]action value=close_receipt [22:37:05]process_action close_receipt [22:37:05]cmd_close_receipt [22:37:05]MH_GetDate [22:37:05]Write to MH i2c: F0 00 00 64 55 A8 [22:37:05]Write i2c OK [22:37:05]MH_I2C_Read... [22:37:05]Read from MH i2c: F0 [22:37:05]MH_I2C_Read... [22:37:05]Read from MH i2c: F0 05 00 [22:37:05]MH_I2C_Read... [22:37:05]Read from MH i2c: F0 05 00 64 55 00 19 D9 F0 65 F4 [22:37:05]GetLastDocTimeStamp 1710282863 [22:37:05]current date 1710283033 [22:37:05]FM_GetShiftState [22:37:05]SAM_PROTO_GetShiftState [22:37:05]wFMCommunicate request_size=4 [22:37:05]MH_SAM_APDU [22:37:05]CAPDU: 80 13 01 00 [22:37:05]Write to MH i2c: E2 08 00 65 55 80 13 01 00 00 00 00 00 37 [22:37:05]Write i2c OK [22:37:05]MH_I2C_Read... [22:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:05]Read from MH i2c: E2 [22:37:05]MH_I2C_Read... [22:37:05]Read from MH i2c: E2 0E 00 [22:37:05]MH_I2C_Read... [22:37:05]Read from MH i2c: E2 0E 00 65 55 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 AB [22:37:05]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:37:05]wFMCommunicate OK [22:37:05]SAM_PROTO_GetShiftState done [22:37:05]FM_GetShiftState done [22:37:05]opened in 1710201976 [22:37:05]opened+sec_in_day 1710288376 [22:37:05]quantity*price = 62900 [22:37:05]sum+1 = 62901 [22:37:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 Внесено: 1029.00 СДАЧА: 400.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 629.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 215 12.03.2024 22:37 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95285 ФПД: 95745389661942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T223713&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95285&fm=95745389661942&tin=02508201610067®Number=0000000000090555&sum=62900 [22:37:06]StoreToDocumentArchive [22:37:06]shift 327 fd 95285 [22:37:06]save to /storage/0327/doc_00095285 [22:37:06]save last doc name /storage/0327/doc_00095285 to /storage/kkm_last_doc_name [22:37:06]save OK [22:37:06]Clear old archive folders... [22:37:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:37:06]tlvbuf is 01A71520 [22:37:06]SAM_PROTO_ClearQueue [22:37:06]wFMCommunicate request_size=4 [22:37:06]MH_SAM_APDU [22:37:06]CAPDU: 80 09 00 00 [22:37:06]Write to MH i2c: E2 08 00 72 55 80 09 00 00 00 00 00 00 39 [22:37:06]Write i2c OK [22:37:06]MH_I2C_Read... [22:37:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:06]Read from MH i2c: E2 [22:37:06]MH_I2C_Read... [22:37:06]Read from MH i2c: E2 03 00 [22:37:06]MH_I2C_Read... [22:37:06]Read from MH i2c: E2 03 00 72 55 00 90 00 3B [22:37:06]RAPDU: 90 00 [22:37:06]wFMCommunicate OK [22:37:06]SAM_PROTO_ClearQueue done [22:37:06]KKMCreateOFDPacket [22:37:06]OFDProtocolAddRootSTLVToBuf [22:37:06]FM_MakeSignedData [22:37:06]FM_MakeSignedData [22:37:06]SAM_PROTO_SignData [22:37:06]wFMCommunicate request_size=4 [22:37:06]MH_SAM_APDU [22:37:06]CAPDU: 80 0D 01 02 [22:37:06]Write to MH i2c: E2 08 00 73 55 80 0D 01 02 00 00 00 00 41 [22:37:06]Write i2c OK [22:37:06]MH_I2C_Read... [22:37:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:06]Read from MH i2c: E2 [22:37:06]MH_I2C_Read... [22:37:06]Read from MH i2c: E2 03 00 [22:37:06]MH_I2C_Read... [22:37:06]Read from MH i2c: E2 03 00 73 55 00 90 00 3C [22:37:06]RAPDU: 90 00 [22:37:06]wFMCommunicate OK [22:37:06]wFMCommunicate request_size=255 [22:37:06]MH_SAM_APDU [22:37:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 19 D9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 35 74 01 00 35 04 06 00 57 [22:37:06]Write to MH i2c: E2 02 01 74 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 19 D9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 35 74 01 00 35 04 06 00 57 00 00 EB [22:37:06]Write i2c OK [22:37:06]MH_I2C_Read... [22:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:07]Read from MH i2c: E2 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: E2 03 00 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: E2 03 00 74 55 00 90 00 3D [22:37:07]RAPDU: 90 00 [22:37:07]wFMCommunicate OK [22:37:07]wFMCommunicate request_size=10 [22:37:07]MH_SAM_APDU [22:37:07]CAPDU: 80 0D 02 02 05 14 75 F0 8E F6 [22:37:07]Write to MH i2c: E2 0D 00 75 55 80 0D 02 02 05 00 14 75 F0 8E F6 00 00 4B [22:37:07]Write i2c OK [22:37:07]MH_I2C_Read... [22:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:07]Read from MH i2c: E2 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: E2 03 00 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: E2 03 00 75 55 00 90 00 3E [22:37:07]RAPDU: 90 00 [22:37:07]wFMCommunicate OK [22:37:07]wFMCommunicate request_size=4 [22:37:07]MH_SAM_APDU [22:37:07]CAPDU: 80 0D 03 02 [22:37:07]Write to MH i2c: E2 08 00 76 55 80 0D 03 02 00 00 00 00 46 [22:37:07]Write i2c OK [22:37:07]MH_I2C_Read... [22:37:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:07]Read from MH i2c: E2 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: E2 0B 00 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: E2 0B 00 76 55 00 F6 EA F8 9F 63 1E A4 F1 90 00 D4 [22:37:07]RAPDU: F6 EA F8 9F 63 1E A4 F1 90 00 [22:37:07]wFMCommunicate OK [22:37:07]SAM_PROTO_SignData done [22:37:07]FM_MakeSignedData done [22:37:07]CreateOFDProtocolMessage [22:37:07]wFMCommunicate request_size=4 [22:37:07]MH_SAM_APDU [22:37:07]CAPDU: 80 11 00 00 [22:37:07]Write to MH i2c: E2 08 00 77 55 80 11 00 00 00 00 00 00 46 [22:37:07]Write i2c OK [22:37:07]MH_I2C_Read... [22:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:07]Read from MH i2c: E2 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: E2 17 00 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: E2 17 00 77 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 96 [22:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:37:07]wFMCommunicate OK [22:37:07]CreateOFDProtocolMessage done [22:37:07]OFDSenderStorePacket 95285 [22:37:07]StoreOFDPacket docnum=95285 [22:37:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1A BA 07 01 37 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 19 D9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 35 74 01 00 35 04 06 00 57 14 75 F0 8E F6 F6 EA F8 9F 63 1E A4 F1 [22:37:07]CheckFolder [22:37:07]dirname=/storage/ofd_packets [22:37:07]CheckFolder done [22:37:07]ProducePacketName [22:37:07]name=ofd_packets/00095285 [22:37:07]NVStorageSaveData ofd_packets/00095285 [22:37:07]File name is /storage/ofd_packets/00095285 [22:37:07]Write 301 bytes [22:37:07]NVStorageSaveData done [22:37:07]OFDSenderStorePacket done [22:37:07]KKMCreateOFDPacket done [22:37:07]NVStorageSaveData kkm_last_timestamp [22:37:07]File name is /storage/kkm_last_timestamp [22:37:07]Write 4 bytes [22:37:07]NVStorageSaveData done [22:37:07]ExternCall_PrintAddStr [22:37:07]wPrintStart [22:37:07]Write to MH i2c: 01 00 00 78 55 CD [22:37:07]Write i2c OK [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: 01 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: 01 07 00 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: 01 07 00 78 55 00 80 00 00 00 FF 0F 62 [22:37:07]RasterBufferAndPrint [22:37:07]line Счет N : (1)196261 [22:37:07]line ИНН: 02508201610067 [22:37:07]line Контрольно-Кассовый Чек [22:37:07]line ПРОДАЖА [22:37:07]line ТРК (МРК, ГНК) : 22 [22:37:07]line Товар: 2710124130 [22:37:07]line Аи-92-К-5 [22:37:07]line 10.000 * 62.90 [22:37:07]line = 629.00 [22:37:07]line НДС 12% НСП 1% [22:37:07]line > о реализуемом товаре [22:37:07]line ИТОГО: 629.00 [22:37:07]line Внесено: 1029.00 [22:37:07]line СДАЧА: 400.00 [22:37:07]line НСП 1% : 5.57 [22:37:07]line НДС 12% : 66.80 [22:37:07]line Наличными: 629.00 [22:37:07]line Безнал.: 0.00 [22:37:07]line Место: АЗС № 6 "Партнер Нефть" [22:37:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:37:07]line СНО: Общий режим [22:37:07]line Чек 215 12.03.2024 22:37 [22:37:07]line Смена: 327 ФФД: 1.0 [22:37:07]line ЗНМ: 0300000009 [22:37:07]line РНМ: 0000000000090555 [22:37:07]line Версия ККМ: 001 [22:37:07]line ФМ: 0000000000874811 [22:37:07]line ФД: 95285 [22:37:07]line ФПД: 95745389661942 [22:37:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T223713&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95285&fm=95745389661942&tin=02508201610067®Number=0000000000090555&sum=62900 [22:37:07]OFD Sender: Processing packet 95285 [packets to send 30, broken 29] [22:37:07]ProducePacketName [22:37:07]name=ofd_packets/00095285 [22:37:07]OFD Sender: To server: pG, [22:37:07]CommunicateWithHost lk.salyk.kg:30040 [22:37:07]ConnectInit lk.salyk.kg [22:37:07]written 0, free lines is 4095 [22:37:08]Write to MH i2c: 01 00 00 A2 55 F7 [22:37:08]Write i2c OK [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: 01 [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: 01 07 00 [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: 01 07 00 A2 55 00 80 00 00 00 5E 0D E9 [22:37:08]RasterBufferAndPrint [22:37:08]line [22:37:08]line [22:37:08]line [22:37:08]line [22:37:08]line [22:37:08]written 0, free lines is 3426 [22:37:08]process_action close_receipt done [22:37:08]requested_data is exist [22:37:08]produce_requested_data [22:37:08]requested_item fm.sn is exist - process it [22:37:08]wFMCommunicate request_size=4 [22:37:08]MH_SAM_APDU [22:37:08]CAPDU: 80 11 00 00 [22:37:08]Write to MH i2c: E2 08 00 A9 55 80 11 00 00 00 00 00 00 78 [22:37:08]Write i2c OK [22:37:08]MH_I2C_Read... [22:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:08]Read from MH i2c: E2 [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: E2 17 00 [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: E2 17 00 A9 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C8 [22:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:37:08]wFMCommunicate OK [22:37:08]requested_item fd.num is exist - process it [22:37:08]SAM_PROTO_GetFieldsCounters [22:37:08]wFMCommunicate request_size=4 [22:37:08]MH_SAM_APDU [22:37:08]CAPDU: 80 13 00 00 [22:37:08]Write to MH i2c: E2 08 00 AA 55 80 13 00 00 00 00 00 00 7B [22:37:08]Write i2c OK [22:37:08]MH_I2C_Read... [22:37:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:08]Read from MH i2c: E2 [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: E2 62 00 [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: E2 62 00 AA 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 35 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [22:37:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 35 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:37:08]wFMCommunicate OK [22:37:08]SAM_PROTO_GetFieldsCounters done [22:37:08]requested_item shift.num is exist - process it [22:37:08]requested_item shift.opened is exist - process it [22:37:08]req_shift_opened [22:37:08]FM_GetShiftState [22:37:08]SAM_PROTO_GetShiftState [22:37:08]wFMCommunicate request_size=4 [22:37:08]MH_SAM_APDU [22:37:08]CAPDU: 80 13 01 00 [22:37:08]Write to MH i2c: E2 08 00 AB 55 80 13 01 00 00 00 00 00 7D [22:37:08]Write i2c OK [22:37:08]MH_I2C_Read... [22:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:08]Read from MH i2c: E2 [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: E2 0E 00 [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: E2 0E 00 AB 55 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F1 [22:37:08]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:37:08]wFMCommunicate OK [22:37:08]SAM_PROTO_GetShiftState done [22:37:08]FM_GetShiftState done [22:37:08]req_shift_opened done [22:37:08]requested_item shift.open_date is exist - process it [22:37:08]req_shift_open_date [22:37:08]req_shift_open_date done [22:37:08]produce_requested_data done [22:37:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95285,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [22:37:08]process_action_free close_receipt [22:37:08]json_value_free [22:37:08]json_value_free done [22:37:08]process_json_proto returns [22:37:08]Send response to host [22:37:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95285,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [22:37:08]free response buf [22:37:08]execute_script done [22:37:08]execute_script returns [22:37:08]free content buf [22:37:08]Sock 8.Close socket [22:37:08]Sock 8.Thread stoped [22:37:11]accept exits with 9 [22:37:11]New connection [22:37:11]New thread 3066957156 created [22:37:11]Thread 3066813796 joined [22:37:11]Waiting for new connection... [22:37:11] Sock 9.Parse request [22:37:11]Sock 9.Check first char [22:37:11]Sock 9.First char is OK [22:37:11]request: POST /json_proto HTTP/1.0 [22:37:11]Method: POST [22:37:11]URL: /json_proto [22:37:11]Method is POST - this is cgi request [22:37:11]url: /json_proto [22:37:11]query_string will be loaded in cgi processing [22:37:11]execute_cgi json_proto POST (null) [22:37:11]execute_cgi path=json_proto method=POST [22:37:11]POST find Content-Length [22:37:11]Host: 172.17.62.67:8080 [22:37:11]Content-Length: 677 [22:37:11]Content-Type: application/json [22:37:11] [22:37:11]POST finish read [22:37:11]Found Content-Length = 677 [22:37:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:11]execute_script... [22:37: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)196262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:11]POST & json_proto [22:37:11]process_json_proto [22:37:11]json parsed OK: [22:37:11]protocol is kg_v1.0 [22:37:11]action value=close_receipt [22:37:11]process_action close_receipt [22:37:11]cmd_close_receipt [22:37:11]MH_GetDate [22:37:11]Write to MH i2c: F0 00 00 AC 55 F0 [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: F0 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: F0 05 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: F0 05 00 AC 55 00 1E D9 F0 65 41 [22:37:11]GetLastDocTimeStamp 1710283033 [22:37:11]current date 1710283038 [22:37:11]FM_GetShiftState [22:37:11]SAM_PROTO_GetShiftState [22:37:11]wFMCommunicate request_size=4 [22:37:11]MH_SAM_APDU [22:37:11]CAPDU: 80 13 01 00 [22:37:11]Write to MH i2c: E2 08 00 AD 55 80 13 01 00 00 00 00 00 7F [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:11]Read from MH i2c: E2 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 0E 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 0E 00 AD 55 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F3 [22:37:11]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:37:11]wFMCommunicate OK [22:37:11]SAM_PROTO_GetShiftState done [22:37:11]FM_GetShiftState done [22:37:11]opened in 1710201976 [22:37:11]opened+sec_in_day 1710288376 [22:37:11]quantity*price = 50005 [22:37:11]sum+1 = 50007 [22:37:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 216 12.03.2024 22:37 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95286 ФПД: 164479085632817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T223718&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95286&fm=164479085632817&tin=02508201610067®Number=0000000000090555&sum=50000 [22:37:12]StoreToDocumentArchive [22:37:12]shift 327 fd 95286 [22:37:12]save to /storage/0327/doc_00095286 [22:37:12]save last doc name /storage/0327/doc_00095286 to /storage/kkm_last_doc_name [22:37:12]save OK [22:37:12]Clear old archive folders... [22:37:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:37:12]tlvbuf is 01A7CFE0 [22:37:12]SAM_PROTO_ClearQueue [22:37:12]wFMCommunicate request_size=4 [22:37:12]MH_SAM_APDU [22:37:12]CAPDU: 80 09 00 00 [22:37:12]Write to MH i2c: E2 08 00 BA 55 80 09 00 00 00 00 00 00 81 [22:37:12]Write i2c OK [22:37:12]MH_I2C_Read... [22:37:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:12]Read from MH i2c: E2 [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: E2 03 00 [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: E2 03 00 BA 55 00 90 00 83 [22:37:12]RAPDU: 90 00 [22:37:12]wFMCommunicate OK [22:37:12]SAM_PROTO_ClearQueue done [22:37:12]KKMCreateOFDPacket [22:37:12]OFDProtocolAddRootSTLVToBuf [22:37:12]FM_MakeSignedData [22:37:12]FM_MakeSignedData [22:37:12]SAM_PROTO_SignData [22:37:12]wFMCommunicate request_size=4 [22:37:12]MH_SAM_APDU [22:37:12]CAPDU: 80 0D 01 02 [22:37:12]Write to MH i2c: E2 08 00 BB 55 80 0D 01 02 00 00 00 00 89 [22:37:12]Write i2c OK [22:37:12]MH_I2C_Read... [22:37:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:12]Read from MH i2c: E2 [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: E2 03 00 [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: E2 03 00 BB 55 00 90 00 84 [22:37:12]RAPDU: 90 00 [22:37:12]wFMCommunicate OK [22:37:12]wFMCommunicate request_size=255 [22:37:12]MH_SAM_APDU [22: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 1E D9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 36 74 01 00 35 04 06 00 95 [22:37:12]Write to MH i2c: E2 02 01 BC 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 1E D9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 36 74 01 00 35 04 06 00 95 00 00 DE [22:37:12]Write i2c OK [22:37:12]MH_I2C_Read... [22:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:13]Read from MH i2c: E2 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 03 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 03 00 BC 55 00 90 00 85 [22:37:13]RAPDU: 90 00 [22:37:13]wFMCommunicate OK [22:37:13]wFMCommunicate request_size=10 [22:37:13]MH_SAM_APDU [22:37:13]CAPDU: 80 0D 02 02 05 97 C5 78 DD 31 [22:37:13]Write to MH i2c: E2 0D 00 BD 55 80 0D 02 02 05 00 97 C5 78 DD 31 00 00 78 [22:37:13]Write i2c OK [22:37:13]MH_I2C_Read... [22:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:13]Read from MH i2c: E2 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 03 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 03 00 BD 55 00 90 00 86 [22:37:13]RAPDU: 90 00 [22:37:13]wFMCommunicate OK [22:37:13]wFMCommunicate request_size=4 [22:37:13]MH_SAM_APDU [22:37:13]CAPDU: 80 0D 03 02 [22:37:13]Write to MH i2c: E2 08 00 BE 55 80 0D 03 02 00 00 00 00 8E [22:37:13]Write i2c OK [22:37:13]MH_I2C_Read... [22:37:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:13]Read from MH i2c: E2 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 0B 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 0B 00 BE 55 00 32 56 DA 6F D9 9B AC 26 90 00 A6 [22:37:13]RAPDU: 32 56 DA 6F D9 9B AC 26 90 00 [22:37:13]wFMCommunicate OK [22:37:13]SAM_PROTO_SignData done [22:37:13]FM_MakeSignedData done [22:37:13]CreateOFDProtocolMessage [22:37:13]wFMCommunicate request_size=4 [22:37:13]MH_SAM_APDU [22:37:13]CAPDU: 80 11 00 00 [22:37:13]Write to MH i2c: E2 08 00 BF 55 80 11 00 00 00 00 00 00 8E [22:37:13]Write i2c OK [22:37:13]MH_I2C_Read... [22:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:13]Read from MH i2c: E2 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 17 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 17 00 BF 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DE [22:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:37:13]wFMCommunicate OK [22:37:13]CreateOFDProtocolMessage done [22:37:13]OFDSenderStorePacket 95286 [22:37:13]StoreOFDPacket docnum=95286 [22:37:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8B 1B 07 01 CA B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 1E D9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 36 74 01 00 35 04 06 00 95 97 C5 78 DD 31 32 56 DA 6F D9 9B AC 26 [22:37:13]CheckFolder [22:37:13]dirname=/storage/ofd_packets [22:37:13]CheckFolder done [22:37:13]ProducePacketName [22:37:13]name=ofd_packets/00095286 [22:37:13]NVStorageSaveData ofd_packets/00095286 [22:37:13]File name is /storage/ofd_packets/00095286 [22:37:13]Write 301 bytes [22:37:13]NVStorageSaveData done [22:37:13]OFDSenderStorePacket done [22:37:13]KKMCreateOFDPacket done [22:37:13]NVStorageSaveData kkm_last_timestamp [22:37:13]File name is /storage/kkm_last_timestamp [22:37:13]Write 4 bytes [22:37:13]NVStorageSaveData done [22:37:13]ExternCall_PrintAddStr [22:37:13]wPrintStart [22:37:13]Write to MH i2c: 01 00 00 C0 55 15 [22:37:13]Write i2c OK [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: 01 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: 01 07 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: 01 07 00 C0 55 00 80 00 00 00 FF 0F AA [22:37:13]RasterBufferAndPrint [22:37:13]line Счет N : (1)196262 [22:37:13]line ИНН: 02508201610067 [22:37:13]line Контрольно-Кассовый Чек [22:37:13]line ПРОДАЖА [22:37:13]line ТРК (МРК, ГНК) : 12 [22:37:13]line Товар: 2710124130 [22:37:13]line Аи-92-К-5 [22:37:13]line 7.950 * 62.90 [22:37:13]line = 500.06 [22:37:13]line НДС 12% НСП 1% [22:37:13]line > о реализуемом товаре [22:37:13]line ОКРУГЛЕНИЕ: -0.06 [22:37:13]line ИТОГО: 500.00 [22:37:13]line Внесено: 500.00 [22:37:13]line СДАЧА: 0.00 [22:37:13]line НСП 1% : 4.42 [22:37:13]line НДС 12% : 53.10 [22:37:13]line Наличными: 500.00 [22:37:13]line Безнал.: 0.00 [22:37:13]line Место: АЗС № 6 "Партнер Нефть" [22:37:13]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:37:13]line СНО: Общий режим [22:37:13]line Чек 216 12.03.2024 22:37 [22:37:13]line Смена: 327 ФФД: 1.0 [22:37:13]line ЗНМ: 0300000009 [22:37:13]line РНМ: 0000000000090555 [22:37:13]line Версия ККМ: 001 [22:37:13]line ФМ: 0000000000874811 [22:37:13]line ФД: 95286 [22:37:13]line ФПД: 164479085632817 [22:37:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T223718&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95286&fm=164479085632817&tin=02508201610067®Number=0000000000090555&sum=50000 [22:37:13]written 0, free lines is 4095 [22:37:13]OFD Sender: Processing packet 95285 [packets to send 31, broken 29] [22:37:13]ProducePacketName [22:37:13]name=ofd_packets/00095285 [22:37:13]OFD Sender: To server: pG, [22:37:13]CommunicateWithHost lk.salyk.kg:30040 [22:37:13]ConnectInit lk.salyk.kg [22:37:13]Write to MH i2c: 01 00 00 EB 55 40 [22:37:13]Write i2c OK [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: 01 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: 01 07 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: 01 07 00 EB 55 00 80 00 00 00 4A 0D 1E [22:37:13]RasterBufferAndPrint [22:37:13]line [22:37:13]line [22:37:13]line [22:37:13]line [22:37:13]line [22:37:13]written 0, free lines is 3414 [22:37:13]process_action close_receipt done [22:37:13]requested_data is exist [22:37:13]produce_requested_data [22:37:13]requested_item fm.sn is exist - process it [22:37:13]wFMCommunicate request_size=4 [22:37:13]MH_SAM_APDU [22:37:13]CAPDU: 80 11 00 00 [22:37:13]Write to MH i2c: E2 08 00 F2 55 80 11 00 00 00 00 00 00 C1 [22:37:13]Write i2c OK [22:37:13]MH_I2C_Read... [22:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:13]Read from MH i2c: E2 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 17 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 17 00 F2 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 11 [22:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:37:13]wFMCommunicate OK [22:37:13]requested_item fd.num is exist - process it [22:37:13]SAM_PROTO_GetFieldsCounters [22:37:13]wFMCommunicate request_size=4 [22:37:13]MH_SAM_APDU [22:37:13]CAPDU: 80 13 00 00 [22:37:13]Write to MH i2c: E2 08 00 F3 55 80 13 00 00 00 00 00 00 C4 [22:37:13]Write i2c OK [22:37:13]MH_I2C_Read... [22:37:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:13]Read from MH i2c: E2 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 62 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 62 00 F3 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 36 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [22:37:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 36 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:37:13]wFMCommunicate OK [22:37:13]SAM_PROTO_GetFieldsCounters done [22:37:13]requested_item shift.num is exist - process it [22:37:13]requested_item shift.opened is exist - process it [22:37:13]req_shift_opened [22:37:13]FM_GetShiftState [22:37:13]SAM_PROTO_GetShiftState [22:37:13]wFMCommunicate request_size=4 [22:37:13]MH_SAM_APDU [22:37:13]CAPDU: 80 13 01 00 [22:37:13]Write to MH i2c: E2 08 00 F4 55 80 13 01 00 00 00 00 00 C6 [22:37:13]Write i2c OK [22:37:13]MH_I2C_Read... [22:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:14]Read from MH i2c: E2 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: E2 0E 00 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: E2 0E 00 F4 55 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 3A [22:37:14]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:37:14]wFMCommunicate OK [22:37:14]SAM_PROTO_GetShiftState done [22:37:14]FM_GetShiftState done [22:37:14]req_shift_opened done [22:37:14]requested_item shift.open_date is exist - process it [22:37:14]req_shift_open_date [22:37:14]req_shift_open_date done [22:37:14]produce_requested_data done [22:37:14]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95286,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [22:37:14]process_action_free close_receipt [22:37:14]json_value_free [22:37:14]json_value_free done [22:37:14]process_json_proto returns [22:37:14]Send response to host [22:37:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95286,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [22:37:14]free response buf [22:37:14]execute_script done [22:37:14]execute_script returns [22:37:14]free content buf [22:37:14]Sock 9.Close socket [22:37:14]Sock 9.Thread stoped [22:37:16]Connected sock=11 [22:37:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1A BA 07 01 37 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 19 D9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 35 74 01 00 35 04 06 00 57 14 75 F0 8E F6 F6 EA F8 9F 63 1E A4 F1 [22:37:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 6C AC 47 00 0C 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 35 74 01 00 F4 03 04 00 77 84 F0 65 B6 04 01 00 00 44 64 60 1D CB 7E 50 8A [22:37:17]CommunicateWithHost err = 0 [22:37:17]CheckOFDResponse [22:37:17]1017 (14) - 77093643461234 [22:37:17]1041 (16) - 0000000000874811 [22:37:17]1040 (4) - 95285 [22:37:17]1012 (4) - 12.03.2024 16:36 [22:37:17]1206 (1) - 0 [22:37:17]OFD Sender: Remove packet 95285 [22:37:17]ProducePacketName [22:37:17]name=ofd_packets/00095285 [22:37:17]NVStorageDeleteData [22:37:17]OFD Sender: Processing packet 95286 [packets to send 30, broken 29] [22:37:17]ProducePacketName [22:37:17]name=ofd_packets/00095286 [22:37:17]OFD Sender: To server: pG, [22:37:17]CommunicateWithHost lk.salyk.kg:30040 [22:37:17]ConnectInit lk.salyk.kg [22:37:17]Connected sock=9 [22:37:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8B 1B 07 01 CA B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 1E D9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 36 74 01 00 35 04 06 00 95 97 C5 78 DD 31 32 56 DA 6F D9 9B AC 26 [22:37:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 38 16 47 00 99 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 36 74 01 00 F4 03 04 00 77 84 F0 65 B6 04 01 00 00 74 AA 23 40 C7 A8 01 B1 [22:37:17]CommunicateWithHost err = 0 [22:37:17]CheckOFDResponse [22:37:17]1017 (14) - 77093643461234 [22:37:17]1041 (16) - 0000000000874811 [22:37:17]1040 (4) - 95286 [22:37:17]1012 (4) - 12.03.2024 16:36 [22:37:17]1206 (1) - 0 [22:37:17]OFD Sender: Remove packet 95286 [22:37:17]ProducePacketName [22:37:17]name=ofd_packets/00095286 [22:37:17]NVStorageDeleteData [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:19]accept exits with 8 [22:45:19]New connection [22:45:19]New thread 3066813796 created [22:45:19]Thread 3066957156 joined [22:45:19]Waiting for new connection... [22:45:19] Sock 8.Parse request [22:45:19]Sock 8.Check first char [22:45:19]Sock 8.First char is OK [22:45:19]request: POST /json_proto HTTP/1.0 [22:45:19]Method: POST [22:45:19]URL: /json_proto [22:45:19]Method is POST - this is cgi request [22:45:19]url: /json_proto [22:45:19]query_string will be loaded in cgi processing [22:45:19]execute_cgi json_proto POST (null) [22:45:19]execute_cgi path=json_proto method=POST [22:45:19]POST find Content-Length [22:45:19]Host: 172.17.62.67:8080 [22:45:19]Content-Length: 677 [22:45:19]Content-Type: application/json [22:45:19] [22:45:19]POST finish read [22:45:19]Found Content-Length = 677 [22:45:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.160, "sum" : 450.36, "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" ] } } [22:45:19]execute_script... [22:45: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)196263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.160, "sum" : 450.36, "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" ] } } [22:45:19]POST & json_proto [22:45:19]process_json_proto [22:45:19]json parsed OK: [22:45:19]protocol is kg_v1.0 [22:45:19]action value=close_receipt [22:45:19]process_action close_receipt [22:45:19]cmd_close_receipt [22:45:19]MH_GetDate [22:45:19]Write to MH i2c: F0 00 00 F5 55 39 [22:45:19]Write i2c OK [22:45:19]MH_I2C_Read... [22:45:19]Read from MH i2c: F0 [22:45:19]MH_I2C_Read... [22:45:19]Read from MH i2c: F0 05 00 [22:45:19]MH_I2C_Read... [22:45:19]Read from MH i2c: F0 05 00 F5 55 00 06 DB F0 65 74 [22:45:19]GetLastDocTimeStamp 1710283038 [22:45:19]current date 1710283526 [22:45:19]FM_GetShiftState [22:45:19]SAM_PROTO_GetShiftState [22:45:19]wFMCommunicate request_size=4 [22:45:19]MH_SAM_APDU [22:45:19]CAPDU: 80 13 01 00 [22:45:19]Write to MH i2c: E2 08 00 F6 55 80 13 01 00 00 00 00 00 C8 [22:45:19]Write i2c OK [22:45:19]MH_I2C_Read... [22:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:19]Read from MH i2c: E2 [22:45:19]MH_I2C_Read... [22:45:19]Read from MH i2c: E2 0E 00 [22:45:19]MH_I2C_Read... [22:45:19]Read from MH i2c: E2 0E 00 F6 55 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 3C [22:45:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:45:19]wFMCommunicate OK [22:45:19]SAM_PROTO_GetShiftState done [22:45:19]FM_GetShiftState done [22:45:19]opened in 1710201976 [22:45:19]opened+sec_in_day 1710288376 [22:45:19]quantity*price = 45036 [22:45:19]sum+1 = 45037 [22:45:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.83 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 217 12.03.2024 22:45 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95287 ФПД: 65106522487282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T224526&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95287&fm=65106522487282&tin=02508201610067®Number=0000000000090555&sum=45000 [22:45:20]StoreToDocumentArchive [22:45:20]shift 327 fd 95287 [22:45:20]save to /storage/0327/doc_00095287 [22:45:20]save last doc name /storage/0327/doc_00095287 to /storage/kkm_last_doc_name [22:45:20]save OK [22:45:20]Clear old archive folders... [22:45:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:45:20]tlvbuf is 01A08520 [22:45:20]SAM_PROTO_ClearQueue [22:45:20]wFMCommunicate request_size=4 [22:45:20]MH_SAM_APDU [22:45:20]CAPDU: 80 09 00 00 [22:45:20]Write to MH i2c: E2 08 00 03 56 80 09 00 00 00 00 00 00 CB [22:45:20]Write i2c OK [22:45:20]MH_I2C_Read... [22:45:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:20]Read from MH i2c: E2 [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: E2 03 00 [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: E2 03 00 03 56 00 90 00 CD [22:45:20]RAPDU: 90 00 [22:45:20]wFMCommunicate OK [22:45:20]SAM_PROTO_ClearQueue done [22:45:20]KKMCreateOFDPacket [22:45:20]OFDProtocolAddRootSTLVToBuf [22:45:20]FM_MakeSignedData [22:45:20]FM_MakeSignedData [22:45:20]SAM_PROTO_SignData [22:45:20]wFMCommunicate request_size=4 [22:45:20]MH_SAM_APDU [22:45:20]CAPDU: 80 0D 01 02 [22:45:20]Write to MH i2c: E2 08 00 04 56 80 0D 01 02 00 00 00 00 D3 [22:45:20]Write i2c OK [22:45:20]MH_I2C_Read... [22:45:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:20]Read from MH i2c: E2 [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: E2 03 00 [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: E2 03 00 04 56 00 90 00 CE [22:45:20]RAPDU: 90 00 [22:45:20]wFMCommunicate OK [22:45:20]wFMCommunicate request_size=255 [22:45:20]MH_SAM_APDU [22:45:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EC 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 AF 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 D9 00 00 00 F4 03 04 00 06 DB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 37 74 01 00 35 04 06 00 3B [22:45:20]Write to MH i2c: E2 02 01 05 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EC 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 AF 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 D9 00 00 00 F4 03 04 00 06 DB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 37 74 01 00 35 04 06 00 3B 00 00 AD [22:45:20]Write i2c OK [22:45:20]MH_I2C_Read... [22:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:20]Read from MH i2c: E2 [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: E2 03 00 [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: E2 03 00 05 56 00 90 00 CF [22:45:20]RAPDU: 90 00 [22:45:20]wFMCommunicate OK [22:45:20]wFMCommunicate request_size=10 [22:45:20]MH_SAM_APDU [22:45:20]CAPDU: 80 0D 02 02 05 36 CB 25 39 F2 [22:45:20]Write to MH i2c: E2 0D 00 06 56 80 0D 02 02 05 00 36 CB 25 39 F2 00 00 31 [22:45:20]Write i2c OK [22:45:20]MH_I2C_Read... [22:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:20]Read from MH i2c: E2 [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: E2 03 00 [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: E2 03 00 06 56 00 90 00 D0 [22:45:20]RAPDU: 90 00 [22:45:20]wFMCommunicate OK [22:45:20]wFMCommunicate request_size=4 [22:45:20]MH_SAM_APDU [22:45:20]CAPDU: 80 0D 03 02 [22:45:20]Write to MH i2c: E2 08 00 07 56 80 0D 03 02 00 00 00 00 D8 [22:45:20]Write i2c OK [22:45:20]MH_I2C_Read... [22:45:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:21]Read from MH i2c: E2 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 0B 00 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 0B 00 07 56 00 47 F8 29 31 B7 FB D9 94 90 00 91 [22:45:21]RAPDU: 47 F8 29 31 B7 FB D9 94 90 00 [22:45:21]wFMCommunicate OK [22:45:21]SAM_PROTO_SignData done [22:45:21]FM_MakeSignedData done [22:45:21]CreateOFDProtocolMessage [22:45:21]wFMCommunicate request_size=4 [22:45:21]MH_SAM_APDU [22:45:21]CAPDU: 80 11 00 00 [22:45:21]Write to MH i2c: E2 08 00 08 56 80 11 00 00 00 00 00 00 D8 [22:45:21]Write i2c OK [22:45:21]MH_I2C_Read... [22:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:21]Read from MH i2c: E2 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 17 00 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 17 00 08 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 28 [22:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:45:21]wFMCommunicate OK [22:45:21]CreateOFDProtocolMessage done [22:45:21]OFDSenderStorePacket 95287 [22:45:21]StoreOFDPacket docnum=95287 [22:45:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AC 05 07 01 6F 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EC 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 AF 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 D9 00 00 00 F4 03 04 00 06 DB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 37 74 01 00 35 04 06 00 3B 36 CB 25 39 F2 47 F8 29 31 B7 FB D9 94 [22:45:21]CheckFolder [22:45:21]dirname=/storage/ofd_packets [22:45:21]CheckFolder done [22:45:21]ProducePacketName [22:45:21]name=ofd_packets/00095287 [22:45:21]NVStorageSaveData ofd_packets/00095287 [22:45:21]File name is /storage/ofd_packets/00095287 [22:45:21]Write 301 bytes [22:45:21]NVStorageSaveData done [22:45:21]OFDSenderStorePacket done [22:45:21]KKMCreateOFDPacket done [22:45:21]NVStorageSaveData kkm_last_timestamp [22:45:21]File name is /storage/kkm_last_timestamp [22:45:21]Write 4 bytes [22:45:21]NVStorageSaveData done [22:45:21]ExternCall_PrintAddStr [22:45:21]wPrintStart [22:45:21]Write to MH i2c: 01 00 00 09 56 5F [22:45:21]Write i2c OK [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: 01 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: 01 07 00 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: 01 07 00 09 56 00 80 00 00 00 FF 0F F4 [22:45:21]RasterBufferAndPrint [22:45:21]line Счет N : (1)196263 [22:45:21]line ИНН: 02508201610067 [22:45:21]line Контрольно-Кассовый Чек [22:45:21]line ПРОДАЖА [22:45:21]line ТРК (МРК, ГНК) : 22 [22:45:21]line Товар: 2710124130 [22:45:21]line Аи-92-К-5 [22:45:21]line 7.160 * 62.90 [22:45:21]line = 450.36 [22:45:21]line НДС 12% НСП 1% [22:45:21]line > о реализуемом товаре [22:45:21]line ОКРУГЛЕНИЕ: -0.36 [22:45:21]line ИТОГО: 450.00 [22:45:21]line Внесено: 450.00 [22:45:21]line СДАЧА: 0.00 [22:45:21]line НСП 1% : 3.98 [22:45:21]line НДС 12% : 47.83 [22:45:21]line Наличными: 450.00 [22:45:21]line Безнал.: 0.00 [22:45:21]line Место: АЗС № 6 "Партнер Нефть" [22:45:21]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:45:21]line СНО: Общий режим [22:45:21]line Чек 217 12.03.2024 22:45 [22:45:21]line Смена: 327 ФФД: 1.0 [22:45:21]line ЗНМ: 0300000009 [22:45:21]line РНМ: 0000000000090555 [22:45:21]line Версия ККМ: 001 [22:45:21]line ФМ: 0000000000874811 [22:45:21]line ФД: 95287 [22:45:21]line ФПД: 65106522487282 [22:45:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T224526&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95287&fm=65106522487282&tin=02508201610067®Number=0000000000090555&sum=45000 [22:45:21]OFD Sender: Processing packet 95287 [packets to send 30, broken 29] [22:45:21]ProducePacketName [22:45:21]name=ofd_packets/00095287 [22:45:21]OFD Sender: To server: pG, [22:45:21]CommunicateWithHost lk.salyk.kg:30040 [22:45:21]ConnectInit lk.salyk.kg [22:45:21]written 0, free lines is 4095 [22:45:21]Connected sock=10 [22:45:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AC 05 07 01 6F 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EC 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 AF 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 D9 00 00 00 F4 03 04 00 06 DB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 37 74 01 00 35 04 06 00 3B 36 CB 25 39 F2 47 F8 29 31 B7 FB D9 94 [22:45:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 90 F0 47 00 34 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 37 74 01 00 F4 03 04 00 5B 86 F0 65 B6 04 01 00 00 87 04 51 9F 44 90 6F C1 [22:45:21]CommunicateWithHost err = 0 [22:45:21]CheckOFDResponse [22:45:21]1017 (14) - 77093643461234 [22:45:21]1041 (16) - 0000000000874811 [22:45:21]1040 (4) - 95287 [22:45:21]1012 (4) - 12.03.2024 16:44 [22:45:21]1206 (1) - 0 [22:45:21]OFD Sender: Remove packet 95287 [22:45:21]ProducePacketName [22:45:21]name=ofd_packets/00095287 [22:45:21]NVStorageDeleteData [22:45:21]Write to MH i2c: 01 00 00 34 56 8A [22:45:21]Write i2c OK [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: 01 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: 01 07 00 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: 01 07 00 34 56 00 80 00 00 00 4F 0D 6D [22:45:21]RasterBufferAndPrint [22:45:21]line [22:45:21]line [22:45:21]line [22:45:21]line [22:45:21]line [22:45:21]written 0, free lines is 3411 [22:45:21]process_action close_receipt done [22:45:21]requested_data is exist [22:45:21]produce_requested_data [22:45:21]requested_item fm.sn is exist - process it [22:45:21]wFMCommunicate request_size=4 [22:45:21]MH_SAM_APDU [22:45:21]CAPDU: 80 11 00 00 [22:45:21]Write to MH i2c: E2 08 00 3B 56 80 11 00 00 00 00 00 00 0B [22:45:21]Write i2c OK [22:45:21]MH_I2C_Read... [22:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:21]Read from MH i2c: E2 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 17 00 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 17 00 3B 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5B [22:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:45:21]wFMCommunicate OK [22:45:21]requested_item fd.num is exist - process it [22:45:21]SAM_PROTO_GetFieldsCounters [22:45:21]wFMCommunicate request_size=4 [22:45:21]MH_SAM_APDU [22:45:21]CAPDU: 80 13 00 00 [22:45:21]Write to MH i2c: E2 08 00 3C 56 80 13 00 00 00 00 00 00 0E [22:45:21]Write i2c OK [22:45:21]MH_I2C_Read... [22:45:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:22]Read from MH i2c: E2 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: E2 62 00 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: E2 62 00 3C 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 37 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [22:45:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 37 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:45:22]wFMCommunicate OK [22:45:22]SAM_PROTO_GetFieldsCounters done [22:45:22]requested_item shift.num is exist - process it [22:45:22]requested_item shift.opened is exist - process it [22:45:22]req_shift_opened [22:45:22]FM_GetShiftState [22:45:22]SAM_PROTO_GetShiftState [22:45:22]wFMCommunicate request_size=4 [22:45:22]MH_SAM_APDU [22:45:22]CAPDU: 80 13 01 00 [22:45:22]Write to MH i2c: E2 08 00 3D 56 80 13 01 00 00 00 00 00 10 [22:45:22]Write i2c OK [22:45:22]MH_I2C_Read... [22:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:22]Read from MH i2c: E2 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: E2 0E 00 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: E2 0E 00 3D 56 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 84 [22:45:22]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:45:22]wFMCommunicate OK [22:45:22]SAM_PROTO_GetShiftState done [22:45:22]FM_GetShiftState done [22:45:22]req_shift_opened done [22:45:22]requested_item shift.open_date is exist - process it [22:45:22]req_shift_open_date [22:45:22]req_shift_open_date done [22:45:22]produce_requested_data done [22:45:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95287,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [22:45:22]process_action_free close_receipt [22:45:22]json_value_free [22:45:22]json_value_free done [22:45:22]process_json_proto returns [22:45:22]Send response to host [22:45:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95287,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [22:45:22]free response buf [22:45:22]execute_script done [22:45:22]execute_script returns [22:45:22]free content buf [22:45:22]Sock 8.Close socket [22:45:22]Sock 8.Thread stoped [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:43]accept exits with 9 [22:46:43]New connection [22:46:43]New thread 3066957156 created [22:46:43]Thread 3066813796 joined [22:46:43]Waiting for new connection... [22:46:43] Sock 9.Parse request [22:46:43]Sock 9.Check first char [22:46:43]Sock 9.First char is OK [22:46:43]request: POST /json_proto HTTP/1.0 [22:46:43]Method: POST [22:46:43]URL: /json_proto [22:46:43]Method is POST - this is cgi request [22:46:43]url: /json_proto [22:46:43]query_string will be loaded in cgi processing [22:46:43]execute_cgi json_proto POST (null) [22:46:43]execute_cgi path=json_proto method=POST [22:46:43]POST find Content-Length [22:46:43]Host: 172.17.62.67:8080 [22:46:43]Content-Length: 677 [22:46:43]Content-Type: application/json [22:46:43] [22:46:43]POST finish read [22:46:43]Found Content-Length = 677 [22:46:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:43]execute_script... [22:46: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)196264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:43]POST & json_proto [22:46:43]process_json_proto [22:46:43]json parsed OK: [22:46:43]protocol is kg_v1.0 [22:46:43]action value=close_receipt [22:46:43]process_action close_receipt [22:46:43]cmd_close_receipt [22:46:43]MH_GetDate [22:46:43]Write to MH i2c: F0 00 00 3E 56 83 [22:46:43]Write i2c OK [22:46:43]MH_I2C_Read... [22:46:43]Read from MH i2c: F0 [22:46:43]MH_I2C_Read... [22:46:43]Read from MH i2c: F0 05 00 [22:46:43]MH_I2C_Read... [22:46:43]Read from MH i2c: F0 05 00 3E 56 00 5A DB F0 65 12 [22:46:43]GetLastDocTimeStamp 1710283526 [22:46:43]current date 1710283610 [22:46:43]FM_GetShiftState [22:46:43]SAM_PROTO_GetShiftState [22:46:43]wFMCommunicate request_size=4 [22:46:43]MH_SAM_APDU [22:46:43]CAPDU: 80 13 01 00 [22:46:43]Write to MH i2c: E2 08 00 3F 56 80 13 01 00 00 00 00 00 12 [22:46:43]Write i2c OK [22:46:43]MH_I2C_Read... [22:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:43]Read from MH i2c: E2 [22:46:43]MH_I2C_Read... [22:46:43]Read from MH i2c: E2 0E 00 [22:46:43]MH_I2C_Read... [22:46:43]Read from MH i2c: E2 0E 00 3F 56 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 86 [22:46:43]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:46:43]wFMCommunicate OK [22:46:43]SAM_PROTO_GetShiftState done [22:46:43]FM_GetShiftState done [22:46:43]opened in 1710201976 [22:46:43]opened+sec_in_day 1710288376 [22:46:43]quantity*price = 50005 [22:46:43]sum+1 = 50007 [22:46:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 218 12.03.2024 22:46 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95288 ФПД: 216316564768786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T224650&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95288&fm=216316564768786&tin=02508201610067®Number=0000000000090555&sum=50000 [22:46:44]StoreToDocumentArchive [22:46:44]shift 327 fd 95288 [22:46:44]save to /storage/0327/doc_00095288 [22:46:44]save last doc name /storage/0327/doc_00095288 to /storage/kkm_last_doc_name [22:46:44]save OK [22:46:44]Clear old archive folders... [22:46:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:46:44]tlvbuf is B6F56640 [22:46:44]SAM_PROTO_ClearQueue [22:46:44]wFMCommunicate request_size=4 [22:46:44]MH_SAM_APDU [22:46:44]CAPDU: 80 09 00 00 [22:46:44]Write to MH i2c: E2 08 00 4C 56 80 09 00 00 00 00 00 00 14 [22:46:44]Write i2c OK [22:46:44]MH_I2C_Read... [22:46:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:44]Read from MH i2c: E2 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: E2 03 00 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: E2 03 00 4C 56 00 90 00 16 [22:46:44]RAPDU: 90 00 [22:46:44]wFMCommunicate OK [22:46:44]SAM_PROTO_ClearQueue done [22:46:44]KKMCreateOFDPacket [22:46:44]OFDProtocolAddRootSTLVToBuf [22:46:44]FM_MakeSignedData [22:46:44]FM_MakeSignedData [22:46:44]SAM_PROTO_SignData [22:46:44]wFMCommunicate request_size=4 [22:46:44]MH_SAM_APDU [22:46:44]CAPDU: 80 0D 01 02 [22:46:44]Write to MH i2c: E2 08 00 4D 56 80 0D 01 02 00 00 00 00 1C [22:46:44]Write i2c OK [22:46:44]MH_I2C_Read... [22:46:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:44]Read from MH i2c: E2 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: E2 03 00 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: E2 03 00 4D 56 00 90 00 17 [22:46:44]RAPDU: 90 00 [22:46:44]wFMCommunicate OK [22:46:44]wFMCommunicate request_size=255 [22:46:44]MH_SAM_APDU [22: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 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 5A DB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 38 74 01 00 35 04 06 00 C4 [22:46:44]Write to MH i2c: E2 02 01 4E 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 5A DB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 38 74 01 00 35 04 06 00 C4 00 00 E2 [22:46:44]Write i2c OK [22:46:44]MH_I2C_Read... [22:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:44]Read from MH i2c: E2 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: E2 03 00 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: E2 03 00 4E 56 00 90 00 18 [22:46:44]RAPDU: 90 00 [22:46:44]wFMCommunicate OK [22:46:44]wFMCommunicate request_size=10 [22:46:44]MH_SAM_APDU [22:46:44]CAPDU: 80 0D 02 02 05 BD 20 00 88 12 [22:46:44]Write to MH i2c: E2 0D 00 4F 56 80 0D 02 02 05 00 BD 20 00 88 12 00 00 A0 [22:46:44]Write i2c OK [22:46:44]MH_I2C_Read... [22:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:44]Read from MH i2c: E2 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: E2 03 00 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: E2 03 00 4F 56 00 90 00 19 [22:46:44]RAPDU: 90 00 [22:46:44]wFMCommunicate OK [22:46:44]wFMCommunicate request_size=4 [22:46:44]MH_SAM_APDU [22:46:44]CAPDU: 80 0D 03 02 [22:46:44]Write to MH i2c: E2 08 00 50 56 80 0D 03 02 00 00 00 00 21 [22:46:45]Write i2c OK [22:46:45]MH_I2C_Read... [22:46:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:45]Read from MH i2c: E2 [22:46:45]MH_I2C_Read... [22:46:45]Read from MH i2c: E2 0B 00 [22:46:45]MH_I2C_Read... [22:46:45]Read from MH i2c: E2 0B 00 50 56 00 3A 43 7E B4 AB A2 5B E3 90 00 5C [22:46:45]RAPDU: 3A 43 7E B4 AB A2 5B E3 90 00 [22:46:45]wFMCommunicate OK [22:46:45]SAM_PROTO_SignData done [22:46:45]FM_MakeSignedData done [22:46:45]CreateOFDProtocolMessage [22:46:45]wFMCommunicate request_size=4 [22:46:45]MH_SAM_APDU [22:46:45]CAPDU: 80 11 00 00 [22:46:45]Write to MH i2c: E2 08 00 51 56 80 11 00 00 00 00 00 00 21 [22:46:45]Write i2c OK [22:46:45]MH_I2C_Read... [22:46:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:45]Read from MH i2c: E2 [22:46:45]MH_I2C_Read... [22:46:45]Read from MH i2c: E2 17 00 [22:46:45]MH_I2C_Read... [22:46:45]Read from MH i2c: E2 17 00 51 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 71 [22:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:46:45]wFMCommunicate OK [22:46:45]CreateOFDProtocolMessage done [22:46:45]OFDSenderStorePacket 95288 [22:46:45]StoreOFDPacket docnum=95288 [22:46:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 23 61 07 01 08 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 5A DB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 38 74 01 00 35 04 06 00 C4 BD 20 00 88 12 3A 43 7E B4 AB A2 5B E3 [22:46:45]CheckFolder [22:46:45]dirname=/storage/ofd_packets [22:46:45]CheckFolder done [22:46:45]ProducePacketName [22:46:45]name=ofd_packets/00095288 [22:46:45]NVStorageSaveData ofd_packets/00095288 [22:46:45]File name is /storage/ofd_packets/00095288 [22:46:45]Write 301 bytes [22:46:45]NVStorageSaveData done [22:46:45]OFDSenderStorePacket done [22:46:45]KKMCreateOFDPacket done [22:46:45]NVStorageSaveData kkm_last_timestamp [22:46:45]File name is /storage/kkm_last_timestamp [22:46:45]Write 4 bytes [22:46:45]NVStorageSaveData done [22:46:45]ExternCall_PrintAddStr [22:46:45]wPrintStart [22:46:45]Write to MH i2c: 01 00 00 52 56 A8 [22:46:45]Write i2c OK [22:46:45]MH_I2C_Read... [22:46:45]Read from MH i2c: 01 [22:46:45]MH_I2C_Read... [22:46:45]Read from MH i2c: 01 07 00 [22:46:45]MH_I2C_Read... [22:46:45]Read from MH i2c: 01 07 00 52 56 00 80 00 00 00 FF 0F 3D [22:46:45]RasterBufferAndPrint [22:46:45]line Счет N : (1)196264 [22:46:45]line ИНН: 02508201610067 [22:46:45]line Контрольно-Кассовый Чек [22:46:45]line ПРОДАЖА [22:46:45]line ТРК (МРК, ГНК) : 42 [22:46:45]line Товар: 2710124130 [22:46:45]line Аи-92-К-5 [22:46:45]line 7.950 * 62.90 [22:46:45]line = 500.06 [22:46:45]line НДС 12% НСП 1% [22:46:45]line > о реализуемом товаре [22:46:45]line ОКРУГЛЕНИЕ: -0.06 [22:46:45]line ИТОГО: 500.00 [22:46:45]line Внесено: 500.00 [22:46:45]line СДАЧА: 0.00 [22:46:45]line НСП 1% : 4.42 [22:46:45]line НДС 12% : 53.10 [22:46:45]line Наличными: 500.00 [22:46:45]line Безнал.: 0.00 [22:46:45]line Место: АЗС № 6 "Партнер Нефть" [22:46:45]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:46:45]line СНО: Общий режим [22:46:45]line Чек 218 12.03.2024 22:46 [22:46:45]line Смена: 327 ФФД: 1.0 [22:46:45]line ЗНМ: 0300000009 [22:46:45]line РНМ: 0000000000090555 [22:46:45]line Версия ККМ: 001 [22:46:45]line ФМ: 0000000000874811 [22:46:45]line ФД: 95288 [22:46:45]line ФПД: 216316564768786 [22:46:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T224650&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95288&fm=216316564768786&tin=02508201610067®Number=0000000000090555&sum=50000 [22:46:45]OFD Sender: Processing packet 95288 [packets to send 30, broken 29] [22:46:45]ProducePacketName [22:46:45]name=ofd_packets/00095288 [22:46:45]OFD Sender: To server: pG, [22:46:45]CommunicateWithHost lk.salyk.kg:30040 [22:46:45]ConnectInit lk.salyk.kg [22:46:45]written 0, free lines is 4095 [22:46:45]Connected sock=10 [22:46:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 23 61 07 01 08 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 5A DB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 38 74 01 00 35 04 06 00 C4 BD 20 00 88 12 3A 43 7E B4 AB A2 5B E3 [22:46:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 54 B0 47 00 73 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 38 74 01 00 F4 03 04 00 AF 86 F0 65 B6 04 01 00 00 63 45 FB C1 BE 25 D1 EE [22:46:45]CommunicateWithHost err = 0 [22:46:45]CheckOFDResponse [22:46:45]1017 (14) - 77093643461234 [22:46:45]1041 (16) - 0000000000874811 [22:46:45]1040 (4) - 95288 [22:46:45]1012 (4) - 12.03.2024 16:45 [22:46:45]1206 (1) - 0 [22:46:45]OFD Sender: Remove packet 95288 [22:46:45]ProducePacketName [22:46:45]name=ofd_packets/00095288 [22:46:45]NVStorageDeleteData [22:46:45]Write to MH i2c: 01 00 00 7D 56 D3 [22:46:45]Write i2c OK [22:46:45]MH_I2C_Read... [22:46:45]Read from MH i2c: 01 [22:46:45]MH_I2C_Read... [22:46:45]Read from MH i2c: 01 07 00 [22:46:45]MH_I2C_Read... [22:46:45]Read from MH i2c: 01 07 00 7D 56 00 80 00 00 00 53 0D BA [22:46:45]RasterBufferAndPrint [22:46:45]line [22:46:45]line [22:46:45]line [22:46:45]line [22:46:45]line [22:46:45]written 0, free lines is 3417 [22:46:45]process_action close_receipt done [22:46:45]requested_data is exist [22:46:45]produce_requested_data [22:46:45]requested_item fm.sn is exist - process it [22:46:45]wFMCommunicate request_size=4 [22:46:45]MH_SAM_APDU [22:46:45]CAPDU: 80 11 00 00 [22:46:45]Write to MH i2c: E2 08 00 84 56 80 11 00 00 00 00 00 00 54 [22:46:45]Write i2c OK [22:46:45]MH_I2C_Read... [22:46:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:45]Read from MH i2c: E2 [22:46:45]MH_I2C_Read... [22:46:45]Read from MH i2c: E2 17 00 [22:46:45]MH_I2C_Read... [22:46:45]Read from MH i2c: E2 17 00 84 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A4 [22:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:46:45]wFMCommunicate OK [22:46:45]requested_item fd.num is exist - process it [22:46:45]SAM_PROTO_GetFieldsCounters [22:46:45]wFMCommunicate request_size=4 [22:46:45]MH_SAM_APDU [22:46:45]CAPDU: 80 13 00 00 [22:46:45]Write to MH i2c: E2 08 00 85 56 80 13 00 00 00 00 00 00 57 [22:46:45]Write i2c OK [22:46:45]MH_I2C_Read... [22:46:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:46]Read from MH i2c: E2 [22:46:46]MH_I2C_Read... [22:46:46]Read from MH i2c: E2 62 00 [22:46:46]MH_I2C_Read... [22:46:46]Read from MH i2c: E2 62 00 85 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 38 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [22:46:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 38 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:46:46]wFMCommunicate OK [22:46:46]SAM_PROTO_GetFieldsCounters done [22:46:46]requested_item shift.num is exist - process it [22:46:46]requested_item shift.opened is exist - process it [22:46:46]req_shift_opened [22:46:46]FM_GetShiftState [22:46:46]SAM_PROTO_GetShiftState [22:46:46]wFMCommunicate request_size=4 [22:46:46]MH_SAM_APDU [22:46:46]CAPDU: 80 13 01 00 [22:46:46]Write to MH i2c: E2 08 00 86 56 80 13 01 00 00 00 00 00 59 [22:46:46]Write i2c OK [22:46:46]MH_I2C_Read... [22:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:46]Read from MH i2c: E2 [22:46:46]MH_I2C_Read... [22:46:46]Read from MH i2c: E2 0E 00 [22:46:46]MH_I2C_Read... [22:46:46]Read from MH i2c: E2 0E 00 86 56 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CD [22:46:46]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:46:46]wFMCommunicate OK [22:46:46]SAM_PROTO_GetShiftState done [22:46:46]FM_GetShiftState done [22:46:46]req_shift_opened done [22:46:46]requested_item shift.open_date is exist - process it [22:46:46]req_shift_open_date [22:46:46]req_shift_open_date done [22:46:46]produce_requested_data done [22:46:46]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95288,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [22:46:46]process_action_free close_receipt [22:46:46]json_value_free [22:46:46]json_value_free done [22:46:46]process_json_proto returns [22:46:46]Send response to host [22:46:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95288,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [22:46:46]free response buf [22:46:46]execute_script done [22:46:46]execute_script returns [22:46:46]free content buf [22:46:46]Sock 9.Close socket [22:46:46]Sock 9.Thread stoped [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:23]accept exits with 8 [22:47:23]New connection [22:47:23]New thread 3066813796 created [22:47:23]Thread 3066957156 joined [22:47:23]Waiting for new connection... [22:47:23] Sock 8.Parse request [22:47:23]Sock 8.Check first char [22:47:23]Sock 8.First char is OK [22:47:23]request: POST /json_proto HTTP/1.0 [22:47:23]Method: POST [22:47:23]URL: /json_proto [22:47:23]Method is POST - this is cgi request [22:47:23]url: /json_proto [22:47:23]query_string will be loaded in cgi processing [22:47:23]execute_cgi json_proto POST (null) [22:47:23]execute_cgi path=json_proto method=POST [22:47:23]POST find Content-Length [22:47:23]Host: 172.17.62.67:8080 [22:47:23]Content-Length: 678 [22:47:23]Content-Type: application/json [22:47:23] [22:47:23]POST finish read [22:47:23]Found Content-Length = 678 [22:47:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.180, "sum" : 640.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:23]execute_script... [22:47: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)196265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.180, "sum" : 640.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:23]POST & json_proto [22:47:23]process_json_proto [22:47:23]json parsed OK: [22:47:23]protocol is kg_v1.0 [22:47:23]action value=close_receipt [22:47:23]process_action close_receipt [22:47:23]cmd_close_receipt [22:47:23]MH_GetDate [22:47:23]Write to MH i2c: F0 00 00 87 56 CC [22:47:23]Write i2c OK [22:47:23]MH_I2C_Read... [22:47:23]Read from MH i2c: F0 [22:47:23]MH_I2C_Read... [22:47:23]Read from MH i2c: F0 05 00 [22:47:23]MH_I2C_Read... [22:47:23]Read from MH i2c: F0 05 00 87 56 00 83 DB F0 65 84 [22:47:23]GetLastDocTimeStamp 1710283610 [22:47:23]current date 1710283651 [22:47:23]FM_GetShiftState [22:47:23]SAM_PROTO_GetShiftState [22:47:23]wFMCommunicate request_size=4 [22:47:23]MH_SAM_APDU [22:47:23]CAPDU: 80 13 01 00 [22:47:23]Write to MH i2c: E2 08 00 88 56 80 13 01 00 00 00 00 00 5B [22:47:23]Write i2c OK [22:47:23]MH_I2C_Read... [22:47:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:23]Read from MH i2c: E2 [22:47:23]MH_I2C_Read... [22:47:23]Read from MH i2c: E2 0E 00 [22:47:23]MH_I2C_Read... [22:47:23]Read from MH i2c: E2 0E 00 88 56 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CF [22:47:23]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:47:23]wFMCommunicate OK [22:47:23]SAM_PROTO_GetShiftState done [22:47:23]FM_GetShiftState done [22:47:23]opened in 1710201976 [22:47:23]opened+sec_in_day 1710288376 [22:47:23]quantity*price = 64032 [22:47:23]sum+1 = 64033 [22:47:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 68.00 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 219 12.03.2024 22:47 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95289 ФПД: 222770151696543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T224731&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95289&fm=222770151696543&tin=02508201610067®Number=0000000000090555&sum=64000 [22:47:25]StoreToDocumentArchive [22:47:25]shift 327 fd 95289 [22:47:25]save to /storage/0327/doc_00095289 [22:47:25]save last doc name /storage/0327/doc_00095289 to /storage/kkm_last_doc_name [22:47:25]save OK [22:47:25]Clear old archive folders... [22:47:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:47:25]tlvbuf is 01A8DCD0 [22:47:25]SAM_PROTO_ClearQueue [22:47:25]wFMCommunicate request_size=4 [22:47:25]MH_SAM_APDU [22:47:25]CAPDU: 80 09 00 00 [22:47:25]Write to MH i2c: E2 08 00 95 56 80 09 00 00 00 00 00 00 5D [22:47:25]Write i2c OK [22:47:25]MH_I2C_Read... [22:47:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:25]Read from MH i2c: E2 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 03 00 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 03 00 95 56 00 90 00 5F [22:47:25]RAPDU: 90 00 [22:47:25]wFMCommunicate OK [22:47:25]SAM_PROTO_ClearQueue done [22:47:25]KKMCreateOFDPacket [22:47:25]OFDProtocolAddRootSTLVToBuf [22:47:25]FM_MakeSignedData [22:47:25]FM_MakeSignedData [22:47:25]SAM_PROTO_SignData [22:47:25]wFMCommunicate request_size=4 [22:47:25]MH_SAM_APDU [22:47:25]CAPDU: 80 0D 01 02 [22:47:25]Write to MH i2c: E2 08 00 96 56 80 0D 01 02 00 00 00 00 65 [22:47:25]Write i2c OK [22:47:25]MH_I2C_Read... [22:47:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:25]Read from MH i2c: E2 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 03 00 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 03 00 96 56 00 90 00 60 [22:47:25]RAPDU: 90 00 [22:47:25]wFMCommunicate OK [22:47:25]wFMCommunicate request_size=255 [22:47:25]MH_SAM_APDU [22:47:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 83 DB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 39 74 01 00 35 04 06 00 CA [22:47:25]Write to MH i2c: E2 02 01 97 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 83 DB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 39 74 01 00 35 04 06 00 CA 00 00 3F [22:47:25]Write i2c OK [22:47:25]MH_I2C_Read... [22:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:25]Read from MH i2c: E2 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 03 00 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 03 00 97 56 00 90 00 61 [22:47:25]RAPDU: 90 00 [22:47:25]wFMCommunicate OK [22:47:25]wFMCommunicate request_size=10 [22:47:25]MH_SAM_APDU [22:47:25]CAPDU: 80 0D 02 02 05 9B B7 C2 28 9F [22:47:25]Write to MH i2c: E2 0D 00 98 56 80 0D 02 02 05 00 9B B7 C2 28 9F 00 00 4D [22:47:25]Write i2c OK [22:47:25]MH_I2C_Read... [22:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:25]Read from MH i2c: E2 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 03 00 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 03 00 98 56 00 90 00 62 [22:47:25]RAPDU: 90 00 [22:47:25]wFMCommunicate OK [22:47:25]wFMCommunicate request_size=4 [22:47:25]MH_SAM_APDU [22:47:25]CAPDU: 80 0D 03 02 [22:47:25]Write to MH i2c: E2 08 00 99 56 80 0D 03 02 00 00 00 00 6A [22:47:25]Write i2c OK [22:47:25]MH_I2C_Read... [22:47:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:25]Read from MH i2c: E2 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 0B 00 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 0B 00 99 56 00 07 FB 13 73 45 F4 0C 93 90 00 CB [22:47:25]RAPDU: 07 FB 13 73 45 F4 0C 93 90 00 [22:47:25]wFMCommunicate OK [22:47:25]SAM_PROTO_SignData done [22:47:25]FM_MakeSignedData done [22:47:25]CreateOFDProtocolMessage [22:47:25]wFMCommunicate request_size=4 [22:47:25]MH_SAM_APDU [22:47:25]CAPDU: 80 11 00 00 [22:47:25]Write to MH i2c: E2 08 00 9A 56 80 11 00 00 00 00 00 00 6A [22:47:25]Write i2c OK [22:47:25]MH_I2C_Read... [22:47:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:25]Read from MH i2c: E2 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 17 00 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 17 00 9A 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BA [22:47:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:47:25]wFMCommunicate OK [22:47:25]CreateOFDProtocolMessage done [22:47:25]OFDSenderStorePacket 95289 [22:47:25]StoreOFDPacket docnum=95289 [22:47:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 FB C2 07 01 CC B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 83 DB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 39 74 01 00 35 04 06 00 CA 9B B7 C2 28 9F 07 FB 13 73 45 F4 0C 93 [22:47:25]CheckFolder [22:47:25]dirname=/storage/ofd_packets [22:47:25]CheckFolder done [22:47:25]ProducePacketName [22:47:25]name=ofd_packets/00095289 [22:47:25]NVStorageSaveData ofd_packets/00095289 [22:47:25]File name is /storage/ofd_packets/00095289 [22:47:25]Write 301 bytes [22:47:25]NVStorageSaveData done [22:47:25]OFDSenderStorePacket done [22:47:25]KKMCreateOFDPacket done [22:47:25]NVStorageSaveData kkm_last_timestamp [22:47:25]File name is /storage/kkm_last_timestamp [22:47:25]Write 4 bytes [22:47:25]NVStorageSaveData done [22:47:25]ExternCall_PrintAddStr [22:47:25]wPrintStart [22:47:25]Write to MH i2c: 01 00 00 9B 56 F1 [22:47:25]Write i2c OK [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: 01 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: 01 07 00 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: 01 07 00 9B 56 00 80 00 00 00 FF 0F 86 [22:47:25]RasterBufferAndPrint [22:47:25]line Счет N : (1)196265 [22:47:25]line ИНН: 02508201610067 [22:47:25]line Контрольно-Кассовый Чек [22:47:25]line ПРОДАЖА [22:47:25]line ТРК (МРК, ГНК) : 12 [22:47:25]line Товар: 2710124130 [22:47:25]line Аи-92-К-5 [22:47:25]line 10.180 * 62.90 [22:47:25]line = 640.32 [22:47:25]line НДС 12% НСП 1% [22:47:25]line > о реализуемом товаре [22:47:25]line ОКРУГЛЕНИЕ: -0.32 [22:47:25]line ИТОГО: 640.00 [22:47:25]line Внесено: 640.00 [22:47:25]line СДАЧА: 0.00 [22:47:25]line НСП 1% : 5.67 [22:47:25]line НДС 12% : 68.00 [22:47:25]line Наличными: 640.00 [22:47:25]line Безнал.: 0.00 [22:47:25]line Место: АЗС № 6 "Партнер Нефть" [22:47:25]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:47:25]line СНО: Общий режим [22:47:25]line Чек 219 12.03.2024 22:47 [22:47:25]line Смена: 327 ФФД: 1.0 [22:47:25]line ЗНМ: 0300000009 [22:47:25]line РНМ: 0000000000090555 [22:47:25]line Версия ККМ: 001 [22:47:25]line ФМ: 0000000000874811 [22:47:25]line ФД: 95289 [22:47:25]line ФПД: 222770151696543 [22:47:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T224731&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95289&fm=222770151696543&tin=02508201610067®Number=0000000000090555&sum=64000 [22:47:25]written 0, free lines is 4095 [22:47:25]OFD Sender: Processing packet 95289 [packets to send 30, broken 29] [22:47:25]ProducePacketName [22:47:25]name=ofd_packets/00095289 [22:47:25]OFD Sender: To server: pG, [22:47:25]CommunicateWithHost lk.salyk.kg:30040 [22:47:25]ConnectInit lk.salyk.kg [22:47:26]Connected sock=10 [22:47:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 FB C2 07 01 CC B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 83 DB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 39 74 01 00 35 04 06 00 CA 9B B7 C2 28 9F 07 FB 13 73 45 F4 0C 93 [22:47:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 9D 5D 47 00 E6 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 39 74 01 00 F4 03 04 00 D8 86 F0 65 B6 04 01 00 00 FC AB 60 41 8F A9 F8 7D [22:47:26]CommunicateWithHost err = 0 [22:47:26]CheckOFDResponse [22:47:26]1017 (14) - 77093643461234 [22:47:26]1041 (16) - 0000000000874811 [22:47:26]1040 (4) - 95289 [22:47:26]1012 (4) - 12.03.2024 16:46 [22:47:26]1206 (1) - 0 [22:47:26]OFD Sender: Remove packet 95289 [22:47:26]ProducePacketName [22:47:26]name=ofd_packets/00095289 [22:47:26]NVStorageDeleteData [22:47:26]Write to MH i2c: 01 00 00 C6 56 1C [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: 01 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: 01 07 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: 01 07 00 C6 56 00 80 00 00 00 64 0D 14 [22:47:26]RasterBufferAndPrint [22:47:26]line [22:47:26]line [22:47:26]line [22:47:26]line [22:47:26]line [22:47:26]written 0, free lines is 3434 [22:47:26]process_action close_receipt done [22:47:26]requested_data is exist [22:47:26]produce_requested_data [22:47:26]requested_item fm.sn is exist - process it [22:47:26]wFMCommunicate request_size=4 [22:47:26]MH_SAM_APDU [22:47:26]CAPDU: 80 11 00 00 [22:47:26]Write to MH i2c: E2 08 00 CD 56 80 11 00 00 00 00 00 00 9D [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 [22:47:26]MH_I2C_Read... [22:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:26]Read from MH i2c: E2 17 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 17 00 CD 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 ED [22:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:47:26]wFMCommunicate OK [22:47:26]requested_item fd.num is exist - process it [22:47:26]SAM_PROTO_GetFieldsCounters [22:47:26]wFMCommunicate request_size=4 [22:47:26]MH_SAM_APDU [22:47:26]CAPDU: 80 13 00 00 [22:47:26]Write to MH i2c: E2 08 00 CE 56 80 13 00 00 00 00 00 00 A0 [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:26]Read from MH i2c: E2 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 62 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 62 00 CE 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 39 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [22:47:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 39 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:47:26]wFMCommunicate OK [22:47:26]SAM_PROTO_GetFieldsCounters done [22:47:26]requested_item shift.num is exist - process it [22:47:26]requested_item shift.opened is exist - process it [22:47:26]req_shift_opened [22:47:26]FM_GetShiftState [22:47:26]SAM_PROTO_GetShiftState [22:47:26]wFMCommunicate request_size=4 [22:47:26]MH_SAM_APDU [22:47:26]CAPDU: 80 13 01 00 [22:47:26]Write to MH i2c: E2 08 00 CF 56 80 13 01 00 00 00 00 00 A2 [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:26]Read from MH i2c: E2 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 0E 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 0E 00 CF 56 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 16 [22:47:26]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:47:26]wFMCommunicate OK [22:47:26]SAM_PROTO_GetShiftState done [22:47:26]FM_GetShiftState done [22:47:26]req_shift_opened done [22:47:26]requested_item shift.open_date is exist - process it [22:47:26]req_shift_open_date [22:47:26]req_shift_open_date done [22:47:26]produce_requested_data done [22:47:26]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95289,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [22:47:26]process_action_free close_receipt [22:47:26]json_value_free [22:47:26]json_value_free done [22:47:26]process_json_proto returns [22:47:26]Send response to host [22:47:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95289,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [22:47:26]free response buf [22:47:26]execute_script done [22:47:26]execute_script returns [22:47:26]free content buf [22:47:26]Sock 8.Close socket [22:47:26]Sock 8.Thread stoped [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]recv_with_timeout no data received [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]accept exits with 9 [22:48:16]New connection [22:48:16]New thread 3066957156 created [22:48:16]Thread 3066813796 joined [22:48:16]Waiting for new connection... [22:48:16] Sock 9.Parse request [22:48:16]Sock 9.Check first char [22:48:16]Sock 9.First char is OK [22:48:16]request: POST /json_proto HTTP/1.0 [22:48:16]Method: POST [22:48:16]URL: /json_proto [22:48:16]Method is POST - this is cgi request [22:48:16]url: /json_proto [22:48:16]query_string will be loaded in cgi processing [22:48:16]execute_cgi json_proto POST (null) [22:48:16]execute_cgi path=json_proto method=POST [22:48:16]POST find Content-Length [22:48:16]Host: 172.17.62.67:8080 [22:48:16]Content-Length: 675 [22:48:16]Content-Type: application/json [22:48:16] [22:48:16]POST finish read [22:48:16]Found Content-Length = 675 [22:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:16]execute_script... [22:48:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:16]POST & json_proto [22:48:16]process_json_proto [22:48:16]json parsed OK: [22:48:16]protocol is kg_v1.0 [22:48:16]action value=close_receipt [22:48:16]process_action close_receipt [22:48:16]cmd_close_receipt [22:48:16]MH_GetDate [22:48:16]Write to MH i2c: F0 00 00 D0 56 15 [22:48:16]Write i2c OK [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: F0 [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: F0 05 00 [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: F0 05 00 D0 56 00 B7 DB F0 65 01 [22:48:16]GetLastDocTimeStamp 1710283651 [22:48:16]current date 1710283703 [22:48:16]FM_GetShiftState [22:48:16]SAM_PROTO_GetShiftState [22:48:16]wFMCommunicate request_size=4 [22:48:16]MH_SAM_APDU [22:48:16]CAPDU: 80 13 01 00 [22:48:16]Write to MH i2c: E2 08 00 D1 56 80 13 01 00 00 00 00 00 A4 [22:48:16]Write i2c OK [22:48:16]MH_I2C_Read... [22:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:16]Read from MH i2c: E2 [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: E2 0E 00 [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: E2 0E 00 D1 56 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 18 [22:48:16]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:48:16]wFMCommunicate OK [22:48:16]SAM_PROTO_GetShiftState done [22:48:16]FM_GetShiftState done [22:48:16]opened in 1710201976 [22:48:16]opened+sec_in_day 1710288376 [22:48:16]quantity*price = 100003 [22:48:16]sum+1 = 100005 [22:48:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 220 12.03.2024 22:48 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95290 ФПД: 124970873568221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T224824&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95290&fm=124970873568221&tin=02508201610067®Number=0000000000090555&sum=100000 [22:48:17]StoreToDocumentArchive [22:48:17]shift 327 fd 95290 [22:48:17]save to /storage/0327/doc_00095290 [22:48:17]save last doc name /storage/0327/doc_00095290 to /storage/kkm_last_doc_name [22:48:17]save OK [22:48:17]Clear old archive folders... [22:48:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:48:17]tlvbuf is 01A25E80 [22:48:17]SAM_PROTO_ClearQueue [22:48:17]wFMCommunicate request_size=4 [22:48:17]MH_SAM_APDU [22:48:17]CAPDU: 80 09 00 00 [22:48:17]Write to MH i2c: E2 08 00 DE 56 80 09 00 00 00 00 00 00 A6 [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:17]Read from MH i2c: E2 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 DE 56 00 90 00 A8 [22:48:17]RAPDU: 90 00 [22:48:17]wFMCommunicate OK [22:48:17]SAM_PROTO_ClearQueue done [22:48:17]KKMCreateOFDPacket [22:48:17]OFDProtocolAddRootSTLVToBuf [22:48:17]FM_MakeSignedData [22:48:17]FM_MakeSignedData [22:48:17]SAM_PROTO_SignData [22:48:17]wFMCommunicate request_size=4 [22:48:17]MH_SAM_APDU [22:48:17]CAPDU: 80 0D 01 02 [22:48:17]Write to MH i2c: E2 08 00 DF 56 80 0D 01 02 00 00 00 00 AE [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:17]Read from MH i2c: E2 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 DF 56 00 90 00 A9 [22:48:17]RAPDU: 90 00 [22:48:17]wFMCommunicate OK [22:48:17]wFMCommunicate request_size=255 [22:48:17]MH_SAM_APDU [22:48:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 B8 DB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3A 74 01 00 35 04 06 00 [22:48:17]Write to MH i2c: E2 02 01 E0 56 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 B8 DB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3A 74 01 00 35 04 06 00 00 00 0F [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:17]Read from MH i2c: E2 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 E0 56 00 90 00 AA [22:48:17]RAPDU: 90 00 [22:48:17]wFMCommunicate OK [22:48:17]wFMCommunicate request_size=11 [22:48:17]MH_SAM_APDU [22:48:17]CAPDU: 80 0D 02 02 06 71 A9 0C 86 BB DD [22:48:17]Write to MH i2c: E2 0E 00 E1 56 80 0D 02 02 06 00 71 A9 0C 86 BB DD 00 00 01 [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:18]Read from MH i2c: E2 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 03 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 03 00 E1 56 00 90 00 AB [22:48:18]RAPDU: 90 00 [22:48:18]wFMCommunicate OK [22:48:18]wFMCommunicate request_size=4 [22:48:18]MH_SAM_APDU [22:48:18]CAPDU: 80 0D 03 02 [22:48:18]Write to MH i2c: E2 08 00 E2 56 80 0D 03 02 00 00 00 00 B3 [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:18]Read from MH i2c: E2 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 0B 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 0B 00 E2 56 00 2D 0E 21 D2 4A 58 DD 54 90 00 B5 [22:48:18]RAPDU: 2D 0E 21 D2 4A 58 DD 54 90 00 [22:48:18]wFMCommunicate OK [22:48:18]SAM_PROTO_SignData done [22:48:18]FM_MakeSignedData done [22:48:18]CreateOFDProtocolMessage [22:48:18]wFMCommunicate request_size=4 [22:48:18]MH_SAM_APDU [22:48:18]CAPDU: 80 11 00 00 [22:48:18]Write to MH i2c: E2 08 00 E3 56 80 11 00 00 00 00 00 00 B3 [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:18]Read from MH i2c: E2 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 17 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 17 00 E3 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 03 [22:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:48:18]wFMCommunicate OK [22:48:18]CreateOFDProtocolMessage done [22:48:18]OFDSenderStorePacket 95290 [22:48:18]StoreOFDPacket docnum=95290 [22:48:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 25 5F 08 01 48 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 B8 DB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3A 74 01 00 35 04 06 00 71 A9 0C 86 BB DD 2D 0E 21 D2 4A 58 DD 54 [22:48:18]CheckFolder [22:48:18]dirname=/storage/ofd_packets [22:48:18]CheckFolder done [22:48:18]ProducePacketName [22:48:18]name=ofd_packets/00095290 [22:48:18]NVStorageSaveData ofd_packets/00095290 [22:48:18]File name is /storage/ofd_packets/00095290 [22:48:18]Write 302 bytes [22:48:18]NVStorageSaveData done [22:48:18]OFDSenderStorePacket done [22:48:18]KKMCreateOFDPacket done [22:48:18]NVStorageSaveData kkm_last_timestamp [22:48:18]File name is /storage/kkm_last_timestamp [22:48:18]Write 4 bytes [22:48:18]NVStorageSaveData done [22:48:18]ExternCall_PrintAddStr [22:48:18]wPrintStart [22:48:18]Write to MH i2c: 01 00 00 E4 56 3A [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: 01 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: 01 07 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: 01 07 00 E4 56 00 80 00 00 00 FF 0F CF [22:48:18]RasterBufferAndPrint [22:48:18]line Счет N : (1)196266 [22:48:18]line ИНН: 02508201610067 [22:48:18]line Контрольно-Кассовый Чек [22:48:18]line ПРОДАЖА [22:48:18]line ТРК (МРК, ГНК) : 33 [22:48:18]line Товар: 2710124130 [22:48:18]line SUPER 92-К-5 [22:48:18]line 15.650 * 63.90 [22:48:18]line = 1000.04 [22:48:18]line НДС 12% НСП 1% [22:48:18]line > о реализуемом товаре [22:48:18]line ОКРУГЛЕНИЕ: -0.04 [22:48:18]line ИТОГО: 1000.00 [22:48:18]line Внесено: 1000.00 [22:48:18]line СДАЧА: 0.00 [22:48:18]line НСП 1% : 8.85 [22:48:18]line НДС 12% : 106.20 [22:48:18]line Наличными: 1000.00 [22:48:18]line Безнал.: 0.00 [22:48:18]line Место: АЗС № 6 "Партнер Нефть" [22:48:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:48:18]line СНО: Общий режим [22:48:18]line Чек 220 12.03.2024 22:48 [22:48:18]line Смена: 327 ФФД: 1.0 [22:48:18]line ЗНМ: 0300000009 [22:48:18]line РНМ: 0000000000090555 [22:48:18]line Версия ККМ: 001 [22:48:18]line ФМ: 0000000000874811 [22:48:18]line ФД: 95290 [22:48:18]line ФПД: 124970873568221 [22:48:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T224824&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95290&fm=124970873568221&tin=02508201610067®Number=0000000000090555&sum=100000 [22:48:18]OFD Sender: Processing packet 95290 [packets to send 30, broken 29] [22:48:18]ProducePacketName [22:48:18]name=ofd_packets/00095290 [22:48:18]OFD Sender: To server: pG, [22:48:18]CommunicateWithHost lk.salyk.kg:30040 [22:48:18]ConnectInit lk.salyk.kg [22:48:18]written 0, free lines is 4095 [22:48:18]Connected sock=10 [22:48:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 25 5F 08 01 48 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 B8 DB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3A 74 01 00 35 04 06 00 71 A9 0C 86 BB DD 2D 0E 21 D2 4A 58 DD 54 [22:48:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 A9 DE 47 00 86 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3A 74 01 00 F4 03 04 00 0C 87 F0 65 B6 04 01 00 00 70 EA DF C6 A4 C9 F4 66 [22:48:18]CommunicateWithHost err = 0 [22:48:18]CheckOFDResponse [22:48:18]1017 (14) - 77093643461234 [22:48:18]1041 (16) - 0000000000874811 [22:48:18]1040 (4) - 95290 [22:48:18]1012 (4) - 12.03.2024 16:47 [22:48:18]1206 (1) - 0 [22:48:18]OFD Sender: Remove packet 95290 [22:48:18]ProducePacketName [22:48:18]name=ofd_packets/00095290 [22:48:18]NVStorageDeleteData [22:48:18]Write to MH i2c: 01 00 00 0F 57 66 [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: 01 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: 01 07 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: 01 07 00 0F 57 00 80 00 00 00 53 0D 4D [22:48:18]RasterBufferAndPrint [22:48:18]line [22:48:18]line [22:48:18]line [22:48:18]line [22:48:18]line [22:48:18]written 0, free lines is 3417 [22:48:18]process_action close_receipt done [22:48:18]requested_data is exist [22:48:18]produce_requested_data [22:48:18]requested_item fm.sn is exist - process it [22:48:18]wFMCommunicate request_size=4 [22:48:18]MH_SAM_APDU [22:48:18]CAPDU: 80 11 00 00 [22:48:18]Write to MH i2c: E2 08 00 16 57 80 11 00 00 00 00 00 00 E7 [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 [22:48:19]MH_I2C_Read... [22:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:19]Read from MH i2c: E2 17 00 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 17 00 16 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 37 [22:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:48:19]wFMCommunicate OK [22:48:19]requested_item fd.num is exist - process it [22:48:19]SAM_PROTO_GetFieldsCounters [22:48:19]wFMCommunicate request_size=4 [22:48:19]MH_SAM_APDU [22:48:19]CAPDU: 80 13 00 00 [22:48:19]Write to MH i2c: E2 08 00 17 57 80 13 00 00 00 00 00 00 EA [22:48:19]Write i2c OK [22:48:19]MH_I2C_Read... [22:48:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:19]Read from MH i2c: E2 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 62 00 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 62 00 17 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3A 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [22:48:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3A 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:19]wFMCommunicate OK [22:48:19]SAM_PROTO_GetFieldsCounters done [22:48:19]requested_item shift.num is exist - process it [22:48:19]requested_item shift.opened is exist - process it [22:48:19]req_shift_opened [22:48:19]FM_GetShiftState [22:48:19]SAM_PROTO_GetShiftState [22:48:19]wFMCommunicate request_size=4 [22:48:19]MH_SAM_APDU [22:48:19]CAPDU: 80 13 01 00 [22:48:19]Write to MH i2c: E2 08 00 18 57 80 13 01 00 00 00 00 00 EC [22:48:19]Write i2c OK [22:48:19]MH_I2C_Read... [22:48:19]OFD Sender: No OFD packet to send [22:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:19]Read from MH i2c: E2 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 0E 00 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 0E 00 18 57 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 60 [22:48:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:48:19]wFMCommunicate OK [22:48:19]SAM_PROTO_GetShiftState done [22:48:19]FM_GetShiftState done [22:48:19]req_shift_opened done [22:48:19]requested_item shift.open_date is exist - process it [22:48:19]req_shift_open_date [22:48:19]req_shift_open_date done [22:48:19]produce_requested_data done [22:48:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95290,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [22:48:19]process_action_free close_receipt [22:48:19]json_value_free [22:48:19]json_value_free done [22:48:19]process_json_proto returns [22:48:19]Send response to host [22:48:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95290,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [22:48:19]free response buf [22:48:19]execute_script done [22:48:19]execute_script returns [22:48:19]free content buf [22:48:19]Sock 9.Close socket [22:48:19]Sock 9.Thread stoped [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:08]recv_with_timeout no data received [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:38]recv_with_timeout no data received [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:12]accept exits with 8 [22:57:12]New connection [22:57:12]New thread 3066813796 created [22:57:12]Thread 3066957156 joined [22:57:12]Waiting for new connection... [22:57:12] Sock 8.Parse request [22:57:12]Sock 8.Check first char [22:57:12]Sock 8.First char is OK [22:57:12]request: POST /json_proto HTTP/1.0 [22:57:12]Method: POST [22:57:12]URL: /json_proto [22:57:12]Method is POST - this is cgi request [22:57:12]url: /json_proto [22:57:12]query_string will be loaded in cgi processing [22:57:12]execute_cgi json_proto POST (null) [22:57:12]execute_cgi path=json_proto method=POST [22:57:12]POST find Content-Length [22:57:12]Host: 172.17.62.67:8080 [22:57:12]Content-Length: 677 [22:57:12]Content-Type: application/json [22:57:12] [22:57:12]POST finish read [22:57:12]Found Content-Length = 677 [22:57:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:12]execute_script... [22:57: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)196267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:12]POST & json_proto [22:57:12]process_json_proto [22:57:12]json parsed OK: [22:57:12]protocol is kg_v1.0 [22:57:12]action value=close_receipt [22:57:12]process_action close_receipt [22:57:12]cmd_close_receipt [22:57:12]MH_GetDate [22:57:12]Write to MH i2c: F0 00 00 19 57 5F [22:57:12]Write i2c OK [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: F0 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: F0 05 00 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: F0 05 00 19 57 00 D0 DD F0 65 66 [22:57:12]GetLastDocTimeStamp 1710283704 [22:57:12]current date 1710284240 [22:57:12]FM_GetShiftState [22:57:12]SAM_PROTO_GetShiftState [22:57:12]wFMCommunicate request_size=4 [22:57:12]MH_SAM_APDU [22:57:12]CAPDU: 80 13 01 00 [22:57:12]Write to MH i2c: E2 08 00 1A 57 80 13 01 00 00 00 00 00 EE [22:57:12]Write i2c OK [22:57:12]MH_I2C_Read... [22:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:12]Read from MH i2c: E2 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 0E 00 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 0E 00 1A 57 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 62 [22:57:12]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:57:12]wFMCommunicate OK [22:57:12]SAM_PROTO_GetShiftState done [22:57:12]FM_GetShiftState done [22:57:12]opened in 1710201976 [22:57:12]opened+sec_in_day 1710288376 [22:57:12]quantity*price = 60006 [22:57:12]sum+1 = 60008 [22:57:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 221 12.03.2024 22:57 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95291 ФПД: 90539702683270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T225720&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95291&fm=90539702683270&tin=02508201610067®Number=0000000000090555&sum=60000 [22:57:13]StoreToDocumentArchive [22:57:13]shift 327 fd 95291 [22:57:13]save to /storage/0327/doc_00095291 [22:57:13]save last doc name /storage/0327/doc_00095291 to /storage/kkm_last_doc_name [22:57:13]save OK [22:57:13]Clear old archive folders... [22:57:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:57:13]tlvbuf is 01B541F0 [22:57:13]SAM_PROTO_ClearQueue [22:57:13]wFMCommunicate request_size=4 [22:57:13]MH_SAM_APDU [22:57:13]CAPDU: 80 09 00 00 [22:57:13]Write to MH i2c: E2 08 00 27 57 80 09 00 00 00 00 00 00 F0 [22:57:13]Write i2c OK [22:57:13]MH_I2C_Read... [22:57:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:13]Read from MH i2c: E2 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 03 00 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 03 00 27 57 00 90 00 F2 [22:57:13]RAPDU: 90 00 [22:57:13]wFMCommunicate OK [22:57:13]SAM_PROTO_ClearQueue done [22:57:13]KKMCreateOFDPacket [22:57:13]OFDProtocolAddRootSTLVToBuf [22:57:13]FM_MakeSignedData [22:57:13]FM_MakeSignedData [22:57:13]SAM_PROTO_SignData [22:57:13]wFMCommunicate request_size=4 [22:57:13]MH_SAM_APDU [22:57:13]CAPDU: 80 0D 01 02 [22:57:13]Write to MH i2c: E2 08 00 28 57 80 0D 01 02 00 00 00 00 F8 [22:57:13]Write i2c OK [22:57:13]MH_I2C_Read... [22:57:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:13]Read from MH i2c: E2 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 03 00 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 03 00 28 57 00 90 00 F3 [22:57:13]RAPDU: 90 00 [22:57:13]wFMCommunicate OK [22:57:13]wFMCommunicate request_size=255 [22:57:13]MH_SAM_APDU [22:57:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 D0 DD F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3B 74 01 00 35 04 06 00 52 [22:57:13]Write to MH i2c: E2 02 01 29 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 D0 DD F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3B 74 01 00 35 04 06 00 52 00 00 30 [22:57:13]Write i2c OK [22:57:13]MH_I2C_Read... [22:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:14]Read from MH i2c: E2 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: E2 03 00 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: E2 03 00 29 57 00 90 00 F4 [22:57:14]RAPDU: 90 00 [22:57:14]wFMCommunicate OK [22:57:14]wFMCommunicate request_size=10 [22:57:14]MH_SAM_APDU [22:57:14]CAPDU: 80 0D 02 02 05 58 6A D1 06 86 [22:57:14]Write to MH i2c: E2 0D 00 2A 57 80 0D 02 02 05 00 58 6A D1 06 86 00 00 24 [22:57:14]Write i2c OK [22:57:14]MH_I2C_Read... [22:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:14]Read from MH i2c: E2 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: E2 03 00 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: E2 03 00 2A 57 00 90 00 F5 [22:57:14]RAPDU: 90 00 [22:57:14]wFMCommunicate OK [22:57:14]wFMCommunicate request_size=4 [22:57:14]MH_SAM_APDU [22:57:14]CAPDU: 80 0D 03 02 [22:57:14]Write to MH i2c: E2 08 00 2B 57 80 0D 03 02 00 00 00 00 FD [22:57:14]Write i2c OK [22:57:14]MH_I2C_Read... [22:57:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:14]Read from MH i2c: E2 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: E2 0B 00 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: E2 0B 00 2B 57 00 05 DF 22 DF C4 2B 51 E3 90 00 06 [22:57:14]RAPDU: 05 DF 22 DF C4 2B 51 E3 90 00 [22:57:14]wFMCommunicate OK [22:57:14]SAM_PROTO_SignData done [22:57:14]FM_MakeSignedData done [22:57:14]CreateOFDProtocolMessage [22:57:14]wFMCommunicate request_size=4 [22:57:14]MH_SAM_APDU [22:57:14]CAPDU: 80 11 00 00 [22:57:14]Write to MH i2c: E2 08 00 2C 57 80 11 00 00 00 00 00 00 FD [22:57:14]Write i2c OK [22:57:14]MH_I2C_Read... [22:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:14]Read from MH i2c: E2 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: E2 17 00 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: E2 17 00 2C 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4D [22:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:57:14]wFMCommunicate OK [22:57:14]CreateOFDProtocolMessage done [22:57:14]OFDSenderStorePacket 95291 [22:57:14]StoreOFDPacket docnum=95291 [22:57:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 54 A8 07 01 95 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 D0 DD F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3B 74 01 00 35 04 06 00 52 58 6A D1 06 86 05 DF 22 DF C4 2B 51 E3 [22:57:14]CheckFolder [22:57:14]dirname=/storage/ofd_packets [22:57:14]CheckFolder done [22:57:14]ProducePacketName [22:57:14]name=ofd_packets/00095291 [22:57:14]NVStorageSaveData ofd_packets/00095291 [22:57:14]File name is /storage/ofd_packets/00095291 [22:57:14]Write 301 bytes [22:57:14]NVStorageSaveData done [22:57:14]OFDSenderStorePacket done [22:57:14]KKMCreateOFDPacket done [22:57:14]NVStorageSaveData kkm_last_timestamp [22:57:14]File name is /storage/kkm_last_timestamp [22:57:14]Write 4 bytes [22:57:14]NVStorageSaveData done [22:57:14]ExternCall_PrintAddStr [22:57:14]wPrintStart [22:57:14]Write to MH i2c: 01 00 00 2D 57 84 [22:57:14]Write i2c OK [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: 01 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: 01 07 00 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: 01 07 00 2D 57 00 80 00 00 00 FF 0F 19 [22:57:14]RasterBufferAndPrint [22:57:14]line Счет N : (1)196267 [22:57:14]line ИНН: 02508201610067 [22:57:14]line Контрольно-Кассовый Чек [22:57:14]line ПРОДАЖА [22:57:14]line ТРК (МРК, ГНК) : 12 [22:57:14]line Товар: 2710124130 [22:57:14]line Аи-92-К-5 [22:57:14]line 9.540 * 62.90 [22:57:14]line = 600.07 [22:57:14]line НДС 12% НСП 1% [22:57:14]line > о реализуемом товаре [22:57:14]line ОКРУГЛЕНИЕ: -0.07 [22:57:14]line ИТОГО: 600.00 [22:57:14]line Внесено: 600.00 [22:57:14]line СДАЧА: 0.00 [22:57:14]line НСП 1% : 5.31 [22:57:14]line НДС 12% : 63.72 [22:57:14]line Наличными: 600.00 [22:57:14]line Безнал.: 0.00 [22:57:14]line Место: АЗС № 6 "Партнер Нефть" [22:57:14]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:57:14]line СНО: Общий режим [22:57:14]line Чек 221 12.03.2024 22:57 [22:57:14]line Смена: 327 ФФД: 1.0 [22:57:14]line ЗНМ: 0300000009 [22:57:14]line РНМ: 0000000000090555 [22:57:14]line Версия ККМ: 001 [22:57:14]line ФМ: 0000000000874811 [22:57:14]line ФД: 95291 [22:57:14]line ФПД: 90539702683270 [22:57:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T225720&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95291&fm=90539702683270&tin=02508201610067®Number=0000000000090555&sum=60000 [22:57:14]OFD Sender: Processing packet 95291 [packets to send 30, broken 29] [22:57:14]ProducePacketName [22:57:14]name=ofd_packets/00095291 [22:57:14]OFD Sender: To server: pG, [22:57:14]CommunicateWithHost lk.salyk.kg:30040 [22:57:14]ConnectInit lk.salyk.kg [22:57:14]written 0, free lines is 4095 [22:57:14]Connected sock=10 [22:57:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 54 A8 07 01 95 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 D0 DD F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3B 74 01 00 35 04 06 00 52 58 6A D1 06 86 05 DF 22 DF C4 2B 51 E3 [22:57:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 C5 50 47 00 36 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3B 74 01 00 F4 03 04 00 24 89 F0 65 B6 04 01 00 00 17 B4 AF B8 9F 99 15 3D [22:57:14]CommunicateWithHost err = 0 [22:57:14]CheckOFDResponse [22:57:14]1017 (14) - 77093643461234 [22:57:14]1041 (16) - 0000000000874811 [22:57:14]1040 (4) - 95291 [22:57:14]1012 (4) - 12.03.2024 16:56 [22:57:14]1206 (1) - 0 [22:57:14]OFD Sender: Remove packet 95291 [22:57:14]ProducePacketName [22:57:14]name=ofd_packets/00095291 [22:57:14]NVStorageDeleteData [22:57:15]Write to MH i2c: 01 00 00 58 57 AF [22:57:15]Write i2c OK [22:57:15]MH_I2C_Read... [22:57:15]Read from MH i2c: 01 [22:57:15]MH_I2C_Read... [22:57:15]Read from MH i2c: 01 07 00 [22:57:15]MH_I2C_Read... [22:57:15]Read from MH i2c: 01 07 00 58 57 00 80 00 00 00 50 0D 93 [22:57:15]RasterBufferAndPrint [22:57:15]line [22:57:15]line [22:57:15]line [22:57:15]line [22:57:15]line [22:57:15]written 0, free lines is 3414 [22:57:15]process_action close_receipt done [22:57:15]requested_data is exist [22:57:15]produce_requested_data [22:57:15]requested_item fm.sn is exist - process it [22:57:15]wFMCommunicate request_size=4 [22:57:15]MH_SAM_APDU [22:57:15]CAPDU: 80 11 00 00 [22:57:15]Write to MH i2c: E2 08 00 5F 57 80 11 00 00 00 00 00 00 30 [22:57:15]Write i2c OK [22:57:15]MH_I2C_Read... [22:57:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:15]Read from MH i2c: E2 [22:57:15]MH_I2C_Read... [22:57:15]Read from MH i2c: E2 17 00 [22:57:15]MH_I2C_Read... [22:57:15]Read from MH i2c: E2 17 00 5F 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 80 [22:57:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:57:15]wFMCommunicate OK [22:57:15]requested_item fd.num is exist - process it [22:57:15]SAM_PROTO_GetFieldsCounters [22:57:15]wFMCommunicate request_size=4 [22:57:15]MH_SAM_APDU [22:57:15]CAPDU: 80 13 00 00 [22:57:15]Write to MH i2c: E2 08 00 60 57 80 13 00 00 00 00 00 00 33 [22:57:15]Write i2c OK [22:57:15]MH_I2C_Read... [22:57:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:15]Read from MH i2c: E2 [22:57:15]MH_I2C_Read... [22:57:15]Read from MH i2c: E2 62 00 [22:57:15]MH_I2C_Read... [22:57:15]Read from MH i2c: E2 62 00 60 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3B 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [22:57:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3B 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:57:15]wFMCommunicate OK [22:57:15]SAM_PROTO_GetFieldsCounters done [22:57:15]requested_item shift.num is exist - process it [22:57:15]requested_item shift.opened is exist - process it [22:57:15]req_shift_opened [22:57:15]FM_GetShiftState [22:57:15]SAM_PROTO_GetShiftState [22:57:15]wFMCommunicate request_size=4 [22:57:15]MH_SAM_APDU [22:57:15]CAPDU: 80 13 01 00 [22:57:15]Write to MH i2c: E2 08 00 61 57 80 13 01 00 00 00 00 00 35 [22:57:15]Write i2c OK [22:57:15]MH_I2C_Read... [22:57:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:15]Read from MH i2c: E2 [22:57:15]MH_I2C_Read... [22:57:15]Read from MH i2c: E2 0E 00 [22:57:15]MH_I2C_Read... [22:57:15]Read from MH i2c: E2 0E 00 61 57 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A9 [22:57:15]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [22:57:15]wFMCommunicate OK [22:57:15]SAM_PROTO_GetShiftState done [22:57:15]FM_GetShiftState done [22:57:15]req_shift_opened done [22:57:15]requested_item shift.open_date is exist - process it [22:57:15]req_shift_open_date [22:57:15]req_shift_open_date done [22:57:15]produce_requested_data done [22:57:15]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95291,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [22:57:15]process_action_free close_receipt [22:57:15]json_value_free [22:57:15]json_value_free done [22:57:15]process_json_proto returns [22:57:15]Send response to host [22:57:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95291,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [22:57:15]free response buf [22:57:15]execute_script done [22:57:15]execute_script returns [22:57:15]free content buf [22:57:15]Sock 8.Close socket [22:57:15]Sock 8.Thread stoped [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:12]recv_with_timeout no data received [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]recv_with_timeout no data received [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:52]accept exits with 9 [23:03:52]New connection [23:03:52]New thread 3066957156 created [23:03:52]Thread 3066813796 joined [23:03:52]Waiting for new connection... [23:03:52] Sock 9.Parse request [23:03:52]Sock 9.Check first char [23:03:52]Sock 9.First char is OK [23:03:52]request: POST /json_proto HTTP/1.0 [23:03:52]Method: POST [23:03:52]URL: /json_proto [23:03:52]Method is POST - this is cgi request [23:03:52]url: /json_proto [23:03:52]query_string will be loaded in cgi processing [23:03:52]execute_cgi json_proto POST (null) [23:03:52]execute_cgi path=json_proto method=POST [23:03:52]POST find Content-Length [23:03:52]Host: 172.17.62.67:8080 [23:03:52]Content-Length: 767 [23:03:52]Content-Type: application/json [23:03:52] [23:03:52]POST finish read [23:03:52]Found Content-Length = 767 [23:03:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Cash2U", "payments": [ { "type": 1, "sum" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:52]execute_script... [23:03: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)196268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Cash2U", "payments": [ { "type": 1, "sum" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:52]POST & json_proto [23:03:52]process_json_proto [23:03:52]json parsed OK: [23:03:52]protocol is kg_v1.0 [23:03:52]action value=close_receipt [23:03:52]process_action close_receipt [23:03:52]cmd_close_receipt [23:03:52]MH_GetDate [23:03:52]Write to MH i2c: F0 00 00 62 57 A8 [23:03:52]Write i2c OK [23:03:52]MH_I2C_Read... [23:03:52]Read from MH i2c: F0 [23:03:52]MH_I2C_Read... [23:03:52]Read from MH i2c: F0 05 00 [23:03:52]MH_I2C_Read... [23:03:52]Read from MH i2c: F0 05 00 62 57 00 60 DF F0 65 41 [23:03:52]GetLastDocTimeStamp 1710284240 [23:03:52]current date 1710284640 [23:03:52]FM_GetShiftState [23:03:52]SAM_PROTO_GetShiftState [23:03:52]wFMCommunicate request_size=4 [23:03:52]MH_SAM_APDU [23:03:52]CAPDU: 80 13 01 00 [23:03:52]Write to MH i2c: E2 08 00 63 57 80 13 01 00 00 00 00 00 37 [23:03:52]Write i2c OK [23:03:52]MH_I2C_Read... [23:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:52]Read from MH i2c: E2 [23:03:52]MH_I2C_Read... [23:03:52]Read from MH i2c: E2 0E 00 [23:03:52]MH_I2C_Read... [23:03:52]Read from MH i2c: E2 0E 00 63 57 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 AB [23:03:52]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:03:52]wFMCommunicate OK [23:03:52]SAM_PROTO_GetShiftState done [23:03:52]FM_GetShiftState done [23:03:52]opened in 1710201976 [23:03:52]opened+sec_in_day 1710288376 [23:03:52]quantity*price = 60006 [23:03:52]sum+1 = 60008 [23:03:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.07 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.07 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 222 12.03.2024 23:04 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Cash2U ФМ: 0000000000874811 ФД: 95292 ФПД: 177463813486099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T230400&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95292&fm=177463813486099&tin=02508201610067®Number=0000000000090555&sum=60007 [23:03:53]StoreToDocumentArchive [23:03:53]shift 327 fd 95292 [23:03:53]save to /storage/0327/doc_00095292 [23:03:53]save last doc name /storage/0327/doc_00095292 to /storage/kkm_last_doc_name [23:03:53]save OK [23:03:53]Clear old archive folders... [23:03:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:03:53]tlvbuf is 01B54210 [23:03:53]SAM_PROTO_ClearQueue [23:03:53]wFMCommunicate request_size=4 [23:03:53]MH_SAM_APDU [23:03:53]CAPDU: 80 09 00 00 [23:03:53]Write to MH i2c: E2 08 00 70 57 80 09 00 00 00 00 00 00 39 [23:03:53]Write i2c OK [23:03:53]MH_I2C_Read... [23:03:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:03:53]Read from MH i2c: E2 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: E2 03 00 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: E2 03 00 70 57 00 90 00 3B [23:03:53]RAPDU: 90 00 [23:03:53]wFMCommunicate OK [23:03:53]SAM_PROTO_ClearQueue done [23:03:53]KKMCreateOFDPacket [23:03:53]OFDProtocolAddRootSTLVToBuf [23:03:53]FM_MakeSignedData [23:03:53]FM_MakeSignedData [23:03:53]SAM_PROTO_SignData [23:03:53]wFMCommunicate request_size=4 [23:03:53]MH_SAM_APDU [23:03:53]CAPDU: 80 0D 01 02 [23:03:53]Write to MH i2c: E2 08 00 71 57 80 0D 01 02 00 00 00 00 41 [23:03:53]Write i2c OK [23:03:53]MH_I2C_Read... [23:03:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:03:53]Read from MH i2c: E2 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: E2 03 00 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: E2 03 00 71 57 00 90 00 3C [23:03:53]RAPDU: 90 00 [23:03:53]wFMCommunicate OK [23:03:53]wFMCommunicate request_size=255 [23:03:53]MH_SAM_APDU [23:03:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 60 DF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3C 74 01 00 35 04 06 00 A1 [23:03:53]Write to MH i2c: E2 02 01 72 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 60 DF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3C 74 01 00 35 04 06 00 A1 00 00 6A [23:03:53]Write i2c OK [23:03:53]MH_I2C_Read... [23:03:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:54]Read from MH i2c: E2 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 03 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 03 00 72 57 00 90 00 3D [23:03:54]RAPDU: 90 00 [23:03:54]wFMCommunicate OK [23:03:54]wFMCommunicate request_size=10 [23:03:54]MH_SAM_APDU [23:03:54]CAPDU: 80 0D 02 02 05 67 03 90 36 13 [23:03:54]Write to MH i2c: E2 0D 00 73 57 80 0D 02 02 05 00 67 03 90 36 13 00 00 91 [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:54]Read from MH i2c: E2 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 03 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 03 00 73 57 00 90 00 3E [23:03:54]RAPDU: 90 00 [23:03:54]wFMCommunicate OK [23:03:54]wFMCommunicate request_size=4 [23:03:54]MH_SAM_APDU [23:03:54]CAPDU: 80 0D 03 02 [23:03:54]Write to MH i2c: E2 08 00 74 57 80 0D 03 02 00 00 00 00 46 [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:03:54]Read from MH i2c: E2 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 0B 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 0B 00 74 57 00 8A EA 87 9B BC 7C C2 DB 90 00 B2 [23:03:54]RAPDU: 8A EA 87 9B BC 7C C2 DB 90 00 [23:03:54]wFMCommunicate OK [23:03:54]SAM_PROTO_SignData done [23:03:54]FM_MakeSignedData done [23:03:54]CreateOFDProtocolMessage [23:03:54]wFMCommunicate request_size=4 [23:03:54]MH_SAM_APDU [23:03:54]CAPDU: 80 11 00 00 [23:03:54]Write to MH i2c: E2 08 00 75 57 80 11 00 00 00 00 00 00 46 [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:54]Read from MH i2c: E2 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 17 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 17 00 75 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 96 [23:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:03:54]wFMCommunicate OK [23:03:54]CreateOFDProtocolMessage done [23:03:54]OFDSenderStorePacket 95292 [23:03:54]StoreOFDPacket docnum=95292 [23:03:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A4 76 07 01 A0 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 60 DF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3C 74 01 00 35 04 06 00 A1 67 03 90 36 13 8A EA 87 9B BC 7C C2 DB [23:03:54]CheckFolder [23:03:54]dirname=/storage/ofd_packets [23:03:54]CheckFolder done [23:03:54]ProducePacketName [23:03:54]name=ofd_packets/00095292 [23:03:54]NVStorageSaveData ofd_packets/00095292 [23:03:54]File name is /storage/ofd_packets/00095292 [23:03:54]Write 301 bytes [23:03:54]NVStorageSaveData done [23:03:54]OFDSenderStorePacket done [23:03:54]KKMCreateOFDPacket done [23:03:54]NVStorageSaveData kkm_last_timestamp [23:03:54]File name is /storage/kkm_last_timestamp [23:03:54]Write 4 bytes [23:03:54]NVStorageSaveData done [23:03:54]ExternCall_PrintAddStr [23:03:54]wPrintStart [23:03:54]Write to MH i2c: 01 00 00 76 57 CD [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: 01 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: 01 07 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: 01 07 00 76 57 00 80 00 00 00 FF 0F 62 [23:03:54]RasterBufferAndPrint [23:03:54]line Счет N : (1)196268 [23:03:54]line ИНН: 02508201610067 [23:03:54]line Контрольно-Кассовый Чек [23:03:54]line ПРОДАЖА [23:03:54]line ТРК (МРК, ГНК) : 12 [23:03:54]line Товар: 2710124130 [23:03:54]line Аи-92-К-5 [23:03:54]line 9.540 * 62.90 [23:03:54]line = 600.07 [23:03:54]line НДС 12% НСП 1% [23:03:54]line > о реализуемом товаре [23:03:54]line ИТОГО: 600.07 [23:03:54]line НСП 1% : 5.31 [23:03:54]line НДС 12% : 63.72 [23:03:54]line Наличными: 0.00 [23:03:54]line Безнал.: 600.07 [23:03:54]line Место: АЗС № 6 "Партнер Нефть" [23:03:54]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:03:54]line СНО: Общий режим [23:03:54]line Чек 222 12.03.2024 23:04 [23:03:54]line Смена: 327 ФФД: 1.0 [23:03:54]line ЗНМ: 0300000009 [23:03:54]line РНМ: 0000000000090555 [23:03:54]line Версия ККМ: 001 [23:03:54]line Платежная система: Cash2U [23:03:54]line ФМ: 0000000000874811 [23:03:54]line ФД: 95292 [23:03:54]line ФПД: 177463813486099 [23:03:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T230400&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95292&fm=177463813486099&tin=02508201610067®Number=0000000000090555&sum=60007 [23:03:54]written 0, free lines is 4095 [23:03:54]OFD Sender: Processing packet 95292 [packets to send 30, broken 29] [23:03:54]ProducePacketName [23:03:54]name=ofd_packets/00095292 [23:03:54]OFD Sender: To server: pG, [23:03:54]CommunicateWithHost lk.salyk.kg:30040 [23:03:54]ConnectInit lk.salyk.kg [23:03:54]Connected sock=10 [23:03:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A4 76 07 01 A0 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 60 DF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3C 74 01 00 35 04 06 00 A1 67 03 90 36 13 8A EA 87 9B BC 7C C2 DB [23:03:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E3 98 47 00 56 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3C 74 01 00 F4 03 04 00 B4 8A F0 65 B6 04 01 00 00 54 BF 43 46 90 19 EB 64 [23:03:54]CommunicateWithHost err = 0 [23:03:54]CheckOFDResponse [23:03:54]1017 (14) - 77093643461234 [23:03:54]1041 (16) - 0000000000874811 [23:03:54]1040 (4) - 95292 [23:03:54]1012 (4) - 12.03.2024 17:02 [23:03:54]1206 (1) - 0 [23:03:54]OFD Sender: Remove packet 95292 [23:03:54]ProducePacketName [23:03:54]name=ofd_packets/00095292 [23:03:54]NVStorageDeleteData [23:03:54]Write to MH i2c: 01 00 00 9F 57 F6 [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: 01 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: 01 07 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: 01 07 00 9F 57 00 80 00 00 00 82 0D 0C [23:03:54]RasterBufferAndPrint [23:03:54]line [23:03:54]line [23:03:54]line [23:03:54]line [23:03:54]line [23:03:54]written 0, free lines is 3464 [23:03:54]process_action close_receipt done [23:03:54]requested_data is exist [23:03:54]produce_requested_data [23:03:54]requested_item fm.sn is exist - process it [23:03:54]wFMCommunicate request_size=4 [23:03:54]MH_SAM_APDU [23:03:54]CAPDU: 80 11 00 00 [23:03:54]Write to MH i2c: E2 08 00 A6 57 80 11 00 00 00 00 00 00 77 [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:54]Read from MH i2c: E2 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 17 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 17 00 A6 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C7 [23:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:03:54]wFMCommunicate OK [23:03:54]requested_item fd.num is exist - process it [23:03:54]SAM_PROTO_GetFieldsCounters [23:03:54]wFMCommunicate request_size=4 [23:03:54]MH_SAM_APDU [23:03:54]CAPDU: 80 13 00 00 [23:03:54]Write to MH i2c: E2 08 00 A7 57 80 13 00 00 00 00 00 00 7A [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:03:54]Read from MH i2c: E2 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 62 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 62 00 A7 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3C 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [23:03:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3C 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:03:54]wFMCommunicate OK [23:03:54]SAM_PROTO_GetFieldsCounters done [23:03:54]requested_item shift.num is exist - process it [23:03:54]requested_item shift.opened is exist - process it [23:03:54]req_shift_opened [23:03:54]FM_GetShiftState [23:03:54]SAM_PROTO_GetShiftState [23:03:54]wFMCommunicate request_size=4 [23:03:54]MH_SAM_APDU [23:03:54]CAPDU: 80 13 01 00 [23:03:54]Write to MH i2c: E2 08 00 A8 57 80 13 01 00 00 00 00 00 7C [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:54]Read from MH i2c: E2 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 0E 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 0E 00 A8 57 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F0 [23:03:54]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:03:54]wFMCommunicate OK [23:03:54]SAM_PROTO_GetShiftState done [23:03:54]FM_GetShiftState done [23:03:54]req_shift_opened done [23:03:54]requested_item shift.open_date is exist - process it [23:03:54]req_shift_open_date [23:03:54]req_shift_open_date done [23:03:54]produce_requested_data done [23:03:54]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95292,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [23:03:54]process_action_free close_receipt [23:03:54]json_value_free [23:03:54]json_value_free done [23:03:54]process_json_proto returns [23:03:54]Send response to host [23:03:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95292,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [23:03:54]free response buf [23:03:54]execute_script done [23:03:54]execute_script returns [23:03:54]free content buf [23:03:54]Sock 9.Close socket [23:03:54]Sock 9.Thread stoped [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:04:59]accept exits with 8 [23:04:59]New connection [23:04:59]New thread 3066813796 created [23:04:59]Thread 3066957156 joined [23:04:59]Waiting for new connection... [23:04:59] Sock 8.Parse request [23:04:59]Sock 8.Check first char [23:04:59]Sock 8.First char is OK [23:04:59]request: POST /json_proto HTTP/1.0 [23:04:59]Method: POST [23:04:59]URL: /json_proto [23:04:59]Method is POST - this is cgi request [23:04:59]url: /json_proto [23:04:59]query_string will be loaded in cgi processing [23:04:59]execute_cgi json_proto POST (null) [23:04:59]execute_cgi path=json_proto method=POST [23:04:59]POST find Content-Length [23:04:59]Host: 172.17.62.67:8080 [23:04:59]Content-Length: 674 [23:04:59]Content-Type: application/json [23:04:59] [23:04:59]POST finish read [23:04:59]Found Content-Length = 674 [23:04:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:59]execute_script... [23:04:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:59]POST & json_proto [23:04:59]process_json_proto [23:04:59]json parsed OK: [23:04:59]protocol is kg_v1.0 [23:04:59]action value=close_receipt [23:04:59]process_action close_receipt [23:04:59]cmd_close_receipt [23:04:59]MH_GetDate [23:04:59]Write to MH i2c: F0 00 00 A9 57 EF [23:04:59]Write i2c OK [23:04:59]MH_I2C_Read... [23:04:59]Read from MH i2c: F0 [23:04:59]MH_I2C_Read... [23:04:59]Read from MH i2c: F0 05 00 [23:04:59]MH_I2C_Read... [23:04:59]Read from MH i2c: F0 05 00 A9 57 00 A2 DF F0 65 CA [23:04:59]GetLastDocTimeStamp 1710284640 [23:04:59]current date 1710284706 [23:04:59]FM_GetShiftState [23:04:59]SAM_PROTO_GetShiftState [23:04:59]wFMCommunicate request_size=4 [23:04:59]MH_SAM_APDU [23:04:59]CAPDU: 80 13 01 00 [23:04:59]Write to MH i2c: E2 08 00 AA 57 80 13 01 00 00 00 00 00 7E [23:04:59]Write i2c OK [23:04:59]MH_I2C_Read... [23:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:59]Read from MH i2c: E2 [23:04:59]MH_I2C_Read... [23:04:59]Read from MH i2c: E2 0E 00 [23:04:59]MH_I2C_Read... [23:04:59]Read from MH i2c: E2 0E 00 AA 57 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F2 [23:04:59]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:04:59]wFMCommunicate OK [23:04:59]SAM_PROTO_GetShiftState done [23:04:59]FM_GetShiftState done [23:04:59]opened in 1710201976 [23:04:59]opened+sec_in_day 1710288376 [23:04:59]quantity*price = 50055 [23:04:59]sum+1 = 50056 [23:04:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 223 12.03.2024 23:05 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95293 ФПД: 108465717318796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T230506&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95293&fm=108465717318796&tin=02508201610067®Number=0000000000090555&sum=50000 [23:05:00]StoreToDocumentArchive [23:05:00]shift 327 fd 95293 [23:05:00]save to /storage/0327/doc_00095293 [23:05:00]save last doc name /storage/0327/doc_00095293 to /storage/kkm_last_doc_name [23:05:00]save OK [23:05:00]Clear old archive folders... [23:05:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:05:00]tlvbuf is 01B618A0 [23:05:00]SAM_PROTO_ClearQueue [23:05:00]wFMCommunicate request_size=4 [23:05:00]MH_SAM_APDU [23:05:00]CAPDU: 80 09 00 00 [23:05:00]Write to MH i2c: E2 08 00 B7 57 80 09 00 00 00 00 00 00 80 [23:05:00]Write i2c OK [23:05:00]MH_I2C_Read... [23:05:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:00]Read from MH i2c: E2 [23:05:00]MH_I2C_Read... [23:05:00]Read from MH i2c: E2 03 00 [23:05:00]MH_I2C_Read... [23:05:00]Read from MH i2c: E2 03 00 B7 57 00 90 00 82 [23:05:00]RAPDU: 90 00 [23:05:00]wFMCommunicate OK [23:05:00]SAM_PROTO_ClearQueue done [23:05:00]KKMCreateOFDPacket [23:05:00]OFDProtocolAddRootSTLVToBuf [23:05:00]FM_MakeSignedData [23:05:00]FM_MakeSignedData [23:05:00]SAM_PROTO_SignData [23:05:00]wFMCommunicate request_size=4 [23:05:00]MH_SAM_APDU [23:05:00]CAPDU: 80 0D 01 02 [23:05:00]Write to MH i2c: E2 08 00 B8 57 80 0D 01 02 00 00 00 00 88 [23:05:00]Write i2c OK [23:05:00]MH_I2C_Read... [23:05:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:00]Read from MH i2c: E2 [23:05:00]MH_I2C_Read... [23:05:00]Read from MH i2c: E2 03 00 [23:05:00]MH_I2C_Read... [23:05:00]Read from MH i2c: E2 03 00 B8 57 00 90 00 83 [23:05:00]RAPDU: 90 00 [23:05:00]wFMCommunicate OK [23:05:00]wFMCommunicate request_size=255 [23:05:00]MH_SAM_APDU [23:05:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 A2 DF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3D 74 01 00 35 04 06 00 62 A6 24 8D [23:05:00]Write to MH i2c: E2 02 01 B9 57 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 A2 DF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3D 74 01 00 35 04 06 00 62 A6 24 8D 00 00 C9 [23:05:00]Write i2c OK [23:05:00]MH_I2C_Read... [23:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:00]Read from MH i2c: E2 [23:05:00]MH_I2C_Read... [23:05:00]Read from MH i2c: E2 03 00 [23:05:00]MH_I2C_Read... [23:05:00]Read from MH i2c: E2 03 00 B9 57 00 90 00 84 [23:05:00]RAPDU: 90 00 [23:05:00]wFMCommunicate OK [23:05:00]wFMCommunicate request_size=7 [23:05:00]MH_SAM_APDU [23:05:00]CAPDU: 80 0D 02 02 02 14 8C [23:05:00]Write to MH i2c: E2 0A 00 BA 57 80 0D 02 02 02 00 14 8C 00 00 2F [23:05:00]Write i2c OK [23:05:00]MH_I2C_Read... [23:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:00]Read from MH i2c: E2 [23:05:00]MH_I2C_Read... [23:05:00]Read from MH i2c: E2 03 00 [23:05:00]MH_I2C_Read... [23:05:00]Read from MH i2c: E2 03 00 BA 57 00 90 00 85 [23:05:00]RAPDU: 90 00 [23:05:00]wFMCommunicate OK [23:05:00]wFMCommunicate request_size=4 [23:05:00]MH_SAM_APDU [23:05:00]CAPDU: 80 0D 03 02 [23:05:00]Write to MH i2c: E2 08 00 BB 57 80 0D 03 02 00 00 00 00 8D [23:05:00]Write i2c OK [23:05:00]MH_I2C_Read... [23:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:00]Read from MH i2c: E2 [23:05:00]MH_I2C_Read... [23:05:00]Read from MH i2c: E2 0B 00 [23:05:00]MH_I2C_Read... [23:05:00]Read from MH i2c: E2 0B 00 BB 57 00 E4 1A 54 E4 E3 FC 60 FB 90 00 FE [23:05:00]RAPDU: E4 1A 54 E4 E3 FC 60 FB 90 00 [23:05:00]wFMCommunicate OK [23:05:00]SAM_PROTO_SignData done [23:05:00]FM_MakeSignedData done [23:05:00]CreateOFDProtocolMessage [23:05:00]wFMCommunicate request_size=4 [23:05:00]MH_SAM_APDU [23:05:00]CAPDU: 80 11 00 00 [23:05:00]Write to MH i2c: E2 08 00 BC 57 80 11 00 00 00 00 00 00 8D [23:05:00]Write i2c OK [23:05:00]MH_I2C_Read... [23:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:00]Read from MH i2c: E2 [23:05:00]MH_I2C_Read... [23:05:00]Read from MH i2c: E2 17 00 [23:05:00]MH_I2C_Read... [23:05:00]Read from MH i2c: E2 17 00 BC 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DD [23:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:05:00]wFMCommunicate OK [23:05:00]CreateOFDProtocolMessage done [23:05:00]OFDSenderStorePacket 95293 [23:05:00]StoreOFDPacket docnum=95293 [23:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 FE AB 04 01 88 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 A2 DF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3D 74 01 00 35 04 06 00 62 A6 24 8D 14 8C E4 1A 54 E4 E3 FC 60 FB [23:05:00]CheckFolder [23:05:00]dirname=/storage/ofd_packets [23:05:00]CheckFolder done [23:05:00]ProducePacketName [23:05:00]name=ofd_packets/00095293 [23:05:00]NVStorageSaveData ofd_packets/00095293 [23:05:00]File name is /storage/ofd_packets/00095293 [23:05:00]Write 298 bytes [23:05:00]NVStorageSaveData done [23:05:00]OFDSenderStorePacket done [23:05:00]KKMCreateOFDPacket done [23:05:00]NVStorageSaveData kkm_last_timestamp [23:05:00]File name is /storage/kkm_last_timestamp [23:05:00]Write 4 bytes [23:05:00]NVStorageSaveData done [23:05:00]ExternCall_PrintAddStr [23:05:00]wPrintStart [23:05:00]Write to MH i2c: 01 00 00 BD 57 14 [23:05:00]Write i2c OK [23:05:00]MH_I2C_Read... [23:05:00]Read from MH i2c: 01 [23:05:00]MH_I2C_Read... [23:05:00]Read from MH i2c: 01 07 00 [23:05:00]MH_I2C_Read... [23:05:00]Read from MH i2c: 01 07 00 BD 57 00 80 00 00 00 FF 0F A9 [23:05:00]RasterBufferAndPrint [23:05:00]line Счет N : (1)196269 [23:05:00]line ИНН: 02508201610067 [23:05:00]line Контрольно-Кассовый Чек [23:05:00]line ПРОДАЖА [23:05:00]line ТРК (МРК, ГНК) : 51 [23:05:00]line Товар: 2710194210 [23:05:00]line ДТ-К-5 [23:05:00]line 7.060 * 70.90 [23:05:00]line = 500.55 [23:05:00]line НДС 12% НСП 1% [23:05:00]line > о реализуемом товаре [23:05:00]line ОКРУГЛЕНИЕ: -0.55 [23:05:00]line ИТОГО: 500.00 [23:05:00]line Внесено: 500.00 [23:05:00]line СДАЧА: 0.00 [23:05:00]line НСП 1% : 4.43 [23:05:00]line НДС 12% : 53.16 [23:05:00]line Наличными: 500.00 [23:05:00]line Безнал.: 0.00 [23:05:00]line Место: АЗС № 6 "Партнер Нефть" [23:05:00]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:05:00]line СНО: Общий режим [23:05:00]line Чек 223 12.03.2024 23:05 [23:05:00]line Смена: 327 ФФД: 1.0 [23:05:00]line ЗНМ: 0300000009 [23:05:00]line РНМ: 0000000000090555 [23:05:00]line Версия ККМ: 001 [23:05:00]line ФМ: 0000000000874811 [23:05:00]line ФД: 95293 [23:05:00]line ФПД: 108465717318796 [23:05:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T230506&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95293&fm=108465717318796&tin=02508201610067®Number=0000000000090555&sum=50000 [23:05:01]OFD Sender: Processing packet 95293 [packets to send 30, broken 29] [23:05:01]ProducePacketName [23:05:01]name=ofd_packets/00095293 [23:05:01]OFD Sender: To server: pG, [23:05:01]CommunicateWithHost lk.salyk.kg:30040 [23:05:01]ConnectInit lk.salyk.kg [23:05:01]written 0, free lines is 4095 [23:05:01]Connected sock=10 [23:05:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 FE AB 04 01 88 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 A2 DF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3D 74 01 00 35 04 06 00 62 A6 24 8D 14 8C E4 1A 54 E4 E3 FC 60 FB [23:05:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 55 ED 47 00 AA D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3D 74 01 00 F4 03 04 00 F7 8A F0 65 B6 04 01 00 00 81 BB 4F 47 D6 4F 46 E0 [23:05:01]CommunicateWithHost err = 0 [23:05:01]CheckOFDResponse [23:05:01]1017 (14) - 77093643461234 [23:05:01]1041 (16) - 0000000000874811 [23:05:01]1040 (4) - 95293 [23:05:01]1012 (4) - 12.03.2024 17:03 [23:05:01]1206 (1) - 0 [23:05:01]OFD Sender: Remove packet 95293 [23:05:01]ProducePacketName [23:05:01]name=ofd_packets/00095293 [23:05:01]NVStorageDeleteData [23:05:01]Write to MH i2c: 01 00 00 E8 57 3F [23:05:01]Write i2c OK [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: 01 [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: 01 07 00 [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: 01 07 00 E8 57 00 80 00 00 00 4B 0D 1E [23:05:01]RasterBufferAndPrint [23:05:01]line [23:05:01]line [23:05:01]line [23:05:01]line [23:05:01]line [23:05:01]written 0, free lines is 3409 [23:05:01]process_action close_receipt done [23:05:01]requested_data is exist [23:05:01]produce_requested_data [23:05:01]requested_item fm.sn is exist - process it [23:05:01]wFMCommunicate request_size=4 [23:05:01]MH_SAM_APDU [23:05:01]CAPDU: 80 11 00 00 [23:05:01]Write to MH i2c: E2 08 00 EF 57 80 11 00 00 00 00 00 00 C0 [23:05:01]Write i2c OK [23:05:01]MH_I2C_Read... [23:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:01]Read from MH i2c: E2 [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: E2 17 00 [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: E2 17 00 EF 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 10 [23:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:05:01]wFMCommunicate OK [23:05:01]requested_item fd.num is exist - process it [23:05:01]SAM_PROTO_GetFieldsCounters [23:05:01]wFMCommunicate request_size=4 [23:05:01]MH_SAM_APDU [23:05:01]CAPDU: 80 13 00 00 [23:05:01]Write to MH i2c: E2 08 00 F0 57 80 13 00 00 00 00 00 00 C3 [23:05:01]Write i2c OK [23:05:01]MH_I2C_Read... [23:05:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:01]Read from MH i2c: E2 [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: E2 62 00 [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: E2 62 00 F0 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3D 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [23:05:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3D 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:05:01]wFMCommunicate OK [23:05:01]SAM_PROTO_GetFieldsCounters done [23:05:01]requested_item shift.num is exist - process it [23:05:01]requested_item shift.opened is exist - process it [23:05:01]req_shift_opened [23:05:01]FM_GetShiftState [23:05:01]SAM_PROTO_GetShiftState [23:05:01]wFMCommunicate request_size=4 [23:05:01]MH_SAM_APDU [23:05:01]CAPDU: 80 13 01 00 [23:05:01]Write to MH i2c: E2 08 00 F1 57 80 13 01 00 00 00 00 00 C5 [23:05:01]Write i2c OK [23:05:01]MH_I2C_Read... [23:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:01]Read from MH i2c: E2 [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: E2 0E 00 [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: E2 0E 00 F1 57 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 39 [23:05:01]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:05:01]wFMCommunicate OK [23:05:01]SAM_PROTO_GetShiftState done [23:05:01]FM_GetShiftState done [23:05:01]req_shift_opened done [23:05:01]requested_item shift.open_date is exist - process it [23:05:01]req_shift_open_date [23:05:01]req_shift_open_date done [23:05:01]produce_requested_data done [23:05:01]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95293,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [23:05:01]process_action_free close_receipt [23:05:01]json_value_free [23:05:01]json_value_free done [23:05:01]process_json_proto returns [23:05:01]Send response to host [23:05:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95293,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [23:05:01]free response buf [23:05:01]execute_script done [23:05:01]execute_script returns [23:05:01]free content buf [23:05:01]Sock 8.Close socket [23:05:01]Sock 8.Thread stoped [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:19]accept exits with 9 [23:06:19]New connection [23:06:19]New thread 3066957156 created [23:06:19]Thread 3066813796 joined [23:06:19]Waiting for new connection... [23:06:19] Sock 9.Parse request [23:06:19]Sock 9.Check first char [23:06:19]Sock 9.First char is OK [23:06:19]request: POST /json_proto HTTP/1.0 [23:06:19]Method: POST [23:06:19]URL: /json_proto [23:06:19]Method is POST - this is cgi request [23:06:19]url: /json_proto [23:06:19]query_string will be loaded in cgi processing [23:06:19]execute_cgi json_proto POST (null) [23:06:19]execute_cgi path=json_proto method=POST [23:06:19]POST find Content-Length [23:06:19]Host: 172.17.62.67:8080 [23:06:19]Content-Length: 670 [23:06:19]Content-Type: application/json [23:06:19] [23:06:19]POST finish read [23:06:19]Found Content-Length = 670 [23:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 6.260, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:19]execute_script... [23:06: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)196270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 6.260, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:19]POST & json_proto [23:06:19]process_json_proto [23:06:19]json parsed OK: [23:06:19]protocol is kg_v1.0 [23:06:19]action value=close_receipt [23:06:19]process_action close_receipt [23:06:19]cmd_close_receipt [23:06:19]MH_GetDate [23:06:19]Write to MH i2c: F0 00 00 F2 57 38 [23:06:19]Write i2c OK [23:06:19]MH_I2C_Read... [23:06:19]Read from MH i2c: F0 [23:06:19]MH_I2C_Read... [23:06:19]Read from MH i2c: F0 05 00 [23:06:19]MH_I2C_Read... [23:06:19]Read from MH i2c: F0 05 00 F2 57 00 F3 DF F0 65 64 [23:06:19]GetLastDocTimeStamp 1710284706 [23:06:19]current date 1710284787 [23:06:19]FM_GetShiftState [23:06:19]SAM_PROTO_GetShiftState [23:06:19]wFMCommunicate request_size=4 [23:06:19]MH_SAM_APDU [23:06:19]CAPDU: 80 13 01 00 [23:06:19]Write to MH i2c: E2 08 00 F3 57 80 13 01 00 00 00 00 00 C7 [23:06:19]Write i2c OK [23:06:19]MH_I2C_Read... [23:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:19]Read from MH i2c: E2 [23:06:19]MH_I2C_Read... [23:06:19]Read from MH i2c: E2 0E 00 [23:06:19]MH_I2C_Read... [23:06:19]Read from MH i2c: E2 0E 00 F3 57 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 3B [23:06:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:06:19]wFMCommunicate OK [23:06:19]SAM_PROTO_GetShiftState done [23:06:19]FM_GetShiftState done [23:06:19]opened in 1710201976 [23:06:19]opened+sec_in_day 1710288376 [23:06:19]quantity*price = 40001 [23:06:19]sum+1 = 40002 [23:06:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 224 12.03.2024 23:06 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95294 ФПД: 147937314066633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T230627&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95294&fm=147937314066633&tin=02508201610067®Number=0000000000090555&sum=40000 [23:06:20]StoreToDocumentArchive [23:06:20]shift 327 fd 95294 [23:06:20]save to /storage/0327/doc_00095294 [23:06:20]save last doc name /storage/0327/doc_00095294 to /storage/kkm_last_doc_name [23:06:20]save OK [23:06:20]Clear old archive folders... [23:06:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:06:20]tlvbuf is 01B3CA50 [23:06:20]SAM_PROTO_ClearQueue [23:06:20]wFMCommunicate request_size=4 [23:06:20]MH_SAM_APDU [23:06:20]CAPDU: 80 09 00 00 [23:06:20]Write to MH i2c: E2 08 00 00 58 80 09 00 00 00 00 00 00 CA [23:06:20]Write i2c OK [23:06:20]MH_I2C_Read... [23:06:20]Read from MH i2c: E2 [23:06:20]MH_I2C_Read... [23:06:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:06:20]Read from MH i2c: E2 03 00 [23:06:20]MH_I2C_Read... [23:06:20]Read from MH i2c: E2 03 00 00 58 00 90 00 CC [23:06:20]RAPDU: 90 00 [23:06:20]wFMCommunicate OK [23:06:20]SAM_PROTO_ClearQueue done [23:06:20]KKMCreateOFDPacket [23:06:20]OFDProtocolAddRootSTLVToBuf [23:06:20]FM_MakeSignedData [23:06:20]FM_MakeSignedData [23:06:20]SAM_PROTO_SignData [23:06:20]wFMCommunicate request_size=4 [23:06:20]MH_SAM_APDU [23:06:20]CAPDU: 80 0D 01 02 [23:06:20]Write to MH i2c: E2 08 00 01 58 80 0D 01 02 00 00 00 00 D2 [23:06:20]Write i2c OK [23:06:20]MH_I2C_Read... [23:06:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:06:20]Read from MH i2c: E2 [23:06:20]MH_I2C_Read... [23:06:20]Read from MH i2c: E2 03 00 [23:06:20]MH_I2C_Read... [23:06:20]Read from MH i2c: E2 03 00 01 58 00 90 00 CD [23:06:20]RAPDU: 90 00 [23:06:20]wFMCommunicate OK [23:06:20]wFMCommunicate request_size=255 [23:06:20]MH_SAM_APDU [23:06: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 F3 DF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3E 74 01 00 35 04 06 00 [23:06:20]Write to MH i2c: E2 02 01 02 58 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 F3 DF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3E 74 01 00 35 04 06 00 00 00 B1 [23:06:20]Write i2c OK [23:06:20]MH_I2C_Read... [23:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:21]Read from MH i2c: E2 [23:06:21]MH_I2C_Read... [23:06:21]Read from MH i2c: E2 03 00 [23:06:21]MH_I2C_Read... [23:06:21]Read from MH i2c: E2 03 00 02 58 00 90 00 CE [23:06:21]RAPDU: 90 00 [23:06:21]wFMCommunicate OK [23:06:21]wFMCommunicate request_size=11 [23:06:21]MH_SAM_APDU [23:06:21]CAPDU: 80 0D 02 02 06 86 8C 57 0D D0 C9 [23:06:21]Write to MH i2c: E2 0E 00 03 58 80 0D 02 02 06 00 86 8C 57 0D D0 C9 00 00 F0 [23:06:21]Write i2c OK [23:06:21]MH_I2C_Read... [23:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:21]Read from MH i2c: E2 [23:06:21]MH_I2C_Read... [23:06:21]Read from MH i2c: E2 03 00 [23:06:21]MH_I2C_Read... [23:06:21]Read from MH i2c: E2 03 00 03 58 00 90 00 CF [23:06:21]RAPDU: 90 00 [23:06:21]wFMCommunicate OK [23:06:21]wFMCommunicate request_size=4 [23:06:21]MH_SAM_APDU [23:06:21]CAPDU: 80 0D 03 02 [23:06:21]Write to MH i2c: E2 08 00 04 58 80 0D 03 02 00 00 00 00 D7 [23:06:21]Write i2c OK [23:06:21]MH_I2C_Read... [23:06:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:06:21]Read from MH i2c: E2 [23:06:21]MH_I2C_Read... [23:06:21]Read from MH i2c: E2 0B 00 [23:06:21]MH_I2C_Read... [23:06:21]Read from MH i2c: E2 0B 00 04 58 00 64 84 AF 52 92 4D 07 4C 90 00 F3 [23:06:21]RAPDU: 64 84 AF 52 92 4D 07 4C 90 00 [23:06:21]wFMCommunicate OK [23:06:21]SAM_PROTO_SignData done [23:06:21]FM_MakeSignedData done [23:06:21]CreateOFDProtocolMessage [23:06:21]wFMCommunicate request_size=4 [23:06:21]MH_SAM_APDU [23:06:21]CAPDU: 80 11 00 00 [23:06:21]Write to MH i2c: E2 08 00 05 58 80 11 00 00 00 00 00 00 D7 [23:06:21]Write i2c OK [23:06:21]MH_I2C_Read... [23:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:21]Read from MH i2c: E2 [23:06:21]MH_I2C_Read... [23:06:21]Read from MH i2c: E2 17 00 [23:06:21]MH_I2C_Read... [23:06:21]Read from MH i2c: E2 17 00 05 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 27 [23:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:06:21]wFMCommunicate OK [23:06:21]CreateOFDProtocolMessage done [23:06:21]OFDSenderStorePacket 95294 [23:06:21]StoreOFDPacket docnum=95294 [23:06:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 B6 12 08 01 5C 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 F3 DF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3E 74 01 00 35 04 06 00 86 8C 57 0D D0 C9 64 84 AF 52 92 4D 07 4C [23:06:21]CheckFolder [23:06:21]dirname=/storage/ofd_packets [23:06:21]CheckFolder done [23:06:21]ProducePacketName [23:06:21]name=ofd_packets/00095294 [23:06:21]NVStorageSaveData ofd_packets/00095294 [23:06:21]File name is /storage/ofd_packets/00095294 [23:06:21]Write 302 bytes [23:06:21]NVStorageSaveData done [23:06:21]OFDSenderStorePacket done [23:06:21]KKMCreateOFDPacket done [23:06:21]NVStorageSaveData kkm_last_timestamp [23:06:21]File name is /storage/kkm_last_timestamp [23:06:21]Write 4 bytes [23:06:21]NVStorageSaveData done [23:06:21]ExternCall_PrintAddStr [23:06:21]wPrintStart [23:06:21]Write to MH i2c: 01 00 00 06 58 5E [23:06:21]Write i2c OK [23:06:21]MH_I2C_Read... [23:06:21]Read from MH i2c: 01 [23:06:21]MH_I2C_Read... [23:06:21]Read from MH i2c: 01 07 00 [23:06:21]MH_I2C_Read... [23:06:21]Read from MH i2c: 01 07 00 06 58 00 80 00 00 00 FF 0F F3 [23:06:21]RasterBufferAndPrint [23:06:21]line Счет N : (1)196270 [23:06:21]line ИНН: 02508201610067 [23:06:21]line Контрольно-Кассовый Чек [23:06:21]line ПРОДАЖА [23:06:21]line ТРК (МРК, ГНК) : 33 [23:06:21]line Товар: 2710124130 [23:06:21]line SUPER 92-К-5 [23:06:21]line 6.260 * 63.90 [23:06:21]line = 400.01 [23:06:21]line НДС 12% НСП 1% [23:06:21]line > о реализуемом товаре [23:06:21]line ОКРУГЛЕНИЕ: -0.01 [23:06:21]line ИТОГО: 400.00 [23:06:21]line Внесено: 400.00 [23:06:21]line СДАЧА: 0.00 [23:06:21]line НСП 1% : 3.54 [23:06:21]line НДС 12% : 42.48 [23:06:21]line Наличными: 400.00 [23:06:21]line Безнал.: 0.00 [23:06:21]line Место: АЗС № 6 "Партнер Нефть" [23:06:21]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:06:21]line СНО: Общий режим [23:06:21]line Чек 224 12.03.2024 23:06 [23:06:21]line Смена: 327 ФФД: 1.0 [23:06:21]line ЗНМ: 0300000009 [23:06:21]line РНМ: 0000000000090555 [23:06:21]line Версия ККМ: 001 [23:06:21]line ФМ: 0000000000874811 [23:06:21]line ФД: 95294 [23:06:21]line ФПД: 147937314066633 [23:06:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T230627&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95294&fm=147937314066633&tin=02508201610067®Number=0000000000090555&sum=40000 [23:06:21]written 0, free lines is 4095 [23:06:21]OFD Sender: Processing packet 95294 [packets to send 30, broken 29] [23:06:21]ProducePacketName [23:06:21]name=ofd_packets/00095294 [23:06:21]OFD Sender: To server: pG, [23:06:21]CommunicateWithHost lk.salyk.kg:30040 [23:06:21]ConnectInit lk.salyk.kg [23:06:22]Write to MH i2c: 01 00 00 31 58 89 [23:06:22]Write i2c OK [23:06:22]MH_I2C_Read... [23:06:22]Read from MH i2c: 01 [23:06:22]MH_I2C_Read... [23:06:22]Read from MH i2c: 01 07 00 [23:06:22]MH_I2C_Read... [23:06:22]Read from MH i2c: 01 07 00 31 58 00 80 00 00 00 53 0D 70 [23:06:22]RasterBufferAndPrint [23:06:22]line [23:06:22]line [23:06:22]line [23:06:22]line [23:06:22]line [23:06:22]written 0, free lines is 3417 [23:06:22]process_action close_receipt done [23:06:22]requested_data is exist [23:06:22]produce_requested_data [23:06:22]requested_item fm.sn is exist - process it [23:06:22]wFMCommunicate request_size=4 [23:06:22]MH_SAM_APDU [23:06:22]CAPDU: 80 11 00 00 [23:06:22]Write to MH i2c: E2 08 00 38 58 80 11 00 00 00 00 00 00 0A [23:06:22]Write i2c OK [23:06:22]MH_I2C_Read... [23:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:22]Read from MH i2c: E2 [23:06:22]MH_I2C_Read... [23:06:22]Read from MH i2c: E2 17 00 [23:06:22]MH_I2C_Read... [23:06:22]Read from MH i2c: E2 17 00 38 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5A [23:06:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:06:22]wFMCommunicate OK [23:06:22]requested_item fd.num is exist - process it [23:06:22]SAM_PROTO_GetFieldsCounters [23:06:22]wFMCommunicate request_size=4 [23:06:22]MH_SAM_APDU [23:06:22]CAPDU: 80 13 00 00 [23:06:22]Write to MH i2c: E2 08 00 39 58 80 13 00 00 00 00 00 00 0D [23:06:22]Write i2c OK [23:06:22]MH_I2C_Read... [23:06:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:06:22]Read from MH i2c: E2 [23:06:22]MH_I2C_Read... [23:06:22]Read from MH i2c: E2 62 00 [23:06:22]MH_I2C_Read... [23:06:22]Read from MH i2c: E2 62 00 39 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3E 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [23:06:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3E 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:06:22]wFMCommunicate OK [23:06:22]SAM_PROTO_GetFieldsCounters done [23:06:22]requested_item shift.num is exist - process it [23:06:22]requested_item shift.opened is exist - process it [23:06:22]req_shift_opened [23:06:22]FM_GetShiftState [23:06:22]SAM_PROTO_GetShiftState [23:06:22]wFMCommunicate request_size=4 [23:06:22]MH_SAM_APDU [23:06:22]CAPDU: 80 13 01 00 [23:06:22]Write to MH i2c: E2 08 00 3A 58 80 13 01 00 00 00 00 00 0F [23:06:22]Write i2c OK [23:06:22]MH_I2C_Read... [23:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:22]Read from MH i2c: E2 [23:06:22]MH_I2C_Read... [23:06:22]Read from MH i2c: E2 0E 00 [23:06:22]MH_I2C_Read... [23:06:22]Read from MH i2c: E2 0E 00 3A 58 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 83 [23:06:22]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:06:22]wFMCommunicate OK [23:06:22]SAM_PROTO_GetShiftState done [23:06:22]FM_GetShiftState done [23:06:22]req_shift_opened done [23:06:22]requested_item shift.open_date is exist - process it [23:06:22]req_shift_open_date [23:06:22]req_shift_open_date done [23:06:22]produce_requested_data done [23:06:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95294,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [23:06:22]process_action_free close_receipt [23:06:22]json_value_free [23:06:22]json_value_free done [23:06:22]process_json_proto returns [23:06:22]Send response to host [23:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95294,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [23:06:22]free response buf [23:06:22]execute_script done [23:06:22]execute_script returns [23:06:22]free content buf [23:06:22]Sock 9.Close socket [23:06:22]Sock 9.Thread stoped [23:06:27]Connected sock=11 [23:06:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 B6 12 08 01 5C 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 F3 DF F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3E 74 01 00 35 04 06 00 86 8C 57 0D D0 C9 64 84 AF 52 92 4D 07 4C [23:06:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 80 FD 47 00 A8 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3E 74 01 00 F4 03 04 00 4D 8B F0 65 B6 04 01 00 00 B3 35 D0 3D 98 9C 63 5B [23:06:27]CommunicateWithHost err = 0 [23:06:27]CheckOFDResponse [23:06:27]1017 (14) - 77093643461234 [23:06:27]1041 (16) - 0000000000874811 [23:06:27]1040 (4) - 95294 [23:06:27]1012 (4) - 12.03.2024 17:05 [23:06:27]1206 (1) - 0 [23:06:27]OFD Sender: Remove packet 95294 [23:06:27]ProducePacketName [23:06:27]name=ofd_packets/00095294 [23:06:27]NVStorageDeleteData [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:12]accept exits with 10 [23:13:12]New connection [23:13:12]New thread 3066813796 created [23:13:12]Thread 3066957156 joined [23:13:12]Waiting for new connection... [23:13:12] Sock 10.Parse request [23:13:12]Sock 10.Check first char [23:13:12]Sock 10.First char is OK [23:13:12]request: POST /json_proto HTTP/1.0 [23:13:12]Method: POST [23:13:12]URL: /json_proto [23:13:12]Method is POST - this is cgi request [23:13:12]url: /json_proto [23:13:12]query_string will be loaded in cgi processing [23:13:12]execute_cgi json_proto POST (null) [23:13:12]execute_cgi path=json_proto method=POST [23:13:12]POST find Content-Length [23:13:12]Host: 172.17.62.67:8080 [23:13:12]Content-Length: 677 [23:13:12]Content-Type: application/json [23:13:12] [23:13:12]POST finish read [23:13:12]Found Content-Length = 677 [23:13:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.090, "sum" : 320.16, "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" ] } } [23:13:12]execute_script... [23:13: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)196271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.090, "sum" : 320.16, "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" ] } } [23:13:12]POST & json_proto [23:13:12]process_json_proto [23:13:12]json parsed OK: [23:13:12]protocol is kg_v1.0 [23:13:12]action value=close_receipt [23:13:12]process_action close_receipt [23:13:12]cmd_close_receipt [23:13:12]MH_GetDate [23:13:12]Write to MH i2c: F0 00 00 3B 58 82 [23:13:12]Write i2c OK [23:13:12]MH_I2C_Read... [23:13:12]Read from MH i2c: F0 [23:13:12]MH_I2C_Read... [23:13:12]Read from MH i2c: F0 05 00 [23:13:12]MH_I2C_Read... [23:13:12]Read from MH i2c: F0 05 00 3B 58 00 90 E1 F0 65 4D [23:13:12]GetLastDocTimeStamp 1710284787 [23:13:12]current date 1710285200 [23:13:12]FM_GetShiftState [23:13:12]SAM_PROTO_GetShiftState [23:13:12]wFMCommunicate request_size=4 [23:13:12]MH_SAM_APDU [23:13:12]CAPDU: 80 13 01 00 [23:13:12]Write to MH i2c: E2 08 00 3C 58 80 13 01 00 00 00 00 00 11 [23:13:12]Write i2c OK [23:13:12]MH_I2C_Read... [23:13:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:12]Read from MH i2c: E2 [23:13:12]MH_I2C_Read... [23:13:12]Read from MH i2c: E2 0E 00 [23:13:12]MH_I2C_Read... [23:13:12]Read from MH i2c: E2 0E 00 3C 58 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 85 [23:13:12]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:13:12]wFMCommunicate OK [23:13:12]SAM_PROTO_GetShiftState done [23:13:12]FM_GetShiftState done [23:13:12]opened in 1710201976 [23:13:12]opened+sec_in_day 1710288376 [23:13:12]quantity*price = 32016 [23:13:12]sum+1 = 32017 [23:13:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 34.00 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 225 12.03.2024 23:13 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95295 ФПД: 225460493811564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T231320&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95295&fm=225460493811564&tin=02508201610067®Number=0000000000090555&sum=32000 [23:13:13]StoreToDocumentArchive [23:13:13]shift 327 fd 95295 [23:13:13]save to /storage/0327/doc_00095295 [23:13:13]save last doc name /storage/0327/doc_00095295 to /storage/kkm_last_doc_name [23:13:13]save OK [23:13:13]Clear old archive folders... [23:13:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:13:13]tlvbuf is 01C1D540 [23:13:13]SAM_PROTO_ClearQueue [23:13:13]wFMCommunicate request_size=4 [23:13:13]MH_SAM_APDU [23:13:13]CAPDU: 80 09 00 00 [23:13:13]Write to MH i2c: E2 08 00 49 58 80 09 00 00 00 00 00 00 13 [23:13:13]Write i2c OK [23:13:13]MH_I2C_Read... [23:13:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:13:13]Read from MH i2c: E2 [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: E2 03 00 [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: E2 03 00 49 58 00 90 00 15 [23:13:13]RAPDU: 90 00 [23:13:13]wFMCommunicate OK [23:13:13]SAM_PROTO_ClearQueue done [23:13:13]KKMCreateOFDPacket [23:13:13]OFDProtocolAddRootSTLVToBuf [23:13:13]FM_MakeSignedData [23:13:13]FM_MakeSignedData [23:13:13]SAM_PROTO_SignData [23:13:13]wFMCommunicate request_size=4 [23:13:13]MH_SAM_APDU [23:13:13]CAPDU: 80 0D 01 02 [23:13:13]Write to MH i2c: E2 08 00 4A 58 80 0D 01 02 00 00 00 00 1B [23:13:13]Write i2c OK [23:13:13]MH_I2C_Read... [23:13:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:13:14]Read from MH i2c: E2 [23:13:14]MH_I2C_Read... [23:13:14]Read from MH i2c: E2 03 00 [23:13:14]MH_I2C_Read... [23:13:14]Read from MH i2c: E2 03 00 4A 58 00 90 00 16 [23:13:14]RAPDU: 90 00 [23:13:14]wFMCommunicate OK [23:13:14]wFMCommunicate request_size=255 [23:13:14]MH_SAM_APDU [23:13:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 10 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 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 E1 00 00 00 F4 03 04 00 90 E1 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3F 74 01 00 35 04 06 00 CD [23:13:14]Write to MH i2c: E2 02 01 4B 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 10 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 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 E1 00 00 00 F4 03 04 00 90 E1 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3F 74 01 00 35 04 06 00 CD 00 00 28 [23:13:14]Write i2c OK [23:13:14]MH_I2C_Read... [23:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:14]Read from MH i2c: E2 [23:13:14]MH_I2C_Read... [23:13:14]Read from MH i2c: E2 03 00 [23:13:14]MH_I2C_Read... [23:13:14]Read from MH i2c: E2 03 00 4B 58 00 90 00 17 [23:13:14]RAPDU: 90 00 [23:13:14]wFMCommunicate OK [23:13:14]wFMCommunicate request_size=10 [23:13:14]MH_SAM_APDU [23:13:14]CAPDU: 80 0D 02 02 05 0E 1C A4 FF 6C [23:13:14]Write to MH i2c: E2 0D 00 4C 58 80 0D 02 02 05 00 0E 1C A4 FF 6C 00 00 61 [23:13:14]Write i2c OK [23:13:14]MH_I2C_Read... [23:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:14]Read from MH i2c: E2 [23:13:14]MH_I2C_Read... [23:13:14]Read from MH i2c: E2 03 00 [23:13:14]MH_I2C_Read... [23:13:14]Read from MH i2c: E2 03 00 4C 58 00 90 00 18 [23:13:14]RAPDU: 90 00 [23:13:14]wFMCommunicate OK [23:13:14]wFMCommunicate request_size=4 [23:13:14]MH_SAM_APDU [23:13:14]CAPDU: 80 0D 03 02 [23:13:14]Write to MH i2c: E2 08 00 4D 58 80 0D 03 02 00 00 00 00 20 [23:13:14]Write i2c OK [23:13:14]MH_I2C_Read... [23:13:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:13:14]Read from MH i2c: E2 [23:13:14]MH_I2C_Read... [23:13:14]Read from MH i2c: E2 0B 00 [23:13:14]MH_I2C_Read... [23:13:14]Read from MH i2c: E2 0B 00 4D 58 00 F8 82 09 01 28 EB ED 8E 90 00 33 [23:13:14]RAPDU: F8 82 09 01 28 EB ED 8E 90 00 [23:13:14]wFMCommunicate OK [23:13:14]SAM_PROTO_SignData done [23:13:14]FM_MakeSignedData done [23:13:14]CreateOFDProtocolMessage [23:13:14]wFMCommunicate request_size=4 [23:13:14]MH_SAM_APDU [23:13:14]CAPDU: 80 11 00 00 [23:13:14]Write to MH i2c: E2 08 00 4E 58 80 11 00 00 00 00 00 00 20 [23:13:14]Write i2c OK [23:13:14]MH_I2C_Read... [23:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:14]Read from MH i2c: E2 [23:13:14]MH_I2C_Read... [23:13:14]Read from MH i2c: E2 17 00 [23:13:14]MH_I2C_Read... [23:13:14]Read from MH i2c: E2 17 00 4E 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 70 [23:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:13:14]wFMCommunicate OK [23:13:14]CreateOFDProtocolMessage done [23:13:14]OFDSenderStorePacket 95295 [23:13:14]StoreOFDPacket docnum=95295 [23:13:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8A C4 07 01 51 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 10 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 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 E1 00 00 00 F4 03 04 00 90 E1 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3F 74 01 00 35 04 06 00 CD 0E 1C A4 FF 6C F8 82 09 01 28 EB ED 8E [23:13:14]CheckFolder [23:13:14]dirname=/storage/ofd_packets [23:13:14]CheckFolder done [23:13:14]ProducePacketName [23:13:14]name=ofd_packets/00095295 [23:13:14]NVStorageSaveData ofd_packets/00095295 [23:13:14]File name is /storage/ofd_packets/00095295 [23:13:14]Write 301 bytes [23:13:14]NVStorageSaveData done [23:13:14]OFDSenderStorePacket done [23:13:14]KKMCreateOFDPacket done [23:13:14]NVStorageSaveData kkm_last_timestamp [23:13:14]File name is /storage/kkm_last_timestamp [23:13:14]Write 4 bytes [23:13:14]NVStorageSaveData done [23:13:14]ExternCall_PrintAddStr [23:13:14]wPrintStart [23:13:14]Write to MH i2c: 01 00 00 4F 58 A7 [23:13:14]Write i2c OK [23:13:14]MH_I2C_Read... [23:13:14]Read from MH i2c: 01 [23:13:14]MH_I2C_Read... [23:13:14]Read from MH i2c: 01 07 00 [23:13:14]MH_I2C_Read... [23:13:14]Read from MH i2c: 01 07 00 4F 58 00 80 00 00 00 FF 0F 3C [23:13:14]RasterBufferAndPrint [23:13:14]line Счет N : (1)196271 [23:13:14]line ИНН: 02508201610067 [23:13:14]line Контрольно-Кассовый Чек [23:13:14]line ПРОДАЖА [23:13:14]line ТРК (МРК, ГНК) : 12 [23:13:14]line Товар: 2710124130 [23:13:14]line Аи-92-К-5 [23:13:14]line 5.090 * 62.90 [23:13:14]line = 320.16 [23:13:14]line НДС 12% НСП 1% [23:13:14]line > о реализуемом товаре [23:13:14]line ОКРУГЛЕНИЕ: -0.16 [23:13:14]line ИТОГО: 320.00 [23:13:14]line Внесено: 320.00 [23:13:14]line СДАЧА: 0.00 [23:13:14]line НСП 1% : 2.83 [23:13:14]line НДС 12% : 34.00 [23:13:14]line Наличными: 320.00 [23:13:14]line Безнал.: 0.00 [23:13:14]line Место: АЗС № 6 "Партнер Нефть" [23:13:14]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:13:14]line СНО: Общий режим [23:13:14]line Чек 225 12.03.2024 23:13 [23:13:14]line Смена: 327 ФФД: 1.0 [23:13:14]line ЗНМ: 0300000009 [23:13:14]line РНМ: 0000000000090555 [23:13:14]line Версия ККМ: 001 [23:13:14]line ФМ: 0000000000874811 [23:13:14]line ФД: 95295 [23:13:14]line ФПД: 225460493811564 [23:13:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T231320&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95295&fm=225460493811564&tin=02508201610067®Number=0000000000090555&sum=32000 [23:13:14]OFD Sender: Processing packet 95295 [packets to send 30, broken 29] [23:13:14]ProducePacketName [23:13:14]name=ofd_packets/00095295 [23:13:14]OFD Sender: To server: pG, [23:13:14]CommunicateWithHost lk.salyk.kg:30040 [23:13:14]ConnectInit lk.salyk.kg [23:13:14]written 0, free lines is 4095 [23:13:15]Write to MH i2c: 01 00 00 7A 58 D2 [23:13:15]Write i2c OK [23:13:15]MH_I2C_Read... [23:13:15]Read from MH i2c: 01 [23:13:15]MH_I2C_Read... [23:13:15]Read from MH i2c: 01 07 00 [23:13:15]MH_I2C_Read... [23:13:15]Read from MH i2c: 01 07 00 7A 58 00 80 00 00 00 52 0D B8 [23:13:15]RasterBufferAndPrint [23:13:15]line [23:13:15]line [23:13:15]line [23:13:15]line [23:13:15]line [23:13:15]written 0, free lines is 3416 [23:13:15]process_action close_receipt done [23:13:15]requested_data is exist [23:13:15]produce_requested_data [23:13:15]requested_item fm.sn is exist - process it [23:13:15]wFMCommunicate request_size=4 [23:13:15]MH_SAM_APDU [23:13:15]CAPDU: 80 11 00 00 [23:13:15]Write to MH i2c: E2 08 00 81 58 80 11 00 00 00 00 00 00 53 [23:13:15]Write i2c OK [23:13:15]MH_I2C_Read... [23:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:15]Read from MH i2c: E2 [23:13:15]MH_I2C_Read... [23:13:15]Read from MH i2c: E2 17 00 [23:13:15]MH_I2C_Read... [23:13:15]Read from MH i2c: E2 17 00 81 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A3 [23:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:13:15]wFMCommunicate OK [23:13:15]requested_item fd.num is exist - process it [23:13:15]SAM_PROTO_GetFieldsCounters [23:13:15]wFMCommunicate request_size=4 [23:13:15]MH_SAM_APDU [23:13:15]CAPDU: 80 13 00 00 [23:13:15]Write to MH i2c: E2 08 00 82 58 80 13 00 00 00 00 00 00 56 [23:13:15]Write i2c OK [23:13:15]MH_I2C_Read... [23:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:13:15]Read from MH i2c: E2 [23:13:15]MH_I2C_Read... [23:13:15]Read from MH i2c: E2 62 00 [23:13:15]MH_I2C_Read... [23:13:15]Read from MH i2c: E2 62 00 82 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3F 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [23:13:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3F 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:13:15]wFMCommunicate OK [23:13:15]SAM_PROTO_GetFieldsCounters done [23:13:15]requested_item shift.num is exist - process it [23:13:15]requested_item shift.opened is exist - process it [23:13:15]req_shift_opened [23:13:15]FM_GetShiftState [23:13:15]SAM_PROTO_GetShiftState [23:13:15]wFMCommunicate request_size=4 [23:13:15]MH_SAM_APDU [23:13:15]CAPDU: 80 13 01 00 [23:13:15]Write to MH i2c: E2 08 00 83 58 80 13 01 00 00 00 00 00 58 [23:13:15]Write i2c OK [23:13:15]MH_I2C_Read... [23:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:15]Read from MH i2c: E2 [23:13:15]MH_I2C_Read... [23:13:15]Read from MH i2c: E2 0E 00 [23:13:15]MH_I2C_Read... [23:13:15]Read from MH i2c: E2 0E 00 83 58 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CC [23:13:15]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:13:15]wFMCommunicate OK [23:13:15]SAM_PROTO_GetShiftState done [23:13:15]FM_GetShiftState done [23:13:15]req_shift_opened done [23:13:15]requested_item shift.open_date is exist - process it [23:13:15]req_shift_open_date [23:13:15]req_shift_open_date done [23:13:15]produce_requested_data done [23:13:15]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95295,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [23:13:15]process_action_free close_receipt [23:13:15]json_value_free [23:13:15]json_value_free done [23:13:15]process_json_proto returns [23:13:15]Send response to host [23:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95295,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [23:13:15]free response buf [23:13:15]execute_script done [23:13:15]execute_script returns [23:13:15]free content buf [23:13:15]Sock 10.Close socket [23:13:15]Sock 10.Thread stoped [23:15:24]ConnectInit Can't connect to host [23:15:24]CommunicateWithHost connect error [23:15:24]CommunicateWithHost err = -1 [23:15:24]OFD Sender: Server communicate error [23:15:29]OFD Sender: Processing packet 95295 [packets to send 30, broken 29] [23:15:29]ProducePacketName [23:15:29]name=ofd_packets/00095295 [23:15:29]OFD Sender: To server: pG, [23:15:29]CommunicateWithHost lk.salyk.kg:30040 [23:15:29]ConnectInit lk.salyk.kg [23:15:29]Connected sock=9 [23:15:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8A C4 07 01 51 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 10 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 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 E1 00 00 00 F4 03 04 00 90 E1 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3F 74 01 00 35 04 06 00 CD 0E 1C A4 FF 6C F8 82 09 01 28 EB ED 8E [23:15:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 C3 1E 47 00 52 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3F 74 01 00 F4 03 04 00 6C 8D F0 65 B6 04 01 00 00 B4 7D FA 2D D3 27 F6 32 [23:15:29]CommunicateWithHost err = 0 [23:15:29]CheckOFDResponse [23:15:29]1017 (14) - 77093643461234 [23:15:29]1041 (16) - 0000000000874811 [23:15:29]1040 (4) - 95295 [23:15:29]1012 (4) - 12.03.2024 17:14 [23:15:29]1206 (1) - 0 [23:15:29]OFD Sender: Remove packet 95295 [23:15:29]ProducePacketName [23:15:29]name=ofd_packets/00095295 [23:15:29]NVStorageDeleteData [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:51]accept exits with 8 [23:47:51]New connection [23:47:51]New thread 3066957156 created [23:47:51]Thread 3066813796 joined [23:47:51]Waiting for new connection... [23:47:51] Sock 8.Parse request [23:47:51]Sock 8.Check first char [23:47:51]Sock 8.First char is OK [23:47:51]request: POST /json_proto HTTP/1.0 [23:47:51]Method: POST [23:47:51]URL: /json_proto [23:47:51]Method is POST - this is cgi request [23:47:51]url: /json_proto [23:47:51]query_string will be loaded in cgi processing [23:47:51]execute_cgi json_proto POST (null) [23:47:51]execute_cgi path=json_proto method=POST [23:47:51]POST find Content-Length [23:47:51]Host: 172.17.62.67:8080 [23:47:51]Content-Length: 677 [23:47:51]Content-Type: application/json [23:47:51] [23:47:51]POST finish read [23:47:51]Found Content-Length = 677 [23:47:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:51]execute_script... [23:47: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)196272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:51]POST & json_proto [23:47:51]process_json_proto [23:47:51]json parsed OK: [23:47:51]protocol is kg_v1.0 [23:47:51]action value=close_receipt [23:47:51]process_action close_receipt [23:47:51]cmd_close_receipt [23:47:51]MH_GetDate [23:47:51]Write to MH i2c: F0 00 00 84 58 CB [23:47:51]Write i2c OK [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: F0 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: F0 05 00 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: F0 05 00 84 58 00 AF E9 F0 65 BD [23:47:51]GetLastDocTimeStamp 1710285200 [23:47:51]current date 1710287279 [23:47:51]FM_GetShiftState [23:47:51]SAM_PROTO_GetShiftState [23:47:51]wFMCommunicate request_size=4 [23:47:51]MH_SAM_APDU [23:47:51]CAPDU: 80 13 01 00 [23:47:51]Write to MH i2c: E2 08 00 85 58 80 13 01 00 00 00 00 00 5A [23:47:51]Write i2c OK [23:47:51]MH_I2C_Read... [23:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:51]Read from MH i2c: E2 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: E2 0E 00 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: E2 0E 00 85 58 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CE [23:47:51]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:47:51]wFMCommunicate OK [23:47:51]SAM_PROTO_GetShiftState done [23:47:51]FM_GetShiftState done [23:47:51]opened in 1710201976 [23:47:51]opened+sec_in_day 1710288376 [23:47:51]quantity*price = 50005 [23:47:51]sum+1 = 50007 [23:47:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 226 12.03.2024 23:47 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95296 ФПД: 212345254173146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T234759&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95296&fm=212345254173146&tin=02508201610067®Number=0000000000090555&sum=50000 [23:47:52]StoreToDocumentArchive [23:47:52]shift 327 fd 95296 [23:47:52]save to /storage/0327/doc_00095296 [23:47:52]save last doc name /storage/0327/doc_00095296 to /storage/kkm_last_doc_name [23:47:52]save OK [23:47:52]Clear old archive folders... [23:47:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:47:52]tlvbuf is 01AFA190 [23:47:52]SAM_PROTO_ClearQueue [23:47:52]wFMCommunicate request_size=4 [23:47:52]MH_SAM_APDU [23:47:52]CAPDU: 80 09 00 00 [23:47:52]Write to MH i2c: E2 08 00 92 58 80 09 00 00 00 00 00 00 5C [23:47:52]Write i2c OK [23:47:52]MH_I2C_Read... [23:47:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:52]Read from MH i2c: E2 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 03 00 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 03 00 92 58 00 90 00 5E [23:47:52]RAPDU: 90 00 [23:47:52]wFMCommunicate OK [23:47:52]SAM_PROTO_ClearQueue done [23:47:52]KKMCreateOFDPacket [23:47:52]OFDProtocolAddRootSTLVToBuf [23:47:52]FM_MakeSignedData [23:47:52]FM_MakeSignedData [23:47:52]SAM_PROTO_SignData [23:47:52]wFMCommunicate request_size=4 [23:47:52]MH_SAM_APDU [23:47:52]CAPDU: 80 0D 01 02 [23:47:52]Write to MH i2c: E2 08 00 93 58 80 0D 01 02 00 00 00 00 64 [23:47:52]Write i2c OK [23:47:52]MH_I2C_Read... [23:47:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:52]Read from MH i2c: E2 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 03 00 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 03 00 93 58 00 90 00 5F [23:47:52]RAPDU: 90 00 [23:47:52]wFMCommunicate OK [23:47:52]wFMCommunicate request_size=255 [23:47:52]MH_SAM_APDU [23:47:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 AF E9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 40 74 01 00 35 04 06 00 C1 [23:47:52]Write to MH i2c: E2 02 01 94 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 AF E9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 40 74 01 00 35 04 06 00 C1 00 00 9A [23:47:52]Write i2c OK [23:47:52]MH_I2C_Read... [23:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:52]Read from MH i2c: E2 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 03 00 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 03 00 94 58 00 90 00 60 [23:47:52]RAPDU: 90 00 [23:47:52]wFMCommunicate OK [23:47:52]wFMCommunicate request_size=10 [23:47:52]MH_SAM_APDU [23:47:52]CAPDU: 80 0D 02 02 05 20 7B 71 D9 DA [23:47:52]Write to MH i2c: E2 0D 00 95 58 80 0D 02 02 05 00 20 7B 71 D9 DA 00 00 30 [23:47:52]Write i2c OK [23:47:52]MH_I2C_Read... [23:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:52]Read from MH i2c: E2 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 03 00 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 03 00 95 58 00 90 00 61 [23:47:52]RAPDU: 90 00 [23:47:52]wFMCommunicate OK [23:47:52]wFMCommunicate request_size=4 [23:47:52]MH_SAM_APDU [23:47:52]CAPDU: 80 0D 03 02 [23:47:52]Write to MH i2c: E2 08 00 96 58 80 0D 03 02 00 00 00 00 69 [23:47:52]Write i2c OK [23:47:52]MH_I2C_Read... [23:47:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:52]Read from MH i2c: E2 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 0B 00 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 0B 00 96 58 00 64 E6 BF 08 7E 41 73 B9 90 00 66 [23:47:52]RAPDU: 64 E6 BF 08 7E 41 73 B9 90 00 [23:47:52]wFMCommunicate OK [23:47:52]SAM_PROTO_SignData done [23:47:52]FM_MakeSignedData done [23:47:52]CreateOFDProtocolMessage [23:47:52]wFMCommunicate request_size=4 [23:47:52]MH_SAM_APDU [23:47:52]CAPDU: 80 11 00 00 [23:47:52]Write to MH i2c: E2 08 00 97 58 80 11 00 00 00 00 00 00 69 [23:47:52]Write i2c OK [23:47:52]MH_I2C_Read... [23:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:52]Read from MH i2c: E2 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 17 00 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 17 00 97 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B9 [23:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:47:52]wFMCommunicate OK [23:47:52]CreateOFDProtocolMessage done [23:47:52]OFDSenderStorePacket 95296 [23:47:52]StoreOFDPacket docnum=95296 [23:47:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 27 33 07 01 12 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 AF E9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 40 74 01 00 35 04 06 00 C1 20 7B 71 D9 DA 64 E6 BF 08 7E 41 73 B9 [23:47:52]CheckFolder [23:47:52]dirname=/storage/ofd_packets [23:47:52]CheckFolder done [23:47:52]ProducePacketName [23:47:52]name=ofd_packets/00095296 [23:47:52]NVStorageSaveData ofd_packets/00095296 [23:47:52]File name is /storage/ofd_packets/00095296 [23:47:52]Write 301 bytes [23:47:52]NVStorageSaveData done [23:47:52]OFDSenderStorePacket done [23:47:52]KKMCreateOFDPacket done [23:47:52]NVStorageSaveData kkm_last_timestamp [23:47:52]File name is /storage/kkm_last_timestamp [23:47:52]Write 4 bytes [23:47:52]NVStorageSaveData done [23:47:52]ExternCall_PrintAddStr [23:47:52]wPrintStart [23:47:52]Write to MH i2c: 01 00 00 98 58 F0 [23:47:52]Write i2c OK [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: 01 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: 01 07 00 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: 01 07 00 98 58 00 80 00 00 00 FF 0F 85 [23:47:52]RasterBufferAndPrint [23:47:52]line Счет N : (1)196272 [23:47:52]line ИНН: 02508201610067 [23:47:52]line Контрольно-Кассовый Чек [23:47:52]line ПРОДАЖА [23:47:52]line ТРК (МРК, ГНК) : 12 [23:47:52]line Товар: 2710124130 [23:47:52]line Аи-92-К-5 [23:47:52]line 7.950 * 62.90 [23:47:52]line = 500.06 [23:47:52]line НДС 12% НСП 1% [23:47:52]line > о реализуемом товаре [23:47:52]line ОКРУГЛЕНИЕ: -0.06 [23:47:52]line ИТОГО: 500.00 [23:47:52]line Внесено: 500.00 [23:47:52]line СДАЧА: 0.00 [23:47:52]line НСП 1% : 4.42 [23:47:52]line НДС 12% : 53.10 [23:47:52]line Наличными: 500.00 [23:47:52]line Безнал.: 0.00 [23:47:52]line Место: АЗС № 6 "Партнер Нефть" [23:47:52]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:47:52]line СНО: Общий режим [23:47:52]line Чек 226 12.03.2024 23:47 [23:47:52]line Смена: 327 ФФД: 1.0 [23:47:52]line ЗНМ: 0300000009 [23:47:52]line РНМ: 0000000000090555 [23:47:52]line Версия ККМ: 001 [23:47:52]line ФМ: 0000000000874811 [23:47:52]line ФД: 95296 [23:47:52]line ФПД: 212345254173146 [23:47:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T234759&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95296&fm=212345254173146&tin=02508201610067®Number=0000000000090555&sum=50000 [23:47:53]OFD Sender: Processing packet 95296 [packets to send 30, broken 29] [23:47:53]ProducePacketName [23:47:53]name=ofd_packets/00095296 [23:47:53]OFD Sender: To server: pG, [23:47:53]CommunicateWithHost lk.salyk.kg:30040 [23:47:53]ConnectInit lk.salyk.kg [23:47:53]written 0, free lines is 4095 [23:47:53]Connected sock=10 [23:47:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 27 33 07 01 12 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 AF E9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 40 74 01 00 35 04 06 00 C1 20 7B 71 D9 DA 64 E6 BF 08 7E 41 73 B9 [23:47:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 71 3C 47 00 4B E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 40 74 01 00 F4 03 04 00 03 95 F0 65 B6 04 01 00 00 47 90 24 9B 90 FD DE 29 [23:47:53]CommunicateWithHost err = 0 [23:47:53]CheckOFDResponse [23:47:53]1017 (14) - 77093643461234 [23:47:53]1041 (16) - 0000000000874811 [23:47:53]1040 (4) - 95296 [23:47:53]1012 (4) - 12.03.2024 17:46 [23:47:53]1206 (1) - 0 [23:47:53]OFD Sender: Remove packet 95296 [23:47:53]ProducePacketName [23:47:53]name=ofd_packets/00095296 [23:47:53]NVStorageDeleteData [23:47:53]Write to MH i2c: 01 00 00 C3 58 1B [23:47:53]Write i2c OK [23:47:53]MH_I2C_Read... [23:47:53]Read from MH i2c: 01 [23:47:53]MH_I2C_Read... [23:47:53]Read from MH i2c: 01 07 00 [23:47:53]MH_I2C_Read... [23:47:53]Read from MH i2c: 01 07 00 C3 58 00 80 00 00 00 51 0D 00 [23:47:53]RasterBufferAndPrint [23:47:53]line [23:47:53]line [23:47:53]line [23:47:53]line [23:47:53]line [23:47:53]written 0, free lines is 3417 [23:47:53]process_action close_receipt done [23:47:53]requested_data is exist [23:47:53]produce_requested_data [23:47:53]requested_item fm.sn is exist - process it [23:47:53]wFMCommunicate request_size=4 [23:47:53]MH_SAM_APDU [23:47:53]CAPDU: 80 11 00 00 [23:47:53]Write to MH i2c: E2 08 00 CA 58 80 11 00 00 00 00 00 00 9C [23:47:53]Write i2c OK [23:47:53]MH_I2C_Read... [23:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:53]Read from MH i2c: E2 [23:47:53]MH_I2C_Read... [23:47:53]Read from MH i2c: E2 17 00 [23:47:53]MH_I2C_Read... [23:47:53]Read from MH i2c: E2 17 00 CA 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EC [23:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:47:53]wFMCommunicate OK [23:47:53]requested_item fd.num is exist - process it [23:47:53]SAM_PROTO_GetFieldsCounters [23:47:53]wFMCommunicate request_size=4 [23:47:53]MH_SAM_APDU [23:47:53]CAPDU: 80 13 00 00 [23:47:53]Write to MH i2c: E2 08 00 CB 58 80 13 00 00 00 00 00 00 9F [23:47:53]Write i2c OK [23:47:53]MH_I2C_Read... [23:47:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:54]Read from MH i2c: E2 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 62 00 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 62 00 CB 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 40 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [23:47:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 40 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:54]wFMCommunicate OK [23:47:54]SAM_PROTO_GetFieldsCounters done [23:47:54]requested_item shift.num is exist - process it [23:47:54]requested_item shift.opened is exist - process it [23:47:54]req_shift_opened [23:47:54]FM_GetShiftState [23:47:54]SAM_PROTO_GetShiftState [23:47:54]wFMCommunicate request_size=4 [23:47:54]MH_SAM_APDU [23:47:54]CAPDU: 80 13 01 00 [23:47:54]Write to MH i2c: E2 08 00 CC 58 80 13 01 00 00 00 00 00 A1 [23:47:54]Write i2c OK [23:47:54]MH_I2C_Read... [23:47:54]OFD Sender: No OFD packet to send [23:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:54]Read from MH i2c: E2 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 0E 00 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 0E 00 CC 58 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 15 [23:47:54]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:47:54]wFMCommunicate OK [23:47:54]SAM_PROTO_GetShiftState done [23:47:54]FM_GetShiftState done [23:47:54]req_shift_opened done [23:47:54]requested_item shift.open_date is exist - process it [23:47:54]req_shift_open_date [23:47:54]req_shift_open_date done [23:47:54]produce_requested_data done [23:47:54]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95296,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [23:47:54]process_action_free close_receipt [23:47:54]json_value_free [23:47:54]json_value_free done [23:47:54]process_json_proto returns [23:47:54]Send response to host [23:47:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95296,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [23:47:54]free response buf [23:47:54]execute_script done [23:47:54]execute_script returns [23:47:54]free content buf [23:47:54]Sock 8.Close socket [23:47:54]Sock 8.Thread stoped [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:08]accept exits with 9 [23:48:08]New connection [23:48:08]New thread 3066813796 created [23:48:08]Thread 3066957156 joined [23:48:08]Waiting for new connection... [23:48:08] Sock 9.Parse request [23:48:08]Sock 9.Check first char [23:48:08]Sock 9.First char is OK [23:48:08]request: POST /json_proto HTTP/1.0 [23:48:08]Method: POST [23:48:08]URL: /json_proto [23:48:08]Method is POST - this is cgi request [23:48:08]url: /json_proto [23:48:08]query_string will be loaded in cgi processing [23:48:08]execute_cgi json_proto POST (null) [23:48:08]execute_cgi path=json_proto method=POST [23:48:08]POST find Content-Length [23:48:08]Host: 172.17.62.67:8080 [23:48:08]Content-Length: 678 [23:48:08]Content-Type: application/json [23:48:08] [23:48:08]POST finish read [23:48:08]Found Content-Length = 678 [23:48:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.080, "sum" : 700.56, "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" ] } } [23:48:08]execute_script... [23:48: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)196273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.080, "sum" : 700.56, "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" ] } } [23:48:08]POST & json_proto [23:48:08]process_json_proto [23:48:08]json parsed OK: [23:48:08]protocol is kg_v1.0 [23:48:08]action value=close_receipt [23:48:08]process_action close_receipt [23:48:08]cmd_close_receipt [23:48:08]MH_GetDate [23:48:08]Write to MH i2c: F0 00 00 CD 58 14 [23:48:08]Write i2c OK [23:48:08]MH_I2C_Read... [23:48:08]Read from MH i2c: F0 [23:48:08]MH_I2C_Read... [23:48:08]Read from MH i2c: F0 05 00 [23:48:08]MH_I2C_Read... [23:48:08]Read from MH i2c: F0 05 00 CD 58 00 BF E9 F0 65 16 [23:48:08]GetLastDocTimeStamp 1710287279 [23:48:08]current date 1710287295 [23:48:08]FM_GetShiftState [23:48:08]SAM_PROTO_GetShiftState [23:48:08]wFMCommunicate request_size=4 [23:48:08]MH_SAM_APDU [23:48:08]CAPDU: 80 13 01 00 [23:48:08]Write to MH i2c: E2 08 00 CE 58 80 13 01 00 00 00 00 00 A3 [23:48:08]Write i2c OK [23:48:08]MH_I2C_Read... [23:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:08]Read from MH i2c: E2 [23:48:08]MH_I2C_Read... [23:48:08]Read from MH i2c: E2 0E 00 [23:48:08]MH_I2C_Read... [23:48:08]Read from MH i2c: E2 0E 00 CE 58 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 17 [23:48:08]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:48:08]wFMCommunicate OK [23:48:08]SAM_PROTO_GetShiftState done [23:48:08]FM_GetShiftState done [23:48:08]opened in 1710201976 [23:48:08]opened+sec_in_day 1710288376 [23:48:08]quantity*price = 70056 [23:48:08]sum+1 = 70057 [23:48:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 227 12.03.2024 23:48 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95297 ФПД: 46880095029955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T234815&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95297&fm=46880095029955&tin=02508201610067®Number=0000000000090555&sum=70000 [23:48:09]StoreToDocumentArchive [23:48:09]shift 327 fd 95297 [23:48:09]save to /storage/0327/doc_00095297 [23:48:09]save last doc name /storage/0327/doc_00095297 to /storage/kkm_last_doc_name [23:48:09]save OK [23:48:09]Clear old archive folders... [23:48:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:48:09]tlvbuf is 01B89EC0 [23:48:09]SAM_PROTO_ClearQueue [23:48:09]wFMCommunicate request_size=4 [23:48:09]MH_SAM_APDU [23:48:09]CAPDU: 80 09 00 00 [23:48:09]Write to MH i2c: E2 08 00 DB 58 80 09 00 00 00 00 00 00 A5 [23:48:09]Write i2c OK [23:48:09]MH_I2C_Read... [23:48:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:09]Read from MH i2c: E2 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 03 00 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 03 00 DB 58 00 90 00 A7 [23:48:09]RAPDU: 90 00 [23:48:09]wFMCommunicate OK [23:48:09]SAM_PROTO_ClearQueue done [23:48:09]KKMCreateOFDPacket [23:48:09]OFDProtocolAddRootSTLVToBuf [23:48:09]FM_MakeSignedData [23:48:09]FM_MakeSignedData [23:48:09]SAM_PROTO_SignData [23:48:09]wFMCommunicate request_size=4 [23:48:09]MH_SAM_APDU [23:48:09]CAPDU: 80 0D 01 02 [23:48:09]Write to MH i2c: E2 08 00 DC 58 80 0D 01 02 00 00 00 00 AD [23:48:09]Write i2c OK [23:48:09]MH_I2C_Read... [23:48:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:09]Read from MH i2c: E2 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 03 00 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 03 00 DC 58 00 90 00 A8 [23:48:09]RAPDU: 90 00 [23:48:09]wFMCommunicate OK [23:48:09]wFMCommunicate request_size=255 [23:48:09]MH_SAM_APDU [23:48:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 E3 00 00 00 F4 03 04 00 BF E9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 41 74 01 00 35 04 06 00 2A [23:48:09]Write to MH i2c: E2 02 01 DD 58 80 0D 02 02 FA 00 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 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 E3 00 00 00 F4 03 04 00 BF E9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 41 74 01 00 35 04 06 00 2A 00 00 E0 [23:48:09]Write i2c OK [23:48:09]MH_I2C_Read... [23:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:09]Read from MH i2c: E2 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 03 00 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 03 00 DD 58 00 90 00 A9 [23:48:09]RAPDU: 90 00 [23:48:09]wFMCommunicate OK [23:48:09]wFMCommunicate request_size=10 [23:48:09]MH_SAM_APDU [23:48:09]CAPDU: 80 0D 02 02 05 A3 1F 69 4A C3 [23:48:09]Write to MH i2c: E2 0D 00 DE 58 80 0D 02 02 05 00 A3 1F 69 4A C3 00 00 F2 [23:48:09]Write i2c OK [23:48:09]MH_I2C_Read... [23:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:09]Read from MH i2c: E2 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 03 00 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 03 00 DE 58 00 90 00 AA [23:48:09]RAPDU: 90 00 [23:48:09]wFMCommunicate OK [23:48:09]wFMCommunicate request_size=4 [23:48:09]MH_SAM_APDU [23:48:09]CAPDU: 80 0D 03 02 [23:48:09]Write to MH i2c: E2 08 00 DF 58 80 0D 03 02 00 00 00 00 B2 [23:48:09]Write i2c OK [23:48:09]MH_I2C_Read... [23:48:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:09]Read from MH i2c: E2 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 0B 00 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 0B 00 DF 58 00 EA DC 7A AD F5 71 FF C6 90 00 CB [23:48:09]RAPDU: EA DC 7A AD F5 71 FF C6 90 00 [23:48:09]wFMCommunicate OK [23:48:09]SAM_PROTO_SignData done [23:48:09]FM_MakeSignedData done [23:48:09]CreateOFDProtocolMessage [23:48:09]wFMCommunicate request_size=4 [23:48:09]MH_SAM_APDU [23:48:09]CAPDU: 80 11 00 00 [23:48:09]Write to MH i2c: E2 08 00 E0 58 80 11 00 00 00 00 00 00 B2 [23:48:09]Write i2c OK [23:48:09]MH_I2C_Read... [23:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:09]Read from MH i2c: E2 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 17 00 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 17 00 E0 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 02 [23:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:48:09]wFMCommunicate OK [23:48:09]CreateOFDProtocolMessage done [23:48:09]OFDSenderStorePacket 95297 [23:48:09]StoreOFDPacket docnum=95297 [23:48:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1C 83 07 01 4C 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 E3 00 00 00 F4 03 04 00 BF E9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 41 74 01 00 35 04 06 00 2A A3 1F 69 4A C3 EA DC 7A AD F5 71 FF C6 [23:48:09]CheckFolder [23:48:09]dirname=/storage/ofd_packets [23:48:09]CheckFolder done [23:48:09]ProducePacketName [23:48:09]name=ofd_packets/00095297 [23:48:09]NVStorageSaveData ofd_packets/00095297 [23:48:09]File name is /storage/ofd_packets/00095297 [23:48:09]Write 301 bytes [23:48:09]NVStorageSaveData done [23:48:09]OFDSenderStorePacket done [23:48:09]KKMCreateOFDPacket done [23:48:09]NVStorageSaveData kkm_last_timestamp [23:48:09]File name is /storage/kkm_last_timestamp [23:48:09]Write 4 bytes [23:48:09]NVStorageSaveData done [23:48:09]ExternCall_PrintAddStr [23:48:09]wPrintStart [23:48:09]Write to MH i2c: 01 00 00 E1 58 39 [23:48:09]Write i2c OK [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: 01 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: 01 07 00 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: 01 07 00 E1 58 00 80 00 00 00 FF 0F CE [23:48:09]RasterBufferAndPrint [23:48:09]line Счет N : (1)196273 [23:48:09]line ИНН: 02508201610067 [23:48:09]line Контрольно-Кассовый Чек [23:48:09]line ПРОДАЖА [23:48:09]line ТРК (МРК, ГНК) : 21 [23:48:09]line Товар: 2710124500 [23:48:09]line Аи-95-К-5 [23:48:09]line 10.080 * 69.50 [23:48:09]line = 700.56 [23:48:09]line НДС 12% НСП 1% [23:48:09]line > о реализуемом товаре [23:48:09]line ОКРУГЛЕНИЕ: -0.56 [23:48:09]line ИТОГО: 700.00 [23:48:09]line Внесено: 700.00 [23:48:09]line СДАЧА: 0.00 [23:48:09]line НСП 1% : 6.20 [23:48:09]line НДС 12% : 74.40 [23:48:09]line Наличными: 700.00 [23:48:09]line Безнал.: 0.00 [23:48:09]line Место: АЗС № 6 "Партнер Нефть" [23:48:09]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:48:09]line СНО: Общий режим [23:48:09]line Чек 227 12.03.2024 23:48 [23:48:09]line Смена: 327 ФФД: 1.0 [23:48:09]line ЗНМ: 0300000009 [23:48:09]line РНМ: 0000000000090555 [23:48:09]line Версия ККМ: 001 [23:48:09]line ФМ: 0000000000874811 [23:48:09]line ФД: 95297 [23:48:09]line ФПД: 46880095029955 [23:48:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T234815&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95297&fm=46880095029955&tin=02508201610067®Number=0000000000090555&sum=70000 [23:48:10]OFD Sender: Processing packet 95297 [packets to send 30, broken 29] [23:48:10]ProducePacketName [23:48:10]name=ofd_packets/00095297 [23:48:10]OFD Sender: To server: pG, [23:48:10]CommunicateWithHost lk.salyk.kg:30040 [23:48:10]ConnectInit lk.salyk.kg [23:48:10]written 0, free lines is 4095 [23:48:10]Connected sock=10 [23:48:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1C 83 07 01 4C 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 E3 00 00 00 F4 03 04 00 BF E9 F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 41 74 01 00 35 04 06 00 2A A3 1F 69 4A C3 EA DC 7A AD F5 71 FF C6 [23:48:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D5 97 47 00 AF 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 41 74 01 00 F4 03 04 00 14 95 F0 65 B6 04 01 00 00 A8 B9 A1 17 53 9A D4 07 [23:48:10]CommunicateWithHost err = 0 [23:48:10]CheckOFDResponse [23:48:10]1017 (14) - 77093643461234 [23:48:10]1041 (16) - 0000000000874811 [23:48:10]1040 (4) - 95297 [23:48:10]1012 (4) - 12.03.2024 17:47 [23:48:10]1206 (1) - 0 [23:48:10]OFD Sender: Remove packet 95297 [23:48:10]ProducePacketName [23:48:10]name=ofd_packets/00095297 [23:48:10]NVStorageDeleteData [23:48:10]Write to MH i2c: 01 00 00 0C 59 65 [23:48:10]Write i2c OK [23:48:10]MH_I2C_Read... [23:48:10]Read from MH i2c: 01 [23:48:10]MH_I2C_Read... [23:48:10]Read from MH i2c: 01 07 00 [23:48:10]MH_I2C_Read... [23:48:10]Read from MH i2c: 01 07 00 0C 59 00 80 00 00 00 57 0D 50 [23:48:10]RasterBufferAndPrint [23:48:10]line [23:48:10]line [23:48:10]line [23:48:10]line [23:48:10]line [23:48:10]written 0, free lines is 3423 [23:48:10]process_action close_receipt done [23:48:10]requested_data is exist [23:48:10]produce_requested_data [23:48:10]requested_item fm.sn is exist - process it [23:48:10]wFMCommunicate request_size=4 [23:48:10]MH_SAM_APDU [23:48:10]CAPDU: 80 11 00 00 [23:48:10]Write to MH i2c: E2 08 00 13 59 80 11 00 00 00 00 00 00 E6 [23:48:10]Write i2c OK [23:48:10]MH_I2C_Read... [23:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:10]Read from MH i2c: E2 [23:48:10]MH_I2C_Read... [23:48:10]Read from MH i2c: E2 17 00 [23:48:10]MH_I2C_Read... [23:48:10]Read from MH i2c: E2 17 00 13 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 36 [23:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:48:10]wFMCommunicate OK [23:48:10]requested_item fd.num is exist - process it [23:48:10]SAM_PROTO_GetFieldsCounters [23:48:10]wFMCommunicate request_size=4 [23:48:10]MH_SAM_APDU [23:48:10]CAPDU: 80 13 00 00 [23:48:10]Write to MH i2c: E2 08 00 14 59 80 13 00 00 00 00 00 00 E9 [23:48:10]Write i2c OK [23:48:10]MH_I2C_Read... [23:48:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:10]Read from MH i2c: E2 [23:48:10]MH_I2C_Read... [23:48:10]Read from MH i2c: E2 62 00 [23:48:10]MH_I2C_Read... [23:48:10]Read from MH i2c: E2 62 00 14 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 41 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [23:48:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 41 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:10]wFMCommunicate OK [23:48:10]SAM_PROTO_GetFieldsCounters done [23:48:10]requested_item shift.num is exist - process it [23:48:10]requested_item shift.opened is exist - process it [23:48:10]req_shift_opened [23:48:10]FM_GetShiftState [23:48:10]SAM_PROTO_GetShiftState [23:48:10]wFMCommunicate request_size=4 [23:48:10]MH_SAM_APDU [23:48:10]CAPDU: 80 13 01 00 [23:48:10]Write to MH i2c: E2 08 00 15 59 80 13 01 00 00 00 00 00 EB [23:48:10]Write i2c OK [23:48:10]MH_I2C_Read... [23:48:10]OFD Sender: No OFD packet to send [23:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:10]Read from MH i2c: E2 [23:48:10]MH_I2C_Read... [23:48:10]Read from MH i2c: E2 0E 00 [23:48:10]MH_I2C_Read... [23:48:10]Read from MH i2c: E2 0E 00 15 59 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 5F [23:48:10]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:48:10]wFMCommunicate OK [23:48:10]SAM_PROTO_GetShiftState done [23:48:10]FM_GetShiftState done [23:48:10]req_shift_opened done [23:48:10]requested_item shift.open_date is exist - process it [23:48:10]req_shift_open_date [23:48:10]req_shift_open_date done [23:48:10]produce_requested_data done [23:48:10]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95297,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [23:48:10]process_action_free close_receipt [23:48:10]json_value_free [23:48:10]json_value_free done [23:48:10]process_json_proto returns [23:48:10]Send response to host [23:48:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95297,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [23:48:10]free response buf [23:48:10]execute_script done [23:48:10]execute_script returns [23:48:10]free content buf [23:48:10]Sock 9.Close socket [23:48:10]Sock 9.Thread stoped [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]OFD Sender: No OFD packet to send [23:48:50]OFD Sender: No OFD packet to send [23:48:55]OFD Sender: No OFD packet to send [23:49:00]OFD Sender: No OFD packet to send [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:49:58]accept exits with 8 [23:49:58]New connection [23:49:58]New thread 3066957156 created [23:49:58]Thread 3066813796 joined [23:49:58]Waiting for new connection... [23:49:58] Sock 8.Parse request [23:49:58]Sock 8.Check first char [23:49:58]Sock 8.First char is OK [23:49:58]request: POST /json_proto HTTP/1.0 [23:49:58]Method: POST [23:49:58]URL: /json_proto [23:49:58]Method is POST - this is cgi request [23:49:58]url: /json_proto [23:49:58]query_string will be loaded in cgi processing [23:49:58]execute_cgi json_proto POST (null) [23:49:58]execute_cgi path=json_proto method=POST [23:49:58]POST find Content-Length [23:49:58]Host: 172.17.62.67:8080 [23:49:58]Content-Length: 677 [23:49:58]Content-Type: application/json [23:49:58] [23:49:58]POST finish read [23:49:58]Found Content-Length = 677 [23:49:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:58]execute_script... [23:49:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:58]POST & json_proto [23:49:58]process_json_proto [23:49:58]json parsed OK: [23:49:58]protocol is kg_v1.0 [23:49:58]action value=close_receipt [23:49:58]process_action close_receipt [23:49:58]cmd_close_receipt [23:49:58]MH_GetDate [23:49:58]Write to MH i2c: F0 00 00 16 59 5E [23:49:58]Write i2c OK [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: F0 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: F0 05 00 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: F0 05 00 16 59 00 2E EA F0 65 D0 [23:49:58]GetLastDocTimeStamp 1710287295 [23:49:58]current date 1710287406 [23:49:58]FM_GetShiftState [23:49:58]SAM_PROTO_GetShiftState [23:49:58]wFMCommunicate request_size=4 [23:49:58]MH_SAM_APDU [23:49:58]CAPDU: 80 13 01 00 [23:49:58]Write to MH i2c: E2 08 00 17 59 80 13 01 00 00 00 00 00 ED [23:49:58]Write i2c OK [23:49:58]MH_I2C_Read... [23:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:58]Read from MH i2c: E2 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: E2 0E 00 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: E2 0E 00 17 59 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 61 [23:49:58]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:49:58]wFMCommunicate OK [23:49:58]SAM_PROTO_GetShiftState done [23:49:58]FM_GetShiftState done [23:49:58]opened in 1710201976 [23:49:58]opened+sec_in_day 1710288376 [23:49:58]quantity*price = 60006 [23:49:58]sum+1 = 60008 [23:49:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 228 12.03.2024 23:50 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95298 ФПД: 4792883140655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T235006&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95298&fm=4792883140655&tin=02508201610067®Number=0000000000090555&sum=60000 [23:49:59]StoreToDocumentArchive [23:49:59]shift 327 fd 95298 [23:49:59]save to /storage/0327/doc_00095298 [23:49:59]save last doc name /storage/0327/doc_00095298 to /storage/kkm_last_doc_name [23:49:59]save OK [23:49:59]Clear old archive folders... [23:49:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:49:59]tlvbuf is 01A71660 [23:49:59]SAM_PROTO_ClearQueue [23:49:59]wFMCommunicate request_size=4 [23:49:59]MH_SAM_APDU [23:49:59]CAPDU: 80 09 00 00 [23:49:59]Write to MH i2c: E2 08 00 24 59 80 09 00 00 00 00 00 00 EF [23:49:59]Write i2c OK [23:49:59]MH_I2C_Read... [23:49:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:59]Read from MH i2c: E2 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 03 00 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 03 00 24 59 00 90 00 F1 [23:49:59]RAPDU: 90 00 [23:49:59]wFMCommunicate OK [23:49:59]SAM_PROTO_ClearQueue done [23:49:59]KKMCreateOFDPacket [23:49:59]OFDProtocolAddRootSTLVToBuf [23:49:59]FM_MakeSignedData [23:49:59]FM_MakeSignedData [23:49:59]SAM_PROTO_SignData [23:49:59]wFMCommunicate request_size=4 [23:49:59]MH_SAM_APDU [23:49:59]CAPDU: 80 0D 01 02 [23:49:59]Write to MH i2c: E2 08 00 25 59 80 0D 01 02 00 00 00 00 F7 [23:49:59]Write i2c OK [23:49:59]MH_I2C_Read... [23:49:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:59]Read from MH i2c: E2 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 03 00 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 03 00 25 59 00 90 00 F2 [23:49:59]RAPDU: 90 00 [23:49:59]wFMCommunicate OK [23:49:59]wFMCommunicate request_size=255 [23:49:59]MH_SAM_APDU [23:49:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 2E EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 42 74 01 00 35 04 06 00 04 [23:49:59]Write to MH i2c: E2 02 01 26 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 2E EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 42 74 01 00 35 04 06 00 04 00 00 5A [23:49:59]Write i2c OK [23:49:59]MH_I2C_Read... [23:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:59]Read from MH i2c: E2 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 03 00 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 03 00 26 59 00 90 00 F3 [23:49:59]RAPDU: 90 00 [23:49:59]wFMCommunicate OK [23:49:59]wFMCommunicate request_size=10 [23:49:59]MH_SAM_APDU [23:49:59]CAPDU: 80 0D 02 02 05 5B EE 18 D8 2F [23:49:59]Write to MH i2c: E2 0D 00 27 59 80 0D 02 02 05 00 5B EE 18 D8 2F 00 00 6C [23:49:59]Write i2c OK [23:49:59]MH_I2C_Read... [23:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:59]Read from MH i2c: E2 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 03 00 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 03 00 27 59 00 90 00 F4 [23:49:59]RAPDU: 90 00 [23:49:59]wFMCommunicate OK [23:49:59]wFMCommunicate request_size=4 [23:49:59]MH_SAM_APDU [23:49:59]CAPDU: 80 0D 03 02 [23:49:59]Write to MH i2c: E2 08 00 28 59 80 0D 03 02 00 00 00 00 FC [23:49:59]Write i2c OK [23:49:59]MH_I2C_Read... [23:49:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:59]Read from MH i2c: E2 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 0B 00 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 0B 00 28 59 00 C0 18 B3 CE 8D 4C 54 95 90 00 18 [23:49:59]RAPDU: C0 18 B3 CE 8D 4C 54 95 90 00 [23:49:59]wFMCommunicate OK [23:49:59]SAM_PROTO_SignData done [23:49:59]FM_MakeSignedData done [23:49:59]CreateOFDProtocolMessage [23:49:59]wFMCommunicate request_size=4 [23:49:59]MH_SAM_APDU [23:49:59]CAPDU: 80 11 00 00 [23:49:59]Write to MH i2c: E2 08 00 29 59 80 11 00 00 00 00 00 00 FC [23:49:59]Write i2c OK [23:49:59]MH_I2C_Read... [23:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:59]Read from MH i2c: E2 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 17 00 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 17 00 29 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4C [23:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:49:59]wFMCommunicate OK [23:49:59]CreateOFDProtocolMessage done [23:49:59]OFDSenderStorePacket 95298 [23:49:59]StoreOFDPacket docnum=95298 [23:49:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 26 F8 07 01 F2 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 2E EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 42 74 01 00 35 04 06 00 04 5B EE 18 D8 2F C0 18 B3 CE 8D 4C 54 95 [23:49:59]CheckFolder [23:49:59]dirname=/storage/ofd_packets [23:49:59]CheckFolder done [23:49:59]ProducePacketName [23:49:59]name=ofd_packets/00095298 [23:49:59]NVStorageSaveData ofd_packets/00095298 [23:49:59]File name is /storage/ofd_packets/00095298 [23:49:59]Write 301 bytes [23:49:59]NVStorageSaveData done [23:49:59]OFDSenderStorePacket done [23:49:59]KKMCreateOFDPacket done [23:49:59]NVStorageSaveData kkm_last_timestamp [23:49:59]File name is /storage/kkm_last_timestamp [23:49:59]Write 4 bytes [23:49:59]NVStorageSaveData done [23:49:59]ExternCall_PrintAddStr [23:49:59]wPrintStart [23:49:59]Write to MH i2c: 01 00 00 2A 59 83 [23:49:59]Write i2c OK [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: 01 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: 01 07 00 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: 01 07 00 2A 59 00 80 00 00 00 FF 0F 18 [23:49:59]RasterBufferAndPrint [23:49:59]line Счет N : (1)196274 [23:49:59]line ИНН: 02508201610067 [23:49:59]line Контрольно-Кассовый Чек [23:49:59]line ПРОДАЖА [23:49:59]line ТРК (МРК, ГНК) : 12 [23:49:59]line Товар: 2710124130 [23:49:59]line Аи-92-К-5 [23:49:59]line 9.540 * 62.90 [23:49:59]line = 600.07 [23:49:59]line НДС 12% НСП 1% [23:49:59]line > о реализуемом товаре [23:49:59]line ОКРУГЛЕНИЕ: -0.07 [23:49:59]line ИТОГО: 600.00 [23:49:59]line Внесено: 600.00 [23:49:59]line СДАЧА: 0.00 [23:49:59]line НСП 1% : 5.31 [23:49:59]line НДС 12% : 63.72 [23:49:59]line Наличными: 600.00 [23:49:59]line Безнал.: 0.00 [23:49:59]line Место: АЗС № 6 "Партнер Нефть" [23:49:59]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:49:59]line СНО: Общий режим [23:49:59]line Чек 228 12.03.2024 23:50 [23:49:59]line Смена: 327 ФФД: 1.0 [23:49:59]line ЗНМ: 0300000009 [23:49:59]line РНМ: 0000000000090555 [23:49:59]line Версия ККМ: 001 [23:49:59]line ФМ: 0000000000874811 [23:49:59]line ФД: 95298 [23:49:59]line ФПД: 4792883140655 [23:49:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T235006&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95298&fm=4792883140655&tin=02508201610067®Number=0000000000090555&sum=60000 [23:50:00]written 0, free lines is 4095 [23:50:00]OFD Sender: Processing packet 95298 [packets to send 30, broken 29] [23:50:00]ProducePacketName [23:50:00]name=ofd_packets/00095298 [23:50:00]OFD Sender: To server: pG, [23:50:00]CommunicateWithHost lk.salyk.kg:30040 [23:50:00]ConnectInit lk.salyk.kg [23:50:00]Connected sock=10 [23:50:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 26 F8 07 01 F2 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 2E EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 42 74 01 00 35 04 06 00 04 5B EE 18 D8 2F C0 18 B3 CE 8D 4C 54 95 [23:50:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 51 20 47 00 FE 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 42 74 01 00 F4 03 04 00 82 95 F0 65 B6 04 01 00 00 31 CE BD 69 03 AB 92 D6 [23:50:00]CommunicateWithHost err = 0 [23:50:00]CheckOFDResponse [23:50:00]1017 (14) - 77093643461234 [23:50:00]1041 (16) - 0000000000874811 [23:50:00]1040 (4) - 95298 [23:50:00]1012 (4) - 12.03.2024 17:48 [23:50:00]1206 (1) - 0 [23:50:00]OFD Sender: Remove packet 95298 [23:50:00]ProducePacketName [23:50:00]name=ofd_packets/00095298 [23:50:00]NVStorageDeleteData [23:50:00]Write to MH i2c: 01 00 00 55 59 AE [23:50:00]Write i2c OK [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: 01 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: 01 07 00 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: 01 07 00 55 59 00 80 00 00 00 55 0D 97 [23:50:00]RasterBufferAndPrint [23:50:00]line [23:50:00]line [23:50:00]line [23:50:00]line [23:50:00]line [23:50:00]written 0, free lines is 3420 [23:50:00]process_action close_receipt done [23:50:00]requested_data is exist [23:50:00]produce_requested_data [23:50:00]requested_item fm.sn is exist - process it [23:50:00]wFMCommunicate request_size=4 [23:50:00]MH_SAM_APDU [23:50:00]CAPDU: 80 11 00 00 [23:50:00]Write to MH i2c: E2 08 00 5C 59 80 11 00 00 00 00 00 00 2F [23:50:00]Write i2c OK [23:50:00]MH_I2C_Read... [23:50:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:00]Read from MH i2c: E2 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: E2 17 00 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: E2 17 00 5C 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7F [23:50:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:50:00]wFMCommunicate OK [23:50:00]requested_item fd.num is exist - process it [23:50:00]SAM_PROTO_GetFieldsCounters [23:50:00]wFMCommunicate request_size=4 [23:50:00]MH_SAM_APDU [23:50:00]CAPDU: 80 13 00 00 [23:50:00]Write to MH i2c: E2 08 00 5D 59 80 13 00 00 00 00 00 00 32 [23:50:00]Write i2c OK [23:50:00]MH_I2C_Read... [23:50:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:01]Read from MH i2c: E2 [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: E2 62 00 [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: E2 62 00 5D 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 42 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [23:50:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 42 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:01]wFMCommunicate OK [23:50:01]SAM_PROTO_GetFieldsCounters done [23:50:01]requested_item shift.num is exist - process it [23:50:01]requested_item shift.opened is exist - process it [23:50:01]req_shift_opened [23:50:01]FM_GetShiftState [23:50:01]SAM_PROTO_GetShiftState [23:50:01]wFMCommunicate request_size=4 [23:50:01]MH_SAM_APDU [23:50:01]CAPDU: 80 13 01 00 [23:50:01]Write to MH i2c: E2 08 00 5E 59 80 13 01 00 00 00 00 00 34 [23:50:01]Write i2c OK [23:50:01]MH_I2C_Read... [23:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:01]Read from MH i2c: E2 [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: E2 0E 00 [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: E2 0E 00 5E 59 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 A8 [23:50:01]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:50:01]wFMCommunicate OK [23:50:01]SAM_PROTO_GetShiftState done [23:50:01]FM_GetShiftState done [23:50:01]req_shift_opened done [23:50:01]requested_item shift.open_date is exist - process it [23:50:01]req_shift_open_date [23:50:01]req_shift_open_date done [23:50:01]produce_requested_data done [23:50:01]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95298,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [23:50:01]process_action_free close_receipt [23:50:01]json_value_free [23:50:01]json_value_free done [23:50:01]process_json_proto returns [23:50:01]Send response to host [23:50:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95298,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [23:50:01]free response buf [23:50:01]execute_script done [23:50:01]execute_script returns [23:50:01]free content buf [23:50:01]Sock 8.Close socket [23:50:01]Sock 8.Thread stoped [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]accept exits with 9 [23:51:26]New connection [23:51:26]New thread 3066813796 created [23:51:26]Thread 3066957156 joined [23:51:26]Waiting for new connection... [23:51:26] Sock 9.Parse request [23:51:26]Sock 9.Check first char [23:51:26]Sock 9.First char is OK [23:51:26]request: POST /json_proto HTTP/1.0 [23:51:26]Method: POST [23:51:26]URL: /json_proto [23:51:26]Method is POST - this is cgi request [23:51:26]url: /json_proto [23:51:26]query_string will be loaded in cgi processing [23:51:26]execute_cgi json_proto POST (null) [23:51:26]execute_cgi path=json_proto method=POST [23:51:26]POST find Content-Length [23:51:26]Host: 172.17.62.67:8080 [23:51:26]Content-Length: 819 [23:51:26]Content-Type: application/json [23:51:26] [23:51:26]POST finish read [23:51:26]Found Content-Length = 819 [23:51:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 20.000, "sum" : 1258.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1258.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:26]execute_script... [23:51: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)196275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 20.000, "sum" : 1258.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1258.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:26]POST & json_proto [23:51:26]process_json_proto [23:51:26]json parsed OK: [23:51:26]protocol is kg_v1.0 [23:51:26]action value=close_receipt [23:51:26]process_action close_receipt [23:51:26]cmd_close_receipt [23:51:26]MH_GetDate [23:51:26]Write to MH i2c: F0 00 00 5F 59 A7 [23:51:26]Write i2c OK [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: F0 [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: F0 05 00 [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: F0 05 00 5F 59 00 85 EA F0 65 70 [23:51:26]GetLastDocTimeStamp 1710287406 [23:51:26]current date 1710287493 [23:51:26]FM_GetShiftState [23:51:26]SAM_PROTO_GetShiftState [23:51:26]wFMCommunicate request_size=4 [23:51:26]MH_SAM_APDU [23:51:26]CAPDU: 80 13 01 00 [23:51:26]Write to MH i2c: E2 08 00 60 59 80 13 01 00 00 00 00 00 36 [23:51:26]Write i2c OK [23:51:26]MH_I2C_Read... [23:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:26]Read from MH i2c: E2 [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: E2 0E 00 [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: E2 0E 00 60 59 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 AA [23:51:26]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:51:26]wFMCommunicate OK [23:51:26]SAM_PROTO_GetShiftState done [23:51:26]FM_GetShiftState done [23:51:26]opened in 1710201976 [23:51:26]opened+sec_in_day 1710288376 [23:51:26]quantity*price = 125800 [23:51:26]sum+1 = 125801 [23:51:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1258.00 НСП 1% : 11.13 НДС 12% : 133.59 Наличными: 0.00 Безнал.: 1258.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 229 12.03.2024 23:51 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95299 ФПД: 265559958827165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T235133&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95299&fm=265559958827165&tin=02508201610067®Number=0000000000090555&sum=125800 [23:51:27]StoreToDocumentArchive [23:51:27]shift 327 fd 95299 [23:51:27]save to /storage/0327/doc_00095299 [23:51:27]save last doc name /storage/0327/doc_00095299 to /storage/kkm_last_doc_name [23:51:27]save OK [23:51:27]Clear old archive folders... [23:51:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:51:27]tlvbuf is 01A46380 [23:51:27]SAM_PROTO_ClearQueue [23:51:27]wFMCommunicate request_size=4 [23:51:27]MH_SAM_APDU [23:51:27]CAPDU: 80 09 00 00 [23:51:27]Write to MH i2c: E2 08 00 6D 59 80 09 00 00 00 00 00 00 38 [23:51:27]Write i2c OK [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 [23:51:27]MH_I2C_Read... [23:51:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:51:27]Read from MH i2c: E2 03 00 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 03 00 6D 59 00 90 00 3A [23:51:27]RAPDU: 90 00 [23:51:27]wFMCommunicate OK [23:51:27]SAM_PROTO_ClearQueue done [23:51:27]KKMCreateOFDPacket [23:51:27]OFDProtocolAddRootSTLVToBuf [23:51:27]FM_MakeSignedData [23:51:27]FM_MakeSignedData [23:51:27]SAM_PROTO_SignData [23:51:27]wFMCommunicate request_size=4 [23:51:27]MH_SAM_APDU [23:51:27]CAPDU: 80 0D 01 02 [23:51:27]Write to MH i2c: E2 08 00 6E 59 80 0D 01 02 00 00 00 00 40 [23:51:27]Write i2c OK [23:51:27]MH_I2C_Read... [23:51:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:51:27]Read from MH i2c: E2 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 03 00 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 03 00 6E 59 00 90 00 3B [23:51:27]RAPDU: 90 00 [23:51:27]wFMCommunicate OK [23:51:27]wFMCommunicate request_size=255 [23:51:27]MH_SAM_APDU [23:51:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 68 EB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 EB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 34 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 EB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 85 EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 43 74 01 00 35 04 06 00 F1 [23:51:27]Write to MH i2c: E2 02 01 6F 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 68 EB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 EB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 34 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 EB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 85 EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 43 74 01 00 35 04 06 00 F1 00 00 B4 [23:51:27]Write i2c OK [23:51:27]MH_I2C_Read... [23:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:27]Read from MH i2c: E2 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 03 00 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 03 00 6F 59 00 90 00 3C [23:51:27]RAPDU: 90 00 [23:51:27]wFMCommunicate OK [23:51:27]wFMCommunicate request_size=10 [23:51:27]MH_SAM_APDU [23:51:27]CAPDU: 80 0D 02 02 05 86 7F 03 30 9D [23:51:27]Write to MH i2c: E2 0D 00 70 59 80 0D 02 02 05 00 86 7F 03 30 9D 00 00 22 [23:51:27]Write i2c OK [23:51:27]MH_I2C_Read... [23:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:27]Read from MH i2c: E2 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 03 00 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 03 00 70 59 00 90 00 3D [23:51:27]RAPDU: 90 00 [23:51:27]wFMCommunicate OK [23:51:27]wFMCommunicate request_size=4 [23:51:27]MH_SAM_APDU [23:51:27]CAPDU: 80 0D 03 02 [23:51:27]Write to MH i2c: E2 08 00 71 59 80 0D 03 02 00 00 00 00 45 [23:51:27]Write i2c OK [23:51:27]MH_I2C_Read... [23:51:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:51:27]Read from MH i2c: E2 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 0B 00 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 0B 00 71 59 00 20 43 51 D7 8F 56 6C A7 90 00 C9 [23:51:27]RAPDU: 20 43 51 D7 8F 56 6C A7 90 00 [23:51:27]wFMCommunicate OK [23:51:27]SAM_PROTO_SignData done [23:51:27]FM_MakeSignedData done [23:51:27]CreateOFDProtocolMessage [23:51:27]wFMCommunicate request_size=4 [23:51:27]MH_SAM_APDU [23:51:27]CAPDU: 80 11 00 00 [23:51:27]Write to MH i2c: E2 08 00 72 59 80 11 00 00 00 00 00 00 45 [23:51:27]Write i2c OK [23:51:27]MH_I2C_Read... [23:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:27]Read from MH i2c: E2 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 17 00 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 17 00 72 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 95 [23:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:51:27]wFMCommunicate OK [23:51:27]CreateOFDProtocolMessage done [23:51:27]OFDSenderStorePacket 95299 [23:51:27]StoreOFDPacket docnum=95299 [23:51:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 10 5D 07 01 94 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 68 EB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 EB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 34 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 EB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 85 EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 43 74 01 00 35 04 06 00 F1 86 7F 03 30 9D 20 43 51 D7 8F 56 6C A7 [23:51:27]CheckFolder [23:51:27]dirname=/storage/ofd_packets [23:51:27]CheckFolder done [23:51:27]ProducePacketName [23:51:27]name=ofd_packets/00095299 [23:51:27]NVStorageSaveData ofd_packets/00095299 [23:51:27]File name is /storage/ofd_packets/00095299 [23:51:27]Write 301 bytes [23:51:27]NVStorageSaveData done [23:51:27]OFDSenderStorePacket done [23:51:27]KKMCreateOFDPacket done [23:51:27]NVStorageSaveData kkm_last_timestamp [23:51:27]File name is /storage/kkm_last_timestamp [23:51:27]Write 4 bytes [23:51:27]NVStorageSaveData done [23:51:27]ExternCall_PrintAddStr [23:51:27]wPrintStart [23:51:27]Write to MH i2c: 01 00 00 73 59 CC [23:51:27]Write i2c OK [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: 01 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: 01 07 00 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: 01 07 00 73 59 00 80 00 00 00 FF 0F 61 [23:51:27]RasterBufferAndPrint [23:51:27]line Счет N : (1)196275 [23:51:27]line ИНН: 02508201610067 [23:51:27]line Контрольно-Кассовый Чек [23:51:27]line ПРОДАЖА [23:51:27]line ТРК (МРК, ГНК) : 32 [23:51:27]line Товар: 2710124130 [23:51:27]line Аи-92-К-5 [23:51:27]line 20.000 * 62.90 [23:51:27]line = 1258.00 [23:51:27]line НДС 12% НСП 1% [23:51:27]line > о реализуемом товаре [23:51:27]line ИТОГО: 1258.00 [23:51:27]line НСП 1% : 11.13 [23:51:27]line НДС 12% : 133.59 [23:51:27]line Наличными: 0.00 [23:51:27]line Безнал.: 1258.00 [23:51:27]line Место: АЗС № 6 "Партнер Нефть" [23:51:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:51:27]line СНО: Общий режим [23:51:27]line Чек 229 12.03.2024 23:51 [23:51:27]line Смена: 327 ФФД: 1.0 [23:51:27]line ЗНМ: 0300000009 [23:51:27]line РНМ: 0000000000090555 [23:51:27]line Версия ККМ: 001 [23:51:27]line Платежная система: Бакай Банк [23:51:27]line ФМ: 0000000000874811 [23:51:27]line ФД: 95299 [23:51:27]line ФПД: 265559958827165 [23:51:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T235133&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95299&fm=265559958827165&tin=02508201610067®Number=0000000000090555&sum=125800 [23:51:28]OFD Sender: Processing packet 95299 [packets to send 30, broken 29] [23:51:28]ProducePacketName [23:51:28]name=ofd_packets/00095299 [23:51:28]OFD Sender: To server: pG, [23:51:28]CommunicateWithHost lk.salyk.kg:30040 [23:51:28]ConnectInit lk.salyk.kg [23:51:28]written 0, free lines is 4095 [23:51:28]Connected sock=11 [23:51:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 10 5D 07 01 94 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 68 EB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 EB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 34 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 EB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 85 EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 43 74 01 00 35 04 06 00 F1 86 7F 03 30 9D 20 43 51 D7 8F 56 6C A7 [23:51:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B3 76 47 00 94 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 43 74 01 00 F4 03 04 00 DA 95 F0 65 B6 04 01 00 00 F9 BC 40 C8 54 3A 52 F7 [23:51:28]CommunicateWithHost err = 0 [23:51:28]CheckOFDResponse [23:51:28]1017 (14) - 77093643461234 [23:51:28]1041 (16) - 0000000000874811 [23:51:28]1040 (4) - 95299 [23:51:28]1012 (4) - 12.03.2024 17:50 [23:51:28]1206 (1) - 0 [23:51:28]OFD Sender: Remove packet 95299 [23:51:28]ProducePacketName [23:51:28]name=ofd_packets/00095299 [23:51:28]NVStorageDeleteData [23:51:28]Write to MH i2c: 01 00 00 9D 59 F6 [23:51:28]Write i2c OK [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: 01 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: 01 07 00 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: 01 07 00 9D 59 00 80 00 00 00 6A 0D F4 [23:51:28]RasterBufferAndPrint [23:51:28]line [23:51:28]line [23:51:28]line [23:51:28]line [23:51:28]line [23:51:28]written 0, free lines is 3440 [23:51:28]process_action close_receipt done [23:51:28]requested_data is exist [23:51:28]produce_requested_data [23:51:28]requested_item fm.sn is exist - process it [23:51:28]wFMCommunicate request_size=4 [23:51:28]MH_SAM_APDU [23:51:28]CAPDU: 80 11 00 00 [23:51:28]Write to MH i2c: E2 08 00 A4 59 80 11 00 00 00 00 00 00 77 [23:51:28]Write i2c OK [23:51:28]MH_I2C_Read... [23:51:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:28]Read from MH i2c: E2 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 17 00 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 17 00 A4 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C7 [23:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:51:28]wFMCommunicate OK [23:51:28]requested_item fd.num is exist - process it [23:51:28]SAM_PROTO_GetFieldsCounters [23:51:28]wFMCommunicate request_size=4 [23:51:28]MH_SAM_APDU [23:51:28]CAPDU: 80 13 00 00 [23:51:28]Write to MH i2c: E2 08 00 A5 59 80 13 00 00 00 00 00 00 7A [23:51:28]Write i2c OK [23:51:28]MH_I2C_Read... [23:51:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:28]Read from MH i2c: E2 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 62 00 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 62 00 A5 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 43 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [23:51:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 43 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:28]wFMCommunicate OK [23:51:28]SAM_PROTO_GetFieldsCounters done [23:51:28]requested_item shift.num is exist - process it [23:51:28]requested_item shift.opened is exist - process it [23:51:28]req_shift_opened [23:51:28]FM_GetShiftState [23:51:28]SAM_PROTO_GetShiftState [23:51:28]wFMCommunicate request_size=4 [23:51:28]MH_SAM_APDU [23:51:28]CAPDU: 80 13 01 00 [23:51:28]Write to MH i2c: E2 08 00 A6 59 80 13 01 00 00 00 00 00 7C [23:51:28]Write i2c OK [23:51:28]MH_I2C_Read... [23:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:28]Read from MH i2c: E2 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 0E 00 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 0E 00 A6 59 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F0 [23:51:28]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:51:28]wFMCommunicate OK [23:51:28]SAM_PROTO_GetShiftState done [23:51:28]FM_GetShiftState done [23:51:28]req_shift_opened done [23:51:28]requested_item shift.open_date is exist - process it [23:51:28]req_shift_open_date [23:51:28]req_shift_open_date done [23:51:28]produce_requested_data done [23:51:28]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95299,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [23:51:28]process_action_free close_receipt [23:51:28]json_value_free [23:51:28]json_value_free done [23:51:28]process_json_proto returns [23:51:28]Send response to host [23:51:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95299,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [23:51:28]free response buf [23:51:28]execute_script done [23:51:28]execute_script returns [23:51:28]free content buf [23:51:28]Sock 9.Close socket [23:51:28]Sock 9.Thread stoped [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:06]accept exits with 8 [23:52:06]New connection [23:52:06]New thread 3066957156 created [23:52:06]Thread 3066813796 joined [23:52:06]Waiting for new connection... [23:52:06] Sock 8.Parse request [23:52:06]Sock 8.Check first char [23:52:06]Sock 8.First char is OK [23:52:06]request: POST /json_proto HTTP/1.0 [23:52:06]Method: POST [23:52:06]URL: /json_proto [23:52:06]Method is POST - this is cgi request [23:52:06]url: /json_proto [23:52:06]query_string will be loaded in cgi processing [23:52:06]execute_cgi json_proto POST (null) [23:52:06]execute_cgi path=json_proto method=POST [23:52:06]POST find Content-Length [23:52:06]Host: 172.17.62.67:8080 [23:52:06]Content-Length: 733 [23:52:06]Content-Type: application/json [23:52:06] [23:52:06]POST finish read [23:52:06]Found Content-Length = 733 [23:52:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95298, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:06]execute_script... [23:52:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95298, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:06]POST & json_proto [23:52:06]process_json_proto [23:52:06]json parsed OK: [23:52:06]protocol is kg_v1.0 [23:52:06]action value=close_receipt [23:52:06]process_action close_receipt [23:52:06]cmd_close_receipt [23:52:06]MH_GetDate [23:52:06]Write to MH i2c: F0 00 00 A7 59 EF [23:52:07]Write i2c OK [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: F0 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: F0 05 00 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: F0 05 00 A7 59 00 AE EA F0 65 E1 [23:52:07]GetLastDocTimeStamp 1710287493 [23:52:07]current date 1710287534 [23:52:07]FM_GetShiftState [23:52:07]SAM_PROTO_GetShiftState [23:52:07]wFMCommunicate request_size=4 [23:52:07]MH_SAM_APDU [23:52:07]CAPDU: 80 13 01 00 [23:52:07]Write to MH i2c: E2 08 00 A8 59 80 13 01 00 00 00 00 00 7E [23:52:07]Write i2c OK [23:52:07]MH_I2C_Read... [23:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:07]Read from MH i2c: E2 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: E2 0E 00 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: E2 0E 00 A8 59 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 F2 [23:52:07]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:52:07]wFMCommunicate OK [23:52:07]SAM_PROTO_GetShiftState done [23:52:07]FM_GetShiftState done [23:52:07]opened in 1710201976 [23:52:07]opened+sec_in_day 1710288376 [23:52:07]quantity*price = 60006 [23:52:07]sum+1 = 60008 [23:52:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 230 12.03.2024 23:52 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95298 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95300 ФПД: 184917713794040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T235214&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95300&fm=184917713794040&tin=02508201610067®Number=0000000000090555&sum=60000 [23:52:08]StoreToDocumentArchive [23:52:08]shift 327 fd 95300 [23:52:08]save to /storage/0327/doc_00095300 [23:52:08]save last doc name /storage/0327/doc_00095300 to /storage/kkm_last_doc_name [23:52:08]save OK [23:52:08]Clear old archive folders... [23:52:08]ProcessDocumentItem done err = 0, tmpTLVsize=279 [23:52:08]tlvbuf is 01B89730 [23:52:08]SAM_PROTO_ClearQueue [23:52:08]wFMCommunicate request_size=4 [23:52:08]MH_SAM_APDU [23:52:08]CAPDU: 80 09 00 00 [23:52:08]Write to MH i2c: E2 08 00 B7 59 80 09 00 00 00 00 00 00 82 [23:52:08]Write i2c OK [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 [23:52:08]MH_I2C_Read... [23:52:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:08]Read from MH i2c: E2 03 00 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 03 00 B7 59 00 90 00 84 [23:52:08]RAPDU: 90 00 [23:52:08]wFMCommunicate OK [23:52:08]SAM_PROTO_ClearQueue done [23:52:08]KKMCreateOFDPacket [23:52:08]OFDProtocolAddRootSTLVToBuf [23:52:08]FM_MakeSignedData [23:52:08]FM_MakeSignedData [23:52:08]SAM_PROTO_SignData [23:52:08]wFMCommunicate request_size=4 [23:52:08]MH_SAM_APDU [23:52:08]CAPDU: 80 0D 01 02 [23:52:08]Write to MH i2c: E2 08 00 B8 59 80 0D 01 02 00 00 00 00 8A [23:52:08]Write i2c OK [23:52:08]MH_I2C_Read... [23:52:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:08]Read from MH i2c: E2 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 03 00 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 03 00 B8 59 00 90 00 85 [23:52:08]RAPDU: 90 00 [23:52:08]wFMCommunicate OK [23:52:08]wFMCommunicate request_size=255 [23:52:08]MH_SAM_APDU [23:52:08]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 AE EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 42 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 [23:52:08]Write to MH i2c: E2 02 01 B9 59 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 AE EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 42 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 00 00 CD [23:52:08]Write i2c OK [23:52:08]MH_I2C_Read... [23:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:08]Read from MH i2c: E2 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 03 00 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 03 00 B9 59 00 90 00 86 [23:52:08]RAPDU: 90 00 [23:52:08]wFMCommunicate OK [23:52:08]wFMCommunicate request_size=38 [23:52:08]MH_SAM_APDU [23:52:08]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 44 74 01 00 35 04 06 00 A8 2E 82 A4 B3 F8 [23:52:08]Write to MH i2c: E2 29 00 BA 59 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 44 74 01 00 35 04 06 00 A8 2E 82 A4 B3 F8 00 00 73 [23:52:08]Write i2c OK [23:52:08]MH_I2C_Read... [23:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:08]Read from MH i2c: E2 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 03 00 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 03 00 BA 59 00 90 00 87 [23:52:08]RAPDU: 90 00 [23:52:08]wFMCommunicate OK [23:52:08]wFMCommunicate request_size=4 [23:52:08]MH_SAM_APDU [23:52:08]CAPDU: 80 0D 03 02 [23:52:08]Write to MH i2c: E2 08 00 BB 59 80 0D 03 02 00 00 00 00 8F [23:52:08]Write i2c OK [23:52:08]MH_I2C_Read... [23:52:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:08]Read from MH i2c: E2 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 0B 00 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 0B 00 BB 59 00 9E DC F7 DB 29 B3 FF 6C 90 00 23 [23:52:08]RAPDU: 9E DC F7 DB 29 B3 FF 6C 90 00 [23:52:08]wFMCommunicate OK [23:52:08]SAM_PROTO_SignData done [23:52:08]FM_MakeSignedData done [23:52:08]CreateOFDProtocolMessage [23:52:08]wFMCommunicate request_size=4 [23:52:08]MH_SAM_APDU [23:52:08]CAPDU: 80 11 00 00 [23:52:08]Write to MH i2c: E2 08 00 BC 59 80 11 00 00 00 00 00 00 8F [23:52:08]Write i2c OK [23:52:08]MH_I2C_Read... [23:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:08]Read from MH i2c: E2 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 17 00 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 17 00 BC 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DF [23:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:52:08]wFMCommunicate OK [23:52:08]CreateOFDProtocolMessage done [23:52:08]OFDSenderStorePacket 95300 [23:52:08]StoreOFDPacket docnum=95300 [23:52:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 9B 43 23 01 F7 7D 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 AE EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 42 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 44 74 01 00 35 04 06 00 A8 2E 82 A4 B3 F8 9E DC F7 DB 29 B3 FF 6C [23:52:08]CheckFolder [23:52:08]dirname=/storage/ofd_packets [23:52:08]CheckFolder done [23:52:08]ProducePacketName [23:52:08]name=ofd_packets/00095300 [23:52:08]NVStorageSaveData ofd_packets/00095300 [23:52:08]File name is /storage/ofd_packets/00095300 [23:52:08]Write 329 bytes [23:52:08]NVStorageSaveData done [23:52:08]OFDSenderStorePacket done [23:52:08]KKMCreateOFDPacket done [23:52:08]NVStorageSaveData kkm_last_timestamp [23:52:08]File name is /storage/kkm_last_timestamp [23:52:08]Write 4 bytes [23:52:08]NVStorageSaveData done [23:52:08]ExternCall_PrintAddStr [23:52:08]wPrintStart [23:52:08]Write to MH i2c: 01 00 00 BD 59 16 [23:52:08]Write i2c OK [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: 01 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: 01 07 00 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: 01 07 00 BD 59 00 80 00 00 00 FF 0F AB [23:52:08]RasterBufferAndPrint [23:52:08]line Счет N : (1)196274 [23:52:08]line ИНН: 02508201610067 [23:52:08]line Контрольно-Кассовый Чек [23:52:08]line ВОЗВРАТ ПРОДАЖИ [23:52:08]line ТРК (МРК, ГНК) : 12 [23:52:08]line Товар: 2710124130 [23:52:08]line Аи-92-К-5 [23:52:08]line 9.540 * 62.90 [23:52:08]line = 600.07 [23:52:08]line НДС 12% НСП 1% [23:52:08]line > о реализуемом товаре [23:52:08]line ОКРУГЛЕНИЕ: -0.07 [23:52:08]line ИТОГО: 600.00 [23:52:08]line НСП 1% : 5.31 [23:52:08]line НДС 12% : 63.72 [23:52:08]line Наличными: 600.00 [23:52:08]line Безнал.: 0.00 [23:52:08]line Место: АЗС № 6 "Партнер Нефть" [23:52:08]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:52:08]line СНО: Общий режим [23:52:08]line Чек 230 12.03.2024 23:52 [23:52:08]line Смена: 327 ФФД: 1.0 [23:52:08]line ЗНМ: 0300000009 [23:52:08]line РНМ: 0000000000090555 [23:52:08]line Версия ККМ: 001 [23:52:08]line ФД осн.: 95298 [23:52:08]line ФМ осн.: 0000000000874811 [23:52:08]line ФМ: 0000000000874811 [23:52:08]line ФД: 95300 [23:52:08]line ФПД: 184917713794040 [23:52:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T235214&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95300&fm=184917713794040&tin=02508201610067®Number=0000000000090555&sum=60000 [23:52:09]OFD Sender: Processing packet 95300 [packets to send 30, broken 29] [23:52:09]ProducePacketName [23:52:09]name=ofd_packets/00095300 [23:52:09]OFD Sender: To server: pG, [23:52:09]CommunicateWithHost lk.salyk.kg:30040 [23:52:09]ConnectInit lk.salyk.kg [23:52:09]written 0, free lines is 4095 [23:52:09]Write to MH i2c: 01 00 00 E8 59 41 [23:52:09]Write i2c OK [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: 01 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: 01 07 00 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: 01 07 00 E8 59 00 80 00 00 00 5B 0D 30 [23:52:09]RasterBufferAndPrint [23:52:09]line [23:52:09]line [23:52:09]line [23:52:09]line [23:52:09]line [23:52:09]written 0, free lines is 3425 [23:52:09]process_action close_receipt done [23:52:09]requested_data is exist [23:52:09]produce_requested_data [23:52:09]requested_item fm.sn is exist - process it [23:52:09]wFMCommunicate request_size=4 [23:52:09]MH_SAM_APDU [23:52:09]CAPDU: 80 11 00 00 [23:52:09]Write to MH i2c: E2 08 00 EF 59 80 11 00 00 00 00 00 00 C2 [23:52:09]Write i2c OK [23:52:09]MH_I2C_Read... [23:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:09]Read from MH i2c: E2 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 17 00 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 17 00 EF 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 12 [23:52:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:52:09]wFMCommunicate OK [23:52:09]requested_item fd.num is exist - process it [23:52:09]SAM_PROTO_GetFieldsCounters [23:52:09]wFMCommunicate request_size=4 [23:52:09]MH_SAM_APDU [23:52:09]CAPDU: 80 13 00 00 [23:52:09]Write to MH i2c: E2 08 00 F0 59 80 13 00 00 00 00 00 00 C5 [23:52:09]Write i2c OK [23:52:09]MH_I2C_Read... [23:52:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:09]Read from MH i2c: E2 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 62 00 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 62 00 F0 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 44 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [23:52:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 44 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:09]wFMCommunicate OK [23:52:09]SAM_PROTO_GetFieldsCounters done [23:52:09]requested_item shift.num is exist - process it [23:52:09]requested_item shift.opened is exist - process it [23:52:09]req_shift_opened [23:52:09]FM_GetShiftState [23:52:09]SAM_PROTO_GetShiftState [23:52:09]wFMCommunicate request_size=4 [23:52:09]MH_SAM_APDU [23:52:09]CAPDU: 80 13 01 00 [23:52:09]Write to MH i2c: E2 08 00 F1 59 80 13 01 00 00 00 00 00 C7 [23:52:09]Write i2c OK [23:52:09]MH_I2C_Read... [23:52:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:09]Read from MH i2c: E2 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 0E 00 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 0E 00 F1 59 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 3B [23:52:09]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:52:09]wFMCommunicate OK [23:52:09]SAM_PROTO_GetShiftState done [23:52:09]FM_GetShiftState done [23:52:09]req_shift_opened done [23:52:09]requested_item shift.open_date is exist - process it [23:52:09]req_shift_open_date [23:52:09]req_shift_open_date done [23:52:09]produce_requested_data done [23:52:09]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95300,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [23:52:09]process_action_free close_receipt [23:52:09]json_value_free [23:52:09]json_value_free done [23:52:09]process_json_proto returns [23:52:09]Send response to host [23:52:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95300,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [23:52:09]free response buf [23:52:09]execute_script done [23:52:09]execute_script returns [23:52:09]free content buf [23:52:09]Sock 8.Close socket [23:52:09]Sock 8.Thread stoped [23:52:10]accept exits with 9 [23:52:10]New connection [23:52:10]New thread 3066813796 created [23:52:10]Thread 3066957156 joined [23:52:10]Waiting for new connection... [23:52:10] Sock 9.Parse request [23:52:10]Sock 9.Check first char [23:52:10]Sock 9.First char is OK [23:52:10]request: POST /json_proto HTTP/1.0 [23:52:10]Method: POST [23:52:10]URL: /json_proto [23:52:10]Method is POST - this is cgi request [23:52:10]url: /json_proto [23:52:10]query_string will be loaded in cgi processing [23:52:10]execute_cgi json_proto POST (null) [23:52:10]execute_cgi path=json_proto method=POST [23:52:10]POST find Content-Length [23:52:10]Host: 172.17.62.67:8080 [23:52:10]Content-Length: 677 [23:52:10]Content-Type: application/json [23:52:10] [23:52:10]POST finish read [23:52:10]Found Content-Length = 677 [23:52:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.580, "sum" : 602.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 602.00, "total" : 602.00, "payments": [ { "type": 0, "sum" : 602.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:10]execute_script... [23:52: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)196276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.580, "sum" : 602.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 602.00, "total" : 602.00, "payments": [ { "type": 0, "sum" : 602.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:10]POST & json_proto [23:52:10]process_json_proto [23:52:10]json parsed OK: [23:52:10]protocol is kg_v1.0 [23:52:10]action value=close_receipt [23:52:10]process_action close_receipt [23:52:10]cmd_close_receipt [23:52:10]MH_GetDate [23:52:10]Write to MH i2c: F0 00 00 F2 59 3A [23:52:10]Write i2c OK [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: F0 [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: F0 05 00 [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: F0 05 00 F2 59 00 B2 EA F0 65 30 [23:52:10]GetLastDocTimeStamp 1710287534 [23:52:10]current date 1710287538 [23:52:10]FM_GetShiftState [23:52:10]SAM_PROTO_GetShiftState [23:52:10]wFMCommunicate request_size=4 [23:52:10]MH_SAM_APDU [23:52:10]CAPDU: 80 13 01 00 [23:52:10]Write to MH i2c: E2 08 00 F3 59 80 13 01 00 00 00 00 00 C9 [23:52:10]Write i2c OK [23:52:10]MH_I2C_Read... [23:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:10]Read from MH i2c: E2 [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: E2 0E 00 [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: E2 0E 00 F3 59 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 3D [23:52:10]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:52:10]wFMCommunicate OK [23:52:10]SAM_PROTO_GetShiftState done [23:52:10]FM_GetShiftState done [23:52:10]opened in 1710201976 [23:52:10]opened+sec_in_day 1710288376 [23:52:10]quantity*price = 60258 [23:52:10]sum+1 = 60259 [23:52:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 602.00 Внесено: 602.00 СДАЧА: 0.00 НСП 1% : 5.33 НДС 12% : 63.99 Наличными: 602.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 231 12.03.2024 23:52 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95301 ФПД: 78966569861905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T235218&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95301&fm=78966569861905&tin=02508201610067®Number=0000000000090555&sum=60200 [23:52:12]StoreToDocumentArchive [23:52:12]shift 327 fd 95301 [23:52:12]save to /storage/0327/doc_00095301 [23:52:12]save last doc name /storage/0327/doc_00095301 to /storage/kkm_last_doc_name [23:52:12]save OK [23:52:12]Clear old archive folders... [23:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:52:12]tlvbuf is 01B5B8C0 [23:52:12]SAM_PROTO_ClearQueue [23:52:12]wFMCommunicate request_size=4 [23:52:12]MH_SAM_APDU [23:52:12]CAPDU: 80 09 00 00 [23:52:12]Write to MH i2c: E2 08 00 00 5A 80 09 00 00 00 00 00 00 CC [23:52:12]Write i2c OK [23:52:12]MH_I2C_Read... [23:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:12]Read from MH i2c: E2 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 03 00 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 03 00 00 5A 00 90 00 CE [23:52:12]RAPDU: 90 00 [23:52:12]wFMCommunicate OK [23:52:12]SAM_PROTO_ClearQueue done [23:52:12]KKMCreateOFDPacket [23:52:12]OFDProtocolAddRootSTLVToBuf [23:52:12]FM_MakeSignedData [23:52:12]FM_MakeSignedData [23:52:12]SAM_PROTO_SignData [23:52:12]wFMCommunicate request_size=4 [23:52:12]MH_SAM_APDU [23:52:12]CAPDU: 80 0D 01 02 [23:52:12]Write to MH i2c: E2 08 00 01 5A 80 0D 01 02 00 00 00 00 D4 [23:52:12]Write i2c OK [23:52:12]MH_I2C_Read... [23:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:12]Read from MH i2c: E2 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 03 00 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 03 00 01 5A 00 90 00 CF [23:52:12]RAPDU: 90 00 [23:52:12]wFMCommunicate OK [23:52:12]wFMCommunicate request_size=255 [23:52:12]MH_SAM_APDU [23:52:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 62 EB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 18 00 00 00 00 07 04 06 00 28 EB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 B2 EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 45 74 01 00 35 04 06 00 47 [23:52:12]Write to MH i2c: E2 02 01 02 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 62 EB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 18 00 00 00 00 07 04 06 00 28 EB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 B2 EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 45 74 01 00 35 04 06 00 47 00 00 D7 [23:52:12]Write i2c OK [23:52:12]MH_I2C_Read... [23:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:12]Read from MH i2c: E2 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 03 00 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 03 00 02 5A 00 90 00 D0 [23:52:12]RAPDU: 90 00 [23:52:12]wFMCommunicate OK [23:52:12]wFMCommunicate request_size=10 [23:52:12]MH_SAM_APDU [23:52:12]CAPDU: 80 0D 02 02 05 D1 D6 58 83 11 [23:52:12]Write to MH i2c: E2 0D 00 03 5A 80 0D 02 02 05 00 D1 D6 58 83 11 00 00 74 [23:52:12]Write i2c OK [23:52:12]MH_I2C_Read... [23:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:12]Read from MH i2c: E2 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 03 00 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 03 00 03 5A 00 90 00 D1 [23:52:12]RAPDU: 90 00 [23:52:12]wFMCommunicate OK [23:52:12]wFMCommunicate request_size=4 [23:52:12]MH_SAM_APDU [23:52:12]CAPDU: 80 0D 03 02 [23:52:12]Write to MH i2c: E2 08 00 04 5A 80 0D 03 02 00 00 00 00 D9 [23:52:12]Write i2c OK [23:52:12]MH_I2C_Read... [23:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:12]Read from MH i2c: E2 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 0B 00 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 0B 00 04 5A 00 0A EB CF B0 02 BC 38 58 90 00 9C [23:52:12]RAPDU: 0A EB CF B0 02 BC 38 58 90 00 [23:52:12]wFMCommunicate OK [23:52:12]SAM_PROTO_SignData done [23:52:12]FM_MakeSignedData done [23:52:12]CreateOFDProtocolMessage [23:52:12]wFMCommunicate request_size=4 [23:52:12]MH_SAM_APDU [23:52:12]CAPDU: 80 11 00 00 [23:52:12]Write to MH i2c: E2 08 00 05 5A 80 11 00 00 00 00 00 00 D9 [23:52:12]Write i2c OK [23:52:12]MH_I2C_Read... [23:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:12]Read from MH i2c: E2 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 17 00 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 17 00 05 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 29 [23:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:52:12]wFMCommunicate OK [23:52:12]CreateOFDProtocolMessage done [23:52:12]OFDSenderStorePacket 95301 [23:52:12]StoreOFDPacket docnum=95301 [23:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 12 E4 07 01 00 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 62 EB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 18 00 00 00 00 07 04 06 00 28 EB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 B2 EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 45 74 01 00 35 04 06 00 47 D1 D6 58 83 11 0A EB CF B0 02 BC 38 58 [23:52:12]CheckFolder [23:52:12]dirname=/storage/ofd_packets [23:52:12]CheckFolder done [23:52:12]ProducePacketName [23:52:12]name=ofd_packets/00095301 [23:52:12]NVStorageSaveData ofd_packets/00095301 [23:52:12]File name is /storage/ofd_packets/00095301 [23:52:12]Write 301 bytes [23:52:12]NVStorageSaveData done [23:52:12]OFDSenderStorePacket done [23:52:12]KKMCreateOFDPacket done [23:52:12]NVStorageSaveData kkm_last_timestamp [23:52:12]File name is /storage/kkm_last_timestamp [23:52:12]Write 4 bytes [23:52:12]NVStorageSaveData done [23:52:12]ExternCall_PrintAddStr [23:52:12]wPrintStart [23:52:12]Write to MH i2c: 01 00 00 06 5A 60 [23:52:12]Write i2c OK [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: 01 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: 01 07 00 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: 01 07 00 06 5A 00 80 00 00 00 FF 0F F5 [23:52:12]RasterBufferAndPrint [23:52:12]line Счет N : (1)196276 [23:52:12]line ИНН: 02508201610067 [23:52:12]line Контрольно-Кассовый Чек [23:52:12]line ПРОДАЖА [23:52:12]line ТРК (МРК, ГНК) : 12 [23:52:12]line Товар: 2710124130 [23:52:12]line Аи-92-К-5 [23:52:12]line 9.580 * 62.90 [23:52:12]line = 602.58 [23:52:12]line НДС 12% НСП 1% [23:52:12]line > о реализуемом товаре [23:52:12]line ОКРУГЛЕНИЕ: -0.58 [23:52:12]line ИТОГО: 602.00 [23:52:12]line Внесено: 602.00 [23:52:12]line СДАЧА: 0.00 [23:52:12]line НСП 1% : 5.33 [23:52:12]line НДС 12% : 63.99 [23:52:12]line Наличными: 602.00 [23:52:12]line Безнал.: 0.00 [23:52:12]line Место: АЗС № 6 "Партнер Нефть" [23:52:12]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:52:12]line СНО: Общий режим [23:52:12]line Чек 231 12.03.2024 23:52 [23:52:12]line Смена: 327 ФФД: 1.0 [23:52:12]line ЗНМ: 0300000009 [23:52:12]line РНМ: 0000000000090555 [23:52:12]line Версия ККМ: 001 [23:52:12]line ФМ: 0000000000874811 [23:52:12]line ФД: 95301 [23:52:12]line ФПД: 78966569861905 [23:52:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T235218&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95301&fm=78966569861905&tin=02508201610067®Number=0000000000090555&sum=60200 [23:52:12]written 0, free lines is 4095 [23:52:13]Write to MH i2c: 01 00 00 31 5A 8B [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: 01 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: 01 07 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: 01 07 00 31 5A 00 80 00 00 00 58 0D 77 [23:52:13]RasterBufferAndPrint [23:52:13]line [23:52:13]line [23:52:13]line [23:52:13]line [23:52:13]line [23:52:13]written 0, free lines is 3430 [23:52:13]process_action close_receipt done [23:52:13]requested_data is exist [23:52:13]produce_requested_data [23:52:13]requested_item fm.sn is exist - process it [23:52:13]wFMCommunicate request_size=4 [23:52:13]MH_SAM_APDU [23:52:13]CAPDU: 80 11 00 00 [23:52:13]Write to MH i2c: E2 08 00 38 5A 80 11 00 00 00 00 00 00 0C [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:13]Read from MH i2c: E2 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 17 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 17 00 38 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5C [23:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:52:13]wFMCommunicate OK [23:52:13]requested_item fd.num is exist - process it [23:52:13]SAM_PROTO_GetFieldsCounters [23:52:13]wFMCommunicate request_size=4 [23:52:13]MH_SAM_APDU [23:52:13]CAPDU: 80 13 00 00 [23:52:13]Write to MH i2c: E2 08 00 39 5A 80 13 00 00 00 00 00 00 0F [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:13]Read from MH i2c: E2 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 62 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 62 00 39 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 45 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [23:52:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 45 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:13]wFMCommunicate OK [23:52:13]SAM_PROTO_GetFieldsCounters done [23:52:13]requested_item shift.num is exist - process it [23:52:13]requested_item shift.opened is exist - process it [23:52:13]req_shift_opened [23:52:13]FM_GetShiftState [23:52:13]SAM_PROTO_GetShiftState [23:52:13]wFMCommunicate request_size=4 [23:52:13]MH_SAM_APDU [23:52:13]CAPDU: 80 13 01 00 [23:52:13]Write to MH i2c: E2 08 00 3A 5A 80 13 01 00 00 00 00 00 11 [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:13]Read from MH i2c: E2 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 0E 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 0E 00 3A 5A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 85 [23:52:13]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:52:13]wFMCommunicate OK [23:52:13]SAM_PROTO_GetShiftState done [23:52:13]FM_GetShiftState done [23:52:13]req_shift_opened done [23:52:13]requested_item shift.open_date is exist - process it [23:52:13]req_shift_open_date [23:52:13]req_shift_open_date done [23:52:13]produce_requested_data done [23:52:13]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95301,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [23:52:13]process_action_free close_receipt [23:52:13]json_value_free [23:52:13]json_value_free done [23:52:13]process_json_proto returns [23:52:13]Send response to host [23:52:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95301,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [23:52:13]free response buf [23:52:13]execute_script done [23:52:13]execute_script returns [23:52:13]free content buf [23:52:13]Sock 9.Close socket [23:52:13]Sock 9.Thread stoped [23:52:14]ConnectInit Can't take IP for lk.salyk.kg [23:52:14]CommunicateWithHost connect error [23:52:14]CommunicateWithHost err = -1 [23:52:14]OFD Sender: Server communicate error [23:52:14]OFD Sender: Processing packet 95300 [packets to send 31, broken 29] [23:52:14]ProducePacketName [23:52:14]name=ofd_packets/00095300 [23:52:14]OFD Sender: To server: pG, [23:52:14]CommunicateWithHost lk.salyk.kg:30040 [23:52:14]ConnectInit lk.salyk.kg [23:52:17]Connected sock=9 [23:52:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 9B 43 23 01 F7 7D 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 AE EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 42 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 44 74 01 00 35 04 06 00 A8 2E 82 A4 B3 F8 9E DC F7 DB 29 B3 FF 6C [23:52:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 49 08 47 00 0B 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 44 74 01 00 F4 03 04 00 0B 96 F0 65 B6 04 01 00 00 C2 92 11 CE 54 05 24 D2 [23:52:17]CommunicateWithHost err = 0 [23:52:17]CheckOFDResponse [23:52:17]1017 (14) - 77093643461234 [23:52:17]1041 (16) - 0000000000874811 [23:52:17]1040 (4) - 95300 [23:52:17]1012 (4) - 12.03.2024 17:51 [23:52:17]1206 (1) - 0 [23:52:17]OFD Sender: Remove packet 95300 [23:52:17]ProducePacketName [23:52:17]name=ofd_packets/00095300 [23:52:17]NVStorageDeleteData [23:52:17]OFD Sender: Processing packet 95301 [packets to send 30, broken 29] [23:52:17]ProducePacketName [23:52:17]name=ofd_packets/00095301 [23:52:17]OFD Sender: To server: pG, [23:52:17]CommunicateWithHost lk.salyk.kg:30040 [23:52:17]ConnectInit lk.salyk.kg [23:52:17]Connected sock=9 [23:52:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 12 E4 07 01 00 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 62 EB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 18 00 00 00 00 07 04 06 00 28 EB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 B2 EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 45 74 01 00 35 04 06 00 47 D1 D6 58 83 11 0A EB CF B0 02 BC 38 58 [23:52:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D3 68 47 00 F7 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 45 74 01 00 F4 03 04 00 0C 96 F0 65 B6 04 01 00 00 C6 6E 8E D4 FF F8 C4 48 [23:52:18]CommunicateWithHost err = 0 [23:52:18]CheckOFDResponse [23:52:18]1017 (14) - 77093643461234 [23:52:18]1041 (16) - 0000000000874811 [23:52:18]1040 (4) - 95301 [23:52:18]1012 (4) - 12.03.2024 17:51 [23:52:18]1206 (1) - 0 [23:52:18]OFD Sender: Remove packet 95301 [23:52:18]ProducePacketName [23:52:18]name=ofd_packets/00095301 [23:52:18]NVStorageDeleteData [23:52:18]OFD Sender: No OFD packet to send [23:52:23]OFD Sender: No OFD packet to send [23:52:28]OFD Sender: No OFD packet to send [23:52:33]OFD Sender: No OFD packet to send [23:52:38]OFD Sender: No OFD packet to send [23:52:43]OFD Sender: No OFD packet to send [23:52:48]OFD Sender: No OFD packet to send [23:52:53]OFD Sender: No OFD packet to send [23:52:58]OFD Sender: No OFD packet to send [23:53:03]OFD Sender: No OFD packet to send [23:53:08]OFD Sender: No OFD packet to send [23:53:13]OFD Sender: No OFD packet to send [23:53:17]accept exits with 12 [23:53:17]New connection [23:53:17]New thread 3066957156 created [23:53:17]Thread 3066813796 joined [23:53:17]Waiting for new connection... [23:53:17] Sock 12.Parse request [23:53:17]Sock 12.Check first char [23:53:17]Sock 12.First char is OK [23:53:17]request: POST /json_proto HTTP/1.0 [23:53:17]Method: POST [23:53:17]URL: /json_proto [23:53:17]Method is POST - this is cgi request [23:53:17]url: /json_proto [23:53:17]query_string will be loaded in cgi processing [23:53:17]execute_cgi json_proto POST (null) [23:53:17]execute_cgi path=json_proto method=POST [23:53:17]POST find Content-Length [23:53:17]Host: 172.17.62.67:8080 [23:53:17]Content-Length: 677 [23:53:17]Content-Type: application/json [23:53:17] [23:53:17]POST finish read [23:53:17]Found Content-Length = 677 [23:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:17]execute_script... [23:53:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:17]POST & json_proto [23:53:17]process_json_proto [23:53:17]json parsed OK: [23:53:17]protocol is kg_v1.0 [23:53:17]action value=close_receipt [23:53:17]process_action close_receipt [23:53:17]cmd_close_receipt [23:53:17]MH_GetDate [23:53:17]Write to MH i2c: F0 00 00 3B 5A 84 [23:53:17]Write i2c OK [23:53:17]MH_I2C_Read... [23:53:17]Read from MH i2c: F0 [23:53:17]MH_I2C_Read... [23:53:17]Read from MH i2c: F0 05 00 [23:53:17]MH_I2C_Read... [23:53:17]Read from MH i2c: F0 05 00 3B 5A 00 F5 EA F0 65 BD [23:53:17]GetLastDocTimeStamp 1710287538 [23:53:17]current date 1710287605 [23:53:17]FM_GetShiftState [23:53:17]SAM_PROTO_GetShiftState [23:53:17]wFMCommunicate request_size=4 [23:53:17]MH_SAM_APDU [23:53:17]CAPDU: 80 13 01 00 [23:53:17]Write to MH i2c: E2 08 00 3C 5A 80 13 01 00 00 00 00 00 13 [23:53:17]Write i2c OK [23:53:17]MH_I2C_Read... [23:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:18]Read from MH i2c: E2 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: E2 0E 00 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: E2 0E 00 3C 5A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 87 [23:53:18]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:53:18]wFMCommunicate OK [23:53:18]SAM_PROTO_GetShiftState done [23:53:18]FM_GetShiftState done [23:53:18]opened in 1710201976 [23:53:18]opened+sec_in_day 1710288376 [23:53:18]quantity*price = 50005 [23:53:18]sum+1 = 50007 [23:53:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 232 12.03.2024 23:53 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95302 ФПД: 19761181514815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T235325&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95302&fm=19761181514815&tin=02508201610067®Number=0000000000090555&sum=50000 [23:53:19]StoreToDocumentArchive [23:53:19]shift 327 fd 95302 [23:53:19]save to /storage/0327/doc_00095302 [23:53:19]save last doc name /storage/0327/doc_00095302 to /storage/kkm_last_doc_name [23:53:19]save OK [23:53:19]Clear old archive folders... [23:53:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:53:19]tlvbuf is 01B89F90 [23:53:19]SAM_PROTO_ClearQueue [23:53:19]wFMCommunicate request_size=4 [23:53:19]MH_SAM_APDU [23:53:19]CAPDU: 80 09 00 00 [23:53:19]Write to MH i2c: E2 08 00 49 5A 80 09 00 00 00 00 00 00 15 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 49 5A 00 90 00 17 [23:53:19]RAPDU: 90 00 [23:53:19]wFMCommunicate OK [23:53:19]SAM_PROTO_ClearQueue done [23:53:19]KKMCreateOFDPacket [23:53:19]OFDProtocolAddRootSTLVToBuf [23:53:19]FM_MakeSignedData [23:53:19]FM_MakeSignedData [23:53:19]SAM_PROTO_SignData [23:53:19]wFMCommunicate request_size=4 [23:53:19]MH_SAM_APDU [23:53:19]CAPDU: 80 0D 01 02 [23:53:19]Write to MH i2c: E2 08 00 4A 5A 80 0D 01 02 00 00 00 00 1D [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 4A 5A 00 90 00 18 [23:53:19]RAPDU: 90 00 [23:53:19]wFMCommunicate OK [23:53:19]wFMCommunicate request_size=255 [23:53:19]MH_SAM_APDU [23:53:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 F5 EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 46 74 01 00 35 04 06 00 11 [23:53:19]Write to MH i2c: E2 02 01 4B 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 F5 EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 46 74 01 00 35 04 06 00 11 00 00 F6 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 4B 5A 00 90 00 19 [23:53:19]RAPDU: 90 00 [23:53:19]wFMCommunicate OK [23:53:19]wFMCommunicate request_size=10 [23:53:19]MH_SAM_APDU [23:53:19]CAPDU: 80 0D 02 02 05 F9 02 34 5C 3F [23:53:19]Write to MH i2c: E2 0D 00 4C 5A 80 0D 02 02 05 00 F9 02 34 5C 3F 00 00 F4 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 4C 5A 00 90 00 1A [23:53:19]RAPDU: 90 00 [23:53:19]wFMCommunicate OK [23:53:19]wFMCommunicate request_size=4 [23:53:19]MH_SAM_APDU [23:53:19]CAPDU: 80 0D 03 02 [23:53:19]Write to MH i2c: E2 08 00 4D 5A 80 0D 03 02 00 00 00 00 22 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 0B 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 0B 00 4D 5A 00 84 12 25 F1 93 50 B9 C2 90 00 2D [23:53:19]RAPDU: 84 12 25 F1 93 50 B9 C2 90 00 [23:53:19]wFMCommunicate OK [23:53:19]SAM_PROTO_SignData done [23:53:19]FM_MakeSignedData done [23:53:19]CreateOFDProtocolMessage [23:53:19]wFMCommunicate request_size=4 [23:53:19]MH_SAM_APDU [23:53:19]CAPDU: 80 11 00 00 [23:53:19]Write to MH i2c: E2 08 00 4E 5A 80 11 00 00 00 00 00 00 22 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 17 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 17 00 4E 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 72 [23:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:53:19]wFMCommunicate OK [23:53:19]CreateOFDProtocolMessage done [23:53:19]OFDSenderStorePacket 95302 [23:53:19]StoreOFDPacket docnum=95302 [23:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 5A 2D 07 01 5E 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 F5 EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 46 74 01 00 35 04 06 00 11 F9 02 34 5C 3F 84 12 25 F1 93 50 B9 C2 [23:53:19]CheckFolder [23:53:19]dirname=/storage/ofd_packets [23:53:19]CheckFolder done [23:53:19]ProducePacketName [23:53:19]name=ofd_packets/00095302 [23:53:19]NVStorageSaveData ofd_packets/00095302 [23:53:19]File name is /storage/ofd_packets/00095302 [23:53:19]Write 301 bytes [23:53:19]NVStorageSaveData done [23:53:19]OFDSenderStorePacket done [23:53:19]KKMCreateOFDPacket done [23:53:19]NVStorageSaveData kkm_last_timestamp [23:53:19]File name is /storage/kkm_last_timestamp [23:53:19]Write 4 bytes [23:53:19]NVStorageSaveData done [23:53:19]ExternCall_PrintAddStr [23:53:19]wPrintStart [23:53:19]Write to MH i2c: 01 00 00 4F 5A A9 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: 01 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: 01 07 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: 01 07 00 4F 5A 00 80 00 00 00 FF 0F 3E [23:53:19]RasterBufferAndPrint [23:53:19]line Счет N : (1)196277 [23:53:19]line ИНН: 02508201610067 [23:53:19]line Контрольно-Кассовый Чек [23:53:19]line ПРОДАЖА [23:53:19]line ТРК (МРК, ГНК) : 32 [23:53:19]line Товар: 2710124130 [23:53:19]line Аи-92-К-5 [23:53:19]line 7.950 * 62.90 [23:53:19]line = 500.06 [23:53:19]line НДС 12% НСП 1% [23:53:19]line > о реализуемом товаре [23:53:19]line ОКРУГЛЕНИЕ: -0.06 [23:53:19]line ИТОГО: 500.00 [23:53:19]line Внесено: 500.00 [23:53:19]line СДАЧА: 0.00 [23:53:19]line НСП 1% : 4.42 [23:53:19]line НДС 12% : 53.10 [23:53:19]line Наличными: 500.00 [23:53:19]line Безнал.: 0.00 [23:53:19]line Место: АЗС № 6 "Партнер Нефть" [23:53:19]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:53:19]line СНО: Общий режим [23:53:19]line Чек 232 12.03.2024 23:53 [23:53:19]line Смена: 327 ФФД: 1.0 [23:53:19]line ЗНМ: 0300000009 [23:53:19]line РНМ: 0000000000090555 [23:53:19]line Версия ККМ: 001 [23:53:19]line ФМ: 0000000000874811 [23:53:19]line ФД: 95302 [23:53:19]line ФПД: 19761181514815 [23:53:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T235325&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95302&fm=19761181514815&tin=02508201610067®Number=0000000000090555&sum=50000 [23:53:20]OFD Sender: Processing packet 95302 [packets to send 30, broken 29] [23:53:20]ProducePacketName [23:53:20]name=ofd_packets/00095302 [23:53:20]OFD Sender: To server: pG, [23:53:20]CommunicateWithHost lk.salyk.kg:30040 [23:53:20]ConnectInit lk.salyk.kg [23:53:20]written 0, free lines is 4095 [23:53:20]Connected sock=9 [23:53:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 5A 2D 07 01 5E 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 F5 EA F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 46 74 01 00 35 04 06 00 11 F9 02 34 5C 3F 84 12 25 F1 93 50 B9 C2 [23:53:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 7B 74 47 00 75 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 46 74 01 00 F4 03 04 00 4A 96 F0 65 B6 04 01 00 00 76 17 65 4A 74 95 F7 6F [23:53:20]CommunicateWithHost err = 0 [23:53:20]CheckOFDResponse [23:53:20]1017 (14) - 77093643461234 [23:53:20]1041 (16) - 0000000000874811 [23:53:20]1040 (4) - 95302 [23:53:20]1012 (4) - 12.03.2024 17:52 [23:53:20]1206 (1) - 0 [23:53:20]OFD Sender: Remove packet 95302 [23:53:20]ProducePacketName [23:53:20]name=ofd_packets/00095302 [23:53:20]NVStorageDeleteData [23:53:20]Write to MH i2c: 01 00 00 7A 5A D4 [23:53:20]Write i2c OK [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: 01 [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: 01 07 00 [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: 01 07 00 7A 5A 00 80 00 00 00 5E 0D C6 [23:53:20]RasterBufferAndPrint [23:53:20]line [23:53:20]line [23:53:20]line [23:53:20]line [23:53:20]line [23:53:20]written 0, free lines is 3430 [23:53:20]process_action close_receipt done [23:53:20]requested_data is exist [23:53:20]produce_requested_data [23:53:20]requested_item fm.sn is exist - process it [23:53:20]wFMCommunicate request_size=4 [23:53:20]MH_SAM_APDU [23:53:20]CAPDU: 80 11 00 00 [23:53:20]Write to MH i2c: E2 08 00 81 5A 80 11 00 00 00 00 00 00 55 [23:53:20]Write i2c OK [23:53:20]MH_I2C_Read... [23:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:20]Read from MH i2c: E2 [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: E2 17 00 [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: E2 17 00 81 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A5 [23:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:53:20]wFMCommunicate OK [23:53:20]requested_item fd.num is exist - process it [23:53:20]SAM_PROTO_GetFieldsCounters [23:53:20]wFMCommunicate request_size=4 [23:53:20]MH_SAM_APDU [23:53:20]CAPDU: 80 13 00 00 [23:53:20]Write to MH i2c: E2 08 00 82 5A 80 13 00 00 00 00 00 00 58 [23:53:20]Write i2c OK [23:53:20]MH_I2C_Read... [23:53:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:20]Read from MH i2c: E2 [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: E2 62 00 [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: E2 62 00 82 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 46 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [23:53:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 46 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:53:20]wFMCommunicate OK [23:53:20]SAM_PROTO_GetFieldsCounters done [23:53:20]requested_item shift.num is exist - process it [23:53:20]requested_item shift.opened is exist - process it [23:53:20]req_shift_opened [23:53:20]FM_GetShiftState [23:53:20]SAM_PROTO_GetShiftState [23:53:20]wFMCommunicate request_size=4 [23:53:20]MH_SAM_APDU [23:53:20]CAPDU: 80 13 01 00 [23:53:20]Write to MH i2c: E2 08 00 83 5A 80 13 01 00 00 00 00 00 5A [23:53:20]Write i2c OK [23:53:20]MH_I2C_Read... [23:53:20]OFD Sender: No OFD packet to send [23:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:20]Read from MH i2c: E2 [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: E2 0E 00 [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: E2 0E 00 83 5A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 CE [23:53:20]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:53:20]wFMCommunicate OK [23:53:20]SAM_PROTO_GetShiftState done [23:53:20]FM_GetShiftState done [23:53:20]req_shift_opened done [23:53:20]requested_item shift.open_date is exist - process it [23:53:20]req_shift_open_date [23:53:20]req_shift_open_date done [23:53:20]produce_requested_data done [23:53:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95302,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [23:53:20]process_action_free close_receipt [23:53:20]json_value_free [23:53:20]json_value_free done [23:53:20]process_json_proto returns [23:53:20]Send response to host [23:53:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95302,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [23:53:20]free response buf [23:53:20]execute_script done [23:53:20]execute_script returns [23:53:20]free content buf [23:53:20]Sock 12.Close socket [23:53:20]Sock 12.Thread stoped [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:26]accept exits with 8 [23:54:26]New connection [23:54:26]New thread 3066813796 created [23:54:26]Thread 3066957156 joined [23:54:26]Waiting for new connection... [23:54:26] Sock 8.Parse request [23:54:26]Sock 8.Check first char [23:54:26]Sock 8.First char is OK [23:54:26]request: POST /json_proto HTTP/1.0 [23:54:26]Method: POST [23:54:26]URL: /json_proto [23:54:26]Method is POST - this is cgi request [23:54:26]url: /json_proto [23:54:26]query_string will be loaded in cgi processing [23:54:26]execute_cgi json_proto POST (null) [23:54:26]execute_cgi path=json_proto method=POST [23:54:26]POST find Content-Length [23:54:26]Host: 172.17.62.67:8080 [23:54:26]Content-Length: 682 [23:54:26]Content-Type: application/json [23:54:26] [23:54:26]POST finish read [23:54:26]Found Content-Length = 682 [23:54:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:26]execute_script... [23:54: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)196278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:26]POST & json_proto [23:54:26]process_json_proto [23:54:26]json parsed OK: [23:54:26]protocol is kg_v1.0 [23:54:26]action value=close_receipt [23:54:26]process_action close_receipt [23:54:26]cmd_close_receipt [23:54:26]MH_GetDate [23:54:26]Write to MH i2c: F0 00 00 84 5A CD [23:54:26]Write i2c OK [23:54:26]MH_I2C_Read... [23:54:26]Read from MH i2c: F0 [23:54:26]MH_I2C_Read... [23:54:26]Read from MH i2c: F0 05 00 [23:54:26]MH_I2C_Read... [23:54:26]Read from MH i2c: F0 05 00 84 5A 00 3A EB F0 65 4C [23:54:26]GetLastDocTimeStamp 1710287605 [23:54:26]current date 1710287674 [23:54:26]FM_GetShiftState [23:54:26]SAM_PROTO_GetShiftState [23:54:26]wFMCommunicate request_size=4 [23:54:26]MH_SAM_APDU [23:54:26]CAPDU: 80 13 01 00 [23:54:26]Write to MH i2c: E2 08 00 85 5A 80 13 01 00 00 00 00 00 5C [23:54:26]Write i2c OK [23:54:26]MH_I2C_Read... [23:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:26]Read from MH i2c: E2 [23:54:26]MH_I2C_Read... [23:54:26]Read from MH i2c: E2 0E 00 [23:54:26]MH_I2C_Read... [23:54:26]Read from MH i2c: E2 0E 00 85 5A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D0 [23:54:26]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:54:26]wFMCommunicate OK [23:54:26]SAM_PROTO_GetShiftState done [23:54:26]FM_GetShiftState done [23:54:26]opened in 1710201976 [23:54:26]opened+sec_in_day 1710288376 [23:54:26]quantity*price = 100010 [23:54:26]sum+1 = 100012 [23:54:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 233 12.03.2024 23:54 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95303 ФПД: 108491673149845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T235434&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95303&fm=108491673149845&tin=02508201610067®Number=0000000000090555&sum=100000 [23:54:27]StoreToDocumentArchive [23:54:27]shift 327 fd 95303 [23:54:27]save to /storage/0327/doc_00095303 [23:54:27]save last doc name /storage/0327/doc_00095303 to /storage/kkm_last_doc_name [23:54:27]save OK [23:54:27]Clear old archive folders... [23:54:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:54:27]tlvbuf is 01B36DC0 [23:54:27]SAM_PROTO_ClearQueue [23:54:27]wFMCommunicate request_size=4 [23:54:27]MH_SAM_APDU [23:54:27]CAPDU: 80 09 00 00 [23:54:27]Write to MH i2c: E2 08 00 92 5A 80 09 00 00 00 00 00 00 5E [23:54:27]Write i2c OK [23:54:27]MH_I2C_Read... [23:54:27]Read from MH i2c: E2 [23:54:27]MH_I2C_Read... [23:54:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:27]Read from MH i2c: E2 03 00 [23:54:27]MH_I2C_Read... [23:54:27]Read from MH i2c: E2 03 00 92 5A 00 90 00 60 [23:54:27]RAPDU: 90 00 [23:54:27]wFMCommunicate OK [23:54:27]SAM_PROTO_ClearQueue done [23:54:27]KKMCreateOFDPacket [23:54:27]OFDProtocolAddRootSTLVToBuf [23:54:27]FM_MakeSignedData [23:54:27]FM_MakeSignedData [23:54:27]SAM_PROTO_SignData [23:54:27]wFMCommunicate request_size=4 [23:54:27]MH_SAM_APDU [23:54:27]CAPDU: 80 0D 01 02 [23:54:27]Write to MH i2c: E2 08 00 93 5A 80 0D 01 02 00 00 00 00 66 [23:54:27]Write i2c OK [23:54:27]MH_I2C_Read... [23:54:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:27]Read from MH i2c: E2 [23:54:27]MH_I2C_Read... [23:54:27]Read from MH i2c: E2 03 00 [23:54:27]MH_I2C_Read... [23:54:27]Read from MH i2c: E2 03 00 93 5A 00 90 00 61 [23:54:27]RAPDU: 90 00 [23:54:27]wFMCommunicate OK [23:54:27]wFMCommunicate request_size=255 [23:54:27]MH_SAM_APDU [23:54: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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 3A EB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 47 74 01 00 35 04 06 00 62 [23:54:27]Write to MH i2c: E2 02 01 94 5A 80 0D 02 02 FA 00 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 3A EB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 47 74 01 00 35 04 06 00 62 00 00 86 [23:54:27]Write i2c OK [23:54:27]MH_I2C_Read... [23:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:27]Read from MH i2c: E2 [23:54:27]MH_I2C_Read... [23:54:27]Read from MH i2c: E2 03 00 [23:54:27]MH_I2C_Read... [23:54:27]Read from MH i2c: E2 03 00 94 5A 00 90 00 62 [23:54:27]RAPDU: 90 00 [23:54:27]wFMCommunicate OK [23:54:27]wFMCommunicate request_size=10 [23:54:27]MH_SAM_APDU [23:54:27]CAPDU: 80 0D 02 02 05 AC 2F A3 A1 95 [23:54:27]Write to MH i2c: E2 0D 00 95 5A 80 0D 02 02 05 00 AC 2F A3 A1 95 00 00 27 [23:54:27]Write i2c OK [23:54:27]MH_I2C_Read... [23:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:27]Read from MH i2c: E2 [23:54:27]MH_I2C_Read... [23:54:27]Read from MH i2c: E2 03 00 [23:54:27]MH_I2C_Read... [23:54:27]Read from MH i2c: E2 03 00 95 5A 00 90 00 63 [23:54:27]RAPDU: 90 00 [23:54:27]wFMCommunicate OK [23:54:27]wFMCommunicate request_size=4 [23:54:27]MH_SAM_APDU [23:54:27]CAPDU: 80 0D 03 02 [23:54:27]Write to MH i2c: E2 08 00 96 5A 80 0D 03 02 00 00 00 00 6B [23:54:27]Write i2c OK [23:54:27]MH_I2C_Read... [23:54:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:27]Read from MH i2c: E2 [23:54:27]MH_I2C_Read... [23:54:27]Read from MH i2c: E2 0B 00 [23:54:27]MH_I2C_Read... [23:54:27]Read from MH i2c: E2 0B 00 96 5A 00 24 80 8A 1C 04 D0 15 85 90 00 24 [23:54:27]RAPDU: 24 80 8A 1C 04 D0 15 85 90 00 [23:54:27]wFMCommunicate OK [23:54:27]SAM_PROTO_SignData done [23:54:27]FM_MakeSignedData done [23:54:27]CreateOFDProtocolMessage [23:54:27]wFMCommunicate request_size=4 [23:54:27]MH_SAM_APDU [23:54:27]CAPDU: 80 11 00 00 [23:54:27]Write to MH i2c: E2 08 00 97 5A 80 11 00 00 00 00 00 00 6B [23:54:27]Write i2c OK [23:54:27]MH_I2C_Read... [23:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:27]Read from MH i2c: E2 [23:54:27]MH_I2C_Read... [23:54:27]Read from MH i2c: E2 17 00 [23:54:27]MH_I2C_Read... [23:54:27]Read from MH i2c: E2 17 00 97 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BB [23:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:54:27]wFMCommunicate OK [23:54:27]CreateOFDProtocolMessage done [23:54:27]OFDSenderStorePacket 95303 [23:54:27]StoreOFDPacket docnum=95303 [23:54:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E7 8E 07 01 37 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 3A EB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 47 74 01 00 35 04 06 00 62 AC 2F A3 A1 95 24 80 8A 1C 04 D0 15 85 [23:54:27]CheckFolder [23:54:27]dirname=/storage/ofd_packets [23:54:27]CheckFolder done [23:54:27]ProducePacketName [23:54:27]name=ofd_packets/00095303 [23:54:27]NVStorageSaveData ofd_packets/00095303 [23:54:27]File name is /storage/ofd_packets/00095303 [23:54:27]Write 301 bytes [23:54:27]NVStorageSaveData done [23:54:27]OFDSenderStorePacket done [23:54:27]KKMCreateOFDPacket done [23:54:27]NVStorageSaveData kkm_last_timestamp [23:54:27]File name is /storage/kkm_last_timestamp [23:54:27]Write 4 bytes [23:54:27]NVStorageSaveData done [23:54:27]ExternCall_PrintAddStr [23:54:27]wPrintStart [23:54:27]Write to MH i2c: 01 00 00 98 5A F2 [23:54:27]Write i2c OK [23:54:27]MH_I2C_Read... [23:54:27]Read from MH i2c: 01 [23:54:27]MH_I2C_Read... [23:54:27]Read from MH i2c: 01 07 00 [23:54:27]MH_I2C_Read... [23:54:27]Read from MH i2c: 01 07 00 98 5A 00 80 00 00 00 FF 0F 87 [23:54:27]RasterBufferAndPrint [23:54:27]line Счет N : (1)196278 [23:54:27]line ИНН: 02508201610067 [23:54:27]line Контрольно-Кассовый Чек [23:54:27]line ПРОДАЖА [23:54:27]line ТРК (МРК, ГНК) : 11 [23:54:27]line Товар: 2710124500 [23:54:27]line Аи-95-К-5 [23:54:27]line 14.390 * 69.50 [23:54:27]line = 1000.11 [23:54:27]line НДС 12% НСП 1% [23:54:27]line > о реализуемом товаре [23:54:27]line ОКРУГЛЕНИЕ: -0.11 [23:54:27]line ИТОГО: 1000.00 [23:54:27]line Внесено: 1000.00 [23:54:27]line СДАЧА: 0.00 [23:54:27]line НСП 1% : 8.85 [23:54:27]line НДС 12% : 106.21 [23:54:27]line Наличными: 1000.00 [23:54:27]line Безнал.: 0.00 [23:54:27]line Место: АЗС № 6 "Партнер Нефть" [23:54:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:54:27]line СНО: Общий режим [23:54:27]line Чек 233 12.03.2024 23:54 [23:54:27]line Смена: 327 ФФД: 1.0 [23:54:27]line ЗНМ: 0300000009 [23:54:27]line РНМ: 0000000000090555 [23:54:27]line Версия ККМ: 001 [23:54:27]line ФМ: 0000000000874811 [23:54:27]line ФД: 95303 [23:54:27]line ФПД: 108491673149845 [23:54:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T235434&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95303&fm=108491673149845&tin=02508201610067®Number=0000000000090555&sum=100000 [23:54:28]OFD Sender: Processing packet 95303 [packets to send 30, broken 29] [23:54:28]ProducePacketName [23:54:28]name=ofd_packets/00095303 [23:54:28]OFD Sender: To server: pG, [23:54:28]CommunicateWithHost lk.salyk.kg:30040 [23:54:28]ConnectInit lk.salyk.kg [23:54:28]written 0, free lines is 4095 [23:54:28]Connected sock=10 [23:54:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E7 8E 07 01 37 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 3A EB F0 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 47 74 01 00 35 04 06 00 62 AC 2F A3 A1 95 24 80 8A 1C 04 D0 15 85 [23:54:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 85 EC 47 00 75 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 47 74 01 00 F4 03 04 00 8E 96 F0 65 B6 04 01 00 00 C2 E5 E9 BA 43 80 7F EF [23:54:28]CommunicateWithHost err = 0 [23:54:28]CheckOFDResponse [23:54:28]1017 (14) - 77093643461234 [23:54:28]1041 (16) - 0000000000874811 [23:54:28]1040 (4) - 95303 [23:54:28]1012 (4) - 12.03.2024 17:53 [23:54:28]1206 (1) - 0 [23:54:28]OFD Sender: Remove packet 95303 [23:54:28]ProducePacketName [23:54:28]name=ofd_packets/00095303 [23:54:28]NVStorageDeleteData [23:54:28]Write to MH i2c: 01 00 00 C3 5A 1D [23:54:28]Write i2c OK [23:54:28]MH_I2C_Read... [23:54:28]Read from MH i2c: 01 [23:54:28]MH_I2C_Read... [23:54:28]Read from MH i2c: 01 07 00 [23:54:28]MH_I2C_Read... [23:54:28]Read from MH i2c: 01 07 00 C3 5A 00 80 00 00 00 51 0D 02 [23:54:28]RasterBufferAndPrint [23:54:28]line [23:54:28]line [23:54:28]line [23:54:28]line [23:54:28]line [23:54:28]written 0, free lines is 3417 [23:54:28]process_action close_receipt done [23:54:28]requested_data is exist [23:54:28]produce_requested_data [23:54:28]requested_item fm.sn is exist - process it [23:54:28]wFMCommunicate request_size=4 [23:54:28]MH_SAM_APDU [23:54:28]CAPDU: 80 11 00 00 [23:54:28]Write to MH i2c: E2 08 00 CA 5A 80 11 00 00 00 00 00 00 9E [23:54:28]Write i2c OK [23:54:28]MH_I2C_Read... [23:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:28]Read from MH i2c: E2 [23:54:28]MH_I2C_Read... [23:54:28]Read from MH i2c: E2 17 00 [23:54:28]MH_I2C_Read... [23:54:28]Read from MH i2c: E2 17 00 CA 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EE [23:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:54:28]wFMCommunicate OK [23:54:28]requested_item fd.num is exist - process it [23:54:28]SAM_PROTO_GetFieldsCounters [23:54:28]wFMCommunicate request_size=4 [23:54:28]MH_SAM_APDU [23:54:28]CAPDU: 80 13 00 00 [23:54:28]Write to MH i2c: E2 08 00 CB 5A 80 13 00 00 00 00 00 00 A1 [23:54:28]Write i2c OK [23:54:28]MH_I2C_Read... [23:54:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:28]Read from MH i2c: E2 [23:54:28]MH_I2C_Read... [23:54:28]Read from MH i2c: E2 62 00 [23:54:28]MH_I2C_Read... [23:54:28]Read from MH i2c: E2 62 00 CB 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 47 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [23:54:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 47 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:28]wFMCommunicate OK [23:54:28]SAM_PROTO_GetFieldsCounters done [23:54:28]requested_item shift.num is exist - process it [23:54:28]requested_item shift.opened is exist - process it [23:54:28]req_shift_opened [23:54:28]FM_GetShiftState [23:54:28]SAM_PROTO_GetShiftState [23:54:28]wFMCommunicate request_size=4 [23:54:28]MH_SAM_APDU [23:54:28]CAPDU: 80 13 01 00 [23:54:28]Write to MH i2c: E2 08 00 CC 5A 80 13 01 00 00 00 00 00 A3 [23:54:28]Write i2c OK [23:54:28]MH_I2C_Read... [23:54:29]OFD Sender: No OFD packet to send [23:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:29]Read from MH i2c: E2 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 0E 00 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 0E 00 CC 5A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 17 [23:54:29]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [23:54:29]wFMCommunicate OK [23:54:29]SAM_PROTO_GetShiftState done [23:54:29]FM_GetShiftState done [23:54:29]req_shift_opened done [23:54:29]requested_item shift.open_date is exist - process it [23:54:29]req_shift_open_date [23:54:29]req_shift_open_date done [23:54:29]produce_requested_data done [23:54:29]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95303,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [23:54:29]process_action_free close_receipt [23:54:29]json_value_free [23:54:29]json_value_free done [23:54:29]process_json_proto returns [23:54:29]Send response to host [23:54:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95303,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [23:54:29]free response buf [23:54:29]execute_script done [23:54:29]execute_script returns [23:54:29]free content buf [23:54:29]Sock 8.Close socket [23:54:29]Sock 8.Thread stoped [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:24]OFD Sender: No OFD packet to send [23:58:13]ConnectInit Can't connect to host [23:58:13]Write to MH i2c: 01 00 00 ED 5A 47 [23:58:13]Write i2c OK [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: 01 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: 01 07 00 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: 01 07 00 ED 5A 00 83 00 00 00 FF 0F DF [23:58:13]state=3 [23:58:13]No paper [23:58:13]Cover opened [23:58:14]OFD Sender: No OFD packet to send [23:58:18]Write to MH i2c: 01 00 00 EE 5A 48 [23:58:18]Write i2c OK [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: 01 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: 01 07 00 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: 01 07 00 EE 5A 00 83 00 00 00 FF 0F E0 [23:58:18]state=3 [23:58:18]No paper [23:58:18]Cover opened [23:58:19]OFD Sender: No OFD packet to send [23:58:23]Write to MH i2c: 01 00 00 EF 5A 49 [23:58:23]Write i2c OK [23:58:23]MH_I2C_Read... [23:58:23]Read from MH i2c: 01 [23:58:23]MH_I2C_Read... [23:58:23]Read from MH i2c: 01 07 00 [23:58:23]MH_I2C_Read... [23:58:23]Read from MH i2c: 01 07 00 EF 5A 00 83 00 00 00 FF 0F E1 [23:58:23]state=3 [23:58:23]No paper [23:58:23]Cover opened [23:58:24]OFD Sender: No OFD packet to send [23:58:28]Write to MH i2c: 01 00 00 F0 5A 4A [23:58:28]Write i2c OK [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: 01 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: 01 07 00 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: 01 07 00 F0 5A 00 83 00 00 00 FF 0F E2 [23:58:28]state=3 [23:58:28]No paper [23:58:28]Cover opened [23:58:29]OFD Sender: No OFD packet to send [23:58:33]Write to MH i2c: 01 00 00 F1 5A 4B [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: 01 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: 01 07 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: 01 07 00 F1 5A 00 83 00 00 00 FF 0F E3 [23:58:33]state=3 [23:58:33]No paper [23:58:33]Cover opened [23:58:34]OFD Sender: No OFD packet to send [23:58:35]recv_with_timeout no data received [23:58:38]Write to MH i2c: 01 00 00 F2 5A 4C [23:58:38]Write i2c OK [23:58:38]MH_I2C_Read... [23:58:38]Read from MH i2c: 01 [23:58:38]MH_I2C_Read... [23:58:38]Read from MH i2c: 01 07 00 [23:58:38]MH_I2C_Read... [23:58:38]Read from MH i2c: 01 07 00 F2 5A 00 83 00 00 00 FF 0F E4 [23:58:38]state=3 [23:58:38]No paper [23:58:38]Cover opened [23:58:39]OFD Sender: No OFD packet to send [23:58:43]Write to MH i2c: 01 00 00 F3 5A 4D [23:58:43]Write i2c OK [23:58:43]MH_I2C_Read... [23:58:43]Read from MH i2c: 01 [23:58:43]MH_I2C_Read... [23:58:43]Read from MH i2c: 01 07 00 [23:58:43]MH_I2C_Read... [23:58:43]Read from MH i2c: 01 07 00 F3 5A 00 83 00 00 00 FF 0F E5 [23:58:43]state=3 [23:58:43]No paper [23:58:43]Cover opened [23:58:44]OFD Sender: No OFD packet to send [23:58:45]recv_with_timeout no data received [23:58:48]Write to MH i2c: 01 00 00 F4 5A 4E [23:58:48]Write i2c OK [23:58:48]MH_I2C_Read... [23:58:48]Read from MH i2c: 01 [23:58:48]MH_I2C_Read... [23:58:48]Read from MH i2c: 01 07 00 [23:58:48]MH_I2C_Read... [23:58:48]Read from MH i2c: 01 07 00 F4 5A 00 83 00 00 00 FF 0F E6 [23:58:48]state=3 [23:58:48]No paper [23:58:48]Cover opened [23:58:49]OFD Sender: No OFD packet to send [23:58:53]Write to MH i2c: 01 00 00 F5 5A 4F [23:58:53]Write i2c OK [23:58:53]MH_I2C_Read... [23:58:53]Read from MH i2c: 01 [23:58:53]MH_I2C_Read... [23:58:53]Read from MH i2c: 01 07 00 [23:58:53]MH_I2C_Read... [23:58:53]Read from MH i2c: 01 07 00 F5 5A 00 83 00 00 00 FF 0F E7 [23:58:53]state=3 [23:58:53]No paper [23:58:53]Cover opened [23:58:54]OFD Sender: No OFD packet to send [23:58:58]Write to MH i2c: 01 00 00 F6 5A 50 [23:58:58]Write i2c OK [23:58:58]MH_I2C_Read... [23:58:58]Read from MH i2c: 01 [23:58:58]MH_I2C_Read... [23:58:58]Read from MH i2c: 01 07 00 [23:58:58]MH_I2C_Read... [23:58:58]Read from MH i2c: 01 07 00 F6 5A 00 83 00 00 00 FF 0F E8 [23:58:58]state=3 [23:58:58]No paper [23:58:58]Cover opened [23:58:59]OFD Sender: No OFD packet to send [23:58:59]int [23:58:59]Write to MH i2c: 01 00 00 F7 5A 51 [23:58:59]Write i2c OK [23:58:59]MH_I2C_Read... [23:58:59]Read from MH i2c: 01 [23:58:59]MH_I2C_Read... [23:58:59]Read from MH i2c: 01 07 00 [23:58:59]MH_I2C_Read... [23:58:59]Read from MH i2c: 01 07 00 F7 5A 00 81 00 00 00 FF 0F E7 [23:58:59]state=3 [23:58:59]No paper [23:58:59]Cover closed [23:58:59]int [23:58:59]Write to MH i2c: 01 00 00 F8 5A 52 [23:58:59]Write i2c OK [23:58:59]MH_I2C_Read... [23:58:59]Read from MH i2c: 01 [23:58:59]MH_I2C_Read... [23:58:59]Read from MH i2c: 01 07 00 [23:58:59]MH_I2C_Read... [23:58:59]Read from MH i2c: 01 07 00 F8 5A 00 80 00 00 00 FF 0F E7 [23:58:59]state=0 [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:09]accept exits with 8 [00:00:09]New connection [00:00:09]New thread 3066813796 created [00:00:09]Thread 3066957156 joined [00:00:09]Waiting for new connection... [00:00:09] Sock 8.Parse request [00:00:09]Sock 8.Check first char [00:00:09]Sock 8.First char is OK [00:00:09]request: POST /json_proto HTTP/1.0 [00:00:09]Method: POST [00:00:09]URL: /json_proto [00:00:09]Method is POST - this is cgi request [00:00:09]url: /json_proto [00:00:09]query_string will be loaded in cgi processing [00:00:09]execute_cgi json_proto POST (null) [00:00:09]execute_cgi path=json_proto method=POST [00:00:09]POST find Content-Length [00:00:09]Host: 172.17.62.67:8080 [00:00:09]Content-Length: 215 [00:00:09]Content-Type: application/json [00:00:09] [00:00:09]POST finish read [00:00:09]Found Content-Length = 215 [00:00:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:09]execute_script... [00:00:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:09]POST & json_proto [00:00:09]process_json_proto [00:00:09]json parsed OK: [00:00:09]protocol is kg_v1.0 [00:00:09]action value=get_value [00:00:09]process_action get_value [00:00:09]cmd_get_value [00:00:09]process_action get_value done [00:00:09]requested_data is exist [00:00:09]produce_requested_data [00:00:09]requested_item kkm.sn is exist - process it [00:00:09]requested_item kkm.ver is exist - process it [00:00:09]requested_item fm.sn is exist - process it [00:00:09]wFMCommunicate request_size=4 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 11 00 00 [00:00:09]Write to MH i2c: E2 08 00 F9 5A 80 11 00 00 00 00 00 00 CD [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 17 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 17 00 F9 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1D [00:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:00:09]wFMCommunicate OK [00:00:09]requested_item fd.num is exist - process it [00:00:09]SAM_PROTO_GetFieldsCounters [00:00:09]wFMCommunicate request_size=4 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 13 00 00 [00:00:09]Write to MH i2c: E2 08 00 FA 5A 80 13 00 00 00 00 00 00 D0 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 62 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 62 00 FA 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 47 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [00:00:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 47 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:09]wFMCommunicate OK [00:00:09]SAM_PROTO_GetFieldsCounters done [00:00:09]requested_item shift.num is exist - process it [00:00:09]requested_item shift.opened is exist - process it [00:00:09]req_shift_opened [00:00:09]FM_GetShiftState [00:00:09]SAM_PROTO_GetShiftState [00:00:09]wFMCommunicate request_size=4 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 13 01 00 [00:00:09]Write to MH i2c: E2 08 00 FB 5A 80 13 01 00 00 00 00 00 D2 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 0E 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 0E 00 FB 5A 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 46 [00:00:09]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:00:09]wFMCommunicate OK [00:00:09]SAM_PROTO_GetShiftState done [00:00:09]FM_GetShiftState done [00:00:09]req_shift_opened done [00:00:09]requested_item shift.open_date is exist - process it [00:00:09]req_shift_open_date [00:00:09]req_shift_open_date done [00:00:09]produce_requested_data done [00:00:09]produce_requested_data return {"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95303,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [00:00:09]process_action_free get_value [00:00:09]json_value_free [00:00:09]json_value_free done [00:00:09]process_json_proto returns [00:00:09]Send response to host [00:00:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95303,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [00:00:09]free response buf [00:00:09]execute_script done [00:00:09]execute_script returns [00:00:09]free content buf [00:00:09]Sock 8.Close socket [00:00:09]Sock 8.Thread stoped [00:00:09]accept exits with 9 [00:00:09]New connection [00:00:09]New thread 3066957156 created [00:00:09]Thread 3066813796 joined [00:00:09]Waiting for new connection... [00:00:09] Sock 9.Parse request [00:00:09]Sock 9.Check first char [00:00:09]Sock 9.First char is OK [00:00:09]request: POST /json_proto HTTP/1.0 [00:00:09]Method: POST [00:00:09]URL: /json_proto [00:00:09]Method is POST - this is cgi request [00:00:09]url: /json_proto [00:00:09]query_string will be loaded in cgi processing [00:00:09]execute_cgi json_proto POST (null) [00:00:09]execute_cgi path=json_proto method=POST [00:00:09]POST find Content-Length [00:00:09]Host: 172.17.62.67:8080 [00:00:09]Content-Length: 331 [00:00:09]Content-Type: application/json [00:00:09] [00:00:09]POST finish read [00:00:09]Found Content-Length = 331 [00:00:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:09]execute_script... [00:00:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:10]POST & json_proto [00:00:10]process_json_proto [00:00:10]json parsed OK: [00:00:10]protocol is kg_v1.0 [00:00:10]action value=get_value [00:00:10]process_action get_value [00:00:10]cmd_get_value [00:00:10]process_action get_value done [00:00:10]requested_data is exist [00:00:10]produce_requested_data [00:00:10]requested_item fm.sale.total is exist - process it [00:00:10]SAM_PROTO_GetFMData [00:00:10]wFMCommunicate request_size=4 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 13 03 00 [00:00:10]Write to MH i2c: E2 08 00 FC 5A 80 13 03 00 00 00 00 00 D5 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 FD 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 FD 00 FC 5A 00 C8 04 85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 90 00 C1 [00:00:10]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 90 00 [00:00:10]wFMCommunicate OK [00:00:10]wFMCommunicate request_size=4 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 17 00 00 [00:00:10]Write to MH i2c: E2 08 00 FD 5A 80 17 00 00 00 00 00 00 D7 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 FD 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 FD 00 FD 5A 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 94 [00:00:10]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [00:00:10]wFMCommunicate OK [00:00:10]wFMCommunicate request_size=4 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 17 00 00 [00:00:10]Write to MH i2c: E2 08 00 FE 5A 80 17 00 00 00 00 00 00 D8 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 FD 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 FD 00 FE 5A 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 B0 [00:00:10]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 17 00 00 [00:00:11]Write to MH i2c: E2 08 00 FF 5A 80 17 00 00 00 00 00 00 D9 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 FD 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 FD 00 FF 5A 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 51 [00:00:11]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 17 00 00 [00:00:11]Write to MH i2c: E2 08 00 00 5B 80 17 00 00 00 00 00 00 DB [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 E5 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 E5 00 00 5B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BF [00:00:11]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:11]wFMCommunicate OK [00:00:11]SAM_PROTO_GetFMData done [00:00:11]requested_item fm.sale_refund.total is exist - process it [00:00:11]requested_item fm.buy.total is exist - process it [00:00:11]requested_item shift.sale.total is exist - process it [00:00:11]SAM_PROTO_GetShiftData [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 13 02 00 [00:00:11]Write to MH i2c: E2 08 00 01 5B 80 13 02 00 00 00 00 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 FD 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 FD 00 01 5B 00 BA 04 AA 04 B6 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B0 36 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 70 04 03 00 6C 18 12 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 02 EC 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 67 [00:00:11]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B0 36 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 70 04 03 00 6C 18 12 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 02 EC 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 17 00 00 [00:00:11]Write to MH i2c: E2 08 00 02 5B 80 17 00 00 00 00 00 00 DD [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 FD 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 FD 00 02 5B 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FF 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AE [00:00:12]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FF 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:00:12]wFMCommunicate OK [00:00:12]wFMCommunicate request_size=4 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 17 00 00 [00:00:12]Write to MH i2c: E2 08 00 03 5B 80 17 00 00 00 00 00 00 DE [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 FD 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 FD 00 03 5B 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A [00:00:12]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 [00:00:12]wFMCommunicate OK [00:00:12]wFMCommunicate request_size=4 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 17 00 00 [00:00:12]Write to MH i2c: E2 08 00 04 5B 80 17 00 00 00 00 00 00 DF [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 FD 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 FD 00 04 5B 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 57 [00:00:12]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 [00:00:12]wFMCommunicate OK [00:00:12]wFMCommunicate request_size=4 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 17 00 00 [00:00:12]Write to MH i2c: E2 08 00 05 5B 80 17 00 00 00 00 00 00 E0 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 D7 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 D7 00 05 5B 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 C3 [00:00:13]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 [00:00:13]wFMCommunicate OK [00:00:13]SAM_PROTO_GetShiftData done [00:00:13]requested_item shift.sale.total_cash is exist - process it [00:00:13]requested_item shift.sale_refund.total is exist - process it [00:00:13]requested_item shift.sale_refund.total_cash is exist - process it [00:00:13]requested_item shift.buy.total is exist - process it [00:00:13]requested_item shift.buy.total_cash is exist - process it [00:00:13]produce_requested_data done [00:00:13]produce_requested_data return {"fm.sale.total":72619360.03,"fm.sale_refund.total":5701125.60,"fm.buy.total":0.00,"shift.sale.total":163939.85,"shift.sale.total_cash":113959.00,"shift.sale_refund.total":11859.00,"shift.sale_refund.total_cash":11859.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:00:13]process_action_free get_value [00:00:13]json_value_free [00:00:13]json_value_free done [00:00:13]process_json_proto returns [00:00:13]Send response to host [00:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72619360.03,"fm.sale_refund.total":5701125.60,"fm.buy.total":0.00,"shift.sale.total":163939.85,"shift.sale.total_cash":113959.00,"shift.sale_refund.total":11859.00,"shift.sale_refund.total_cash":11859.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:00:13]free response buf [00:00:13]execute_script done [00:00:13]execute_script returns [00:00:13]free content buf [00:00:13]Sock 9.Close socket [00:00:13]Sock 9.Thread stoped [00:00:13]accept exits with 8 [00:00:13]New connection [00:00:13]New thread 3066813796 created [00:00:13]Thread 3066957156 joined [00:00:13]Waiting for new connection... [00:00:13] Sock 8.Parse request [00:00:13]Sock 8.Check first char [00:00:13]Sock 8.First char is OK [00:00:13]request: POST /json_proto HTTP/1.0 [00:00:13]Method: POST [00:00:13]URL: /json_proto [00:00:13]Method is POST - this is cgi request [00:00:13]url: /json_proto [00:00:13]query_string will be loaded in cgi processing [00:00:13]execute_cgi json_proto POST (null) [00:00:13]execute_cgi path=json_proto method=POST [00:00:13]POST find Content-Length [00:00:13]Host: 172.17.62.67:8080 [00:00:13]Content-Length: 331 [00:00:13]Content-Type: application/json [00:00:13] [00:00:13]POST finish read [00:00:13]Found Content-Length = 331 [00:00:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:13]execute_script... [00:00:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:13]POST & json_proto [00:00:13]process_json_proto [00:00:13]json parsed OK: [00:00:13]protocol is kg_v1.0 [00:00:13]action value=get_value [00:00:13]process_action get_value [00:00:13]cmd_get_value [00:00:13]process_action get_value done [00:00:13]requested_data is exist [00:00:13]produce_requested_data [00:00:13]requested_item fm.sale.total is exist - process it [00:00:13]SAM_PROTO_GetFMData [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 13 03 00 [00:00:13]Write to MH i2c: E2 08 00 06 5B 80 13 03 00 00 00 00 00 E0 [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 FD 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 FD 00 06 5B 00 C8 04 85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 90 00 CC [00:00:13]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 90 00 [00:00:13]wFMCommunicate OK [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 17 00 00 [00:00:13]Write to MH i2c: E2 08 00 07 5B 80 17 00 00 00 00 00 00 E2 [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 07 5B 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 9F [00:00:14]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [00:00:14]wFMCommunicate OK [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 17 00 00 [00:00:14]Write to MH i2c: E2 08 00 08 5B 80 17 00 00 00 00 00 00 E3 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]OFD Sender: No OFD packet to send [00:00:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 08 5B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 BB [00:00:14]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:00:14]wFMCommunicate OK [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 17 00 00 [00:00:14]Write to MH i2c: E2 08 00 09 5B 80 17 00 00 00 00 00 00 E4 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 09 5B 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 5C [00:00:14]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:00:14]wFMCommunicate OK [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 17 00 00 [00:00:14]Write to MH i2c: E2 08 00 0A 5B 80 17 00 00 00 00 00 00 E5 [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:00:15]Read from MH i2c: E2 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 E5 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 E5 00 0A 5B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C9 [00:00:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:15]wFMCommunicate OK [00:00:15]SAM_PROTO_GetFMData done [00:00:15]requested_item fm.sale_refund.total is exist - process it [00:00:15]requested_item fm.buy.total is exist - process it [00:00:15]requested_item shift.sale.total is exist - process it [00:00:15]SAM_PROTO_GetShiftData [00:00:15]wFMCommunicate request_size=4 [00:00:15]MH_SAM_APDU [00:00:15]CAPDU: 80 13 02 00 [00:00:15]Write to MH i2c: E2 08 00 0B 5B 80 13 02 00 00 00 00 00 E4 [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:15]Read from MH i2c: E2 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 0B 5B 00 BA 04 AA 04 B6 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B0 36 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 70 04 03 00 6C 18 12 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 02 EC 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 71 [00:00:15]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B0 36 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 70 04 03 00 6C 18 12 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 02 EC 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:00:15]wFMCommunicate OK [00:00:15]wFMCommunicate request_size=4 [00:00:15]MH_SAM_APDU [00:00:15]CAPDU: 80 17 00 00 [00:00:15]Write to MH i2c: E2 08 00 0C 5B 80 17 00 00 00 00 00 00 E7 [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:16]Read from MH i2c: E2 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 FD 00 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 FD 00 0C 5B 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FF 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B8 [00:00:16]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FF 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:00:16]wFMCommunicate OK [00:00:16]wFMCommunicate request_size=4 [00:00:16]MH_SAM_APDU [00:00:16]CAPDU: 80 17 00 00 [00:00:16]Write to MH i2c: E2 08 00 0D 5B 80 17 00 00 00 00 00 00 E8 [00:00:16]Write i2c OK [00:00:16]MH_I2C_Read... [00:00:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:16]Read from MH i2c: E2 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 FD 00 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 FD 00 0D 5B 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:00:16]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 [00:00:16]wFMCommunicate OK [00:00:16]wFMCommunicate request_size=4 [00:00:16]MH_SAM_APDU [00:00:16]CAPDU: 80 17 00 00 [00:00:16]Write to MH i2c: E2 08 00 0E 5B 80 17 00 00 00 00 00 00 E9 [00:00:16]Write i2c OK [00:00:16]MH_I2C_Read... [00:00:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:16]Read from MH i2c: E2 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 FD 00 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 FD 00 0E 5B 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 61 [00:00:16]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 [00:00:17]wFMCommunicate OK [00:00:17]wFMCommunicate request_size=4 [00:00:17]MH_SAM_APDU [00:00:17]CAPDU: 80 17 00 00 [00:00:17]Write to MH i2c: E2 08 00 0F 5B 80 17 00 00 00 00 00 00 EA [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:00:17]Read from MH i2c: E2 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: E2 D7 00 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: E2 D7 00 0F 5B 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 CD [00:00:17]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 [00:00:17]wFMCommunicate OK [00:00:17]SAM_PROTO_GetShiftData done [00:00:17]requested_item shift.sale.total_cash is exist - process it [00:00:17]requested_item shift.sale_refund.total is exist - process it [00:00:17]requested_item shift.sale_refund.total_cash is exist - process it [00:00:17]requested_item shift.buy.total is exist - process it [00:00:17]requested_item shift.buy.total_cash is exist - process it [00:00:17]produce_requested_data done [00:00:17]produce_requested_data return {"fm.sale.total":72619360.03,"fm.sale_refund.total":5701125.60,"fm.buy.total":0.00,"shift.sale.total":163939.85,"shift.sale.total_cash":113959.00,"shift.sale_refund.total":11859.00,"shift.sale_refund.total_cash":11859.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:00:17]process_action_free get_value [00:00:17]json_value_free [00:00:17]json_value_free done [00:00:17]process_json_proto returns [00:00:17]Send response to host [00:00:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72619360.03,"fm.sale_refund.total":5701125.60,"fm.buy.total":0.00,"shift.sale.total":163939.85,"shift.sale.total_cash":113959.00,"shift.sale_refund.total":11859.00,"shift.sale_refund.total_cash":11859.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:00:17]free response buf [00:00:17]execute_script done [00:00:17]execute_script returns [00:00:17]free content buf [00:00:17]Sock 8.Close socket [00:00:17]Sock 8.Thread stoped [00:00:17]accept exits with 9 [00:00:17]New connection [00:00:17]New thread 3066957156 created [00:00:17]Thread 3066813796 joined [00:00:17]Waiting for new connection... [00:00:17] Sock 9.Parse request [00:00:17]Sock 9.Check first char [00:00:17]Sock 9.First char is OK [00:00:17]request: POST /json_proto HTTP/1.0 [00:00:17]Method: POST [00:00:17]URL: /json_proto [00:00:17]Method is POST - this is cgi request [00:00:17]url: /json_proto [00:00:17]query_string will be loaded in cgi processing [00:00:17]execute_cgi json_proto POST (null) [00:00:17]execute_cgi path=json_proto method=POST [00:00:17]POST find Content-Length [00:00:17]Host: 172.17.62.67:8080 [00:00:17]Content-Length: 274 [00:00:17]Content-Type: application/json [00:00:17] [00:00:17]POST finish read [00:00:17]Found Content-Length = 274 [00:00:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:17]execute_script... [00:00:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:17]POST & json_proto [00:00:17]process_json_proto [00:00:17]json parsed OK: [00:00:17]protocol is kg_v1.0 [00:00:17]action value=x_report [00:00:17]process_action x_report [00:00:17]cmd_x_report [00:00:17]MH_GetDate [00:00:17]Write to MH i2c: F0 00 00 10 5B 5A [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: F0 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: F0 05 00 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: F0 05 00 10 5B 00 99 EC F0 65 39 [00:00:17]GetLastDocTimeStamp 1710287674 [00:00:17]current date 1710288025 [00:00:17]FM_GetShiftState [00:00:17]SAM_PROTO_GetShiftState [00:00:17]wFMCommunicate request_size=4 [00:00:17]MH_SAM_APDU [00:00:17]CAPDU: 80 13 01 00 [00:00:17]Write to MH i2c: E2 08 00 11 5B 80 13 01 00 00 00 00 00 E9 [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:17]Read from MH i2c: E2 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: E2 0E 00 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: E2 0E 00 11 5B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 5D [00:00:17]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:00:17]wFMCommunicate OK [00:00:17]SAM_PROTO_GetShiftState done [00:00:17]FM_GetShiftState done [00:00:17]KKMCreateXReportDocument [00:00:17]Load OK [00:00:17]Malloc new data [00:00:17]MH_GetDate [00:00:17]Write to MH i2c: F0 00 00 12 5B 5C [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: F0 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: F0 05 00 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: F0 05 00 12 5B 00 99 EC F0 65 3B [00:00:17]Malloc new data [00:00:17]Malloc new data [00:00:17]wFMCommunicate request_size=4 [00:00:17]MH_SAM_APDU [00:00:17]CAPDU: 80 11 00 00 [00:00:17]Write to MH i2c: E2 08 00 13 5B 80 11 00 00 00 00 00 00 E8 [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:17]Read from MH i2c: E2 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: E2 17 00 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: E2 17 00 13 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 38 [00:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:00:17]wFMCommunicate OK [00:00:17]SAM_PROTO_GetFieldsCounters [00:00:17]wFMCommunicate request_size=4 [00:00:17]MH_SAM_APDU [00:00:17]CAPDU: 80 13 00 00 [00:00:17]Write to MH i2c: E2 08 00 14 5B 80 13 00 00 00 00 00 00 EB [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:17]Read from MH i2c: E2 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: E2 62 00 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: E2 62 00 14 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 47 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [00:00:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 47 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:17]wFMCommunicate OK [00:00:17]SAM_PROTO_GetFieldsCounters done [00:00:17]Malloc new data [00:00:17]Malloc new data [00:00:17]Malloc new data [00:00:17]KKMCreateXReportDocument OK [00:00:17]KKMSetXReportData OK [00:00:17]KKMPrepareXReportFMData [00:00:17]SAM_PROTO_GetShiftData [00:00:17]wFMCommunicate request_size=4 [00:00:17]MH_SAM_APDU [00:00:17]CAPDU: 80 13 02 00 [00:00:17]Write to MH i2c: E2 08 00 15 5B 80 13 02 00 00 00 00 00 EE [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:18]Read from MH i2c: E2 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 FD 00 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 FD 00 15 5B 00 BA 04 AA 04 B6 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B0 36 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 70 04 03 00 6C 18 12 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 02 EC 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 7B [00:00:18]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B0 36 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 70 04 03 00 6C 18 12 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 02 EC 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:00:18]wFMCommunicate OK [00:00:18]wFMCommunicate request_size=4 [00:00:18]MH_SAM_APDU [00:00:18]CAPDU: 80 17 00 00 [00:00:18]Write to MH i2c: E2 08 00 16 5B 80 17 00 00 00 00 00 00 F1 [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:18]Read from MH i2c: E2 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 FD 00 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 FD 00 16 5B 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FF 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C2 [00:00:18]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FF 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:00:18]wFMCommunicate OK [00:00:18]wFMCommunicate request_size=4 [00:00:18]MH_SAM_APDU [00:00:18]CAPDU: 80 17 00 00 [00:00:18]Write to MH i2c: E2 08 00 17 5B 80 17 00 00 00 00 00 00 F2 [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:19]Read from MH i2c: E2 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 FD 00 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 FD 00 17 5B 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1E [00:00:19]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 [00:00:19]wFMCommunicate OK [00:00:19]wFMCommunicate request_size=4 [00:00:19]MH_SAM_APDU [00:00:19]CAPDU: 80 17 00 00 [00:00:19]Write to MH i2c: E2 08 00 18 5B 80 17 00 00 00 00 00 00 F3 [00:00:19]OFD Sender: No OFD packet to send [00:00:19]Write i2c OK [00:00:19]MH_I2C_Read... [00:00:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:19]Read from MH i2c: E2 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 FD 00 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 FD 00 18 5B 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 6B [00:00:19]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 [00:00:19]wFMCommunicate OK [00:00:19]wFMCommunicate request_size=4 [00:00:19]MH_SAM_APDU [00:00:19]CAPDU: 80 17 00 00 [00:00:19]Write to MH i2c: E2 08 00 19 5B 80 17 00 00 00 00 00 00 F4 [00:00:19]Write i2c OK [00:00:19]MH_I2C_Read... [00:00:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:00:20]Read from MH i2c: E2 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 D7 00 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 D7 00 19 5B 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 D7 [00:00:20]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 [00:00:20]wFMCommunicate OK [00:00:20]SAM_PROTO_GetShiftData done [00:00:20]1194 (1206) - счетчики итогов смены [00:00:20] 1134 (4) - 233 - количество чеков со всеми признаками расчетов [00:00:20] 1129 (156) - счетчики операций «приход» [00:00:20] 1135 (4) - 223 - количество чеков по признаку расчетов [00:00:20] 1201 (3) - 163939.85 - общая итоговая сумма в чеках [00:00:20] 1136 (3) - 113959.00 - итоговая сумма в чеках наличными [00:00:20] 1138 (3) - 49980.85 - итоговая сумма в чеках безналичными [00:00:20] 1024 (123) - суммы налогов [00:00:20] 1006 (9) - суммы НДС [00:00:20] 1010 (1) - 0% - код ставки НДС [00:00:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:20] 1006 (12) - суммы НДС [00:00:20] 1010 (1) - 12% - код ставки НДС [00:00:20] 1011 (3) - 17412.47 - сумма НДС по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 0% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (12) - суммы НСП [00:00:20] 1014 (1) - 1% - код ставки НСП [00:00:20] 1015 (3) - 1450.72 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 2% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 3% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 5% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 0,50% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 1,50% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1130 (152) - счетчики операций «возврат прихода» [00:00:20] 1135 (4) - 10 - количество чеков по признаку расчетов [00:00:20] 1201 (3) - 11859.00 - общая итоговая сумма в чеках [00:00:20] 1136 (3) - 11859.00 - итоговая сумма в чеках наличными [00:00:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:20] 1024 (122) - суммы налогов [00:00:20] 1006 (9) - суммы НДС [00:00:20] 1010 (1) - 0% - код ставки НДС [00:00:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:20] 1006 (12) - суммы НДС [00:00:20] 1010 (1) - 12% - код ставки НДС [00:00:20] 1011 (3) - 1259.54 - сумма НДС по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 0% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (11) - суммы НСП [00:00:20] 1014 (1) - 1% - код ставки НСП [00:00:20] 1015 (2) - 104.95 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 2% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 3% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 5% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 0,50% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 1,50% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1131 (141) - счетчики операций «расход» [00:00:20] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:20] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:20] 1024 (117) - суммы налогов [00:00:20] 1006 (9) - суммы НДС [00:00:20] 1010 (1) - 0% - код ставки НДС [00:00:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:20] 1006 (9) - суммы НДС [00:00:20] 1010 (1) - 12% - код ставки НДС [00:00:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 0% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 1% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 2% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 3% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 5% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 0,50% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 1,50% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1132 (141) - счетчики операций «возврат расхода» [00:00:20] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:20] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:20] 1024 (117) - суммы налогов [00:00:20] 1006 (9) - суммы НДС [00:00:20] 1010 (1) - 0% - код ставки НДС [00:00:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:20] 1006 (9) - суммы НДС [00:00:20] 1010 (1) - 12% - код ставки НДС [00:00:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 0% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 1% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 2% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 3% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 5% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 0,50% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1007 (9) - суммы НСП [00:00:20] 1014 (1) - 1,50% - код ставки НСП [00:00:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:20] 1133 (588) - - счетчики коррекции - не используются [00:00:20]SetTLVBufToDocument [00:00:20]Processing tag 1194 (04AA) [00:00:20]Load OK [00:00:20]SetTLVBufToDocument [00:00:20]Processing tag 1134 (046E) [00:00:20]Malloc new data [00:00:20]Processing tag 1129 (0469) [00:00:20]Load OK [00:00:20]SetTLVBufToDocument [00:00:20]Processing tag 1135 (046F) [00:00:20]Malloc new data [00:00:20]Processing tag 1201 (04B1) [00:00:20]Malloc new data [00:00:20]Processing tag 1136 (0470) [00:00:20]Malloc new data [00:00:20]Processing tag 1138 (0472) [00:00:20]Malloc new data [00:00:20]Processing tag 1024 (0400) [00:00:20]Load OK [00:00:20]SetTLVBufToDocument [00:00:20]Processing tag 1006 (03EE) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1010 (03F2) [00:00:21]Malloc new data [00:00:21]Processing tag 1011 (03F3) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1006 (03EE) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1010 (03F2) [00:00:21]Malloc new data [00:00:21]Processing tag 1011 (03F3) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]SetTLVBufToDocument err=0 [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1130 (046A) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1135 (046F) [00:00:21]Malloc new data [00:00:21]Processing tag 1201 (04B1) [00:00:21]Malloc new data [00:00:21]Processing tag 1136 (0470) [00:00:21]Malloc new data [00:00:21]Processing tag 1138 (0472) [00:00:21]Malloc new data [00:00:21]Processing tag 1024 (0400) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1006 (03EE) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1010 (03F2) [00:00:21]Malloc new data [00:00:21]Processing tag 1011 (03F3) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1006 (03EE) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1010 (03F2) [00:00:21]Malloc new data [00:00:21]Processing tag 1011 (03F3) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]SetTLVBufToDocument err=0 [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1131 (046B) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1135 (046F) [00:00:21]Malloc new data [00:00:21]Processing tag 1201 (04B1) [00:00:21]Malloc new data [00:00:21]Processing tag 1136 (0470) [00:00:21]Malloc new data [00:00:21]Processing tag 1138 (0472) [00:00:21]Malloc new data [00:00:21]Processing tag 1024 (0400) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1006 (03EE) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1010 (03F2) [00:00:21]Malloc new data [00:00:21]Processing tag 1011 (03F3) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1006 (03EE) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1010 (03F2) [00:00:21]Malloc new data [00:00:21]Processing tag 1011 (03F3) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]SetTLVBufToDocument err=0 [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1132 (046C) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1135 (046F) [00:00:21]Malloc new data [00:00:21]Processing tag 1201 (04B1) [00:00:21]Malloc new data [00:00:21]Processing tag 1136 (0470) [00:00:21]Malloc new data [00:00:21]Processing tag 1138 (0472) [00:00:21]Malloc new data [00:00:21]Processing tag 1024 (0400) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1006 (03EE) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1010 (03F2) [00:00:21]Malloc new data [00:00:21]Processing tag 1011 (03F3) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1006 (03EE) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1010 (03F2) [00:00:21]Malloc new data [00:00:21]Processing tag 1011 (03F3) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1007 (03EF) [00:00:21]Load OK [00:00:21]SetTLVBufToDocument [00:00:21]Processing tag 1014 (03F6) [00:00:21]Malloc new data [00:00:21]Processing tag 1015 (03F7) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]SetTLVBufToDocument err=0 [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Processing tag 1133 (046D) [00:00:21]Malloc new data [00:00:21]SetTLVBufToDocument err=0 [00:00:21]SetTLVBufToDocument err=0 [00:00:21]Malloc new data [00:00:21]SAM_PROTO_GetFMData [00:00:21]wFMCommunicate request_size=4 [00:00:21]MH_SAM_APDU [00:00:21]CAPDU: 80 13 03 00 [00:00:21]Write to MH i2c: E2 08 00 1A 5B 80 13 03 00 00 00 00 00 F4 [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 [00:00:21]MH_I2C_Read... [00:00:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:21]Read from MH i2c: E2 FD 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 FD 00 1A 5B 00 C8 04 85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 90 00 E0 [00:00:22]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 90 00 [00:00:22]wFMCommunicate OK [00:00:22]wFMCommunicate request_size=4 [00:00:22]MH_SAM_APDU [00:00:22]CAPDU: 80 17 00 00 [00:00:22]Write to MH i2c: E2 08 00 1B 5B 80 17 00 00 00 00 00 00 F6 [00:00:22]Write i2c OK [00:00:22]MH_I2C_Read... [00:00:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:22]Read from MH i2c: E2 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 FD 00 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 FD 00 1B 5B 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 B3 [00:00:22]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [00:00:22]wFMCommunicate OK [00:00:22]wFMCommunicate request_size=4 [00:00:22]MH_SAM_APDU [00:00:22]CAPDU: 80 17 00 00 [00:00:22]Write to MH i2c: E2 08 00 1C 5B 80 17 00 00 00 00 00 00 F7 [00:00:22]Write i2c OK [00:00:22]MH_I2C_Read... [00:00:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:22]Read from MH i2c: E2 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 FD 00 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 FD 00 1C 5B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 CF [00:00:23]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:00:23]wFMCommunicate OK [00:00:23]wFMCommunicate request_size=4 [00:00:23]MH_SAM_APDU [00:00:23]CAPDU: 80 17 00 00 [00:00:23]Write to MH i2c: E2 08 00 1D 5B 80 17 00 00 00 00 00 00 F8 [00:00:23]Write i2c OK [00:00:23]MH_I2C_Read... [00:00:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:23]Read from MH i2c: E2 [00:00:23]MH_I2C_Read... [00:00:23]Read from MH i2c: E2 FD 00 [00:00:23]MH_I2C_Read... [00:00:23]Read from MH i2c: E2 FD 00 1D 5B 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 70 [00:00:23]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:00:23]wFMCommunicate OK [00:00:23]wFMCommunicate request_size=4 [00:00:23]MH_SAM_APDU [00:00:23]CAPDU: 80 17 00 00 [00:00:23]Write to MH i2c: E2 08 00 1E 5B 80 17 00 00 00 00 00 00 F9 [00:00:23]Write i2c OK [00:00:23]MH_I2C_Read... [00:00:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:00:23]Read from MH i2c: E2 [00:00:23]MH_I2C_Read... [00:00:23]Read from MH i2c: E2 E5 00 [00:00:23]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 E5 00 1E 5B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DD [00:00:24]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:24]wFMCommunicate OK [00:00:24]SAM_PROTO_GetFMData done [00:00:24]FM_GetFMData:85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 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 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:00:24]6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:00:24]oper:6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:00:25]total:83 59 D8 B0 01 [00:00:25]Malloc new data [00:00:25]oper:6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 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 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:00:25]total:30 3A FB 21 [00:00:25]Malloc new data [00:00:25]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:00:25]total: [00:00:25]Malloc new data [00:00:25]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:00:25]total: [00:00:25]Malloc new data [00:00:25]KKMPrepareXReportFMData err=0 [00:00:25]Х отчет ИНН: 02508201610067 Кассир: Мыктыбекова И. 13.03.2024 00:00 Смена: 266 РНМ: 0000000000090555 ЗНМ: 0300000009 СНО: Общий режим Всего чеков: 233 ИТОГИ ПРИХОД Чеков: 223 Общий итог: 163939.85 Итого наличными: 113959.00 Итого безнал.: 49980.85 НДС 0% : 0.00 НДС 12% : 17412.47 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1450.72 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 10 Общий итог: 11859.00 Итого наличными: 11859.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1259.54 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 104.95 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 102100.00 НС Приход: 72619360.03 НС Возвр.Прихода: 5701125.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874811 [00:00:25]StoreToDocumentArchive [00:00:25]MH_GetDate [00:00:25]Write to MH i2c: F0 00 00 1F 5B 69 [00:00:25]Write i2c OK [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: F0 [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: F0 05 00 [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: F0 05 00 1F 5B 00 A1 EC F0 65 50 [00:00:25]shift 266 fd 1710288033 [00:00:25]Create dir for shift 0266 [00:00:25]save to /storage/0266/doc_1710288033 [00:00:25]save last doc name /storage/0266/doc_1710288033 to /storage/kkm_last_doc_name [00:00:25]save OK [00:00:25]Clear old archive folders... [00:00:25]NVStorageSaveData kkm_last_timestamp [00:00:25]File name is /storage/kkm_last_timestamp [00:00:25]Write 4 bytes [00:00:25]NVStorageSaveData done [00:00:25]ExternCall_PrintAddStr [00:00:25]wPrintStart [00:00:25]Write to MH i2c: 01 00 00 20 5B 7B [00:00:25]Write i2c OK [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: 01 [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: 01 07 00 [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: 01 07 00 20 5B 00 80 00 00 00 FF 0F 10 [00:00:25]RasterBufferAndPrint [00:00:25]line Х отчет [00:00:25]line ИНН: 02508201610067 [00:00:25]line Кассир: Мыктыбекова И. [00:00:25]line 13.03.2024 00:00 [00:00:25]line Смена: 266 [00:00:25]line РНМ: 0000000000090555 [00:00:25]line ЗНМ: 0300000009 [00:00:25]line СНО: Общий режим [00:00:25]line Всего чеков: 233 [00:00:25]line ИТОГИ ПРИХОД [00:00:25]line Чеков: 223 [00:00:25]line Общий итог: 163939.85 [00:00:25]line Итого наличными: 113959.00 [00:00:25]line Итого безнал.: 49980.85 [00:00:25]line НДС 0% : 0.00 [00:00:25]line НДС 12% : 17412.47 [00:00:25]line НСП 0% : 0.00 [00:00:25]line НСП 1,50% : 0.00 [00:00:25]line НСП 0,50% : 0.00 [00:00:25]line НСП 5% : 0.00 [00:00:25]line НСП 3% : 0.00 [00:00:25]line НСП 2% : 0.00 [00:00:25]line НСП 1% : 1450.72 [00:00:25]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:00:25]line Чеков: 10 [00:00:25]line Общий итог: 11859.00 [00:00:25]line Итого наличными: 11859.00 [00:00:25]line Итого безнал.: 0.00 [00:00:25]line НДС 0% : 0.00 [00:00:25]line НДС 12% : 1259.54 [00:00:25]line НСП 0% : 0.00 [00:00:25]line НСП 1,50% : 0.00 [00:00:25]line НСП 0,50% : 0.00 [00:00:25]line НСП 5% : 0.00 [00:00:25]line НСП 3% : 0.00 [00:00:25]line НСП 2% : 0.00 [00:00:25]line НСП 1% : 104.95 [00:00:25]line ИТОГИ РАСХОД [00:00:25]line Чеков: 0 [00:00:25]line Общий итог: 0.00 [00:00:25]line Итого наличными: 0.00 [00:00:25]line Итого безнал.: 0.00 [00:00:25]line НДС 0% : 0.00 [00:00:25]line НДС 12% : 0.00 [00:00:25]line НСП 0% : 0.00 [00:00:25]line НСП 1,50% : 0.00 [00:00:25]line НСП 0,50% : 0.00 [00:00:25]line НСП 5% : 0.00 [00:00:25]line НСП 3% : 0.00 [00:00:25]line НСП 2% : 0.00 [00:00:25]line НСП 1% : 0.00 [00:00:25]line ИТОГИ ВОЗВРАТ РАСХОДА [00:00:25]line Чеков: 0 [00:00:25]line Общий итог: 0.00 [00:00:25]line Итого наличными: 0.00 [00:00:25]line Итого безнал.: 0.00 [00:00:25]line НДС 0% : 0.00 [00:00:25]line НДС 12% : 0.00 [00:00:25]line НСП 0% : 0.00 [00:00:25]line НСП 1,50% : 0.00 [00:00:25]line НСП 0,50% : 0.00 [00:00:25]line НСП 5% : 0.00 [00:00:25]line НСП 3% : 0.00 [00:00:25]line НСП 2% : 0.00 [00:00:25]line НСП 1% : 0.00 [00:00:25]line Сумма внесений: 0.00 [00:00:25]line Сумма выплат: 0.00 [00:00:25]line Нал. в кассе: 102100.00 [00:00:25]line НС Приход: 72619360.03 [00:00:25]line НС Возвр.Прихода: 5701125.60 [00:00:25]line НС Расход: 0.00 [00:00:25]line НС Возвр.Расхода: 0.00 [00:00:25]line ФМ: 0000000000874811 [00:00:25]written 0, free lines is 4095 [00:00:26]Write to MH i2c: 01 00 00 6B 5B C6 [00:00:26]Write i2c OK [00:00:26]MH_I2C_Read... [00:00:26]Read from MH i2c: 01 [00:00:26]MH_I2C_Read... [00:00:26]Read from MH i2c: 01 07 00 [00:00:26]MH_I2C_Read... [00:00:26]Read from MH i2c: 01 07 00 6B 5B 00 80 00 00 00 7F 0B D7 [00:00:26]RasterBufferAndPrint [00:00:26]line [00:00:26]line [00:00:26]line [00:00:26]line [00:00:26]line [00:00:26]written 0, free lines is 2977 [00:00:26]process_action x_report done [00:00:26]requested_data is exist [00:00:26]produce_requested_data [00:00:26]requested_item fd.num is exist - process it [00:00:26]SAM_PROTO_GetFieldsCounters [00:00:26]wFMCommunicate request_size=4 [00:00:26]MH_SAM_APDU [00:00:26]CAPDU: 80 13 00 00 [00:00:26]Write to MH i2c: E2 08 00 72 5B 80 13 00 00 00 00 00 00 49 [00:00:26]Write i2c OK [00:00:26]MH_I2C_Read... [00:00:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:26]Read from MH i2c: E2 [00:00:26]MH_I2C_Read... [00:00:26]Read from MH i2c: E2 62 00 [00:00:26]MH_I2C_Read... [00:00:26]Read from MH i2c: E2 62 00 72 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 47 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [00:00:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 47 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:26]wFMCommunicate OK [00:00:26]SAM_PROTO_GetFieldsCounters done [00:00:26]requested_item shift.num is exist - process it [00:00:26]requested_item shift.opened is exist - process it [00:00:26]req_shift_opened [00:00:26]FM_GetShiftState [00:00:26]SAM_PROTO_GetShiftState [00:00:26]wFMCommunicate request_size=4 [00:00:26]MH_SAM_APDU [00:00:26]CAPDU: 80 13 01 00 [00:00:26]Write to MH i2c: E2 08 00 73 5B 80 13 01 00 00 00 00 00 4B [00:00:26]Write i2c OK [00:00:26]MH_I2C_Read... [00:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:26]Read from MH i2c: E2 [00:00:26]MH_I2C_Read... [00:00:26]Read from MH i2c: E2 0E 00 [00:00:26]MH_I2C_Read... [00:00:26]Read from MH i2c: E2 0E 00 73 5B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 BF [00:00:26]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:00:26]wFMCommunicate OK [00:00:26]SAM_PROTO_GetShiftState done [00:00:26]FM_GetShiftState done [00:00:26]req_shift_opened done [00:00:26]requested_item shift.open_date is exist - process it [00:00:26]req_shift_open_date [00:00:26]req_shift_open_date done [00:00:26]produce_requested_data done [00:00:26]produce_requested_data return {"fd.num":95303,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [00:00:26]process_action_free x_report [00:00:26]json_value_free [00:00:26]json_value_free done [00:00:26]process_json_proto returns [00:00:26]Send response to host [00:00:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":95303,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [00:00:26]free response buf [00:00:26]execute_script done [00:00:26]execute_script returns [00:00:26]free content buf [00:00:26]Sock 9.Close socket [00:00:26]Sock 9.Thread stoped [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:40]accept exits with 8 [00:00:40]New connection [00:00:40]New thread 3066813796 created [00:00:40]Thread 3066957156 joined [00:00:40]Waiting for new connection... [00:00:40] Sock 8.Parse request [00:00:40]Sock 8.Check first char [00:00:40]Sock 8.First char is OK [00:00:40]request: POST /json_proto HTTP/1.0 [00:00:40]Method: POST [00:00:40]URL: /json_proto [00:00:40]Method is POST - this is cgi request [00:00:40]url: /json_proto [00:00:40]query_string will be loaded in cgi processing [00:00:40]execute_cgi json_proto POST (null) [00:00:40]execute_cgi path=json_proto method=POST [00:00:40]POST find Content-Length [00:00:40]Host: 172.17.62.67:8080 [00:00:40]Content-Length: 215 [00:00:40]Content-Type: application/json [00:00:40] [00:00:40]POST finish read [00:00:40]Found Content-Length = 215 [00:00:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:40]execute_script... [00:00:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:40]POST & json_proto [00:00:40]process_json_proto [00:00:40]json parsed OK: [00:00:40]protocol is kg_v1.0 [00:00:40]action value=get_value [00:00:40]process_action get_value [00:00:40]cmd_get_value [00:00:40]process_action get_value done [00:00:40]requested_data is exist [00:00:40]produce_requested_data [00:00:40]requested_item kkm.sn is exist - process it [00:00:40]requested_item kkm.ver is exist - process it [00:00:40]requested_item fm.sn is exist - process it [00:00:40]wFMCommunicate request_size=4 [00:00:40]MH_SAM_APDU [00:00:40]CAPDU: 80 11 00 00 [00:00:40]Write to MH i2c: E2 08 00 74 5B 80 11 00 00 00 00 00 00 49 [00:00:40]Write i2c OK [00:00:40]MH_I2C_Read... [00:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:40]Read from MH i2c: E2 [00:00:40]MH_I2C_Read... [00:00:40]Read from MH i2c: E2 17 00 [00:00:40]MH_I2C_Read... [00:00:40]Read from MH i2c: E2 17 00 74 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 99 [00:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:00:40]wFMCommunicate OK [00:00:40]requested_item fd.num is exist - process it [00:00:40]SAM_PROTO_GetFieldsCounters [00:00:40]wFMCommunicate request_size=4 [00:00:40]MH_SAM_APDU [00:00:40]CAPDU: 80 13 00 00 [00:00:40]Write to MH i2c: E2 08 00 75 5B 80 13 00 00 00 00 00 00 4C [00:00:40]Write i2c OK [00:00:40]MH_I2C_Read... [00:00:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:41]Read from MH i2c: E2 [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: E2 62 00 [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: E2 62 00 75 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 47 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [00:00:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 47 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:41]wFMCommunicate OK [00:00:41]SAM_PROTO_GetFieldsCounters done [00:00:41]requested_item shift.num is exist - process it [00:00:41]requested_item shift.opened is exist - process it [00:00:41]req_shift_opened [00:00:41]FM_GetShiftState [00:00:41]SAM_PROTO_GetShiftState [00:00:41]wFMCommunicate request_size=4 [00:00:41]MH_SAM_APDU [00:00:41]CAPDU: 80 13 01 00 [00:00:41]Write to MH i2c: E2 08 00 76 5B 80 13 01 00 00 00 00 00 4E [00:00:41]Write i2c OK [00:00:41]MH_I2C_Read... [00:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:41]Read from MH i2c: E2 [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: E2 0E 00 [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: E2 0E 00 76 5B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 C2 [00:00:41]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:00:41]wFMCommunicate OK [00:00:41]SAM_PROTO_GetShiftState done [00:00:41]FM_GetShiftState done [00:00:41]req_shift_opened done [00:00:41]requested_item shift.open_date is exist - process it [00:00:41]req_shift_open_date [00:00:41]req_shift_open_date done [00:00:41]produce_requested_data done [00:00:41]produce_requested_data return {"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95303,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [00:00:41]process_action_free get_value [00:00:41]json_value_free [00:00:41]json_value_free done [00:00:41]process_json_proto returns [00:00:41]Send response to host [00:00:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95303,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [00:00:41]free response buf [00:00:41]execute_script done [00:00:41]execute_script returns [00:00:41]free content buf [00:00:41]Sock 8.Close socket [00:00:41]Sock 8.Thread stoped [00:00:41]accept exits with 9 [00:00:41]New connection [00:00:41]New thread 3066957156 created [00:00:41]Thread 3066813796 joined [00:00:41]Waiting for new connection... [00:00:41] Sock 9.Parse request [00:00:41]Sock 9.Check first char [00:00:41]Sock 9.First char is OK [00:00:41]request: POST /json_proto HTTP/1.0 [00:00:41]Method: POST [00:00:41]URL: /json_proto [00:00:41]Method is POST - this is cgi request [00:00:41]url: /json_proto [00:00:41]query_string will be loaded in cgi processing [00:00:41]execute_cgi json_proto POST (null) [00:00:41]execute_cgi path=json_proto method=POST [00:00:41]POST find Content-Length [00:00:41]Host: 172.17.62.67:8080 [00:00:41]Content-Length: 331 [00:00:41]Content-Type: application/json [00:00:41] [00:00:41]POST finish read [00:00:41]Found Content-Length = 331 [00:00:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:41]execute_script... [00:00:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:41]POST & json_proto [00:00:41]process_json_proto [00:00:41]json parsed OK: [00:00:41]protocol is kg_v1.0 [00:00:41]action value=get_value [00:00:41]process_action get_value [00:00:41]cmd_get_value [00:00:41]process_action get_value done [00:00:41]requested_data is exist [00:00:41]produce_requested_data [00:00:41]requested_item fm.sale.total is exist - process it [00:00:41]SAM_PROTO_GetFMData [00:00:41]wFMCommunicate request_size=4 [00:00:41]MH_SAM_APDU [00:00:41]CAPDU: 80 13 03 00 [00:00:41]Write to MH i2c: E2 08 00 77 5B 80 13 03 00 00 00 00 00 51 [00:00:41]Write i2c OK [00:00:41]MH_I2C_Read... [00:00:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:41]Read from MH i2c: E2 [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: E2 FD 00 [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: E2 FD 00 77 5B 00 C8 04 85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 90 00 3D [00:00:41]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 90 00 [00:00:41]wFMCommunicate OK [00:00:41]wFMCommunicate request_size=4 [00:00:41]MH_SAM_APDU [00:00:41]CAPDU: 80 17 00 00 [00:00:41]Write to MH i2c: E2 08 00 78 5B 80 17 00 00 00 00 00 00 53 [00:00:41]Write i2c OK [00:00:41]MH_I2C_Read... [00:00:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:42]Read from MH i2c: E2 [00:00:42]MH_I2C_Read... [00:00:42]Read from MH i2c: E2 FD 00 [00:00:42]MH_I2C_Read... [00:00:42]Read from MH i2c: E2 FD 00 78 5B 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 10 [00:00:42]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [00:00:42]wFMCommunicate OK [00:00:42]wFMCommunicate request_size=4 [00:00:42]MH_SAM_APDU [00:00:42]CAPDU: 80 17 00 00 [00:00:42]Write to MH i2c: E2 08 00 79 5B 80 17 00 00 00 00 00 00 54 [00:00:42]Write i2c OK [00:00:42]MH_I2C_Read... [00:00:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:42]Read from MH i2c: E2 [00:00:42]MH_I2C_Read... [00:00:42]Read from MH i2c: E2 FD 00 [00:00:42]MH_I2C_Read... [00:00:42]Read from MH i2c: E2 FD 00 79 5B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 2C [00:00:42]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:00:42]wFMCommunicate OK [00:00:42]wFMCommunicate request_size=4 [00:00:42]MH_SAM_APDU [00:00:42]CAPDU: 80 17 00 00 [00:00:42]Write to MH i2c: E2 08 00 7A 5B 80 17 00 00 00 00 00 00 55 [00:00:42]Write i2c OK [00:00:42]MH_I2C_Read... [00:00:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:43]Read from MH i2c: E2 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 FD 00 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 FD 00 7A 5B 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 CD [00:00:43]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:00:43]wFMCommunicate OK [00:00:43]wFMCommunicate request_size=4 [00:00:43]MH_SAM_APDU [00:00:43]CAPDU: 80 17 00 00 [00:00:43]Write to MH i2c: E2 08 00 7B 5B 80 17 00 00 00 00 00 00 56 [00:00:43]Write i2c OK [00:00:43]MH_I2C_Read... [00:00:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:00:43]Read from MH i2c: E2 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 E5 00 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 E5 00 7B 5B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3A [00:00:43]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:43]wFMCommunicate OK [00:00:43]SAM_PROTO_GetFMData done [00:00:43]requested_item fm.sale_refund.total is exist - process it [00:00:43]requested_item fm.buy.total is exist - process it [00:00:43]requested_item shift.sale.total is exist - process it [00:00:43]SAM_PROTO_GetShiftData [00:00:43]wFMCommunicate request_size=4 [00:00:43]MH_SAM_APDU [00:00:43]CAPDU: 80 13 02 00 [00:00:43]Write to MH i2c: E2 08 00 7C 5B 80 13 02 00 00 00 00 00 55 [00:00:43]Write i2c OK [00:00:43]MH_I2C_Read... [00:00:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:44]Read from MH i2c: E2 [00:00:44]MH_I2C_Read... [00:00:44]Read from MH i2c: E2 FD 00 [00:00:44]MH_I2C_Read... [00:00:44]Read from MH i2c: E2 FD 00 7C 5B 00 BA 04 AA 04 B6 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B0 36 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 70 04 03 00 6C 18 12 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 02 EC 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 E2 [00:00:44]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B0 36 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 70 04 03 00 6C 18 12 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 02 EC 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:00:44]wFMCommunicate OK [00:00:44]wFMCommunicate request_size=4 [00:00:44]MH_SAM_APDU [00:00:44]CAPDU: 80 17 00 00 [00:00:44]Write to MH i2c: E2 08 00 7D 5B 80 17 00 00 00 00 00 00 58 [00:00:44]Write i2c OK [00:00:44]MH_I2C_Read... [00:00:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:44]Read from MH i2c: E2 [00:00:44]MH_I2C_Read... [00:00:44]Read from MH i2c: E2 FD 00 [00:00:44]MH_I2C_Read... [00:00:44]Read from MH i2c: E2 FD 00 7D 5B 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FF 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 29 [00:00:44]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FF 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:00:45]00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:00:45]wFMCommunicate OK [00:00:45]wFMCommunicate request_size=4 [00:00:45]MH_SAM_APDU [00:00:45]CAPDU: 80 17 00 00 [00:00:45]Write to MH i2c: E2 08 00 7E 5B 80 17 00 00 00 00 00 00 59 [00:00:45]Write i2c OK [00:00:45]MH_I2C_Read... [00:00:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:45]Read from MH i2c: E2 [00:00:45]MH_I2C_Read... [00:00:45]Read from MH i2c: E2 FD 00 [00:00:45]MH_I2C_Read... [00:00:45]Read from MH i2c: E2 FD 00 7E 5B 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 85 [00:00: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 [00:00:45]wFMCommunicate OK [00:00:45]wFMCommunicate request_size=4 [00:00:45]MH_SAM_APDU [00:00:45]CAPDU: 80 17 00 00 [00:00:45]Write to MH i2c: E2 08 00 7F 5B 80 17 00 00 00 00 00 00 5A [00:00:45]Write i2c OK [00:00:45]MH_I2C_Read... [00:00:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:45]Read from MH i2c: E2 [00:00:45]MH_I2C_Read... [00:00:45]Read from MH i2c: E2 FD 00 [00:00:45]MH_I2C_Read... [00:00:45]Read from MH i2c: E2 FD 00 7F 5B 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 D2 [00:00:46]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 [00:00:46]wFMCommunicate OK [00:00:46]wFMCommunicate request_size=4 [00:00:46]MH_SAM_APDU [00:00:46]CAPDU: 80 17 00 00 [00:00:46]Write to MH i2c: E2 08 00 80 5B 80 17 00 00 00 00 00 00 5B [00:00:46]Write i2c OK [00:00:46]MH_I2C_Read... [00:00:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:00:46]Read from MH i2c: E2 [00:00:46]MH_I2C_Read... [00:00:46]Read from MH i2c: E2 D7 00 [00:00:46]MH_I2C_Read... [00:00:46]Read from MH i2c: E2 D7 00 80 5B 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 3E [00:00: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 [00:00:46]wFMCommunicate OK [00:00:46]SAM_PROTO_GetShiftData done [00:00:46]requested_item shift.sale.total_cash is exist - process it [00:00:46]requested_item shift.sale_refund.total is exist - process it [00:00:46]requested_item shift.sale_refund.total_cash is exist - process it [00:00:46]requested_item shift.buy.total is exist - process it [00:00:46]requested_item shift.buy.total_cash is exist - process it [00:00:46]produce_requested_data done [00:00:46]produce_requested_data return {"fm.sale.total":72619360.03,"fm.sale_refund.total":5701125.60,"fm.buy.total":0.00,"shift.sale.total":163939.85,"shift.sale.total_cash":113959.00,"shift.sale_refund.total":11859.00,"shift.sale_refund.total_cash":11859.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:00:46]process_action_free get_value [00:00:46]json_value_free [00:00:46]json_value_free done [00:00:46]process_json_proto returns [00:00:46]Send response to host [00:00:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72619360.03,"fm.sale_refund.total":5701125.60,"fm.buy.total":0.00,"shift.sale.total":163939.85,"shift.sale.total_cash":113959.00,"shift.sale_refund.total":11859.00,"shift.sale_refund.total_cash":11859.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:00:46]free response buf [00:00:46]execute_script done [00:00:46]execute_script returns [00:00:46]free content buf [00:00:46]Sock 9.Close socket [00:00:46]Sock 9.Thread stoped [00:00:46]accept exits with 8 [00:00:46]New connection [00:00:46]New thread 3066813796 created [00:00:46]Thread 3066957156 joined [00:00:46]Waiting for new connection... [00:00:46] Sock 8.Parse request [00:00:46]Sock 8.Check first char [00:00:46]Sock 8.First char is OK [00:00:46]request: POST /json_proto HTTP/1.0 [00:00:46]Method: POST [00:00:46]URL: /json_proto [00:00:46]Method is POST - this is cgi request [00:00:46]url: /json_proto [00:00:46]query_string will be loaded in cgi processing [00:00:46]execute_cgi json_proto POST (null) [00:00:46]execute_cgi path=json_proto method=POST [00:00:46]POST find Content-Length [00:00:46]Host: 172.17.62.67:8080 [00:00:46]Content-Length: 331 [00:00:46]Content-Type: application/json [00:00:46] [00:00:46]POST finish read [00:00:46]Found Content-Length = 331 [00:00: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" ] } } [00:00:46]execute_script... [00:00: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" ] } } [00:00:46]POST & json_proto [00:00:46]process_json_proto [00:00:46]json parsed OK: [00:00:46]protocol is kg_v1.0 [00:00:46]action value=get_value [00:00:46]process_action get_value [00:00:46]cmd_get_value [00:00:46]process_action get_value done [00:00:46]requested_data is exist [00:00:46]produce_requested_data [00:00:46]requested_item fm.sale.total is exist - process it [00:00:46]SAM_PROTO_GetFMData [00:00:46]wFMCommunicate request_size=4 [00:00:46]MH_SAM_APDU [00:00:46]CAPDU: 80 13 03 00 [00:00:46]Write to MH i2c: E2 08 00 81 5B 80 13 03 00 00 00 00 00 5B [00:00:46]Write i2c OK [00:00:46]MH_I2C_Read... [00:00:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:47]Read from MH i2c: E2 [00:00:47]MH_I2C_Read... [00:00:47]Read from MH i2c: E2 FD 00 [00:00:47]MH_I2C_Read... [00:00:47]Read from MH i2c: E2 FD 00 81 5B 00 C8 04 85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 90 00 47 [00:00:47]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 90 00 [00:00:47]wFMCommunicate OK [00:00:47]wFMCommunicate request_size=4 [00:00:47]MH_SAM_APDU [00:00:47]CAPDU: 80 17 00 00 [00:00:47]Write to MH i2c: E2 08 00 82 5B 80 17 00 00 00 00 00 00 5D [00:00:47]Write i2c OK [00:00:47]MH_I2C_Read... [00:00:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:47]Read from MH i2c: E2 [00:00:47]MH_I2C_Read... [00:00:47]Read from MH i2c: E2 FD 00 [00:00:47]MH_I2C_Read... [00:00:47]Read from MH i2c: E2 FD 00 82 5B 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 1A [00:00:48]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [00:00:48]wFMCommunicate OK [00:00:48]wFMCommunicate request_size=4 [00:00:48]MH_SAM_APDU [00:00:48]CAPDU: 80 17 00 00 [00:00:48]Write to MH i2c: E2 08 00 83 5B 80 17 00 00 00 00 00 00 5E [00:00:48]Write i2c OK [00:00:48]MH_I2C_Read... [00:00:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:48]Read from MH i2c: E2 [00:00:48]MH_I2C_Read... [00:00:48]Read from MH i2c: E2 FD 00 [00:00:48]MH_I2C_Read... [00:00:48]Read from MH i2c: E2 FD 00 83 5B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 36 [00:00:48]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:00:48]wFMCommunicate OK [00:00:48]wFMCommunicate request_size=4 [00:00:48]MH_SAM_APDU [00:00:48]CAPDU: 80 17 00 00 [00:00:48]Write to MH i2c: E2 08 00 84 5B 80 17 00 00 00 00 00 00 5F [00:00:48]Write i2c OK [00:00:48]MH_I2C_Read... [00:00:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:49]Read from MH i2c: E2 [00:00:49]MH_I2C_Read... [00:00:49]Read from MH i2c: E2 FD 00 [00:00:49]MH_I2C_Read... [00:00:49]Read from MH i2c: E2 FD 00 84 5B 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 D7 [00:00:49]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:00:49]wFMCommunicate OK [00:00:49]wFMCommunicate request_size=4 [00:00:49]MH_SAM_APDU [00:00:49]CAPDU: 80 17 00 00 [00:00:49]Write to MH i2c: E2 08 00 85 5B 80 17 00 00 00 00 00 00 60 [00:00:49]Write i2c OK [00:00:49]MH_I2C_Read... [00:00:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:00:49]Read from MH i2c: E2 [00:00:49]MH_I2C_Read... [00:00:49]Read from MH i2c: E2 E5 00 [00:00:49]MH_I2C_Read... [00:00:49]Read from MH i2c: E2 E5 00 85 5B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 44 [00:00:49]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:49]wFMCommunicate OK [00:00:49]SAM_PROTO_GetFMData done [00:00:49]requested_item fm.sale_refund.total is exist - process it [00:00:49]requested_item fm.buy.total is exist - process it [00:00:49]requested_item shift.sale.total is exist - process it [00:00:49]SAM_PROTO_GetShiftData [00:00:49]wFMCommunicate request_size=4 [00:00:49]MH_SAM_APDU [00:00:49]CAPDU: 80 13 02 00 [00:00:49]Write to MH i2c: E2 08 00 86 5B 80 13 02 00 00 00 00 00 5F [00:00:49]Write i2c OK [00:00:49]MH_I2C_Read... [00:00:50]OFD Sender: No OFD packet to send [00:00:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:50]Read from MH i2c: E2 [00:00:50]MH_I2C_Read... [00:00:50]Read from MH i2c: E2 FD 00 [00:00:50]MH_I2C_Read... [00:00:50]Read from MH i2c: E2 FD 00 86 5B 00 BA 04 AA 04 B6 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B0 36 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 70 04 03 00 6C 18 12 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 02 EC 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 EC [00:00:50]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B0 36 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 70 04 03 00 6C 18 12 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 02 EC 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:00:50]wFMCommunicate OK [00:00:50]wFMCommunicate request_size=4 [00:00:50]MH_SAM_APDU [00:00:50]CAPDU: 80 17 00 00 [00:00:50]Write to MH i2c: E2 08 00 87 5B 80 17 00 00 00 00 00 00 62 [00:00:50]Write i2c OK [00:00:50]MH_I2C_Read... [00:00:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:50]Read from MH i2c: E2 [00:00:50]MH_I2C_Read... [00:00:50]Read from MH i2c: E2 FD 00 [00:00:50]MH_I2C_Read... [00:00:50]Read from MH i2c: E2 FD 00 87 5B 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FF 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 33 [00:00:51]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FF 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:00:51]wFMCommunicate OK [00:00:51]wFMCommunicate request_size=4 [00:00:51]MH_SAM_APDU [00:00:51]CAPDU: 80 17 00 00 [00:00:51]Write to MH i2c: E2 08 00 88 5B 80 17 00 00 00 00 00 00 63 [00:00:51]Write i2c OK [00:00:51]MH_I2C_Read... [00:00:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:51]Read from MH i2c: E2 [00:00:51]MH_I2C_Read... [00:00:51]Read from MH i2c: E2 FD 00 [00:00:51]MH_I2C_Read... [00:00:51]Read from MH i2c: E2 FD 00 88 5B 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8F [00:00:51]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 [00:00:51]wFMCommunicate OK [00:00:51]wFMCommunicate request_size=4 [00:00:51]MH_SAM_APDU [00:00:51]CAPDU: 80 17 00 00 [00:00:51]Write to MH i2c: E2 08 00 89 5B 80 17 00 00 00 00 00 00 64 [00:00:51]Write i2c OK [00:00:51]MH_I2C_Read... [00:00:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:52]Read from MH i2c: E2 [00:00:52]MH_I2C_Read... [00:00:52]Read from MH i2c: E2 FD 00 [00:00:52]MH_I2C_Read... [00:00:52]Read from MH i2c: E2 FD 00 89 5B 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 DC [00:00: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 [00:00:52]wFMCommunicate OK [00:00:52]wFMCommunicate request_size=4 [00:00:52]MH_SAM_APDU [00:00:52]CAPDU: 80 17 00 00 [00:00:52]Write to MH i2c: E2 08 00 8A 5B 80 17 00 00 00 00 00 00 65 [00:00:52]Write i2c OK [00:00:52]MH_I2C_Read... [00:00:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:00:52]Read from MH i2c: E2 [00:00:52]MH_I2C_Read... [00:00:52]Read from MH i2c: E2 D7 00 [00:00:52]MH_I2C_Read... [00:00:52]Read from MH i2c: E2 D7 00 8A 5B 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 48 [00:00:52]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 [00:00:53]wFMCommunicate OK [00:00:53]SAM_PROTO_GetShiftData done [00:00:53]requested_item shift.sale.total_cash is exist - process it [00:00:53]requested_item shift.sale_refund.total is exist - process it [00:00:53]requested_item shift.sale_refund.total_cash is exist - process it [00:00:53]requested_item shift.buy.total is exist - process it [00:00:53]requested_item shift.buy.total_cash is exist - process it [00:00:53]produce_requested_data done [00:00:53]produce_requested_data return {"fm.sale.total":72619360.03,"fm.sale_refund.total":5701125.60,"fm.buy.total":0.00,"shift.sale.total":163939.85,"shift.sale.total_cash":113959.00,"shift.sale_refund.total":11859.00,"shift.sale_refund.total_cash":11859.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:00:53]process_action_free get_value [00:00:53]json_value_free [00:00:53]json_value_free done [00:00:53]process_json_proto returns [00:00:53]Send response to host [00:00:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72619360.03,"fm.sale_refund.total":5701125.60,"fm.buy.total":0.00,"shift.sale.total":163939.85,"shift.sale.total_cash":113959.00,"shift.sale_refund.total":11859.00,"shift.sale_refund.total_cash":11859.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:00:53]free response buf [00:00:53]execute_script done [00:00:53]execute_script returns [00:00:53]free content buf [00:00:53]Sock 8.Close socket [00:00:53]Sock 8.Thread stoped [00:00:53]accept exits with 9 [00:00:53]New connection [00:00:53]New thread 3066957156 created [00:00:53]Thread 3066813796 joined [00:00:53]Waiting for new connection... [00:00:53] Sock 9.Parse request [00:00:53]Sock 9.Check first char [00:00:53]Sock 9.First char is OK [00:00:53]request: POST /json_proto HTTP/1.0 [00:00:53]Method: POST [00:00:53]URL: /json_proto [00:00:53]Method is POST - this is cgi request [00:00:53]url: /json_proto [00:00:53]query_string will be loaded in cgi processing [00:00:53]execute_cgi json_proto POST (null) [00:00:53]execute_cgi path=json_proto method=POST [00:00:53]POST find Content-Length [00:00:53]Host: 172.17.62.67:8080 [00:00:53]Content-Length: 277 [00:00:53]Content-Type: application/json [00:00:53] [00:00:53]POST finish read [00:00:53]Found Content-Length = 277 [00:00:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:53]execute_script... [00:00:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:53]POST & json_proto [00:00:53]process_json_proto [00:00:53]json parsed OK: [00:00:53]protocol is kg_v1.0 [00:00:53]action value=close_shift [00:00:53]process_action close_shift [00:00:53]cmd_close_shift [00:00:53]MH_GetDate [00:00:53]Write to MH i2c: F0 00 00 8B 5B D5 [00:00:53]Write i2c OK [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: F0 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: F0 05 00 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: F0 05 00 8B 5B 00 BC EC F0 65 D7 [00:00:53]GetLastDocTimeStamp 1710288025 [00:00:53]current date 1710288060 [00:00:53]FM_GetShiftState [00:00:53]SAM_PROTO_GetShiftState [00:00:53]wFMCommunicate request_size=4 [00:00:53]MH_SAM_APDU [00:00:53]CAPDU: 80 13 01 00 [00:00:53]Write to MH i2c: E2 08 00 8C 5B 80 13 01 00 00 00 00 00 64 [00:00:53]Write i2c OK [00:00:53]MH_I2C_Read... [00:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:53]Read from MH i2c: E2 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 0E 00 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 0E 00 8C 5B 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D8 [00:00:53]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:00:53]wFMCommunicate OK [00:00:53]SAM_PROTO_GetShiftState done [00:00:53]FM_GetShiftState done [00:00:53]KKMCreateCloseShiftDocument [00:00:53]Load OK [00:00:53]Malloc new data [00:00:53]MH_GetDate [00:00:53]Write to MH i2c: F0 00 00 8D 5B D7 [00:00:53]Write i2c OK [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: F0 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: F0 05 00 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: F0 05 00 8D 5B 00 BD EC F0 65 DA [00:00:53]Malloc new data [00:00:53]Malloc new data [00:00:53]Malloc new data [00:00:53]Malloc new data [00:00:53]KKMCreateCloseShiftDocument OK [00:00:53]KKMSetCloseShiftData OK [00:00:53]ProcessDocumentItem done err = 0, tmpTLVsize=76 [00:00:53]tlvbuf is 01CCEBF0 [00:00:53]KKMLoadAndSignCloseShiftData [00:00:53]SAM_PROTO_ProcessDocument [00:00:53]wFMCommunicate request_size=9 [00:00:53]MH_SAM_APDU [00:00:53]CAPDU: 80 15 01 00 04 05 00 4C 00 [00:00:53]Write to MH i2c: E2 0C 00 8E 5B 80 15 01 00 04 00 05 00 4C 00 00 00 C1 [00:00:53]Write i2c OK [00:00:53]MH_I2C_Read... [00:00:53]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:00:53]Read from MH i2c: E2 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 03 00 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 03 00 8E 5B 00 90 00 5D [00:00:53]RAPDU: 90 00 [00:00:53]wFMCommunicate OK [00:00:53]wFMCommunicate request_size=23 [00:00:53]MH_SAM_APDU [00:00:53]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:00:53]Write to MH i2c: E2 1A 00 8F 5B 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 5F [00:00:53]Write i2c OK [00:00:53]MH_I2C_Read... [00:00:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:00:53]Read from MH i2c: E2 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 03 00 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 03 00 8F 5B 00 90 00 5E [00:00:53]RAPDU: 90 00 [00:00:53]wFMCommunicate OK [00:00:53]wFMCommunicate request_size=35 [00:00:53]MH_SAM_APDU [00:00:53]CAPDU: 80 15 02 00 1E FD 03 1A 00 D0 9C D1 8B D0 BA D1 82 D1 8B D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 98 2E [00:00:53]Write to MH i2c: E2 26 00 90 5B 80 15 02 00 1E 00 FD 03 1A 00 D0 9C D1 8B D0 BA D1 82 D1 8B D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 98 2E 00 00 98 [00:00:53]Write i2c OK [00:00:53]MH_I2C_Read... [00:00:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:00:53]Read from MH i2c: E2 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 03 00 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 03 00 90 5B 00 90 00 5F [00:00:53]RAPDU: 90 00 [00:00:53]wFMCommunicate OK [00:00:53]wFMCommunicate request_size=13 [00:00:53]MH_SAM_APDU [00:00:53]CAPDU: 80 15 02 00 08 F4 03 04 00 BD EC F0 65 [00:00:53]Write to MH i2c: E2 10 00 91 5B 80 15 02 00 08 00 F4 03 04 00 BD EC F0 65 00 00 75 [00:00:53]Write i2c OK [00:00:53]MH_I2C_Read... [00:00:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:00:53]Read from MH i2c: E2 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 03 00 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 03 00 91 5B 00 90 00 60 [00:00:53]RAPDU: 90 00 [00:00:53]wFMCommunicate OK [00:00:53]wFMCommunicate request_size=25 [00:00:53]MH_SAM_APDU [00:00:53]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 [00:00:53]Write to MH i2c: E2 1C 00 92 5B 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 00 00 CE [00:00:53]Write i2c OK [00:00:53]MH_I2C_Read... [00:00:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:00:53]Read from MH i2c: E2 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 03 00 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 03 00 92 5B 00 90 00 61 [00:00:53]RAPDU: 90 00 [00:00:53]wFMCommunicate OK [00:00:53]wFMCommunicate request_size=4 [00:00:53]MH_SAM_APDU [00:00:53]CAPDU: 80 15 03 00 [00:00:53]Write to MH i2c: E2 08 00 93 5B 80 15 03 00 00 00 00 00 6F [00:00:53]Write i2c OK [00:00:53]MH_I2C_Read... [00:00:54]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:00:54]Read from MH i2c: E2 [00:00:54]MH_I2C_Read... [00:00:54]Read from MH i2c: E2 FD 00 [00:00:54]MH_I2C_Read... [00:00:54]Read from MH i2c: E2 FD 00 93 5B 00 FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 48 74 01 00 0E 04 04 00 47 01 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 AA 04 B6 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B0 36 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 90 00 57 [00:00:54]RAPDU: FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 48 74 01 00 0E 04 04 00 47 01 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 AA 04 B6 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B0 36 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 90 00 [00:00:54]wFMCommunicate OK [00:00:54]SAM_PROTO_ProcessDocument answer len = 1277 [00:00:54]SAM_PROTO_ProcessDocument remain to read = 1029 [00:00:54]wFMCommunicate request_size=4 [00:00:54]MH_SAM_APDU [00:00:54]CAPDU: 80 17 00 00 [00:00:54]Write to MH i2c: E2 08 00 94 5B 80 17 00 00 00 00 00 00 6F [00:00:54]Write i2c OK [00:00:54]MH_I2C_Read... [00:00:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:55]Read from MH i2c: E2 [00:00:55]MH_I2C_Read... [00:00:55]Read from MH i2c: E2 FD 00 [00:00:55]MH_I2C_Read... [00:00:55]Read from MH i2c: E2 FD 00 94 5B 00 70 04 03 00 6C 18 12 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 02 EC 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 FF 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:00:55]09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 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 F8 [00:00:55]RAPDU: 70 04 03 00 6C 18 12 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 02 EC 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 FF 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:00:55]wFMCommunicate OK [00:00:55]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:55]SAM_PROTO_ProcessDocument remain to read = 779 [00:00:55]wFMCommunicate request_size=4 [00:00:55]MH_SAM_APDU [00:00:55]CAPDU: 80 17 00 00 [00:00:55]Write to MH i2c: E2 08 00 95 5B 80 17 00 00 00 00 00 00 70 [00:00:55]Write i2c OK [00:00:55]MH_I2C_Read... [00:00:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:55]Read from MH i2c: E2 [00:00:55]MH_I2C_Read... [00:00:55]Read from MH i2c: E2 FD 00 [00:00:55]MH_I2C_Read... [00:00:55]Read from MH i2c: E2 FD 00 95 5B 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 D6 [00:00:56]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 [00:00:56]wFMCommunicate OK [00:00:56]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:56]SAM_PROTO_ProcessDocument remain to read = 529 [00:00:56]wFMCommunicate request_size=4 [00:00:56]MH_SAM_APDU [00:00:56]CAPDU: 80 17 00 00 [00:00:56]Write to MH i2c: E2 08 00 96 5B 80 17 00 00 00 00 00 00 71 [00:00:56]Write i2c OK [00:00:56]MH_I2C_Read... [00:00:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:56]Read from MH i2c: E2 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: E2 FD 00 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: E2 FD 00 96 5B 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 80 [00:00:56]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 [00:00:56]wFMCommunicate OK [00:00:56]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:56]SAM_PROTO_ProcessDocument remain to read = 279 [00:00:56]wFMCommunicate request_size=4 [00:00:56]MH_SAM_APDU [00:00:56]CAPDU: 80 17 00 00 [00:00:56]Write to MH i2c: E2 08 00 97 5B 80 17 00 00 00 00 00 00 72 [00:00:57]Write i2c OK [00:00:57]MH_I2C_Read... [00:00:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:57]Read from MH i2c: E2 [00:00:57]MH_I2C_Read... [00:00:57]Read from MH i2c: E2 FD 00 [00:00:57]MH_I2C_Read... [00:00:57]Read from MH i2c: E2 FD 00 97 5B 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 B0 [00:00:57]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 [00:00:57]wFMCommunicate OK [00:00:57]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:57]SAM_PROTO_ProcessDocument remain to read = 29 [00:00:57]wFMCommunicate request_size=4 [00:00:57]MH_SAM_APDU [00:00:57]CAPDU: 80 17 00 00 [00:00:57]Write to MH i2c: E2 08 00 98 5B 80 17 00 00 00 00 00 00 73 [00:00:57]Write i2c OK [00:00:57]MH_I2C_Read... [00:00:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 29! [00:00:57]Read from MH i2c: E2 [00:00:57]MH_I2C_Read... [00:00:57]Read from MH i2c: E2 20 00 [00:00:57]MH_I2C_Read... [00:00:57]Read from MH i2c: E2 20 00 98 5B 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 EA 08 EA 1D 1B EE 90 00 B9 [00:00:57]RAPDU: 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 EA 08 EA 1D 1B EE 90 00 [00:00:57]wFMCommunicate OK [00:00:57]SAM_PROTO_ProcessDocument received (without SW) 29 bytes [00:00:57]SAM_PROTO_ProcessDocument done [00:00:57]1209 (1) - 1.0 - номер версии ФФД [00:00:57]1041 (16) - 0000000000874811 - номер ФМ [00:00:57]1040 (4) - 95304 - номер ФД [00:00:57]1038 (4) - 327 - номер смены [00:00:57]1118 (4) - 233 - количество кассовых чеков за смену [00:00:57]1111 (4) - 235 - общее количество ФД за смену [00:00:57]1194 (1206) - счетчики итогов смены [00:00:57] 1134 (4) - 233 - количество чеков со всеми признаками расчетов [00:00:57] 1129 (156) - счетчики операций «приход» [00:00:57] 1135 (4) - 223 - количество чеков по признаку расчетов [00:00:57] 1201 (3) - 163939.85 - общая итоговая сумма в чеках [00:00:57] 1136 (3) - 113959.00 - итоговая сумма в чеках наличными [00:00:57] 1138 (3) - 49980.85 - итоговая сумма в чеках безналичными [00:00:57] 1024 (123) - суммы налогов [00:00:57] 1006 (9) - суммы НДС [00:00:57] 1010 (1) - 0% - код ставки НДС [00:00:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:57] 1006 (12) - суммы НДС [00:00:57] 1010 (1) - 12% - код ставки НДС [00:00:57] 1011 (3) - 17412.47 - сумма НДС по ставке [00:00:57] 1007 (9) - суммы НСП [00:00:57] 1014 (1) - 0% - код ставки НСП [00:00:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:57] 1007 (12) - суммы НСП [00:00:57] 1014 (1) - 1% - код ставки НСП [00:00:57] 1015 (3) - 1450.72 - сумма НСП по ставке [00:00:57] 1007 (9) - суммы НСП [00:00:57] 1014 (1) - 2% - код ставки НСП [00:00:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:57] 1007 (9) - суммы НСП [00:00:57] 1014 (1) - 3% - код ставки НСП [00:00:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:57] 1007 (9) - суммы НСП [00:00:57] 1014 (1) - 5% - код ставки НСП [00:00:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:57] 1007 (9) - суммы НСП [00:00:57] 1014 (1) - 0,50% - код ставки НСП [00:00:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:57] 1007 (9) - суммы НСП [00:00:57] 1014 (1) - 1,50% - код ставки НСП [00:00:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1130 (152) - счетчики операций «возврат прихода» [00:00:58] 1135 (4) - 10 - количество чеков по признаку расчетов [00:00:58] 1201 (3) - 11859.00 - общая итоговая сумма в чеках [00:00:58] 1136 (3) - 11859.00 - итоговая сумма в чеках наличными [00:00:58] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:58] 1024 (122) - суммы налогов [00:00:58] 1006 (9) - суммы НДС [00:00:58] 1010 (1) - 0% - код ставки НДС [00:00:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:58] 1006 (12) - суммы НДС [00:00:58] 1010 (1) - 12% - код ставки НДС [00:00:58] 1011 (3) - 1259.54 - сумма НДС по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 0% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (11) - суммы НСП [00:00:58] 1014 (1) - 1% - код ставки НСП [00:00:58] 1015 (2) - 104.95 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 2% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 3% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 5% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 0,50% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 1,50% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1131 (141) - счетчики операций «расход» [00:00:58] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:58] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:58] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:58] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:58] 1024 (117) - суммы налогов [00:00:58] 1006 (9) - суммы НДС [00:00:58] 1010 (1) - 0% - код ставки НДС [00:00:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:58] 1006 (9) - суммы НДС [00:00:58] 1010 (1) - 12% - код ставки НДС [00:00:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 0% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 1% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 2% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 3% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 5% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 0,50% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 1,50% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1132 (141) - счетчики операций «возврат расхода» [00:00:58] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:58] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:58] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:58] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:58] 1024 (117) - суммы налогов [00:00:58] 1006 (9) - суммы НДС [00:00:58] 1010 (1) - 0% - код ставки НДС [00:00:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:58] 1006 (9) - суммы НДС [00:00:58] 1010 (1) - 12% - код ставки НДС [00:00:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 0% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 1% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 2% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 3% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 5% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 0,50% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1007 (9) - суммы НСП [00:00:58] 1014 (1) - 1,50% - код ставки НСП [00:00:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:58] 1133 (588) - - счетчики коррекции - не используются [00:00:58]1077 (6) - 257324008414190 - ФПД [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1209 (04B9) [00:00:58]Malloc new data [00:00:58]Processing tag 1041 (0411) [00:00:58]Processing tag 1040 (0410) [00:00:58]Malloc new data [00:00:58]Processing tag 1038 (040E) [00:00:58]Malloc new data [00:00:58]Processing tag 1118 (045E) [00:00:58]Malloc new data [00:00:58]Processing tag 1111 (0457) [00:00:58]Malloc new data [00:00:58]Processing tag 1194 (04AA) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1134 (046E) [00:00:58]Malloc new data [00:00:58]Processing tag 1129 (0469) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1135 (046F) [00:00:58]Malloc new data [00:00:58]Processing tag 1201 (04B1) [00:00:58]Malloc new data [00:00:58]Processing tag 1136 (0470) [00:00:58]Malloc new data [00:00:58]Processing tag 1138 (0472) [00:00:58]Malloc new data [00:00:58]Processing tag 1024 (0400) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1006 (03EE) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1010 (03F2) [00:00:58]Malloc new data [00:00:58]Processing tag 1011 (03F3) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1006 (03EE) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1010 (03F2) [00:00:58]Malloc new data [00:00:58]Processing tag 1011 (03F3) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]SetTLVBufToDocument err=0 [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1130 (046A) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1135 (046F) [00:00:58]Malloc new data [00:00:58]Processing tag 1201 (04B1) [00:00:58]Malloc new data [00:00:58]Processing tag 1136 (0470) [00:00:58]Malloc new data [00:00:58]Processing tag 1138 (0472) [00:00:58]Malloc new data [00:00:58]Processing tag 1024 (0400) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1006 (03EE) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1010 (03F2) [00:00:58]Malloc new data [00:00:58]Processing tag 1011 (03F3) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1006 (03EE) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1010 (03F2) [00:00:58]Malloc new data [00:00:58]Processing tag 1011 (03F3) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]SetTLVBufToDocument err=0 [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1131 (046B) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1135 (046F) [00:00:58]Malloc new data [00:00:58]Processing tag 1201 (04B1) [00:00:58]Malloc new data [00:00:58]Processing tag 1136 (0470) [00:00:58]Malloc new data [00:00:58]Processing tag 1138 (0472) [00:00:58]Malloc new data [00:00:58]Processing tag 1024 (0400) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1006 (03EE) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1010 (03F2) [00:00:58]Malloc new data [00:00:58]Processing tag 1011 (03F3) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1006 (03EE) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1010 (03F2) [00:00:58]Malloc new data [00:00:58]Processing tag 1011 (03F3) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]SetTLVBufToDocument err=0 [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1132 (046C) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1135 (046F) [00:00:58]Malloc new data [00:00:58]Processing tag 1201 (04B1) [00:00:58]Malloc new data [00:00:58]Processing tag 1136 (0470) [00:00:58]Malloc new data [00:00:58]Processing tag 1138 (0472) [00:00:58]Malloc new data [00:00:58]Processing tag 1024 (0400) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1006 (03EE) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1010 (03F2) [00:00:58]Malloc new data [00:00:58]Processing tag 1011 (03F3) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1006 (03EE) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1010 (03F2) [00:00:58]Malloc new data [00:00:58]Processing tag 1011 (03F3) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:58]SetTLVBufToDocument [00:00:58]Processing tag 1014 (03F6) [00:00:58]Malloc new data [00:00:58]Processing tag 1015 (03F7) [00:00:58]Malloc new data [00:00:58]SetTLVBufToDocument err=0 [00:00:58]Processing tag 1007 (03EF) [00:00:58]Load OK [00:00:59]SetTLVBufToDocument [00:00:59]Processing tag 1014 (03F6) [00:00:59]Malloc new data [00:00:59]Processing tag 1015 (03F7) [00:00:59]Malloc new data [00:00:59]SetTLVBufToDocument err=0 [00:00:59]Processing tag 1007 (03EF) [00:00:59]Load OK [00:00:59]SetTLVBufToDocument [00:00:59]Processing tag 1014 (03F6) [00:00:59]Malloc new data [00:00:59]Processing tag 1015 (03F7) [00:00:59]Malloc new data [00:00:59]SetTLVBufToDocument err=0 [00:00:59]Processing tag 1007 (03EF) [00:00:59]Load OK [00:00:59]SetTLVBufToDocument [00:00:59]Processing tag 1014 (03F6) [00:00:59]Malloc new data [00:00:59]Processing tag 1015 (03F7) [00:00:59]Malloc new data [00:00:59]SetTLVBufToDocument err=0 [00:00:59]Processing tag 1007 (03EF) [00:00:59]Load OK [00:00:59]SetTLVBufToDocument [00:00:59]Processing tag 1014 (03F6) [00:00:59]Malloc new data [00:00:59]Processing tag 1015 (03F7) [00:00:59]Malloc new data [00:00:59]SetTLVBufToDocument err=0 [00:00:59]Processing tag 1007 (03EF) [00:00:59]Load OK [00:00:59]SetTLVBufToDocument [00:00:59]Processing tag 1014 (03F6) [00:00:59]Malloc new data [00:00:59]Processing tag 1015 (03F7) [00:00:59]Malloc new data [00:00:59]SetTLVBufToDocument err=0 [00:00:59]SetTLVBufToDocument err=0 [00:00:59]SetTLVBufToDocument err=0 [00:00:59]Processing tag 1133 (046D) [00:00:59]Malloc new data [00:00:59]SetTLVBufToDocument err=0 [00:00:59]Processing tag 1077 (0435) [00:00:59]Malloc new data [00:00:59]SetTLVBufToDocument err=0 [00:00:59]Malloc new data [00:00:59]SAM_PROTO_GetFMData [00:00:59]wFMCommunicate request_size=4 [00:00:59]MH_SAM_APDU [00:00:59]CAPDU: 80 13 03 00 [00:00:59]Write to MH i2c: E2 08 00 99 5B 80 13 03 00 00 00 00 00 73 [00:00:59]Write i2c OK [00:00:59]MH_I2C_Read... [00:00:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:59]Read from MH i2c: E2 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 FD 00 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 FD 00 99 5B 00 C8 04 85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 90 00 5F [00:00:59]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 90 00 [00:00:59]wFMCommunicate OK [00:00:59]wFMCommunicate request_size=4 [00:00:59]MH_SAM_APDU [00:00:59]CAPDU: 80 17 00 00 [00:01:00]Write to MH i2c: E2 08 00 9A 5B 80 17 00 00 00 00 00 00 75 [00:01:00]Write i2c OK [00:01:00]MH_I2C_Read... [00:01:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:00]Read from MH i2c: E2 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 FD 00 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 FD 00 9A 5B 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:01:00]09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 32 [00:01:00]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [00:01:00]wFMCommunicate OK [00:01:00]wFMCommunicate request_size=4 [00:01:00]MH_SAM_APDU [00:01:00]CAPDU: 80 17 00 00 [00:01:00]Write to MH i2c: E2 08 00 9B 5B 80 17 00 00 00 00 00 00 76 [00:01:00]Write i2c OK [00:01:00]MH_I2C_Read... [00:01:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:01]Read from MH i2c: E2 [00:01:01]MH_I2C_Read... [00:01:01]Read from MH i2c: E2 FD 00 [00:01:01]MH_I2C_Read... [00:01:01]Read from MH i2c: E2 FD 00 9B 5B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 4E [00:01:01]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:01:01]wFMCommunicate OK [00:01:01]wFMCommunicate request_size=4 [00:01:01]MH_SAM_APDU [00:01:01]CAPDU: 80 17 00 00 [00:01:01]Write to MH i2c: E2 08 00 9C 5B 80 17 00 00 00 00 00 00 77 [00:01:01]Write i2c OK [00:01:01]MH_I2C_Read... [00:01:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:01]Read from MH i2c: E2 [00:01:01]MH_I2C_Read... [00:01:01]Read from MH i2c: E2 FD 00 [00:01:01]MH_I2C_Read... [00:01:01]Read from MH i2c: E2 FD 00 9C 5B 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 EF [00:01:01]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:01:02]wFMCommunicate OK [00:01:02]wFMCommunicate request_size=4 [00:01:02]MH_SAM_APDU [00:01:02]CAPDU: 80 17 00 00 [00:01:02]Write to MH i2c: E2 08 00 9D 5B 80 17 00 00 00 00 00 00 78 [00:01:02]Write i2c OK [00:01:02]MH_I2C_Read... [00:01:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:01:02]Read from MH i2c: E2 [00:01:02]MH_I2C_Read... [00:01:02]Read from MH i2c: E2 E5 00 [00:01:02]MH_I2C_Read... [00:01:02]Read from MH i2c: E2 E5 00 9D 5B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5C [00:01:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:02]wFMCommunicate OK [00:01:02]SAM_PROTO_GetFMData done [00:01:02]Malloc new data [00:01:02]Malloc new data [00:01:02]Malloc new data [00:01:02]Malloc new data [00:01:02]KKMLoadAndSignCloseShiftData err=0 [00:01:02]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Мыктыбекова И. 13.03.2024 00:01 Смена: 327 РНМ: 0000000000090555 ЗНМ: 0300000009 СНО: Общий режим Чеков за смену: 233 ФД за смену: 235 Всего чеков: 233 ИТОГИ ПРИХОД Чеков: 223 Общий итог: 163939.85 Итого наличными: 113959.00 Итого безнал.: 49980.85 НДС 0% : 0.00 НДС 12% : 17412.47 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1450.72 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 10 Общий итог: 11859.00 Итого наличными: 11859.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1259.54 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 104.95 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 102100.00 НС Приход: 72619360.03 НС Возвр.Прихода: 5701125.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 95304 ФМ: 0000000000874811 ФПД: 257324008414190 [00:01:02]StoreToDocumentArchive [00:01:02]shift 327 fd 95304 [00:01:02]save to /storage/0327/doc_00095304 [00:01:02]save last doc name /storage/0327/doc_00095304 to /storage/kkm_last_doc_name [00:01:02]save OK [00:01:02]Clear old archive folders... [00:01:02]Remove dir /storage/0266 [00:01:02]opendir ok [00:01:02]file . [00:01:02]file .. [00:01:02]file doc_1710288033 [00:01:02]remove file /storage/0266/doc_1710288033 [00:01:02]remove dir /storage/0266 [00:01:02]NVStorageSaveData kkm_registers [00:01:02]File name is /storage/kkm_registers [00:01:02]Write 24 bytes [00:01:02]NVStorageSaveData done [00:01:02]NVStorageSaveData kkm_registers [00:01:02]File name is /storage/kkm_registers [00:01:02]Write 24 bytes [00:01:02]NVStorageSaveData done [00:01:02]ProcessDocumentItem done err = 0, tmpTLVsize=1392 [00:01:02]tlvbuf is 01D19990 [00:01:02]SAM_PROTO_ClearQueue [00:01:02]wFMCommunicate request_size=4 [00:01:02]MH_SAM_APDU [00:01:02]CAPDU: 80 09 00 00 [00:01:02]Write to MH i2c: E2 08 00 9E 5B 80 09 00 00 00 00 00 00 6B [00:01:02]Write i2c OK [00:01:02]MH_I2C_Read... [00:01:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:02]Read from MH i2c: E2 [00:01:02]MH_I2C_Read... [00:01:02]Read from MH i2c: E2 03 00 [00:01:02]MH_I2C_Read... [00:01:02]Read from MH i2c: E2 03 00 9E 5B 00 90 00 6D [00:01:03]RAPDU: 90 00 [00:01:03]wFMCommunicate OK [00:01:03]SAM_PROTO_ClearQueue done [00:01:03]KKMCreateOFDPacket [00:01:03]OFDProtocolAddRootSTLVToBuf [00:01:03]FM_MakeSignedData [00:01:03]FM_MakeSignedData [00:01:03]SAM_PROTO_SignData [00:01:03]wFMCommunicate request_size=4 [00:01:03]MH_SAM_APDU [00:01:03]CAPDU: 80 0D 01 02 [00:01:03]Write to MH i2c: E2 08 00 9F 5B 80 0D 01 02 00 00 00 00 73 [00:01:03]Write i2c OK [00:01:03]MH_I2C_Read... [00:01:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:03]Read from MH i2c: E2 [00:01:03]MH_I2C_Read... [00:01:03]Read from MH i2c: E2 03 00 [00:01:03]MH_I2C_Read... [00:01:03]Read from MH i2c: E2 03 00 9F 5B 00 90 00 6E [00:01:03]RAPDU: 90 00 [00:01:03]wFMCommunicate OK [00:01:03]wFMCommunicate request_size=255 [00:01:03]MH_SAM_APDU [00:01:03]CAPDU: 80 0D 02 02 FA 05 00 70 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 9C D1 8B D0 BA D1 82 D1 8B D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 98 2E F4 03 04 00 BD EC F0 65 0E 04 04 00 47 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 AA 04 DD 04 6E 04 04 00 E9 00 00 00 69 04 A3 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A 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 [00:01:03]Write to MH i2c: E2 02 01 A0 5B 80 0D 02 02 FA 00 05 00 70 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 9C D1 8B D0 BA D1 82 D1 8B D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 98 2E F4 03 04 00 BD EC F0 65 0E 04 04 00 47 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 AA 04 DD 04 6E 04 04 00 E9 00 00 00 69 04 A3 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A 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 00 00 59 [00:01:03]Write i2c OK [00:01:03]MH_I2C_Read... [00:01:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:03]Read from MH i2c: E2 [00:01:03]MH_I2C_Read... [00:01:03]Read from MH i2c: E2 03 00 [00:01:03]MH_I2C_Read... [00:01:03]Read from MH i2c: E2 03 00 A0 5B 00 90 00 6F [00:01:03]RAPDU: 90 00 [00:01:03]wFMCommunicate OK [00:01:03]wFMCommunicate request_size=255 [00:01:03]MH_SAM_APDU [00:01:03]CAPDU: 80 0D 02 02 FA 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 B0 36 02 6A 04 A0 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 70 04 03 00 6C 18 12 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 02 EC 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 FF 28 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:01:04]Write to MH i2c: E2 02 01 A1 5B 80 0D 02 02 FA 00 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 B0 36 02 6A 04 A0 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 70 04 03 00 6C 18 12 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 02 EC 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 FF 28 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 40 [00:01:04]Write i2c OK [00:01:04]MH_I2C_Read... [00:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:04]Read from MH i2c: E2 [00:01:04]MH_I2C_Read... [00:01:04]Read from MH i2c: E2 03 00 [00:01:04]MH_I2C_Read... [00:01:04]Read from MH i2c: E2 03 00 A1 5B 00 90 00 70 [00:01:04]RAPDU: 90 00 [00:01:04]wFMCommunicate OK [00:01:04]wFMCommunicate request_size=255 [00:01:04]MH_SAM_APDU [00:01:04]CAPDU: 80 0D 02 02 FA 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 [00:01:04]Write to MH i2c: E2 02 01 A2 5B 80 0D 02 02 FA 00 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 35 [00:01:05]Write i2c OK [00:01:05]MH_I2C_Read... [00:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:05]Read from MH i2c: E2 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 03 00 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 03 00 A2 5B 00 90 00 71 [00:01:05]RAPDU: 90 00 [00:01:05]wFMCommunicate OK [00:01:05]wFMCommunicate request_size=255 [00:01:05]MH_SAM_APDU [00:01:05]CAPDU: 80 0D 02 02 FA 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 [00:01:05]Write to MH i2c: E2 02 01 A3 5B 80 0D 02 02 FA 00 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 OFD Sender: No OFD packet to send [00:01:05]00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 00 00 3B [00:01:05]Write i2c OK [00:01:05]MH_I2C_Read... [00:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:06]Read from MH i2c: E2 [00:01:06]MH_I2C_Read... [00:01:06]Read from MH i2c: E2 03 00 [00:01:06]MH_I2C_Read... [00:01:06]Read from MH i2c: E2 03 00 A3 5B 00 90 00 72 [00:01:06]RAPDU: 90 00 [00:01:06]wFMCommunicate OK [00:01:06]wFMCommunicate request_size=255 [00:01:06]MH_SAM_APDU [00:01:06]CAPDU: 80 0D 02 02 FA 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 [00:01:06]Write to MH i2c: E2 02 01 A4 5B 80 0D 02 02 FA 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 00 00 16 [00:01:06]Write i2c OK [00:01:06]MH_I2C_Read... [00:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:07]Read from MH i2c: E2 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 03 00 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 03 00 A4 5B 00 90 00 73 [00:01:07]RAPDU: 90 00 [00:01:07]wFMCommunicate OK [00:01:07]wFMCommunicate request_size=151 [00:01:07]MH_SAM_APDU [00:01:07]CAPDU: 80 0D 02 02 92 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 48 74 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 EA 08 EA 1D 1B EE [00:01:07]Write to MH i2c: E2 9A 00 A5 5B 80 0D 02 02 92 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 48 74 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 EA 08 EA 1D 1B EE 00 00 71 [00:01:07]Write i2c OK [00:01:07]MH_I2C_Read... [00:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:07]Read from MH i2c: E2 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 03 00 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 03 00 A5 5B 00 90 00 74 [00:01:07]RAPDU: 90 00 [00:01:07]wFMCommunicate OK [00:01:07]wFMCommunicate request_size=4 [00:01:07]MH_SAM_APDU [00:01:07]CAPDU: 80 0D 03 02 [00:01:07]Write to MH i2c: E2 08 00 A6 5B 80 0D 03 02 00 00 00 00 7C [00:01:07]Write i2c OK [00:01:07]MH_I2C_Read... [00:01:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:07]Read from MH i2c: E2 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 0B 00 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 0B 00 A6 5B 00 76 B9 90 06 D2 15 80 2E 90 00 D7 [00:01:07]RAPDU: 76 B9 90 06 D2 15 80 2E 90 00 [00:01:07]wFMCommunicate OK [00:01:07]SAM_PROTO_SignData done [00:01:07]FM_MakeSignedData done [00:01:07]CreateOFDProtocolMessage [00:01:07]wFMCommunicate request_size=4 [00:01:07]MH_SAM_APDU [00:01:07]CAPDU: 80 11 00 00 [00:01:07]Write to MH i2c: E2 08 00 A7 5B 80 11 00 00 00 00 00 00 7C [00:01:07]Write i2c OK [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 [00:01:07]MH_I2C_Read... [00:01:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:07]Read from MH i2c: E2 17 00 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 17 00 A7 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CC [00:01:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:01:07]wFMCommunicate OK [00:01:07]CreateOFDProtocolMessage done [00:01:07]OFDSenderStorePacket 95304 [00:01:07]StoreOFDPacket docnum=95304 [00:01:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 84 05 00 00 C4 A6 7C 05 4C 12 5A 05 01 00 05 00 70 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 9C D1 8B D0 BA D1 82 D1 8B D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 98 2E F4 03 04 00 BD EC F0 65 0E 04 04 00 47 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 AA 04 DD 04 6E 04 04 00 E9 00 00 00 69 04 A3 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A 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 B0 36 02 6A 04 A0 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 70 04 03 00 6C 18 12 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 02 EC 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 FF 28 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 48 74 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 EA 08 EA 1D 1B EE 76 B9 90 06 D2 15 80 2E [00:01:08]CheckFolder [00:01:08]dirname=/storage/ofd_packets [00:01:08]CheckFolder done [00:01:08]ProducePacketName [00:01:08]name=ofd_packets/00095304 [00:01:08]NVStorageSaveData ofd_packets/00095304 [00:01:08]File name is /storage/ofd_packets/00095304 [00:01:08]Write 1442 bytes [00:01:08]NVStorageSaveData done [00:01:08]OFDSenderStorePacket done [00:01:08]KKMCreateOFDPacket done [00:01:08]NVStorageSaveData kkm_last_timestamp [00:01:08]File name is /storage/kkm_last_timestamp [00:01:08]Write 4 bytes [00:01:08]NVStorageSaveData done [00:01:08]ExternCall_PrintAddStr [00:01:08]wPrintStart [00:01:08]Write to MH i2c: 01 00 00 A8 5B 03 [00:01:08]Write i2c OK [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: 01 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: 01 07 00 [00:01:08]MH_I2C_Read... [00:01:08]OFD Sender: Processing packet 95304 [packets to send 30, broken 29] [00:01:08]ProducePacketName [00:01:08]name=ofd_packets/00095304 [00:01:08]OFD Sender: To server: pG, [00:01:08]CommunicateWithHost lk.salyk.kg:30040 [00:01:08]ConnectInit lk.salyk.kg [00:01:08]Read from MH i2c: 01 07 00 A8 5B 00 80 00 00 00 FF 0F 98 [00:01:08]RasterBufferAndPrint [00:01:08]line Отчет о закрытии смены [00:01:08]line ФФД: 1.0 [00:01:08]line ИНН: 02508201610067 [00:01:08]line Кассир: Мыктыбекова И. [00:01:08]line 13.03.2024 00:01 [00:01:08]line Смена: 327 [00:01:08]line РНМ: 0000000000090555 [00:01:08]line ЗНМ: 0300000009 [00:01:08]line СНО: Общий режим [00:01:08]line Чеков за смену: 233 [00:01:08]line ФД за смену: 235 [00:01:08]line Всего чеков: 233 [00:01:08]line ИТОГИ ПРИХОД [00:01:08]line Чеков: 223 [00:01:08]line Общий итог: 163939.85 [00:01:08]line Итого наличными: 113959.00 [00:01:08]line Итого безнал.: 49980.85 [00:01:08]line НДС 0% : 0.00 [00:01:08]line НДС 12% : 17412.47 [00:01:08]line НСП 0% : 0.00 [00:01:08]line НСП 1,50% : 0.00 [00:01:08]line НСП 0,50% : 0.00 [00:01:08]line НСП 5% : 0.00 [00:01:08]line НСП 3% : 0.00 [00:01:08]line НСП 2% : 0.00 [00:01:08]line НСП 1% : 1450.72 [00:01:08]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:01:08]line Чеков: 10 [00:01:08]line Общий итог: 11859.00 [00:01:08]line Итого наличными: 11859.00 [00:01:08]line Итого безнал.: 0.00 [00:01:08]line НДС 0% : 0.00 [00:01:08]line НДС 12% : 1259.54 [00:01:08]line НСП 0% : 0.00 [00:01:08]line НСП 1,50% : 0.00 [00:01:08]line НСП 0,50% : 0.00 [00:01:08]line НСП 5% : 0.00 [00:01:08]line НСП 3% : 0.00 [00:01:08]line НСП 2% : 0.00 [00:01:08]line НСП 1% : 104.95 [00:01:08]line ИТОГИ РАСХОД [00:01:08]line Чеков: 0 [00:01:08]line Общий итог: 0.00 [00:01:08]line Итого наличными: 0.00 [00:01:08]line Итого безнал.: 0.00 [00:01:08]line НДС 0% : 0.00 [00:01:08]line НДС 12% : 0.00 [00:01:08]line НСП 0% : 0.00 [00:01:08]line НСП 1,50% : 0.00 [00:01:08]line НСП 0,50% : 0.00 [00:01:08]line НСП 5% : 0.00 [00:01:08]line НСП 3% : 0.00 [00:01:08]line НСП 2% : 0.00 [00:01:08]line НСП 1% : 0.00 [00:01:08]line ИТОГИ ВОЗВРАТ РАСХОДА [00:01:08]line Чеков: 0 [00:01:08]line Общий итог: 0.00 [00:01:08]line Итого наличными: 0.00 [00:01:08]line Итого безнал.: 0.00 [00:01:08]line НДС 0% : 0.00 [00:01:08]line НДС 12% : 0.00 [00:01:08]line НСП 0% : 0.00 [00:01:08]line НСП 1,50% : 0.00 [00:01:08]line НСП 0,50% : 0.00 [00:01:08]line НСП 5% : 0.00 [00:01:08]line НСП 3% : 0.00 [00:01:08]line НСП 2% : 0.00 [00:01:08]line НСП 1% : 0.00 [00:01:08]line Сумма внесений: 0.00 [00:01:08]line Сумма выплат: 0.00 [00:01:08]line Нал. в кассе: 102100.00 [00:01:08]line НС Приход: 72619360.03 [00:01:08]line НС Возвр.Прихода: 5701125.60 [00:01:08]line НС Расход: 0.00 [00:01:08]line НС Возвр.Расхода: 0.00 [00:01:08]line ФД: 95304 [00:01:08]Connected sock=10 [00:01:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 84 05 00 00 C4 A6 7C 05 4C 12 5A 05 01 00 05 00 70 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 9C D1 8B D0 BA D1 82 D1 8B D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 98 2E F4 03 04 00 BD EC F0 65 0E 04 04 00 47 01 00 00 0D 04 10 00 30 30 line ФМ: 0000000000874811 [00:01:08]30 line ФПД: 257324008414190 [00:01:08]30 30 30 30 30 30 30 30 39 written 0, free lines is 4095 [00:01:08]30 35 35 35 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 AA 04 DD 04 6E 04 04 00 E9 00 00 00 69 04 A3 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A 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 B0 36 02 6A 04 A0 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 70 04 03 00 6C 18 12 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 02 EC 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 FF 28 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 Write to MH i2c: EF 01 03 00 09 00 00 F8 F6 5B 03 53 01 [00:01:09]00 00 F7 03 00 00 Write i2c OK [00:01:09]EF MH_I2C_Read... [00:01:09]03 09 00 F6 03 01 00 Read from MH i2c: 01 01 F7 [00:01:09]03 MH_I2C_Read... [00:01:09]00 00 EF 03 Read from MH i2c: 09 01 00 07 F6 00 03 [00:01:09]01 00 02 F7 03 00 00 EF 03 09 00 F6 MH_I2C_Read... [00:01:09]03 01 00 03 F7 03 00 00 EF 03 Read from MH i2c: 09 01 00 07 F6 00 03 F8 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 5B 01 00 00 80 05 00 F7 00 03 00 00 EF 03 09 00 F6 03 01 00 06 00 F7 B8 03 0B 00 9D 00 [00:01:09]D0 04 8D 00 6F 04 04 00 00 00 00 00 RasterBufferAndPrint [00:01:09]B1 line [00:01:09]04 line [00:01:09]00 line [00:01:09]00 line [00:01:09]70 04 00 00 72 04 00 00 00 04 75 00 line [00:01:09]EE 03 written 0, free lines is 3224 [00:01:09]09 00 F2 03 01 00 00 F3 03 00 00 process_action close_shift done [00:01:09]EE requested_data is exist [00:01:09]03 produce_requested_data [00:01:09]09 requested_item fd.num is exist - process it [00:01:09]00 SAM_PROTO_GetFieldsCounters [00:01:09]F2 wFMCommunicate request_size=4 [00:01:09]03 01 00 01 F3 03 00 00 EF 03 09 00 MH_SAM_APDU [00:01:09]F6 03 CAPDU: 01 80 00 13 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 00 03 [00:01:09]00 Write to MH i2c: 00 E2 08 00 FF 5B 80 13 00 00 00 00 00 00 D6 [00:01:09]EF Write i2c OK [00:01:09]03 MH_I2C_Read... [00:01:09]09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:09]01 00 01 F3 03 00 Read from MH i2c: 00 E2 EF [00:01:09]03 MH_I2C_Read... [00:01:09]09 00 F6 03 01 00 00 F7 03 00 00 EF 03 Read from MH i2c: 09 E2 00 62 F6 00 03 [00:01:09]01 MH_I2C_Read... [00:01:09]00 01 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 E2 03 62 01 00 00 FF 02 F7 03 00 00 EF 03 09 00 F6 03 01 5B 00 00 03 5D F7 00 B9 03 04 00 01 00 00 EF 01 03 11 09 04 00 F6 03 01 00 04 F7 03 00 00 EF 10 03 00 09 30 00 30 F6 30 03 01 00 05 F7 03 00 00 EF 03 09 00 30 F6 30 03 30 01 30 00 30 06 F7 03 00 00 D1 04 8D 00 6F 04 04 30 00 30 00 38 00 37 00 34 00 B1 04 00 00 70 04 00 00 72 04 00 38 00 31 00 31 04 0D 75 04 00 EE 03 09 00 F2 03 01 00 00 F3 10 03 00 00 30 00 30 EE 30 03 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 48 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 09 E9 00 00 F2 00 03 00 01 57 00 01 F3 03 00 00 EF 03 09 00 F6 04 03 04 01 00 00 EB 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 00 03 00 01 19 00 04 02 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 00 00 00 03 00 F7 00 03 90 00 00 EF 03 09 00 F6 03 01 00 04 00 F7 B4 [00:01:10]03 RAPDU: 00 5D 00 00 EF B9 03 04 09 01 00 00 F6 01 03 11 01 04 00 10 05 00 F7 30 03 00 00 EF 03 09 00 F6 03 01 00 30 06 30 F7 30 03 30 00 30 00 10 04 04 00 48 74 01 00 11 04 30 10 30 00 30 30 30 30 38 30 37 30 34 30 38 30 31 30 31 30 0D 30 04 30 10 38 00 37 30 34 30 30 30 30 30 30 30 30 38 30 31 30 31 39 35 30 04 35 35 35 10 04 04 00 48 74 01 00 0E 06 04 00 04 EA 00 08 47 EA 01 00 00 12 04 04 00 E9 00 00 00 5E 1D 04 1B 04 EE 00 76 E9 B9 00 90 00 06 D2 15 80 2E [00:01:10]00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:10]wFMCommunicate OK [00:01:10]SAM_PROTO_GetFieldsCounters done [00:01:10]requested_item shift.num is exist - process it [00:01:10]requested_item shift.opened is exist - process it [00:01:10]req_shift_opened [00:01:10]FM_GetShiftState [00:01:10]SAM_PROTO_GetShiftState [00:01:10]wFMCommunicate request_size=4 [00:01:10]MH_SAM_APDU [00:01:10]CAPDU: 80 13 01 00 [00:01:10]Write to MH i2c: E2 08 00 00 5C 80 13 01 00 00 00 00 00 D9 [00:01:10]Write i2c OK [00:01:10]MH_I2C_Read... [00:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:10]Read from MH i2c: E2 [00:01:10]MH_I2C_Read... [00:01:10]Read from MH i2c: E2 0E 00 [00:01:10]MH_I2C_Read... [00:01:10]Read from MH i2c: E2 0E 00 00 5C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E4 [00:01:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:01:10]wFMCommunicate OK [00:01:10]SAM_PROTO_GetShiftState done [00:01:10]FM_GetShiftState done [00:01:10]req_shift_opened done [00:01:10]requested_item shift.open_date is exist - process it [00:01:10]req_shift_open_date [00:01:10]FM_GetShiftState [00:01:10]SAM_PROTO_GetShiftState [00:01:10]wFMCommunicate request_size=4 [00:01:10]MH_SAM_APDU [00:01:10]CAPDU: 80 13 01 00 [00:01:10]Write to MH i2c: E2 08 00 01 5C 80 13 01 00 00 00 00 00 DA [00:01:10]Write i2c OK [00:01:10]MH_I2C_Read... [00:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 C0 3A 47 00 B7 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 48 74 01 00 F4 03 04 00 20 98 F0 65 B6 04 01 00 00 C5 26 C8 39 3C 87 74 77 [00:01:10]CommunicateWithHost err = 0 [00:01:10]CheckOFDResponse [00:01:10]1017 (14) - 77093643461234 [00:01:10]1041 (16) - 0000000000874811 [00:01:10]1040 (4) - 95304 [00:01:10]1012 (4) - 12.03.2024 18:00 [00:01:10]1206 (1) - 0 [00:01:10]OFD Sender: Remove packet 95304 [00:01:10]Read from MH i2c: ProducePacketName [00:01:10]E2 name=ofd_packets/00095304 [00:01:10] [00:01:10]NVStorageDeleteData [00:01:10]MH_I2C_Read... [00:01:10]Read from MH i2c: E2 0E 00 [00:01:10]MH_I2C_Read... [00:01:10]Read from MH i2c: E2 0E 00 01 5C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E5 [00:01:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:01:10]wFMCommunicate OK [00:01:10]SAM_PROTO_GetShiftState done [00:01:10]FM_GetShiftState done [00:01:10]req_shift_open_date done [00:01:10]produce_requested_data done [00:01:10]produce_requested_data return {"fd.num":95304,"shift.num":327,"shift.opened":0,"shift.open_date":0} [00:01:10]process_action_free close_shift [00:01:10]json_value_free [00:01:10]json_value_free done [00:01:10]process_json_proto returns [00:01:10]Send response to host [00:01:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":95304,"shift.num":327,"shift.opened":0,"shift.open_date":0}}} [00:01:10]free response buf [00:01:10]execute_script done [00:01:10]execute_script returns [00:01:10]free content buf [00:01:10]Sock 9.Close socket [00:01:10]Sock 9.Thread stoped [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:27]accept exits with 8 [00:04:27]New connection [00:04:27]New thread 3066813796 created [00:04:27]Thread 3066957156 joined [00:04:27]Waiting for new connection... [00:04:27] Sock 8.Parse request [00:04:27]Sock 8.Check first char [00:04:27]Sock 8.First char is OK [00:04:27]request: POST /json_proto HTTP/1.0 [00:04:27]Method: POST [00:04:27]URL: /json_proto [00:04:27]Method is POST - this is cgi request [00:04:27]url: /json_proto [00:04:27]query_string will be loaded in cgi processing [00:04:27]execute_cgi json_proto POST (null) [00:04:27]execute_cgi path=json_proto method=POST [00:04:27]POST find Content-Length [00:04:27]Host: 172.17.62.67:8080 [00:04:27]Content-Length: 215 [00:04:27]Content-Type: application/json [00:04:27] [00:04:27]POST finish read [00:04:27]Found Content-Length = 215 [00:04:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:27]execute_script... [00:04:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:27]POST & json_proto [00:04:27]process_json_proto [00:04:27]json parsed OK: [00:04:27]protocol is kg_v1.0 [00:04:27]action value=get_value [00:04:27]process_action get_value [00:04:27]cmd_get_value [00:04:27]process_action get_value done [00:04:27]requested_data is exist [00:04:27]produce_requested_data [00:04:27]requested_item kkm.sn is exist - process it [00:04:27]requested_item kkm.ver is exist - process it [00:04:27]requested_item fm.sn is exist - process it [00:04:27]wFMCommunicate request_size=4 [00:04:27]MH_SAM_APDU [00:04:27]CAPDU: 80 11 00 00 [00:04:27]Write to MH i2c: E2 08 00 02 5C 80 11 00 00 00 00 00 00 D8 [00:04:27]Write i2c OK [00:04:27]MH_I2C_Read... [00:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:27]Read from MH i2c: E2 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 17 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 17 00 02 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 28 [00:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:04:27]wFMCommunicate OK [00:04:27]requested_item fd.num is exist - process it [00:04:27]SAM_PROTO_GetFieldsCounters [00:04:27]wFMCommunicate request_size=4 [00:04:27]MH_SAM_APDU [00:04:27]CAPDU: 80 13 00 00 [00:04:27]Write to MH i2c: E2 08 00 03 5C 80 13 00 00 00 00 00 00 DB [00:04:27]Write i2c OK [00:04:27]MH_I2C_Read... [00:04:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:27]Read from MH i2c: E2 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 62 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 62 00 03 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 48 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [00:04:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 48 74 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:27]wFMCommunicate OK [00:04:27]SAM_PROTO_GetFieldsCounters done [00:04:27]requested_item shift.num is exist - process it [00:04:27]requested_item shift.opened is exist - process it [00:04:27]req_shift_opened [00:04:27]FM_GetShiftState [00:04:27]SAM_PROTO_GetShiftState [00:04:27]wFMCommunicate request_size=4 [00:04:27]MH_SAM_APDU [00:04:27]CAPDU: 80 13 01 00 [00:04:27]Write to MH i2c: E2 08 00 04 5C 80 13 01 00 00 00 00 00 DD [00:04:27]Write i2c OK [00:04:27]MH_I2C_Read... [00:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:27]Read from MH i2c: E2 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 0E 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 0E 00 04 5C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E8 [00:04:27]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:04:27]wFMCommunicate OK [00:04:27]SAM_PROTO_GetShiftState done [00:04:27]FM_GetShiftState done [00:04:27]req_shift_opened done [00:04:27]requested_item shift.open_date is exist - process it [00:04:27]req_shift_open_date [00:04:27]FM_GetShiftState [00:04:27]SAM_PROTO_GetShiftState [00:04:27]wFMCommunicate request_size=4 [00:04:27]MH_SAM_APDU [00:04:27]CAPDU: 80 13 01 00 [00:04:27]Write to MH i2c: E2 08 00 05 5C 80 13 01 00 00 00 00 00 DE [00:04:27]Write i2c OK [00:04:27]MH_I2C_Read... [00:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:27]Read from MH i2c: E2 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 0E 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 0E 00 05 5C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E9 [00:04:27]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:04:27]wFMCommunicate OK [00:04:27]SAM_PROTO_GetShiftState done [00:04:27]FM_GetShiftState done [00:04:27]req_shift_open_date done [00:04:27]produce_requested_data done [00:04:27]produce_requested_data return {"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95304,"shift.num":327,"shift.opened":0,"shift.open_date":0} [00:04:27]process_action_free get_value [00:04:27]json_value_free [00:04:27]json_value_free done [00:04:27]process_json_proto returns [00:04:27]Send response to host [00:04:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95304,"shift.num":327,"shift.opened":0,"shift.open_date":0}}} [00:04:27]free response buf [00:04:27]execute_script done [00:04:27]execute_script returns [00:04:27]free content buf [00:04:27]Sock 8.Close socket [00:04:27]Sock 8.Thread stoped [00:04:27]accept exits with 9 [00:04:27]New connection [00:04:27]New thread 3066957156 created [00:04:27]Thread 3066813796 joined [00:04:27]Waiting for new connection... [00:04:27] Sock 9.Parse request [00:04:27]Sock 9.Check first char [00:04:27]Sock 9.First char is OK [00:04:27]request: POST /json_proto HTTP/1.0 [00:04:27]Method: POST [00:04:27]URL: /json_proto [00:04:27]Method is POST - this is cgi request [00:04:27]url: /json_proto [00:04:27]query_string will be loaded in cgi processing [00:04:27]execute_cgi json_proto POST (null) [00:04:27]execute_cgi path=json_proto method=POST [00:04:27]POST find Content-Length [00:04:27]Host: 172.17.62.67:8080 [00:04:27]Content-Length: 331 [00:04:27]Content-Type: application/json [00:04:27] [00:04:27]POST finish read [00:04:27]Found Content-Length = 331 [00:04:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:27]execute_script... [00:04:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:28]POST & json_proto [00:04:28]process_json_proto [00:04:28]json parsed OK: [00:04:28]protocol is kg_v1.0 [00:04:28]action value=get_value [00:04:28]process_action get_value [00:04:28]cmd_get_value [00:04:28]process_action get_value done [00:04:28]requested_data is exist [00:04:28]produce_requested_data [00:04:28]requested_item fm.sale.total is exist - process it [00:04:28]SAM_PROTO_GetFMData [00:04:28]wFMCommunicate request_size=4 [00:04:28]MH_SAM_APDU [00:04:28]CAPDU: 80 13 03 00 [00:04:28]Write to MH i2c: E2 08 00 06 5C 80 13 03 00 00 00 00 00 E1 [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:28]Read from MH i2c: E2 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 FD 00 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 FD 00 06 5C 00 C8 04 85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 90 00 CD [00:04:28]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 90 00 [00:04:28]wFMCommunicate OK [00:04:28]wFMCommunicate request_size=4 [00:04:28]MH_SAM_APDU [00:04:28]CAPDU: 80 17 00 00 [00:04:28]Write to MH i2c: E2 08 00 07 5C 80 17 00 00 00 00 00 00 E3 [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:28]Read from MH i2c: E2 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 FD 00 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 FD 00 07 5C 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 A0 [00:04:28]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [00:04:28]wFMCommunicate OK [00:04:28]wFMCommunicate request_size=4 [00:04:28]MH_SAM_APDU [00:04:28]CAPDU: 80 17 00 00 [00:04:28]Write to MH i2c: E2 08 00 08 5C 80 17 00 00 00 00 00 00 E4 [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:29]Read from MH i2c: E2 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 08 5C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 BC [00:04:29]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:04:29]wFMCommunicate OK [00:04:29]wFMCommunicate request_size=4 [00:04:29]MH_SAM_APDU [00:04:29]CAPDU: 80 17 00 00 [00:04:29]Write to MH i2c: E2 08 00 09 5C 80 17 00 00 00 00 00 00 E5 [00:04:29]Write i2c OK [00:04:29]MH_I2C_Read... [00:04:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:29]Read from MH i2c: E2 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 09 5C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 5D [00:04:29]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:04:29]wFMCommunicate OK [00:04:29]wFMCommunicate request_size=4 [00:04:29]MH_SAM_APDU [00:04:29]CAPDU: 80 17 00 00 [00:04:29]Write to MH i2c: E2 08 00 0A 5C 80 17 00 00 00 00 00 00 E6 [00:04:29]Write i2c OK [00:04:29]MH_I2C_Read... [00:04:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:04:29]Read from MH i2c: E2 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 E5 00 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 E5 00 0A 5C 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CA [00:04:29]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:29]wFMCommunicate OK [00:04:29]SAM_PROTO_GetFMData done [00:04:29]requested_item fm.sale_refund.total is exist - process it [00:04:29]requested_item fm.buy.total is exist - process it [00:04:29]requested_item shift.sale.total is exist - process it [00:04:29]SAM_PROTO_GetShiftData [00:04:29]wFMCommunicate request_size=4 [00:04:29]MH_SAM_APDU [00:04:29]CAPDU: 80 13 02 00 [00:04:29]Write to MH i2c: E2 08 00 0B 5C 80 13 02 00 00 00 00 00 E5 [00:04:29]Write i2c OK [00:04:29]MH_I2C_Read... [00:04:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:30]Read from MH i2c: E2 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 0B 5C 00 BA 04 AA 04 B6 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B0 36 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 70 04 03 00 6C 18 12 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 02 EC 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 72 [00:04:30]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 01 27 FA 70 04 03 00 3C E3 AD 72 04 03 00 C5 43 4C 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 BF 91 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B0 36 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 6C 18 12 70 04 03 00 6C 18 12 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 02 EC 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:04:30]wFMCommunicate OK [00:04:30]wFMCommunicate request_size=4 [00:04:30]MH_SAM_APDU [00:04:30]CAPDU: 80 17 00 00 [00:04:30]Write to MH i2c: E2 08 00 0C 5C 80 17 00 00 00 00 00 00 E8 [00:04:30]Write i2c OK [00:04:30]MH_I2C_Read... [00:04:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:30]Read from MH i2c: E2 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 0C 5C 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FF 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B9 [00:04:30]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FF 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:04:30]wFMCommunicate OK [00:04:30]wFMCommunicate request_size=4 [00:04:30]MH_SAM_APDU [00:04:30]CAPDU: 80 17 00 00 [00:04:30]Write to MH i2c: E2 08 00 0D 5C 80 17 00 00 00 00 00 00 E9 [00:04:30]Write i2c OK [00:04:30]MH_I2C_Read... [00:04:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:30]Read from MH i2c: E2 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 0D 5C 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 15 [00:04:30]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 [00:04:30]wFMCommunicate OK [00:04:30]wFMCommunicate request_size=4 [00:04:30]MH_SAM_APDU [00:04:30]CAPDU: 80 17 00 00 [00:04:30]Write to MH i2c: E2 08 00 0E 5C 80 17 00 00 00 00 00 00 EA [00:04:30]Write i2c OK [00:04:30]MH_I2C_Read... [00:04:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:30]Read from MH i2c: E2 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 0E 5C 00 00 EF 03 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 62 [00:04:30]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 [00:04:30]wFMCommunicate OK [00:04:30]wFMCommunicate request_size=4 [00:04:30]MH_SAM_APDU [00:04:30]CAPDU: 80 17 00 00 [00:04:31]Write to MH i2c: E2 08 00 0F 5C 80 17 00 00 00 00 00 00 EB [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 D7 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 D7 00 0F 5C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CE [00:04:31]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 [00:04:31]wFMCommunicate OK [00:04:31]SAM_PROTO_GetShiftData done [00:04:31]requested_item shift.sale.total_cash is exist - process it [00:04:31]requested_item shift.sale_refund.total is exist - process it [00:04:31]requested_item shift.sale_refund.total_cash is exist - process it [00:04:31]requested_item shift.buy.total is exist - process it [00:04:31]requested_item shift.buy.total_cash is exist - process it [00:04:31]produce_requested_data done [00:04:31]produce_requested_data return {"fm.sale.total":72619360.03,"fm.sale_refund.total":5701125.60,"fm.buy.total":0.00,"shift.sale.total":163939.85,"shift.sale.total_cash":113959.00,"shift.sale_refund.total":11859.00,"shift.sale_refund.total_cash":11859.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:04:31]process_action_free get_value [00:04:31]json_value_free [00:04:31]json_value_free done [00:04:31]process_json_proto returns [00:04:31]Send response to host [00:04:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72619360.03,"fm.sale_refund.total":5701125.60,"fm.buy.total":0.00,"shift.sale.total":163939.85,"shift.sale.total_cash":113959.00,"shift.sale_refund.total":11859.00,"shift.sale_refund.total_cash":11859.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:04:31]free response buf [00:04:31]execute_script done [00:04:31]execute_script returns [00:04:31]free content buf [00:04:31]Sock 9.Close socket [00:04:31]Sock 9.Thread stoped [00:04:31]accept exits with 8 [00:04:31]New connection [00:04:31]New thread 3066813796 created [00:04:31]Thread 3066957156 joined [00:04:31]Waiting for new connection... [00:04:31] Sock 8.Parse request [00:04:31]Sock 8.Check first char [00:04:31]Sock 8.First char is OK [00:04:31]request: POST /json_proto HTTP/1.0 [00:04:31]Method: POST [00:04:31]URL: /json_proto [00:04:31]Method is POST - this is cgi request [00:04:31]url: /json_proto [00:04:31]query_string will be loaded in cgi processing [00:04:31]execute_cgi json_proto POST (null) [00:04:31]execute_cgi path=json_proto method=POST [00:04:31]POST find Content-Length [00:04:31]Host: 172.17.62.67:8080 [00:04:31]Content-Length: 266 [00:04:31]Content-Type: application/json [00:04:31] [00:04:31]POST finish read [00:04:31]Found Content-Length = 266 [00:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:31]execute_script... [00:04:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:31]POST & json_proto [00:04:31]process_json_proto [00:04:31]json parsed OK: [00:04:31]protocol is kg_v1.0 [00:04:31]action value=open_shift [00:04:31]process_action open_shift [00:04:31]cmd_open_shift [00:04:31]MH_GetDate [00:04:31]Write to MH i2c: F0 00 00 10 5C 5B [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: F0 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: F0 05 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: F0 05 00 10 5C 00 97 ED F0 65 39 [00:04:31]GetLastDocTimeStamp 1710288061 [00:04:31]current date 1710288279 [00:04:31]FM_GetShiftState [00:04:31]SAM_PROTO_GetShiftState [00:04:31]wFMCommunicate request_size=4 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 13 01 00 [00:04:31]Write to MH i2c: E2 08 00 11 5C 80 13 01 00 00 00 00 00 EA [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 0E 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 0E 00 11 5C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F5 [00:04:31]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:04:31]wFMCommunicate OK [00:04:31]SAM_PROTO_GetShiftState done [00:04:31]FM_GetShiftState done [00:04:31]KKMCreateOpenShiftDocument [00:04:31]Load OK [00:04:31]Malloc new data [00:04:31]MH_GetDate [00:04:31]Write to MH i2c: F0 00 00 12 5C 5D [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: F0 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: F0 05 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: F0 05 00 12 5C 00 97 ED F0 65 3B [00:04:31]Malloc new data [00:04:31]KKMCreateOpenShiftDocument OK [00:04:31]KKMSetOpenShiftData OK [00:04:31]ProcessDocumentItem done err = 0, tmpTLVsize=195 [00:04:31]tlvbuf is 01A14480 [00:04:31]KKMLoadAndSignOpenShiftData [00:04:31]SAM_PROTO_ProcessDocument [00:04:31]wFMCommunicate request_size=9 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 15 01 00 04 02 00 C3 00 [00:04:31]Write to MH i2c: E2 0C 00 13 5C 80 15 01 00 04 00 02 00 C3 00 00 00 BB [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 13 5C 00 90 00 E3 [00:04:31]RAPDU: 90 00 [00:04:31]wFMCommunicate OK [00:04:31]wFMCommunicate request_size=23 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:04:31]Write to MH i2c: E2 1A 00 14 5C 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 E5 [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 14 5C 00 90 00 E4 [00:04:31]RAPDU: 90 00 [00:04:31]wFMCommunicate OK [00:04:31]wFMCommunicate request_size=33 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 15 02 00 1C FD 03 18 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9C 2E [00:04:31]Write to MH i2c: E2 24 00 15 5C 80 15 02 00 1C 00 FD 03 18 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9C 2E 00 00 4C [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]OFD Sender: No OFD packet to send [00:04:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 15 5C 00 90 00 E5 [00:04:31]RAPDU: 90 00 [00:04:31]wFMCommunicate OK [00:04:31]wFMCommunicate request_size=82 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 15 02 00 4D F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 37 20 D0 B0 D0 BF D1 80 D0 B5 D0 BB D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 35 39 38 38 31 2C 20 37 34 2E 36 33 36 30 31 36 [00:04:31]Write to MH i2c: E2 55 00 16 5C 80 15 02 00 4D 00 F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 37 20 D0 B0 D0 BF D1 80 D0 B5 D0 BB D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 35 39 38 38 31 2C 20 37 34 2E 36 33 36 30 31 36 00 00 A6 [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 16 5C 00 90 00 E6 [00:04:31]RAPDU: 90 00 [00:04:31]wFMCommunicate OK [00:04:31]wFMCommunicate request_size=49 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 15 02 00 2C A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:04:31]Write to MH i2c: E2 34 00 17 5C 80 15 02 00 2C 00 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 35 [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 17 5C 00 90 00 E7 [00:04:31]RAPDU: 90 00 [00:04:31]wFMCommunicate OK [00:04:31]wFMCommunicate request_size=13 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 15 02 00 08 F4 03 04 00 97 ED F0 65 [00:04:31]Write to MH i2c: E2 10 00 18 5C 80 15 02 00 08 00 F4 03 04 00 97 ED F0 65 00 00 D8 [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 18 5C 00 90 00 E8 [00:04:31]RAPDU: 90 00 [00:04:31]wFMCommunicate OK [00:04:31]wFMCommunicate request_size=25 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 [00:04:31]Write to MH i2c: E2 1C 00 19 5C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 00 00 56 [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:32]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:32]Read from MH i2c: E2 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 03 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 03 00 19 5C 00 90 00 E9 [00:04:32]RAPDU: 90 00 [00:04:32]wFMCommunicate OK [00:04:32]wFMCommunicate request_size=4 [00:04:32]MH_SAM_APDU [00:04:32]CAPDU: 80 15 03 00 [00:04:32]Write to MH i2c: E2 08 00 1A 5C 80 15 03 00 00 00 00 00 F7 [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:32]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:04:32]Read from MH i2c: E2 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 38 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 38 00 1A 5C 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 49 74 01 00 0E 04 04 00 48 01 00 00 35 04 06 00 D5 6C E2 39 41 0B 90 00 6F [00:04:32]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 49 74 01 00 0E 04 04 00 48 01 00 00 35 04 06 00 D5 6C E2 39 41 0B 90 00 [00:04:32]wFMCommunicate OK [00:04:32]SAM_PROTO_ProcessDocument answer len = 51 [00:04:32]SAM_PROTO_ProcessDocument done [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1209 (04B9) [00:04:32]Malloc new data [00:04:32]Processing tag 1041 (0411) [00:04:32]Processing tag 1040 (0410) [00:04:32]Malloc new data [00:04:32]Processing tag 1038 (040E) [00:04:32]Malloc new data [00:04:32]Processing tag 1077 (0435) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]KKMLoadAndSignOpenShiftData store KKM data [00:04:32]KKMLoadAndSignOpenShiftData err=0 [00:04:32]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Сабырбек у. М. Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 Место: АЗС № 6 "Партнер Нефть" 13.03.2024 00:04 Смена: 328 РНМ: 0000000000090555 ЗНМ: 0300000009 ФД: 95305 ФМ: 0000000000874811 ФПД: 234663628587275 [00:04:32]StoreToDocumentArchive [00:04:32]shift 328 fd 95305 [00:04:32]Create dir for shift 0328 [00:04:32]save to /storage/0328/doc_00095305 [00:04:32]save last doc name /storage/0328/doc_00095305 to /storage/kkm_last_doc_name [00:04:32]save OK [00:04:32]Clear old archive folders... [00:04:32]Remove dir /storage/0327 [00:04:32]opendir ok [00:04:32]file . [00:04:32]file .. [00:04:32]file doc_00095070 [00:04:32]remove file /storage/0327/doc_00095070 [00:04:32]file doc_00095071 [00:04:32]remove file /storage/0327/doc_00095071 [00:04:32]file doc_00095072 [00:04:32]remove file /storage/0327/doc_00095072 [00:04:32]file doc_00095073 [00:04:32]remove file /storage/0327/doc_00095073 [00:04:32]file doc_00095074 [00:04:32]remove file /storage/0327/doc_00095074 [00:04:32]file doc_00095075 [00:04:32]remove file /storage/0327/doc_00095075 [00:04:32]file doc_00095076 [00:04:32]remove file /storage/0327/doc_00095076 [00:04:32]file doc_00095077 [00:04:32]remove file /storage/0327/doc_00095077 [00:04:32]file doc_00095078 [00:04:32]remove file /storage/0327/doc_00095078 [00:04:32]file doc_00095079 [00:04:32]remove file /storage/0327/doc_00095079 [00:04:32]file doc_00095080 [00:04:32]remove file /storage/0327/doc_00095080 [00:04:32]file doc_00095081 [00:04:32]remove file /storage/0327/doc_00095081 [00:04:32]file doc_00095082 [00:04:32]remove file /storage/0327/doc_00095082 [00:04:32]file doc_00095083 [00:04:32]remove file /storage/0327/doc_00095083 [00:04:32]file doc_00095084 [00:04:32]remove file /storage/0327/doc_00095084 [00:04:32]file doc_00095085 [00:04:32]remove file /storage/0327/doc_00095085 [00:04:32]file doc_00095086 [00:04:32]remove file /storage/0327/doc_00095086 [00:04:32]file doc_00095087 [00:04:32]remove file /storage/0327/doc_00095087 [00:04:32]file doc_00095088 [00:04:32]remove file /storage/0327/doc_00095088 [00:04:32]file doc_00095089 [00:04:32]remove file /storage/0327/doc_00095089 [00:04:32]file doc_00095090 [00:04:32]remove file /storage/0327/doc_00095090 [00:04:32]file doc_00095091 [00:04:32]remove file /storage/0327/doc_00095091 [00:04:32]file doc_00095092 [00:04:32]remove file /storage/0327/doc_00095092 [00:04:32]file doc_00095093 [00:04:32]remove file /storage/0327/doc_00095093 [00:04:32]file doc_00095094 [00:04:32]remove file /storage/0327/doc_00095094 [00:04:32]file doc_00095095 [00:04:32]remove file /storage/0327/doc_00095095 [00:04:32]file doc_00095096 [00:04:32]remove file /storage/0327/doc_00095096 [00:04:32]file doc_00095097 [00:04:32]remove file /storage/0327/doc_00095097 [00:04:32]file doc_00095098 [00:04:32]remove file /storage/0327/doc_00095098 [00:04:32]file doc_00095099 [00:04:32]remove file /storage/0327/doc_00095099 [00:04:32]file doc_00095100 [00:04:32]remove file /storage/0327/doc_00095100 [00:04:32]file doc_00095101 [00:04:32]remove file /storage/0327/doc_00095101 [00:04:32]file doc_00095102 [00:04:32]remove file /storage/0327/doc_00095102 [00:04:32]file doc_00095103 [00:04:32]remove file /storage/0327/doc_00095103 [00:04:32]file doc_00095104 [00:04:32]remove file /storage/0327/doc_00095104 [00:04:32]file doc_00095105 [00:04:32]remove file /storage/0327/doc_00095105 [00:04:32]file doc_00095106 [00:04:32]remove file /storage/0327/doc_00095106 [00:04:32]file doc_00095107 [00:04:32]remove file /storage/0327/doc_00095107 [00:04:32]file doc_00095108 [00:04:32]remove file /storage/0327/doc_00095108 [00:04:32]file doc_00095109 [00:04:32]remove file /storage/0327/doc_00095109 [00:04:32]file doc_00095110 [00:04:32]remove file /storage/0327/doc_00095110 [00:04:32]file doc_00095111 [00:04:32]remove file /storage/0327/doc_00095111 [00:04:32]file doc_00095112 [00:04:32]remove file /storage/0327/doc_00095112 [00:04:32]file doc_00095113 [00:04:32]remove file /storage/0327/doc_00095113 [00:04:32]file doc_00095114 [00:04:32]remove file /storage/0327/doc_00095114 [00:04:32]file doc_00095115 [00:04:32]remove file /storage/0327/doc_00095115 [00:04:32]file doc_00095116 [00:04:32]remove file /storage/0327/doc_00095116 [00:04:32]file doc_00095117 [00:04:32]remove file /storage/0327/doc_00095117 [00:04:32]file doc_00095118 [00:04:32]remove file /storage/0327/doc_00095118 [00:04:32]file doc_00095119 [00:04:32]remove file /storage/0327/doc_00095119 [00:04:32]file doc_00095120 [00:04:32]remove file /storage/0327/doc_00095120 [00:04:32]file doc_00095121 [00:04:32]remove file /storage/0327/doc_00095121 [00:04:32]file doc_00095122 [00:04:32]remove file /storage/0327/doc_00095122 [00:04:32]file doc_00095123 [00:04:32]remove file /storage/0327/doc_00095123 [00:04:32]file doc_00095124 [00:04:32]remove file /storage/0327/doc_00095124 [00:04:32]file doc_00095125 [00:04:32]remove file /storage/0327/doc_00095125 [00:04:32]file doc_00095126 [00:04:32]remove file /storage/0327/doc_00095126 [00:04:32]file doc_00095127 [00:04:32]remove file /storage/0327/doc_00095127 [00:04:32]file doc_00095128 [00:04:32]remove file /storage/0327/doc_00095128 [00:04:32]file doc_00095129 [00:04:32]remove file /storage/0327/doc_00095129 [00:04:32]file doc_00095130 [00:04:32]remove file /storage/0327/doc_00095130 [00:04:32]file doc_00095131 [00:04:32]remove file /storage/0327/doc_00095131 [00:04:32]file doc_00095132 [00:04:32]remove file /storage/0327/doc_00095132 [00:04:32]file doc_00095133 [00:04:32]remove file /storage/0327/doc_00095133 [00:04:32]file doc_00095134 [00:04:32]remove file /storage/0327/doc_00095134 [00:04:32]file doc_00095135 [00:04:32]remove file /storage/0327/doc_00095135 [00:04:32]file doc_00095136 [00:04:32]remove file /storage/0327/doc_00095136 [00:04:32]file doc_00095137 [00:04:32]remove file /storage/0327/doc_00095137 [00:04:32]file doc_00095138 [00:04:32]remove file /storage/0327/doc_00095138 [00:04:32]file doc_00095139 [00:04:32]remove file /storage/0327/doc_00095139 [00:04:32]file doc_00095140 [00:04:32]remove file /storage/0327/doc_00095140 [00:04:32]file doc_00095141 [00:04:32]remove file /storage/0327/doc_00095141 [00:04:32]file doc_00095142 [00:04:32]remove file /storage/0327/doc_00095142 [00:04:32]file doc_00095143 [00:04:32]remove file /storage/0327/doc_00095143 [00:04:32]file doc_00095144 [00:04:32]remove file /storage/0327/doc_00095144 [00:04:32]file doc_00095145 [00:04:32]remove file /storage/0327/doc_00095145 [00:04:32]file doc_00095146 [00:04:32]remove file /storage/0327/doc_00095146 [00:04:32]file doc_00095147 [00:04:32]remove file /storage/0327/doc_00095147 [00:04:32]file doc_00095148 [00:04:32]remove file /storage/0327/doc_00095148 [00:04:32]file doc_00095149 [00:04:32]remove file /storage/0327/doc_00095149 [00:04:32]file doc_00095150 [00:04:32]remove file /storage/0327/doc_00095150 [00:04:32]file doc_00095151 [00:04:32]remove file /storage/0327/doc_00095151 [00:04:32]file doc_00095152 [00:04:32]remove file /storage/0327/doc_00095152 [00:04:32]file doc_00095153 [00:04:32]remove file /storage/0327/doc_00095153 [00:04:32]file doc_00095154 [00:04:32]remove file /storage/0327/doc_00095154 [00:04:32]file doc_00095155 [00:04:32]remove file /storage/0327/doc_00095155 [00:04:32]file doc_00095156 [00:04:32]remove file /storage/0327/doc_00095156 [00:04:32]file doc_00095157 [00:04:32]remove file /storage/0327/doc_00095157 [00:04:32]file doc_00095158 [00:04:32]remove file /storage/0327/doc_00095158 [00:04:32]file doc_00095159 [00:04:32]remove file /storage/0327/doc_00095159 [00:04:32]file doc_00095160 [00:04:32]remove file /storage/0327/doc_00095160 [00:04:32]file doc_00095161 [00:04:32]remove file /storage/0327/doc_00095161 [00:04:32]file doc_00095162 [00:04:32]remove file /storage/0327/doc_00095162 [00:04:32]file doc_00095163 [00:04:32]remove file /storage/0327/doc_00095163 [00:04:32]file doc_00095164 [00:04:32]remove file /storage/0327/doc_00095164 [00:04:32]file doc_00095165 [00:04:32]remove file /storage/0327/doc_00095165 [00:04:32]file doc_00095166 [00:04:32]remove file /storage/0327/doc_00095166 [00:04:32]file doc_00095167 [00:04:32]remove file /storage/0327/doc_00095167 [00:04:32]file doc_00095168 [00:04:32]remove file /storage/0327/doc_00095168 [00:04:32]file doc_00095169 [00:04:32]remove file /storage/0327/doc_00095169 [00:04:32]file doc_00095170 [00:04:32]remove file /storage/0327/doc_00095170 [00:04:32]file doc_00095171 [00:04:32]remove file /storage/0327/doc_00095171 [00:04:32]file doc_00095172 [00:04:32]remove file /storage/0327/doc_00095172 [00:04:32]file doc_00095173 [00:04:32]remove file /storage/0327/doc_00095173 [00:04:32]file doc_00095174 [00:04:32]remove file /storage/0327/doc_00095174 [00:04:32]file doc_00095175 [00:04:32]remove file /storage/0327/doc_00095175 [00:04:32]file doc_00095176 [00:04:32]remove file /storage/0327/doc_00095176 [00:04:32]file doc_00095177 [00:04:32]remove file /storage/0327/doc_00095177 [00:04:32]file doc_00095178 [00:04:33]remove file /storage/0327/doc_00095178 [00:04:33]file doc_00095179 [00:04:33]remove file /storage/0327/doc_00095179 [00:04:33]file doc_00095180 [00:04:33]remove file /storage/0327/doc_00095180 [00:04:33]file doc_00095181 [00:04:33]remove file /storage/0327/doc_00095181 [00:04:33]file doc_00095182 [00:04:33]remove file /storage/0327/doc_00095182 [00:04:33]file doc_00095183 [00:04:33]remove file /storage/0327/doc_00095183 [00:04:33]file doc_00095184 [00:04:33]remove file /storage/0327/doc_00095184 [00:04:33]file doc_00095185 [00:04:33]remove file /storage/0327/doc_00095185 [00:04:33]file doc_00095186 [00:04:33]remove file /storage/0327/doc_00095186 [00:04:33]file doc_00095187 [00:04:33]remove file /storage/0327/doc_00095187 [00:04:33]file doc_00095188 [00:04:33]remove file /storage/0327/doc_00095188 [00:04:33]file doc_00095189 [00:04:33]remove file /storage/0327/doc_00095189 [00:04:33]file doc_00095190 [00:04:33]remove file /storage/0327/doc_00095190 [00:04:33]file doc_00095191 [00:04:33]remove file /storage/0327/doc_00095191 [00:04:33]file doc_00095192 [00:04:33]remove file /storage/0327/doc_00095192 [00:04:33]file doc_00095193 [00:04:33]remove file /storage/0327/doc_00095193 [00:04:33]file doc_00095194 [00:04:33]remove file /storage/0327/doc_00095194 [00:04:33]file doc_00095195 [00:04:33]remove file /storage/0327/doc_00095195 [00:04:33]file doc_00095196 [00:04:33]remove file /storage/0327/doc_00095196 [00:04:33]file doc_00095197 [00:04:33]remove file /storage/0327/doc_00095197 [00:04:33]file doc_00095198 [00:04:33]remove file /storage/0327/doc_00095198 [00:04:33]file doc_00095199 [00:04:33]remove file /storage/0327/doc_00095199 [00:04:33]file doc_00095200 [00:04:33]remove file /storage/0327/doc_00095200 [00:04:33]file doc_00095201 [00:04:33]remove file /storage/0327/doc_00095201 [00:04:33]file doc_00095202 [00:04:33]remove file /storage/0327/doc_00095202 [00:04:33]file doc_00095203 [00:04:33]remove file /storage/0327/doc_00095203 [00:04:33]file doc_00095204 [00:04:33]remove file /storage/0327/doc_00095204 [00:04:33]file doc_00095205 [00:04:33]remove file /storage/0327/doc_00095205 [00:04:33]file doc_00095206 [00:04:33]remove file /storage/0327/doc_00095206 [00:04:33]file doc_00095207 [00:04:33]remove file /storage/0327/doc_00095207 [00:04:33]file doc_00095208 [00:04:33]remove file /storage/0327/doc_00095208 [00:04:33]file doc_00095209 [00:04:33]remove file /storage/0327/doc_00095209 [00:04:33]file doc_00095210 [00:04:33]remove file /storage/0327/doc_00095210 [00:04:33]file doc_00095211 [00:04:33]remove file /storage/0327/doc_00095211 [00:04:33]file doc_00095212 [00:04:33]remove file /storage/0327/doc_00095212 [00:04:33]file doc_00095213 [00:04:33]remove file /storage/0327/doc_00095213 [00:04:33]file doc_00095214 [00:04:33]remove file /storage/0327/doc_00095214 [00:04:33]file doc_00095215 [00:04:33]remove file /storage/0327/doc_00095215 [00:04:33]file doc_00095216 [00:04:33]remove file /storage/0327/doc_00095216 [00:04:33]file doc_00095217 [00:04:33]remove file /storage/0327/doc_00095217 [00:04:33]file doc_00095218 [00:04:33]remove file /storage/0327/doc_00095218 [00:04:33]file doc_00095219 [00:04:33]remove file /storage/0327/doc_00095219 [00:04:33]file doc_00095220 [00:04:33]remove file /storage/0327/doc_00095220 [00:04:33]file doc_00095221 [00:04:33]remove file /storage/0327/doc_00095221 [00:04:33]file doc_00095222 [00:04:33]remove file /storage/0327/doc_00095222 [00:04:33]file doc_00095223 [00:04:33]remove file /storage/0327/doc_00095223 [00:04:33]file doc_00095224 [00:04:33]remove file /storage/0327/doc_00095224 [00:04:33]file doc_00095225 [00:04:33]remove file /storage/0327/doc_00095225 [00:04:33]file doc_00095226 [00:04:33]remove file /storage/0327/doc_00095226 [00:04:33]file doc_00095227 [00:04:33]remove file /storage/0327/doc_00095227 [00:04:33]file doc_00095228 [00:04:33]remove file /storage/0327/doc_00095228 [00:04:33]file doc_00095229 [00:04:33]remove file /storage/0327/doc_00095229 [00:04:33]file doc_00095230 [00:04:33]remove file /storage/0327/doc_00095230 [00:04:33]file doc_00095231 [00:04:33]remove file /storage/0327/doc_00095231 [00:04:33]file doc_00095232 [00:04:33]remove file /storage/0327/doc_00095232 [00:04:33]file doc_00095233 [00:04:33]remove file /storage/0327/doc_00095233 [00:04:33]file doc_00095234 [00:04:33]remove file /storage/0327/doc_00095234 [00:04:33]file doc_00095235 [00:04:33]remove file /storage/0327/doc_00095235 [00:04:33]file doc_00095236 [00:04:33]remove file /storage/0327/doc_00095236 [00:04:33]file doc_00095237 [00:04:33]remove file /storage/0327/doc_00095237 [00:04:33]file doc_00095238 [00:04:33]remove file /storage/0327/doc_00095238 [00:04:33]file doc_00095239 [00:04:33]remove file /storage/0327/doc_00095239 [00:04:33]file doc_00095240 [00:04:33]remove file /storage/0327/doc_00095240 [00:04:33]file doc_00095241 [00:04:33]remove file /storage/0327/doc_00095241 [00:04:33]file doc_00095242 [00:04:33]remove file /storage/0327/doc_00095242 [00:04:33]file doc_00095243 [00:04:33]remove file /storage/0327/doc_00095243 [00:04:33]file doc_00095244 [00:04:33]remove file /storage/0327/doc_00095244 [00:04:33]file doc_00095245 [00:04:33]remove file /storage/0327/doc_00095245 [00:04:33]file doc_00095246 [00:04:33]remove file /storage/0327/doc_00095246 [00:04:33]file doc_00095247 [00:04:33]remove file /storage/0327/doc_00095247 [00:04:33]file doc_00095248 [00:04:33]remove file /storage/0327/doc_00095248 [00:04:33]file doc_00095249 [00:04:33]remove file /storage/0327/doc_00095249 [00:04:33]file doc_00095250 [00:04:33]remove file /storage/0327/doc_00095250 [00:04:33]file doc_00095251 [00:04:33]remove file /storage/0327/doc_00095251 [00:04:33]file doc_00095252 [00:04:33]remove file /storage/0327/doc_00095252 [00:04:33]file doc_00095253 [00:04:33]remove file /storage/0327/doc_00095253 [00:04:33]file doc_00095254 [00:04:33]remove file /storage/0327/doc_00095254 [00:04:33]file doc_00095255 [00:04:33]remove file /storage/0327/doc_00095255 [00:04:33]file doc_00095256 [00:04:33]remove file /storage/0327/doc_00095256 [00:04:33]file doc_00095257 [00:04:33]remove file /storage/0327/doc_00095257 [00:04:33]file doc_00095258 [00:04:33]remove file /storage/0327/doc_00095258 [00:04:33]file doc_00095259 [00:04:33]remove file /storage/0327/doc_00095259 [00:04:33]file doc_00095260 [00:04:33]remove file /storage/0327/doc_00095260 [00:04:33]file doc_00095261 [00:04:33]remove file /storage/0327/doc_00095261 [00:04:33]file doc_00095262 [00:04:33]remove file /storage/0327/doc_00095262 [00:04:33]file doc_00095263 [00:04:33]remove file /storage/0327/doc_00095263 [00:04:33]file doc_00095264 [00:04:33]remove file /storage/0327/doc_00095264 [00:04:33]file doc_00095265 [00:04:33]remove file /storage/0327/doc_00095265 [00:04:33]file doc_00095266 [00:04:33]remove file /storage/0327/doc_00095266 [00:04:33]file doc_00095267 [00:04:33]remove file /storage/0327/doc_00095267 [00:04:33]file doc_00095268 [00:04:33]remove file /storage/0327/doc_00095268 [00:04:33]file doc_00095269 [00:04:33]remove file /storage/0327/doc_00095269 [00:04:33]file doc_00095270 [00:04:33]remove file /storage/0327/doc_00095270 [00:04:33]file doc_00095271 [00:04:33]remove file /storage/0327/doc_00095271 [00:04:33]file doc_00095272 [00:04:33]remove file /storage/0327/doc_00095272 [00:04:33]file doc_00095273 [00:04:33]remove file /storage/0327/doc_00095273 [00:04:33]file doc_00095274 [00:04:33]remove file /storage/0327/doc_00095274 [00:04:33]file doc_00095275 [00:04:33]remove file /storage/0327/doc_00095275 [00:04:33]file doc_00095276 [00:04:33]remove file /storage/0327/doc_00095276 [00:04:33]file doc_00095277 [00:04:33]remove file /storage/0327/doc_00095277 [00:04:33]file doc_00095278 [00:04:33]remove file /storage/0327/doc_00095278 [00:04:33]file doc_00095279 [00:04:33]remove file /storage/0327/doc_00095279 [00:04:33]file doc_00095280 [00:04:33]remove file /storage/0327/doc_00095280 [00:04:33]file doc_00095281 [00:04:33]remove file /storage/0327/doc_00095281 [00:04:33]file doc_00095282 [00:04:33]remove file /storage/0327/doc_00095282 [00:04:33]file doc_00095283 [00:04:33]remove file /storage/0327/doc_00095283 [00:04:33]file doc_00095284 [00:04:33]remove file /storage/0327/doc_00095284 [00:04:33]file doc_00095285 [00:04:33]remove file /storage/0327/doc_00095285 [00:04:33]file doc_00095286 [00:04:33]remove file /storage/0327/doc_00095286 [00:04:33]file doc_00095287 [00:04:33]remove file /storage/0327/doc_00095287 [00:04:33]file doc_00095288 [00:04:33]remove file /storage/0327/doc_00095288 [00:04:33]file doc_00095289 [00:04:33]remove file /storage/0327/doc_00095289 [00:04:33]file doc_00095290 [00:04:33]remove file /storage/0327/doc_00095290 [00:04:33]file doc_00095291 [00:04:33]remove file /storage/0327/doc_00095291 [00:04:33]file doc_00095292 [00:04:33]remove file /storage/0327/doc_00095292 [00:04:33]file doc_00095293 [00:04:33]remove file /storage/0327/doc_00095293 [00:04:33]file doc_00095294 [00:04:33]remove file /storage/0327/doc_00095294 [00:04:33]file doc_00095295 [00:04:33]remove file /storage/0327/doc_00095295 [00:04:33]file doc_00095296 [00:04:33]remove file /storage/0327/doc_00095296 [00:04:33]file doc_00095297 [00:04:33]remove file /storage/0327/doc_00095297 [00:04:33]file doc_00095298 [00:04:33]remove file /storage/0327/doc_00095298 [00:04:33]file doc_00095299 [00:04:33]remove file /storage/0327/doc_00095299 [00:04:33]file doc_00095300 [00:04:33]remove file /storage/0327/doc_00095300 [00:04:33]file doc_00095301 [00:04:33]remove file /storage/0327/doc_00095301 [00:04:33]file doc_00095302 [00:04:33]remove file /storage/0327/doc_00095302 [00:04:33]file doc_00095303 [00:04:33]remove file /storage/0327/doc_00095303 [00:04:33]file doc_00095304 [00:04:33]remove file /storage/0327/doc_00095304 [00:04:33]remove dir /storage/0327 [00:04:33]ProcessDocumentItem done err = 0, tmpTLVsize=246 [00:04:33]tlvbuf is 01A78830 [00:04:33]SAM_PROTO_ClearQueue [00:04:33]wFMCommunicate request_size=4 [00:04:33]MH_SAM_APDU [00:04:33]CAPDU: 80 09 00 00 [00:04:33]Write to MH i2c: E2 08 00 1B 5C 80 09 00 00 00 00 00 00 E9 [00:04:33]Write i2c OK [00:04:33]MH_I2C_Read... [00:04:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:04:33]Read from MH i2c: E2 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 03 00 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 03 00 1B 5C 00 90 00 EB [00:04:33]RAPDU: 90 00 [00:04:33]wFMCommunicate OK [00:04:33]SAM_PROTO_ClearQueue done [00:04:33]KKMCreateOFDPacket [00:04:33]OFDProtocolAddRootSTLVToBuf [00:04:33]FM_MakeSignedData [00:04:33]FM_MakeSignedData [00:04:33]SAM_PROTO_SignData [00:04:33]wFMCommunicate request_size=4 [00:04:33]MH_SAM_APDU [00:04:33]CAPDU: 80 0D 01 02 [00:04:33]Write to MH i2c: E2 08 00 1C 5C 80 0D 01 02 00 00 00 00 F1 [00:04:33]Write i2c OK [00:04:33]MH_I2C_Read... [00:04:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:04:33]Read from MH i2c: E2 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 03 00 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 03 00 1C 5C 00 90 00 EC [00:04:33]RAPDU: 90 00 [00:04:33]wFMCommunicate OK [00:04:33]wFMCommunicate request_size=255 [00:04:33]MH_SAM_APDU [00:04:33]CAPDU: 80 0D 02 02 FA 02 00 F6 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9C 2E F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 37 20 D0 B0 D0 BF D1 80 D0 B5 D0 BB D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 35 39 38 38 31 2C 20 37 34 2E 36 33 36 30 31 36 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 97 ED F0 65 0E 04 04 00 48 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 49 74 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 D5 6C E2 39 41 0B [00:04:33]Write to MH i2c: E2 02 01 1D 5C 80 0D 02 02 FA 00 02 00 F6 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9C 2E F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 37 20 D0 B0 D0 BF D1 80 D0 B5 D0 BB D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 35 39 38 38 31 2C 20 37 34 2E 36 33 36 30 31 36 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 97 ED F0 65 0E 04 04 00 48 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 49 74 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 D5 6C E2 39 41 0B 00 00 02 [00:04:33]Write i2c OK [00:04:33]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 03 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 03 00 1D 5C 00 90 00 ED [00:04:34]RAPDU: 90 00 [00:04:34]wFMCommunicate OK [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 0D 03 02 [00:04:34]Write to MH i2c: E2 08 00 1E 5C 80 0D 03 02 00 00 00 00 F5 [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 0B 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 0B 00 1E 5C 00 0B 17 8C 56 18 49 F2 C5 90 00 12 [00:04:34]RAPDU: 0B 17 8C 56 18 49 F2 C5 90 00 [00:04:34]wFMCommunicate OK [00:04:34]SAM_PROTO_SignData done [00:04:34]FM_MakeSignedData done [00:04:34]CreateOFDProtocolMessage [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 11 00 00 [00:04:34]Write to MH i2c: E2 08 00 1F 5C 80 11 00 00 00 00 00 00 F5 [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 17 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 17 00 1F 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 45 [00:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:04:34]wFMCommunicate OK [00:04:34]CreateOFDProtocolMessage done [00:04:34]OFDSenderStorePacket 95305 [00:04:34]StoreOFDPacket docnum=95305 [00:04:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0A 01 00 00 6E 6D 02 01 CA 9F 5A 02 01 00 02 00 F6 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9C 2E F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 37 20 D0 B0 D0 BF D1 80 D0 B5 D0 BB D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 35 39 38 38 31 2C 20 37 34 2E 36 33 36 30 31 36 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 97 ED F0 65 0E 04 04 00 48 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 49 74 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 D5 6C E2 39 41 0B 0B 17 8C 56 18 49 F2 C5 [00:04:34]CheckFolder [00:04:34]dirname=/storage/ofd_packets [00:04:34]CheckFolder done [00:04:34]ProducePacketName [00:04:34]name=ofd_packets/00095305 [00:04:34]NVStorageSaveData ofd_packets/00095305 [00:04:34]File name is /storage/ofd_packets/00095305 [00:04:34]Write 296 bytes [00:04:34]NVStorageSaveData done [00:04:34]OFDSenderStorePacket done [00:04:34]KKMCreateOFDPacket done [00:04:34]NVStorageSaveData kkm_last_timestamp [00:04:34]File name is /storage/kkm_last_timestamp [00:04:34]Write 4 bytes [00:04:34]NVStorageSaveData done [00:04:34]ExternCall_PrintAddStr [00:04:34]wPrintStart [00:04:34]Write to MH i2c: 01 00 00 20 5C 7C [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: 01 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: 01 07 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: 01 07 00 20 5C 00 80 00 00 00 FF 0F 11 [00:04:34]RasterBufferAndPrint [00:04:34]line Отчет об открытии смены [00:04:34]line ФФД: 1.0 [00:04:34]line ИНН: 02508201610067 [00:04:34]line Кассир: Сабырбек у. М. [00:04:34]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [00:04:34]line Место: АЗС № 6 "Партнер Нефть" [00:04:34]line 13.03.2024 00:04 [00:04:34]line Смена: 328 [00:04:34]line РНМ: 0000000000090555 [00:04:34]line ЗНМ: 0300000009 [00:04:34]line ФД: 95305 [00:04:34]line ФМ: 0000000000874811 [00:04:34]line ФПД: 234663628587275 [00:04:34]written 0, free lines is 4095 [00:04:34]OFD Sender: Processing packet 95305 [packets to send 30, broken 29] [00:04:34]ProducePacketName [00:04:34]name=ofd_packets/00095305 [00:04:34]OFD Sender: To server: pG, [00:04:34]CommunicateWithHost lk.salyk.kg:30040 [00:04:34]ConnectInit lk.salyk.kg [00:04:34]Write to MH i2c: 01 00 00 32 5C 8E [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: 01 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: 01 07 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: 01 07 00 32 5C 00 80 00 00 00 AF 0E D2 [00:04:34]RasterBufferAndPrint [00:04:34]line [00:04:34]line [00:04:34]line [00:04:34]line [00:04:34]line [00:04:34]written 0, free lines is 3772 [00:04:34]process_action open_shift done [00:04:34]requested_data is exist [00:04:34]produce_requested_data [00:04:34]requested_item fd.num is exist - process it [00:04:34]SAM_PROTO_GetFieldsCounters [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 13 00 00 [00:04:34]Write to MH i2c: E2 08 00 39 5C 80 13 00 00 00 00 00 00 11 [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 62 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 62 00 39 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 49 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [00:04:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 49 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:34]wFMCommunicate OK [00:04:34]SAM_PROTO_GetFieldsCounters done [00:04:34]requested_item shift.num is exist - process it [00:04:34]requested_item shift.opened is exist - process it [00:04:34]req_shift_opened [00:04:34]FM_GetShiftState [00:04:34]SAM_PROTO_GetShiftState [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 13 01 00 [00:04:34]Write to MH i2c: E2 08 00 3A 5C 80 13 01 00 00 00 00 00 13 [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 0E 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 0E 00 3A 5C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F8 [00:04:34]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [00:04:34]wFMCommunicate OK [00:04:34]SAM_PROTO_GetShiftState done [00:04:34]FM_GetShiftState done [00:04:34]req_shift_opened done [00:04:34]requested_item shift.open_date is exist - process it [00:04:34]req_shift_open_date [00:04:34]req_shift_open_date done [00:04:34]produce_requested_data done [00:04:34]produce_requested_data return {"fd.num":95305,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [00:04:34]process_action_free open_shift [00:04:34]json_value_free [00:04:34]json_value_free done [00:04:34]process_json_proto returns [00:04:34]Send response to host [00:04:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":95305,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [00:04:34]free response buf [00:04:34]execute_script done [00:04:34]execute_script returns [00:04:34]free content buf [00:04:34]Sock 8.Close socket [00:04:34]Sock 8.Thread stoped [00:04:34]accept exits with 9 [00:04:34]New connection [00:04:34]New thread 3066957156 created [00:04:34]Thread 3066813796 joined [00:04:34]Waiting for new connection... [00:04:34] Sock 9.Parse request [00:04:34]Sock 9.Check first char [00:04:34]Sock 9.First char is OK [00:04:34]request: POST /json_proto HTTP/1.0 [00:04:34]Method: POST [00:04:34]URL: /json_proto [00:04:34]Method is POST - this is cgi request [00:04:34]url: /json_proto [00:04:34]query_string will be loaded in cgi processing [00:04:34]execute_cgi json_proto POST (null) [00:04:34]execute_cgi path=json_proto method=POST [00:04:34]POST find Content-Length [00:04:34]Host: 172.17.62.67:8080 [00:04:34]Content-Length: 331 [00:04:34]Content-Type: application/json [00:04:34] [00:04:34]POST finish read [00:04:34]Found Content-Length = 331 [00:04:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:34]execute_script... [00:04:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:34]POST & json_proto [00:04:34]process_json_proto [00:04:34]json parsed OK: [00:04:34]protocol is kg_v1.0 [00:04:34]action value=get_value [00:04:34]process_action get_value [00:04:34]cmd_get_value [00:04:34]process_action get_value done [00:04:34]requested_data is exist [00:04:34]produce_requested_data [00:04:34]requested_item fm.sale.total is exist - process it [00:04:34]SAM_PROTO_GetFMData [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 13 03 00 [00:04:34]Write to MH i2c: E2 08 00 3B 5C 80 13 03 00 00 00 00 00 16 [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:35]Read from MH i2c: E2 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 FD 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 FD 00 3B 5C 00 C8 04 85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 90 00 02 [00:04:35]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 B4 71 01 00 69 04 A3 00 6F 04 04 00 D7 64 01 00 B1 04 05 00 83 59 D8 B0 01 70 04 05 00 B8 06 BB 5C 01 72 04 04 00 CB 52 1D 54 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 8C 65 FA 2D 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 4C C7 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 DD 0C 00 00 B1 04 04 00 30 3A FB 21 70 04 04 00 5C 0F FA 21 72 04 03 00 D4 2A 01 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 02 F6 9B 03 90 00 [00:04:35]wFMCommunicate OK [00:04:35]wFMCommunicate request_size=4 [00:04:35]MH_SAM_APDU [00:04:35]CAPDU: 80 17 00 00 [00:04:35]Write to MH i2c: E2 08 00 3C 5C 80 17 00 00 00 00 00 00 18 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:35]Read from MH i2c: E2 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 FD 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 FD 00 3C 5C 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 D5 [00:04:35]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 77 FE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [00:04:35]wFMCommunicate OK [00:04:35]wFMCommunicate request_size=4 [00:04:35]MH_SAM_APDU [00:04:35]CAPDU: 80 17 00 00 [00:04:35]Write to MH i2c: E2 08 00 3D 5C 80 17 00 00 00 00 00 00 19 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:36]Read from MH i2c: E2 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 FD 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 FD 00 3D 5C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 F1 [00:04:36]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:04:36]wFMCommunicate OK [00:04:36]wFMCommunicate request_size=4 [00:04:36]MH_SAM_APDU [00:04:36]CAPDU: 80 17 00 00 [00:04:36]Write to MH i2c: E2 08 00 3E 5C 80 17 00 00 00 00 00 00 1A [00:04:36]Write i2c OK [00:04:36]MH_I2C_Read... [00:04:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:36]Read from MH i2c: E2 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 FD 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 FD 00 3E 5C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 92 [00:04:36]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:04:36]wFMCommunicate OK [00:04:36]wFMCommunicate request_size=4 [00:04:36]MH_SAM_APDU [00:04:36]CAPDU: 80 17 00 00 [00:04:36]Write to MH i2c: E2 08 00 3F 5C 80 17 00 00 00 00 00 00 1B [00:04:36]Write i2c OK [00:04:36]MH_I2C_Read... [00:04:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:04:36]Read from MH i2c: E2 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 E5 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 E5 00 3F 5C 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FF [00:04:37]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:37]wFMCommunicate OK [00:04:37]SAM_PROTO_GetFMData done [00:04:37]requested_item fm.sale_refund.total is exist - process it [00:04:37]requested_item fm.buy.total is exist - process it [00:04:37]requested_item shift.sale.total is exist - process it [00:04:37]SAM_PROTO_GetShiftData [00:04:37]wFMCommunicate request_size=4 [00:04:37]MH_SAM_APDU [00:04:37]CAPDU: 80 13 02 00 [00:04:37]Write to MH i2c: E2 08 00 40 5C 80 13 02 00 00 00 00 00 1A [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:37]Read from MH i2c: E2 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 FD 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 FD 00 40 5C 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 8D [00:04:37]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:04:37]wFMCommunicate OK [00:04:37]wFMCommunicate request_size=4 [00:04:37]MH_SAM_APDU [00:04:37]CAPDU: 80 17 00 00 [00:04:37]Write to MH i2c: E2 08 00 41 5C 80 17 00 00 00 00 00 00 1D [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:37]Read from MH i2c: E2 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 FD 00 [00:04:37]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 FD 00 41 5C 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 25 [00:04:38]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:04:38]wFMCommunicate OK [00:04:38]wFMCommunicate request_size=4 [00:04:38]MH_SAM_APDU [00:04:38]CAPDU: 80 17 00 00 [00:04:38]Write to MH i2c: E2 08 00 42 5C 80 17 00 00 00 00 00 00 1E [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:38]Read from MH i2c: E2 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 FD 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 FD 00 42 5C 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 F0 [00:04:38]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:04:38]wFMCommunicate OK [00:04:38]wFMCommunicate request_size=4 [00:04:38]MH_SAM_APDU [00:04:38]CAPDU: 80 17 00 00 [00:04:38]Write to MH i2c: E2 08 00 43 5C 80 17 00 00 00 00 00 00 1F [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:38]Read from MH i2c: E2 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 FD 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 FD 00 43 5C 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 91 [00:04:39]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:04:39]wFMCommunicate OK [00:04:39]wFMCommunicate request_size=4 [00:04:39]MH_SAM_APDU [00:04:39]CAPDU: 80 17 00 00 [00:04:39]Write to MH i2c: E2 08 00 44 5C 80 17 00 00 00 00 00 00 20 [00:04:39]Write i2c OK [00:04:39]MH_I2C_Read... [00:04:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:04:39]Read from MH i2c: E2 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 BD 00 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 BD 00 44 5C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 06 [00:04:39]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:39]wFMCommunicate OK [00:04:39]SAM_PROTO_GetShiftData done [00:04:39]requested_item shift.sale.total_cash is exist - process it [00:04:39]requested_item shift.sale_refund.total is exist - process it [00:04:39]requested_item shift.sale_refund.total_cash is exist - process it [00:04:39]requested_item shift.buy.total is exist - process it [00:04:39]requested_item shift.buy.total_cash is exist - process it [00:04:39]produce_requested_data done [00:04:39]produce_requested_data return {"fm.sale.total":72619360.03,"fm.sale_refund.total":5701125.60,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:04:39]process_action_free get_value [00:04:39]json_value_free [00:04:39]json_value_free done [00:04:39]process_json_proto returns [00:04:39]Send response to host [00:04:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72619360.03,"fm.sale_refund.total":5701125.60,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:04:39]free response buf [00:04:39]execute_script done [00:04:39]execute_script returns [00:04:39]free content buf [00:04:39]Sock 9.Close socket [00:04:39]Sock 9.Thread stoped [00:06:46]ConnectInit Can't connect to host [00:06:46]CommunicateWithHost connect error [00:06:46]CommunicateWithHost err = -1 [00:06:46]OFD Sender: Server communicate error [00:06:51]OFD Sender: Processing packet 95305 [packets to send 30, broken 29] [00:06:51]ProducePacketName [00:06:51]name=ofd_packets/00095305 [00:06:51]OFD Sender: To server: pG, [00:06:51]CommunicateWithHost lk.salyk.kg:30040 [00:06:51]ConnectInit lk.salyk.kg [00:06:52]Connected sock=9 [00:06:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0A 01 00 00 6E 6D 02 01 CA 9F 5A 02 01 00 02 00 F6 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9C 2E F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 37 20 D0 B0 D0 BF D1 80 D0 B5 D0 BB D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 35 39 38 38 31 2C 20 37 34 2E 36 33 36 30 31 36 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 97 ED F0 65 0E 04 04 00 48 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 49 74 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 D5 6C E2 39 41 0B 0B 17 8C 56 18 49 F2 C5 [00:06:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 1F 75 47 00 52 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 49 74 01 00 F4 03 04 00 76 99 F0 65 B6 04 01 00 00 4B E2 CC 3B 32 C5 B9 FD [00:06:52]CommunicateWithHost err = 0 [00:06:52]CheckOFDResponse [00:06:52]1017 (14) - 77093643461234 [00:06:52]1041 (16) - 0000000000874811 [00:06:52]1040 (4) - 95305 [00:06:52]1012 (4) - 12.03.2024 18:05 [00:06:52]1206 (1) - 0 [00:06:52]OFD Sender: Remove packet 95305 [00:06:52]ProducePacketName [00:06:52]name=ofd_packets/00095305 [00:06:52]NVStorageDeleteData [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:23]accept exits with 8 [00:10:23]New connection [00:10:23]New thread 3066813796 created [00:10:23]Thread 3066957156 joined [00:10:23]Waiting for new connection... [00:10:23] Sock 8.Parse request [00:10:23]Sock 8.Check first char [00:10:23]Sock 8.First char is OK [00:10:23]request: POST /json_proto HTTP/1.0 [00:10:23]Method: POST [00:10:23]URL: /json_proto [00:10:23]Method is POST - this is cgi request [00:10:23]url: /json_proto [00:10:23]query_string will be loaded in cgi processing [00:10:23]execute_cgi json_proto POST (null) [00:10:23]execute_cgi path=json_proto method=POST [00:10:23]POST find Content-Length [00:10:23]Host: 172.17.62.67:8080 [00:10:23]Content-Length: 677 [00:10:23]Content-Type: application/json [00:10:23] [00:10:23]POST finish read [00:10:23]Found Content-Length = 677 [00:10:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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" ] } } [00:10:23]execute_script... [00:10: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)196280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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" ] } } [00:10:23]POST & json_proto [00:10:23]process_json_proto [00:10:23]json parsed OK: [00:10:23]protocol is kg_v1.0 [00:10:23]action value=close_receipt [00:10:23]process_action close_receipt [00:10:23]cmd_close_receipt [00:10:23]MH_GetDate [00:10:23]Write to MH i2c: F0 00 00 45 5C 90 [00:10:23]Write i2c OK [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: F0 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: F0 05 00 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: F0 05 00 45 5C 00 F7 EE F0 65 CF [00:10:23]GetLastDocTimeStamp 1710288279 [00:10:23]current date 1710288631 [00:10:23]FM_GetShiftState [00:10:23]SAM_PROTO_GetShiftState [00:10:23]wFMCommunicate request_size=4 [00:10:23]MH_SAM_APDU [00:10:23]CAPDU: 80 13 01 00 [00:10:23]Write to MH i2c: E2 08 00 46 5C 80 13 01 00 00 00 00 00 1F [00:10:23]Write i2c OK [00:10:23]MH_I2C_Read... [00:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:23]Read from MH i2c: E2 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: E2 0E 00 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: E2 0E 00 46 5C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 04 [00:10:23]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [00:10:23]wFMCommunicate OK [00:10:23]SAM_PROTO_GetShiftState done [00:10:23]FM_GetShiftState done [00:10:23]opened in 1710288279 [00:10:23]opened+sec_in_day 1710374679 [00:10:23]quantity*price = 50005 [00:10:23]sum+1 = 50007 [00:10:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 1 13.03.2024 00:10 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95306 ФПД: 253014777673173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T001031&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95306&fm=253014777673173&tin=02508201610067®Number=0000000000090555&sum=50000 [00:10:24]StoreToDocumentArchive [00:10:24]shift 328 fd 95306 [00:10:24]save to /storage/0328/doc_00095306 [00:10:24]save last doc name /storage/0328/doc_00095306 to /storage/kkm_last_doc_name [00:10:24]save OK [00:10:24]Clear old archive folders... [00:10:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:10:24]tlvbuf is 01B89790 [00:10:24]SAM_PROTO_ClearQueue [00:10:24]wFMCommunicate request_size=4 [00:10:24]MH_SAM_APDU [00:10:24]CAPDU: 80 09 00 00 [00:10:24]Write to MH i2c: E2 08 00 53 5C 80 09 00 00 00 00 00 00 21 [00:10:24]Write i2c OK [00:10:24]MH_I2C_Read... [00:10:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:10:24]Read from MH i2c: E2 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 03 00 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 03 00 53 5C 00 90 00 23 [00:10:24]RAPDU: 90 00 [00:10:24]wFMCommunicate OK [00:10:24]SAM_PROTO_ClearQueue done [00:10:24]KKMCreateOFDPacket [00:10:24]OFDProtocolAddRootSTLVToBuf [00:10:24]FM_MakeSignedData [00:10:24]FM_MakeSignedData [00:10:24]SAM_PROTO_SignData [00:10:24]wFMCommunicate request_size=4 [00:10:24]MH_SAM_APDU [00:10:24]CAPDU: 80 0D 01 02 [00:10:24]Write to MH i2c: E2 08 00 54 5C 80 0D 01 02 00 00 00 00 29 [00:10:24]Write i2c OK [00:10:24]MH_I2C_Read... [00:10:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:10:24]Read from MH i2c: E2 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 03 00 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 03 00 54 5C 00 90 00 24 [00:10:24]RAPDU: 90 00 [00:10:24]wFMCommunicate OK [00:10:24]wFMCommunicate request_size=255 [00:10:24]MH_SAM_APDU [00:10:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F7 EE F0 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4A 74 01 00 35 04 06 00 E6 [00:10:24]Write to MH i2c: E2 02 01 55 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F7 EE F0 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4A 74 01 00 35 04 06 00 E6 00 00 FB [00:10:24]Write i2c OK [00:10:24]MH_I2C_Read... [00:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:25]Read from MH i2c: E2 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 03 00 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 03 00 55 5C 00 90 00 25 [00:10:25]RAPDU: 90 00 [00:10:25]wFMCommunicate OK [00:10:25]wFMCommunicate request_size=10 [00:10:25]MH_SAM_APDU [00:10:25]CAPDU: 80 0D 02 02 05 1D 97 F2 35 D5 [00:10:25]Write to MH i2c: E2 0D 00 56 5C 80 0D 02 02 05 00 1D 97 F2 35 D5 00 00 E6 [00:10:25]Write i2c OK [00:10:25]MH_I2C_Read... [00:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:25]Read from MH i2c: E2 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 03 00 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 03 00 56 5C 00 90 00 26 [00:10:25]RAPDU: 90 00 [00:10:25]wFMCommunicate OK [00:10:25]wFMCommunicate request_size=4 [00:10:25]MH_SAM_APDU [00:10:25]CAPDU: 80 0D 03 02 [00:10:25]Write to MH i2c: E2 08 00 57 5C 80 0D 03 02 00 00 00 00 2E [00:10:25]Write i2c OK [00:10:25]MH_I2C_Read... [00:10:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:10:25]Read from MH i2c: E2 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 0B 00 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 0B 00 57 5C 00 80 55 DA B5 73 99 4D E1 90 00 CD [00:10:25]RAPDU: 80 55 DA B5 73 99 4D E1 90 00 [00:10:25]wFMCommunicate OK [00:10:25]SAM_PROTO_SignData done [00:10:25]FM_MakeSignedData done [00:10:25]CreateOFDProtocolMessage [00:10:25]wFMCommunicate request_size=4 [00:10:25]MH_SAM_APDU [00:10:25]CAPDU: 80 11 00 00 [00:10:25]Write to MH i2c: E2 08 00 58 5C 80 11 00 00 00 00 00 00 2E [00:10:25]Write i2c OK [00:10:25]MH_I2C_Read... [00:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:25]Read from MH i2c: E2 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 17 00 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 17 00 58 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7E [00:10:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:10:25]wFMCommunicate OK [00:10:25]CreateOFDProtocolMessage done [00:10:25]OFDSenderStorePacket 95306 [00:10:25]StoreOFDPacket docnum=95306 [00:10:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E7 B2 07 01 96 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 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F7 EE F0 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4A 74 01 00 35 04 06 00 E6 1D 97 F2 35 D5 80 55 DA B5 73 99 4D E1 [00:10:25]CheckFolder [00:10:25]dirname=/storage/ofd_packets [00:10:25]CheckFolder done [00:10:25]ProducePacketName [00:10:25]name=ofd_packets/00095306 [00:10:25]NVStorageSaveData ofd_packets/00095306 [00:10:25]File name is /storage/ofd_packets/00095306 [00:10:25]Write 301 bytes [00:10:25]NVStorageSaveData done [00:10:25]OFDSenderStorePacket done [00:10:25]KKMCreateOFDPacket done [00:10:25]NVStorageSaveData kkm_last_timestamp [00:10:25]File name is /storage/kkm_last_timestamp [00:10:25]Write 4 bytes [00:10:25]NVStorageSaveData done [00:10:25]ExternCall_PrintAddStr [00:10:25]wPrintStart [00:10:25]Write to MH i2c: 01 00 00 59 5C B5 [00:10:25]Write i2c OK [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: 01 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: 01 07 00 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: 01 07 00 59 5C 00 80 00 00 00 FF 0F 4A [00:10:25]RasterBufferAndPrint [00:10:25]line Счет N : (1)196280 [00:10:25]line ИНН: 02508201610067 [00:10:25]line Контрольно-Кассовый Чек [00:10:25]line ПРОДАЖА [00:10:25]line ТРК (МРК, ГНК) : 32 [00:10:25]line Товар: 2710124130 [00:10:25]line Аи-92-К-5 [00:10:25]line 7.950 * 62.90 [00:10:25]line = 500.06 [00:10:25]line НДС 12% НСП 1% [00:10:25]line > о реализуемом товаре [00:10:25]line ОКРУГЛЕНИЕ: -0.06 [00:10:25]line ИТОГО: 500.00 [00:10:25]line Внесено: 500.00 [00:10:25]line СДАЧА: 0.00 [00:10:25]line НСП 1% : 4.42 [00:10:25]line НДС 12% : 53.10 [00:10:25]line Наличными: 500.00 [00:10:25]line Безнал.: 0.00 [00:10:25]line Место: АЗС № 6 "Партнер Нефть" [00:10:25]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [00:10:25]line СНО: Общий режим [00:10:25]line Чек 1 13.03.2024 00:10 [00:10:25]line Смена: 328 ФФД: 1.0 [00:10:25]line ЗНМ: 0300000009 [00:10:25]line РНМ: 0000000000090555 [00:10:25]line Версия ККМ: 001 [00:10:25]line ФМ: 0000000000874811 [00:10:25]line ФД: 95306 [00:10:25]line ФПД: 253014777673173 [00:10:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T001031&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95306&fm=253014777673173&tin=02508201610067®Number=0000000000090555&sum=50000 [00:10:25]OFD Sender: Processing packet 95306 [packets to send 30, broken 29] [00:10:25]ProducePacketName [00:10:25]name=ofd_packets/00095306 [00:10:25]OFD Sender: To server: pG, [00:10:25]CommunicateWithHost lk.salyk.kg:30040 [00:10:25]ConnectInit lk.salyk.kg [00:10:25]written 0, free lines is 4095 [00:10:25]Connected sock=10 [00:10:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E7 B2 07 01 96 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 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F7 EE F0 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4A 74 01 00 35 04 06 00 E6 1D 97 F2 35 D5 80 55 DA B5 73 99 4D E1 [00:10:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D4 96 47 00 FA 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4A 74 01 00 F4 03 04 00 4B 9A F0 65 B6 04 01 00 00 AB B0 CB 3E 03 0A CD 4B [00:10:25]CommunicateWithHost err = 0 [00:10:25]CheckOFDResponse [00:10:25]1017 (14) - 77093643461234 [00:10:25]1041 (16) - 0000000000874811 [00:10:25]1040 (4) - 95306 [00:10:25]1012 (4) - 12.03.2024 18:09 [00:10:25]1206 (1) - 0 [00:10:25]OFD Sender: Remove packet 95306 [00:10:25]ProducePacketName [00:10:25]name=ofd_packets/00095306 [00:10:25]NVStorageDeleteData [00:10:25]Write to MH i2c: 01 00 00 84 5C E0 [00:10:25]Write i2c OK [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: 01 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: 01 07 00 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: 01 07 00 84 5C 00 80 00 00 00 46 0D BA [00:10:25]RasterBufferAndPrint [00:10:25]line [00:10:25]line [00:10:25]line [00:10:25]line [00:10:25]line [00:10:25]written 0, free lines is 3404 [00:10:26]process_action close_receipt done [00:10:26]requested_data is exist [00:10:26]produce_requested_data [00:10:26]requested_item fm.sn is exist - process it [00:10:26]wFMCommunicate request_size=4 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 11 00 00 [00:10:26]Write to MH i2c: E2 08 00 8B 5C 80 11 00 00 00 00 00 00 61 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:26]Read from MH i2c: E2 17 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 17 00 8B 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B1 [00:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:10:26]wFMCommunicate OK [00:10:26]requested_item fd.num is exist - process it [00:10:26]SAM_PROTO_GetFieldsCounters [00:10:26]wFMCommunicate request_size=4 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 13 00 00 [00:10:26]Write to MH i2c: E2 08 00 8C 5C 80 13 00 00 00 00 00 00 64 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 62 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 62 00 8C 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4A 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [00:10:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4A 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:10:26]wFMCommunicate OK [00:10:26]SAM_PROTO_GetFieldsCounters done [00:10:26]requested_item shift.num is exist - process it [00:10:26]requested_item shift.opened is exist - process it [00:10:26]req_shift_opened [00:10:26]FM_GetShiftState [00:10:26]SAM_PROTO_GetShiftState [00:10:26]wFMCommunicate request_size=4 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 13 01 00 [00:10:26]Write to MH i2c: E2 08 00 8D 5C 80 13 01 00 00 00 00 00 66 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 0E 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 0E 00 8D 5C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 4B [00:10:26]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [00:10:26]wFMCommunicate OK [00:10:26]SAM_PROTO_GetShiftState done [00:10:26]FM_GetShiftState done [00:10:26]req_shift_opened done [00:10:26]requested_item shift.open_date is exist - process it [00:10:26]req_shift_open_date [00:10:26]req_shift_open_date done [00:10:26]produce_requested_data done [00:10:26]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95306,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [00:10:26]process_action_free close_receipt [00:10:26]json_value_free [00:10:26]json_value_free done [00:10:26]process_json_proto returns [00:10:26]Send response to host [00:10:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95306,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [00:10:26]free response buf [00:10:26]execute_script done [00:10:26]execute_script returns [00:10:26]free content buf [00:10:26]Sock 8.Close socket [00:10:26]Sock 8.Thread stoped [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:11:01]OFD Sender: No OFD packet to send [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:26]OFD Sender: No OFD packet to send [00:15:31]OFD Sender: No OFD packet to send [00:15:36]OFD Sender: No OFD packet to send [00:15:41]OFD Sender: No OFD packet to send [00:15:46]OFD Sender: No OFD packet to send [00:15:51]OFD Sender: No OFD packet to send [00:15:56]OFD Sender: No OFD packet to send [00:16:01]OFD Sender: No OFD packet to send [00:16:06]OFD Sender: No OFD packet to send [00:16:11]OFD Sender: No OFD packet to send [00:16:16]OFD Sender: No OFD packet to send [00:16:21]OFD Sender: No OFD packet to send [00:16:26]OFD Sender: No OFD packet to send [00:16:31]OFD Sender: No OFD packet to send [00:16:36]OFD Sender: No OFD packet to send [00:16:41]OFD Sender: No OFD packet to send [00:16:46]OFD Sender: No OFD packet to send [00:16:51]OFD Sender: No OFD packet to send [00:16:56]OFD Sender: No OFD packet to send [00:17:01]OFD Sender: No OFD packet to send [00:17:06]OFD Sender: No OFD packet to send [00:17:11]OFD Sender: No OFD packet to send [00:17:16]OFD Sender: No OFD packet to send [00:17:21]OFD Sender: No OFD packet to send [00:17:26]OFD Sender: No OFD packet to send [00:17:31]OFD Sender: No OFD packet to send [00:17:36]OFD Sender: No OFD packet to send [00:17:41]OFD Sender: No OFD packet to send [00:17:46]OFD Sender: No OFD packet to send [00:17:51]OFD Sender: No OFD packet to send [00:17:56]OFD Sender: No OFD packet to send [00:18:01]OFD Sender: No OFD packet to send [00:18:06]OFD Sender: No OFD packet to send [00:18:11]OFD Sender: No OFD packet to send [00:18:16]OFD Sender: No OFD packet to send [00:18:21]OFD Sender: No OFD packet to send [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]recv_with_timeout no data received [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:44]recv_with_timeout no data received [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:48]recv_with_timeout no data received [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:56]accept exits with 9 [00:28:56]New connection [00:28:56]New thread 3066957156 created [00:28:56]Thread 3066813796 joined [00:28:56]Waiting for new connection... [00:28:56] Sock 9.Parse request [00:28:56]Sock 9.Check first char [00:28:56]Sock 9.First char is OK [00:28:56]request: POST /json_proto HTTP/1.0 [00:28:56]Method: POST [00:28:56]URL: /json_proto [00:28:56]Method is POST - this is cgi request [00:28:56]url: /json_proto [00:28:56]query_string will be loaded in cgi processing [00:28:56]execute_cgi json_proto POST (null) [00:28:56]execute_cgi path=json_proto method=POST [00:28:56]POST find Content-Length [00:28:56]Host: 172.17.62.67:8080 [00:28:56]Content-Length: 677 [00:28:56]Content-Type: application/json [00:28:56] [00:28:56]POST finish read [00:28:56]Found Content-Length = 677 [00:28:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 2.340, "sum" : 147.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 147.00, "total" : 147.00, "payments": [ { "type": 0, "sum" : 147.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:56]execute_script... [00: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)196281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 2.340, "sum" : 147.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 147.00, "total" : 147.00, "payments": [ { "type": 0, "sum" : 147.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:56]POST & json_proto [00:28:56]process_json_proto [00:28:56]json parsed OK: [00:28:56]protocol is kg_v1.0 [00:28:56]action value=close_receipt [00:28:56]process_action close_receipt [00:28:56]cmd_close_receipt [00:28:56]MH_GetDate [00:28:56]Write to MH i2c: F0 00 00 8E 5C D9 [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: F0 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: F0 05 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: F0 05 00 8E 5C 00 50 F3 F0 65 76 [00:28:56]GetLastDocTimeStamp 1710288631 [00:28:56]current date 1710289744 [00:28:56]FM_GetShiftState [00:28:56]SAM_PROTO_GetShiftState [00:28:56]wFMCommunicate request_size=4 [00:28:56]MH_SAM_APDU [00:28:56]CAPDU: 80 13 01 00 [00:28:56]Write to MH i2c: E2 08 00 8F 5C 80 13 01 00 00 00 00 00 68 [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 0E 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 0E 00 8F 5C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 4D [00:28:56]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [00:28:56]wFMCommunicate OK [00:28:56]SAM_PROTO_GetShiftState done [00:28:56]FM_GetShiftState done [00:28:56]opened in 1710288279 [00:28:56]opened+sec_in_day 1710374679 [00:28:56]quantity*price = 14718 [00:28:56]sum+1 = 14720 [00:28:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 147.00 Внесено: 147.00 СДАЧА: 0.00 НСП 1% : 1.30 НДС 12% : 15.63 Наличными: 147.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 2 13.03.2024 00:29 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95307 ФПД: 168047825585046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T002904&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95307&fm=168047825585046&tin=02508201610067®Number=0000000000090555&sum=14700 [00:28:57]StoreToDocumentArchive [00:28:57]shift 328 fd 95307 [00:28:57]save to /storage/0328/doc_00095307 [00:28:57]save last doc name /storage/0328/doc_00095307 to /storage/kkm_last_doc_name [00:28:57]save OK [00:28:57]Clear old archive folders... [00:28:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:28:57]tlvbuf is 01C1CE90 [00:28:57]SAM_PROTO_ClearQueue [00:28:57]wFMCommunicate request_size=4 [00:28:57]MH_SAM_APDU [00:28:57]CAPDU: 80 09 00 00 [00:28:57]Write to MH i2c: E2 08 00 9C 5C 80 09 00 00 00 00 00 00 6A [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:28:57]Read from MH i2c: E2 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 03 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 03 00 9C 5C 00 90 00 6C [00:28:57]RAPDU: 90 00 [00:28:57]wFMCommunicate OK [00:28:57]SAM_PROTO_ClearQueue done [00:28:57]KKMCreateOFDPacket [00:28:57]OFDProtocolAddRootSTLVToBuf [00:28:57]FM_MakeSignedData [00:28:57]FM_MakeSignedData [00:28:57]SAM_PROTO_SignData [00:28:57]wFMCommunicate request_size=4 [00:28:57]MH_SAM_APDU [00:28:57]CAPDU: 80 0D 01 02 [00:28:57]Write to MH i2c: E2 08 00 9D 5C 80 0D 01 02 00 00 00 00 72 [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:28:57]Read from MH i2c: E2 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 03 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 03 00 9D 5C 00 90 00 6D [00:28:57]RAPDU: 90 00 [00:28:57]wFMCommunicate OK [00:28:57]wFMCommunicate request_size=255 [00:28:57]MH_SAM_APDU [00:28:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 7F 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 50 F3 F0 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4B 74 01 00 35 04 06 00 98 [00:28:57]Write to MH i2c: E2 02 01 9E 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 7F 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 50 F3 F0 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4B 74 01 00 35 04 06 00 98 00 00 2F [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:57]Read from MH i2c: E2 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 03 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 03 00 9E 5C 00 90 00 6E [00:28:57]RAPDU: 90 00 [00:28:57]wFMCommunicate OK [00:28:57]wFMCommunicate request_size=10 [00:28:57]MH_SAM_APDU [00:28:57]CAPDU: 80 0D 02 02 05 D6 AE F3 03 96 [00:28:57]Write to MH i2c: E2 0D 00 9F 5C 80 0D 02 02 05 00 D6 AE F3 03 96 00 00 8F [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:57]Read from MH i2c: E2 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 03 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 03 00 9F 5C 00 90 00 6F [00:28:57]RAPDU: 90 00 [00:28:57]wFMCommunicate OK [00:28:57]wFMCommunicate request_size=4 [00:28:57]MH_SAM_APDU [00:28:57]CAPDU: 80 0D 03 02 [00:28:57]Write to MH i2c: E2 08 00 A0 5C 80 0D 03 02 00 00 00 00 77 [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:28:57]Read from MH i2c: E2 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 0B 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 0B 00 A0 5C 00 0D DD 0B 4F DE 3B 2F 1D 90 00 21 [00:28:57]RAPDU: 0D DD 0B 4F DE 3B 2F 1D 90 00 [00:28:57]wFMCommunicate OK [00:28:57]SAM_PROTO_SignData done [00:28:57]FM_MakeSignedData done [00:28:57]CreateOFDProtocolMessage [00:28:57]wFMCommunicate request_size=4 [00:28:57]MH_SAM_APDU [00:28:57]CAPDU: 80 11 00 00 [00:28:57]Write to MH i2c: E2 08 00 A1 5C 80 11 00 00 00 00 00 00 77 [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:58]Read from MH i2c: E2 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 17 00 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 17 00 A1 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C7 [00:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:28:58]wFMCommunicate OK [00:28:58]CreateOFDProtocolMessage done [00:28:58]OFDSenderStorePacket 95307 [00:28:58]StoreOFDPacket docnum=95307 [00:28:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 7C FB 07 01 82 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 7F 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 50 F3 F0 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4B 74 01 00 35 04 06 00 98 D6 AE F3 03 96 0D DD 0B 4F DE 3B 2F 1D [00:28:58]CheckFolder [00:28:58]dirname=/storage/ofd_packets [00:28:58]CheckFolder done [00:28:58]ProducePacketName [00:28:58]name=ofd_packets/00095307 [00:28:58]NVStorageSaveData ofd_packets/00095307 [00:28:58]File name is /storage/ofd_packets/00095307 [00:28:58]Write 301 bytes [00:28:58]NVStorageSaveData done [00:28:58]OFDSenderStorePacket done [00:28:58]KKMCreateOFDPacket done [00:28:58]NVStorageSaveData kkm_last_timestamp [00:28:58]File name is /storage/kkm_last_timestamp [00:28:58]Write 4 bytes [00:28:58]NVStorageSaveData done [00:28:58]ExternCall_PrintAddStr [00:28:58]wPrintStart [00:28:58]Write to MH i2c: 01 00 00 A2 5C FE [00:28:58]Write i2c OK [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: 01 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: 01 07 00 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: 01 07 00 A2 5C 00 80 00 00 00 FF 0F 93 [00:28:58]RasterBufferAndPrint [00:28:58]line Счет N : (1)196281 [00:28:58]line ИНН: 02508201610067 [00:28:58]line Контрольно-Кассовый Чек [00:28:58]line ПРОДАЖА [00:28:58]line ТРК (МРК, ГНК) : 12 [00:28:58]line Товар: 2710124130 [00:28:58]line Аи-92-К-5 [00:28:58]line 2.340 * 62.90 [00:28:58]line = 147.19 [00:28:58]line НДС 12% НСП 1% [00:28:58]line > о реализуемом товаре [00:28:58]line ОКРУГЛЕНИЕ: -0.19 [00:28:58]line ИТОГО: 147.00 [00:28:58]line Внесено: 147.00 [00:28:58]line СДАЧА: 0.00 [00:28:58]line НСП 1% : 1.30 [00:28:58]line НДС 12% : 15.63 [00:28:58]line Наличными: 147.00 [00:28:58]line Безнал.: 0.00 [00:28:58]line Место: АЗС № 6 "Партнер Нефть" [00:28:58]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [00:28:58]line СНО: Общий режим [00:28:58]line Чек 2 13.03.2024 00:29 [00:28:58]line Смена: 328 ФФД: 1.0 [00:28:58]line ЗНМ: 0300000009 [00:28:58]line РНМ: 0000000000090555 [00:28:58]line Версия ККМ: 001 [00:28:58]line ФМ: 0000000000874811 [00:28:58]line ФД: 95307 [00:28:58]line ФПД: 168047825585046 [00:28:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T002904&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95307&fm=168047825585046&tin=02508201610067®Number=0000000000090555&sum=14700 [00:28:58]OFD Sender: Processing packet 95307 [packets to send 30, broken 29] [00:28:58]ProducePacketName [00:28:58]name=ofd_packets/00095307 [00:28:58]OFD Sender: To server: pG, [00:28:58]CommunicateWithHost lk.salyk.kg:30040 [00:28:58]ConnectInit lk.salyk.kg [00:28:58]written 0, free lines is 4095 [00:28:58]Connected sock=10 [00:28:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 7C FB 07 01 82 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 7F 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 50 F3 F0 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4B 74 01 00 35 04 06 00 98 D6 AE F3 03 96 0D DD 0B 4F DE 3B 2F 1D [00:28:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 37 D9 47 00 F3 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4B 74 01 00 F4 03 04 00 A4 9E F0 65 B6 04 01 00 00 7F 81 F4 4D F0 D6 A7 0A [00:28:58]CommunicateWithHost err = 0 [00:28:58]CheckOFDResponse [00:28:58]1017 (14) - 77093643461234 [00:28:58]1041 (16) - 0000000000874811 [00:28:58]1040 (4) - 95307 [00:28:58]1012 (4) - 12.03.2024 18:27 [00:28:58]1206 (1) - 0 [00:28:58]OFD Sender: Remove packet 95307 [00:28:58]ProducePacketName [00:28:58]name=ofd_packets/00095307 [00:28:58]NVStorageDeleteData [00:28:58]Write to MH i2c: 01 00 00 CD 5C 29 [00:28:58]Write i2c OK [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: 01 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: 01 07 00 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: 01 07 00 CD 5C 00 80 00 00 00 47 0D 04 [00:28:58]RasterBufferAndPrint [00:28:58]line [00:28:58]line [00:28:58]line [00:28:58]line [00:28:58]line [00:28:58]written 0, free lines is 3405 [00:28:58]process_action close_receipt done [00:28:58]requested_data is exist [00:28:58]produce_requested_data [00:28:58]requested_item fm.sn is exist - process it [00:28:58]wFMCommunicate request_size=4 [00:28:58]MH_SAM_APDU [00:28:58]CAPDU: 80 11 00 00 [00:28:58]Write to MH i2c: E2 08 00 D4 5C 80 11 00 00 00 00 00 00 AA [00:28:58]Write i2c OK [00:28:58]MH_I2C_Read... [00:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:58]Read from MH i2c: E2 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 17 00 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 17 00 D4 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FA [00:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:28:58]wFMCommunicate OK [00:28:58]requested_item fd.num is exist - process it [00:28:58]SAM_PROTO_GetFieldsCounters [00:28:58]wFMCommunicate request_size=4 [00:28:58]MH_SAM_APDU [00:28:58]CAPDU: 80 13 00 00 [00:28:58]Write to MH i2c: E2 08 00 D5 5C 80 13 00 00 00 00 00 00 AD [00:28:58]Write i2c OK [00:28:58]MH_I2C_Read... [00:28:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:28:59]Read from MH i2c: E2 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 62 00 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 62 00 D5 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4B 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [00:28:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4B 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:28:59]wFMCommunicate OK [00:28:59]SAM_PROTO_GetFieldsCounters done [00:28:59]requested_item shift.num is exist - process it [00:28:59]requested_item shift.opened is exist - process it [00:28:59]req_shift_opened [00:28:59]FM_GetShiftState [00:28:59]SAM_PROTO_GetShiftState [00:28:59]wFMCommunicate request_size=4 [00:28:59]MH_SAM_APDU [00:28:59]CAPDU: 80 13 01 00 [00:28:59]Write to MH i2c: E2 08 00 D6 5C 80 13 01 00 00 00 00 00 AF [00:28:59]Write i2c OK [00:28:59]MH_I2C_Read... [00:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:59]Read from MH i2c: E2 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 0E 00 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 0E 00 D6 5C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 94 [00:28:59]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [00:28:59]wFMCommunicate OK [00:28:59]SAM_PROTO_GetShiftState done [00:28:59]FM_GetShiftState done [00:28:59]req_shift_opened done [00:28:59]requested_item shift.open_date is exist - process it [00:28:59]req_shift_open_date [00:28:59]req_shift_open_date done [00:28:59]produce_requested_data done [00:28:59]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95307,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [00:28:59]process_action_free close_receipt [00:28:59]json_value_free [00:28:59]json_value_free done [00:28:59]process_json_proto returns [00:28:59]Send response to host [00:28:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95307,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [00:28:59]free response buf [00:28:59]execute_script done [00:28:59]execute_script returns [00:28:59]free content buf [00:28:59]Sock 9.Close socket [00:28:59]Sock 9.Thread stoped [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:47]recv_with_timeout no data received [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:25]recv_with_timeout no data received [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:15]recv_with_timeout no data received [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:37]recv_with_timeout no data received [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:52]recv_with_timeout no data received [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:25]recv_with_timeout no data received [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:14]recv_with_timeout no data received [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]recv_with_timeout no data received [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:50]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:00]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:15]OFD Sender: No OFD packet to send [00:56:20]OFD Sender: No OFD packet to send [00:56:25]OFD Sender: No OFD packet to send [00:56:30]OFD Sender: No OFD packet to send [00:56:35]OFD Sender: No OFD packet to send [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:53]accept exits with 8 [00:58:53]New connection [00:58:53]New thread 3066813796 created [00:58:53]Thread 3066957156 joined [00:58:53]Waiting for new connection... [00:58:53] Sock 8.Parse request [00:58:53]Sock 8.Check first char [00:58:53]Sock 8.First char is OK [00:58:53]request: POST /json_proto HTTP/1.0 [00:58:53]Method: POST [00:58:53]URL: /json_proto [00:58:53]Method is POST - this is cgi request [00:58:53]url: /json_proto [00:58:53]query_string will be loaded in cgi processing [00:58:53]execute_cgi json_proto POST (null) [00:58:53]execute_cgi path=json_proto method=POST [00:58:53]POST find Content-Length [00:58:53]Host: 172.17.62.67:8080 [00:58:53]Content-Length: 682 [00:58:53]Content-Type: application/json [00:58:53] [00:58:53]POST finish read [00:58:53]Found Content-Length = 682 [00:58:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 23.850, "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" ] } } [00:58:53]execute_script... [00:58: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)196282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 23.850, "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" ] } } [00:58:53]POST & json_proto [00:58:53]process_json_proto [00:58:53]json parsed OK: [00:58:53]protocol is kg_v1.0 [00:58:53]action value=close_receipt [00:58:53]process_action close_receipt [00:58:53]cmd_close_receipt [00:58:53]MH_GetDate [00:58:53]Write to MH i2c: F0 00 00 D7 5C 22 [00:58:53]Write i2c OK [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: F0 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: F0 05 00 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: F0 05 00 D7 5C 00 55 FA F0 65 CB [00:58:53]GetLastDocTimeStamp 1710289744 [00:58:53]current date 1710291541 [00:58:53]FM_GetShiftState [00:58:53]SAM_PROTO_GetShiftState [00:58:53]wFMCommunicate request_size=4 [00:58:53]MH_SAM_APDU [00:58:53]CAPDU: 80 13 01 00 [00:58:53]Write to MH i2c: E2 08 00 D8 5C 80 13 01 00 00 00 00 00 B1 [00:58:53]Write i2c OK [00:58:53]MH_I2C_Read... [00:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:53]Read from MH i2c: E2 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: E2 0E 00 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: E2 0E 00 D8 5C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 96 [00:58:53]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [00:58:53]wFMCommunicate OK [00:58:53]SAM_PROTO_GetShiftState done [00:58:53]FM_GetShiftState done [00:58:53]opened in 1710288279 [00:58:53]opened+sec_in_day 1710374679 [00:58:53]quantity*price = 150016 [00:58:53]sum+1 = 150018 [00:58:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 3 13.03.2024 00:59 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95308 ФПД: 223667892811268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T005901&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95308&fm=223667892811268&tin=02508201610067®Number=0000000000090555&sum=150000 [00:58:54]StoreToDocumentArchive [00:58:54]shift 328 fd 95308 [00:58:54]save to /storage/0328/doc_00095308 [00:58:54]save last doc name /storage/0328/doc_00095308 to /storage/kkm_last_doc_name [00:58:54]save OK [00:58:54]Clear old archive folders... [00:58:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:58:54]tlvbuf is 01AECEE0 [00:58:54]SAM_PROTO_ClearQueue [00:58:54]wFMCommunicate request_size=4 [00:58:54]MH_SAM_APDU [00:58:54]CAPDU: 80 09 00 00 [00:58:54]Write to MH i2c: E2 08 00 E5 5C 80 09 00 00 00 00 00 00 B3 [00:58:54]Write i2c OK [00:58:54]MH_I2C_Read... [00:58:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:58:54]Read from MH i2c: E2 [00:58:54]MH_I2C_Read... [00:58:54]Read from MH i2c: E2 03 00 [00:58:54]MH_I2C_Read... [00:58:54]Read from MH i2c: E2 03 00 E5 5C 00 90 00 B5 [00:58:54]RAPDU: 90 00 [00:58:54]wFMCommunicate OK [00:58:54]SAM_PROTO_ClearQueue done [00:58:54]KKMCreateOFDPacket [00:58:54]OFDProtocolAddRootSTLVToBuf [00:58:54]FM_MakeSignedData [00:58:54]FM_MakeSignedData [00:58:54]SAM_PROTO_SignData [00:58:54]wFMCommunicate request_size=4 [00:58:54]MH_SAM_APDU [00:58:54]CAPDU: 80 0D 01 02 [00:58:54]Write to MH i2c: E2 08 00 E6 5C 80 0D 01 02 00 00 00 00 BB [00:58:54]Write i2c OK [00:58:54]MH_I2C_Read... [00:58:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:58:54]Read from MH i2c: E2 [00:58:54]MH_I2C_Read... [00:58:54]Read from MH i2c: E2 03 00 [00:58:54]MH_I2C_Read... [00:58:54]Read from MH i2c: E2 03 00 E6 5C 00 90 00 B6 [00:58:54]RAPDU: 90 00 [00:58:54]wFMCommunicate OK [00:58:54]wFMCommunicate request_size=255 [00:58:54]MH_SAM_APDU [00:58:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 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 03 00 00 00 F4 03 04 00 55 FA F0 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4C 74 01 00 35 04 06 00 CB [00:58:54]Write to MH i2c: E2 02 01 E7 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 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 03 00 00 00 F4 03 04 00 55 FA F0 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4C 74 01 00 35 04 06 00 CB 00 00 DF [00:58:54]Write i2c OK [00:58:54]MH_I2C_Read... [00:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:55]Read from MH i2c: E2 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: E2 03 00 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: E2 03 00 E7 5C 00 90 00 B7 [00:58:55]RAPDU: 90 00 [00:58:55]wFMCommunicate OK [00:58:55]wFMCommunicate request_size=10 [00:58:55]MH_SAM_APDU [00:58:55]CAPDU: 80 0D 02 02 05 6C BD 4C 76 04 [00:58:55]Write to MH i2c: E2 0D 00 E8 5C 80 0D 02 02 05 00 6C BD 4C 76 04 00 00 B7 [00:58:55]Write i2c OK [00:58:55]MH_I2C_Read... [00:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:55]Read from MH i2c: E2 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: E2 03 00 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: E2 03 00 E8 5C 00 90 00 B8 [00:58:55]RAPDU: 90 00 [00:58:55]wFMCommunicate OK [00:58:55]wFMCommunicate request_size=4 [00:58:55]MH_SAM_APDU [00:58:55]CAPDU: 80 0D 03 02 [00:58:55]Write to MH i2c: E2 08 00 E9 5C 80 0D 03 02 00 00 00 00 C0 [00:58:55]Write i2c OK [00:58:55]MH_I2C_Read... [00:58:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:58:55]Read from MH i2c: E2 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: E2 0B 00 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: E2 0B 00 E9 5C 00 31 6C 1B 1A B0 11 9B 36 90 00 25 [00:58:55]RAPDU: 31 6C 1B 1A B0 11 9B 36 90 00 [00:58:55]wFMCommunicate OK [00:58:55]SAM_PROTO_SignData done [00:58:55]FM_MakeSignedData done [00:58:55]CreateOFDProtocolMessage [00:58:55]wFMCommunicate request_size=4 [00:58:55]MH_SAM_APDU [00:58:55]CAPDU: 80 11 00 00 [00:58:55]Write to MH i2c: E2 08 00 EA 5C 80 11 00 00 00 00 00 00 C0 [00:58:55]Write i2c OK [00:58:55]MH_I2C_Read... [00:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:55]Read from MH i2c: E2 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: E2 17 00 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: E2 17 00 EA 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 10 [00:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:58:55]wFMCommunicate OK [00:58:55]CreateOFDProtocolMessage done [00:58:55]OFDSenderStorePacket 95308 [00:58:55]StoreOFDPacket docnum=95308 [00:58:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 7B E7 07 01 CA D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 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 03 00 00 00 F4 03 04 00 55 FA F0 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4C 74 01 00 35 04 06 00 CB 6C BD 4C 76 04 31 6C 1B 1A B0 11 9B 36 [00:58:55]CheckFolder [00:58:55]dirname=/storage/ofd_packets [00:58:55]CheckFolder done [00:58:55]ProducePacketName [00:58:55]name=ofd_packets/00095308 [00:58:55]NVStorageSaveData ofd_packets/00095308 [00:58:55]File name is /storage/ofd_packets/00095308 [00:58:55]Write 301 bytes [00:58:55]NVStorageSaveData done [00:58:55]OFDSenderStorePacket done [00:58:55]KKMCreateOFDPacket done [00:58:55]NVStorageSaveData kkm_last_timestamp [00:58:55]File name is /storage/kkm_last_timestamp [00:58:55]Write 4 bytes [00:58:55]NVStorageSaveData done [00:58:55]ExternCall_PrintAddStr [00:58:55]wPrintStart [00:58:55]Write to MH i2c: 01 00 00 EB 5C 47 [00:58:55]Write i2c OK [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: 01 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: 01 07 00 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: 01 07 00 EB 5C 00 80 00 00 00 FF 0F DC [00:58:55]RasterBufferAndPrint [00:58:55]line Счет N : (1)196282 [00:58:55]line ИНН: 02508201610067 [00:58:55]line Контрольно-Кассовый Чек [00:58:55]line ПРОДАЖА [00:58:55]line ТРК (МРК, ГНК) : 12 [00:58:55]line Товар: 2710124130 [00:58:55]line Аи-92-К-5 [00:58:55]line 23.850 * 62.90 [00:58:55]line = 1500.17 [00:58:55]line НДС 12% НСП 1% [00:58:55]line > о реализуемом товаре [00:58:55]line ОКРУГЛЕНИЕ: -0.17 [00:58:55]line ИТОГО: 1500.00 [00:58:55]line Внесено: 1500.00 [00:58:55]line СДАЧА: 0.00 [00:58:55]line НСП 1% : 13.28 [00:58:55]line НДС 12% : 159.31 [00:58:55]line Наличными: 1500.00 [00:58:55]line Безнал.: 0.00 [00:58:55]line Место: АЗС № 6 "Партнер Нефть" [00:58:55]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [00:58:55]line СНО: Общий режим [00:58:55]line Чек 3 13.03.2024 00:59 [00:58:55]line Смена: 328 ФФД: 1.0 [00:58:55]line ЗНМ: 0300000009 [00:58:55]line РНМ: 0000000000090555 [00:58:55]line Версия ККМ: 001 [00:58:55]line ФМ: 0000000000874811 [00:58:55]line ФД: 95308 [00:58:55]line ФПД: 223667892811268 [00:58:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T005901&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95308&fm=223667892811268&tin=02508201610067®Number=0000000000090555&sum=150000 [00:58:55]OFD Sender: Processing packet 95308 [packets to send 30, broken 29] [00:58:55]ProducePacketName [00:58:55]name=ofd_packets/00095308 [00:58:55]OFD Sender: To server: pG, [00:58:55]CommunicateWithHost lk.salyk.kg:30040 [00:58:55]ConnectInit lk.salyk.kg [00:58:55]written 0, free lines is 4095 [00:58:55]Connected sock=10 [00:58:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 7B E7 07 01 CA D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 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 03 00 00 00 F4 03 04 00 55 FA F0 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4C 74 01 00 35 04 06 00 CB 6C BD 4C 76 04 31 6C 1B 1A B0 11 9B 36 [00:58:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 BD 84 47 00 DC 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4C 74 01 00 F4 03 04 00 AA A5 F0 65 B6 04 01 00 00 BC 70 64 F2 D8 83 25 9C [00:58:55]CommunicateWithHost err = 0 [00:58:55]CheckOFDResponse [00:58:55]1017 (14) - 77093643461234 [00:58:55]1041 (16) - 0000000000874811 [00:58:55]1040 (4) - 95308 [00:58:55]1012 (4) - 12.03.2024 18:57 [00:58:55]1206 (1) - 0 [00:58:55]OFD Sender: Remove packet 95308 [00:58:55]ProducePacketName [00:58:55]name=ofd_packets/00095308 [00:58:55]NVStorageDeleteData [00:58:56]Write to MH i2c: 01 00 00 16 5D 73 [00:58:56]Write i2c OK [00:58:56]MH_I2C_Read... [00:58:56]Read from MH i2c: 01 [00:58:56]MH_I2C_Read... [00:58:56]Read from MH i2c: 01 07 00 [00:58:56]MH_I2C_Read... [00:58:56]Read from MH i2c: 01 07 00 16 5D 00 80 00 00 00 4F 0D 56 [00:58:56]RasterBufferAndPrint [00:58:56]line [00:58:56]line [00:58:56]line [00:58:56]line [00:58:56]line [00:58:56]written 0, free lines is 3413 [00:58:56]process_action close_receipt done [00:58:56]requested_data is exist [00:58:56]produce_requested_data [00:58:56]requested_item fm.sn is exist - process it [00:58:56]wFMCommunicate request_size=4 [00:58:56]MH_SAM_APDU [00:58:56]CAPDU: 80 11 00 00 [00:58:56]Write to MH i2c: E2 08 00 1D 5D 80 11 00 00 00 00 00 00 F4 [00:58:56]Write i2c OK [00:58:56]MH_I2C_Read... [00:58:56]Read from MH i2c: E2 [00:58:56]MH_I2C_Read... [00:58:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:56]Read from MH i2c: E2 17 00 [00:58:56]MH_I2C_Read... [00:58:56]Read from MH i2c: E2 17 00 1D 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 44 [00:58:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:58:56]wFMCommunicate OK [00:58:56]requested_item fd.num is exist - process it [00:58:56]SAM_PROTO_GetFieldsCounters [00:58:56]wFMCommunicate request_size=4 [00:58:56]MH_SAM_APDU [00:58:56]CAPDU: 80 13 00 00 [00:58:56]Write to MH i2c: E2 08 00 1E 5D 80 13 00 00 00 00 00 00 F7 [00:58:56]Write i2c OK [00:58:56]MH_I2C_Read... [00:58:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:58:56]Read from MH i2c: E2 [00:58:56]MH_I2C_Read... [00:58:56]Read from MH i2c: E2 62 00 [00:58:56]MH_I2C_Read... [00:58:56]Read from MH i2c: E2 62 00 1E 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4C 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [00:58:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4C 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:58:56]wFMCommunicate OK [00:58:56]SAM_PROTO_GetFieldsCounters done [00:58:56]requested_item shift.num is exist - process it [00:58:56]requested_item shift.opened is exist - process it [00:58:56]req_shift_opened [00:58:56]FM_GetShiftState [00:58:56]SAM_PROTO_GetShiftState [00:58:56]wFMCommunicate request_size=4 [00:58:56]MH_SAM_APDU [00:58:56]CAPDU: 80 13 01 00 [00:58:56]Write to MH i2c: E2 08 00 1F 5D 80 13 01 00 00 00 00 00 F9 [00:58:56]Write i2c OK [00:58:56]MH_I2C_Read... [00:58:56]OFD Sender: No OFD packet to send [00:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:56]Read from MH i2c: E2 [00:58:56]MH_I2C_Read... [00:58:56]Read from MH i2c: E2 0E 00 [00:58:56]MH_I2C_Read... [00:58:56]Read from MH i2c: E2 0E 00 1F 5D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 DE [00:58:56]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [00:58:56]wFMCommunicate OK [00:58:56]SAM_PROTO_GetShiftState done [00:58:56]FM_GetShiftState done [00:58:56]req_shift_opened done [00:58:56]requested_item shift.open_date is exist - process it [00:58:56]req_shift_open_date [00:58:56]req_shift_open_date done [00:58:56]produce_requested_data done [00:58:56]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95308,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [00:58:56]process_action_free close_receipt [00:58:56]json_value_free [00:58:56]json_value_free done [00:58:56]process_json_proto returns [00:58:56]Send response to host [00:58:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95308,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [00:58:56]free response buf [00:58:56]execute_script done [00:58:56]execute_script returns [00:58:56]free content buf [00:58:56]Sock 8.Close socket [00:58:56]Sock 8.Thread stoped [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]OFD Sender: No OFD packet to send [01:05:36]OFD Sender: No OFD packet to send [01:05:41]OFD Sender: No OFD packet to send [01:05:46]OFD Sender: No OFD packet to send [01:05:51]OFD Sender: No OFD packet to send [01:05:56]OFD Sender: No OFD packet to send [01:06:01]OFD Sender: No OFD packet to send [01:06:06]OFD Sender: No OFD packet to send [01:06:11]OFD Sender: No OFD packet to send [01:06:16]OFD Sender: No OFD packet to send [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:52]OFD Sender: No OFD packet to send [01:09:57]OFD Sender: No OFD packet to send [01:10:02]OFD Sender: No OFD packet to send [01:10:07]OFD Sender: No OFD packet to send [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:10]recv_with_timeout no data received [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:10]accept exits with 9 [01:14:10]New connection [01:14:10]New thread 3066957156 created [01:14:10]Thread 3066813796 joined [01:14:10]Waiting for new connection... [01:14:10] Sock 9.Parse request [01:14:10]Sock 9.Check first char [01:14:10]Sock 9.First char is OK [01:14:10]request: POST /json_proto HTTP/1.0 [01:14:10]Method: POST [01:14:10]URL: /json_proto [01:14:10]Method is POST - this is cgi request [01:14:10]url: /json_proto [01:14:10]query_string will be loaded in cgi processing [01:14:10]execute_cgi json_proto POST (null) [01:14:10]execute_cgi path=json_proto method=POST [01:14:10]POST find Content-Length [01:14:10]Host: 172.17.62.67:8080 [01:14:10]Content-Length: 670 [01:14:10]Content-Type: application/json [01:14:10] [01:14:10]POST finish read [01:14:10]Found Content-Length = 670 [01:14:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 7.830, "sum" : 500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:14:10]execute_script... [01:14: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)196283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 7.830, "sum" : 500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:14:10]POST & json_proto [01:14:10]process_json_proto [01:14:10]json parsed OK: [01:14:10]protocol is kg_v1.0 [01:14:10]action value=close_receipt [01:14:10]process_action close_receipt [01:14:10]cmd_close_receipt [01:14:10]MH_GetDate [01:14:10]Write to MH i2c: F0 00 00 20 5D 6C [01:14:10]Write i2c OK [01:14:10]MH_I2C_Read... [01:14:10]Read from MH i2c: F0 [01:14:10]MH_I2C_Read... [01:14:10]Read from MH i2c: F0 05 00 [01:14:10]MH_I2C_Read... [01:14:10]Read from MH i2c: F0 05 00 20 5D 00 EA FD F0 65 AD [01:14:10]GetLastDocTimeStamp 1710291541 [01:14:10]current date 1710292458 [01:14:10]FM_GetShiftState [01:14:10]SAM_PROTO_GetShiftState [01:14:10]wFMCommunicate request_size=4 [01:14:10]MH_SAM_APDU [01:14:10]CAPDU: 80 13 01 00 [01:14:10]Write to MH i2c: E2 08 00 21 5D 80 13 01 00 00 00 00 00 FB [01:14:10]Write i2c OK [01:14:10]MH_I2C_Read... [01:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:14:10]Read from MH i2c: E2 [01:14:10]MH_I2C_Read... [01:14:10]Read from MH i2c: E2 0E 00 [01:14:10]MH_I2C_Read... [01:14:10]Read from MH i2c: E2 0E 00 21 5D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E0 [01:14:10]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [01:14:10]wFMCommunicate OK [01:14:10]SAM_PROTO_GetShiftState done [01:14:10]FM_GetShiftState done [01:14:10]opened in 1710288279 [01:14:10]opened+sec_in_day 1710374679 [01:14:10]quantity*price = 50033 [01:14:10]sum+1 = 50035 [01:14:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 4 13.03.2024 01:14 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95309 ФПД: 42447334898118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T011418&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95309&fm=42447334898118&tin=02508201610067®Number=0000000000090555&sum=50000 [01:14:11]StoreToDocumentArchive [01:14:11]shift 328 fd 95309 [01:14:11]save to /storage/0328/doc_00095309 [01:14:11]save last doc name /storage/0328/doc_00095309 to /storage/kkm_last_doc_name [01:14:11]save OK [01:14:11]Clear old archive folders... [01:14:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:14:11]tlvbuf is 01B3C6A0 [01:14:11]SAM_PROTO_ClearQueue [01:14:11]wFMCommunicate request_size=4 [01:14:11]MH_SAM_APDU [01:14:11]CAPDU: 80 09 00 00 [01:14:11]Write to MH i2c: E2 08 00 2E 5D 80 09 00 00 00 00 00 00 FD [01:14:11]Write i2c OK [01:14:11]MH_I2C_Read... [01:14:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:14:12]Read from MH i2c: E2 [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: E2 03 00 [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: E2 03 00 2E 5D 00 90 00 FF [01:14:12]RAPDU: 90 00 [01:14:12]wFMCommunicate OK [01:14:12]SAM_PROTO_ClearQueue done [01:14:12]KKMCreateOFDPacket [01:14:12]OFDProtocolAddRootSTLVToBuf [01:14:12]FM_MakeSignedData [01:14:12]FM_MakeSignedData [01:14:12]SAM_PROTO_SignData [01:14:12]wFMCommunicate request_size=4 [01:14:12]MH_SAM_APDU [01:14:12]CAPDU: 80 0D 01 02 [01:14:12]Write to MH i2c: E2 08 00 2F 5D 80 0D 01 02 00 00 00 00 05 [01:14:12]Write i2c OK [01:14:12]MH_I2C_Read... [01:14:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:14:12]Read from MH i2c: E2 [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: E2 03 00 [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: E2 03 00 2F 5D 00 90 00 00 [01:14:12]RAPDU: 90 00 [01:14:12]wFMCommunicate OK [01:14:12]wFMCommunicate request_size=255 [01:14:12]MH_SAM_APDU [01:14:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 04 00 00 00 F4 03 04 00 EA FD F0 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4D 74 01 00 35 04 06 00 [01:14:12]Write to MH i2c: E2 02 01 30 5D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 04 00 00 00 F4 03 04 00 EA FD F0 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4D 74 01 00 35 04 06 00 00 00 A1 [01:14:12]Write i2c OK [01:14:12]MH_I2C_Read... [01:14:12]OFD Sender: No OFD packet to send [01:14:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:14:12]Read from MH i2c: E2 [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: E2 03 00 [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: E2 03 00 30 5D 00 90 00 01 [01:14:12]RAPDU: 90 00 [01:14:12]wFMCommunicate OK [01:14:12]wFMCommunicate request_size=11 [01:14:12]MH_SAM_APDU [01:14:12]CAPDU: 80 0D 02 02 06 26 9B 0A 51 79 C6 [01:14:12]Write to MH i2c: E2 0E 00 31 5D 80 0D 02 02 06 00 26 9B 0A 51 79 C6 00 00 6F [01:14:12]Write i2c OK [01:14:12]MH_I2C_Read... [01:14:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:14:12]Read from MH i2c: E2 [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: E2 03 00 [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: E2 03 00 31 5D 00 90 00 02 [01:14:12]RAPDU: 90 00 [01:14:12]wFMCommunicate OK [01:14:12]wFMCommunicate request_size=4 [01:14:12]MH_SAM_APDU [01:14:12]CAPDU: 80 0D 03 02 [01:14:12]Write to MH i2c: E2 08 00 32 5D 80 0D 03 02 00 00 00 00 0A [01:14:12]Write i2c OK [01:14:12]MH_I2C_Read... [01:14:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:14:12]Read from MH i2c: E2 [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: E2 0B 00 [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: E2 0B 00 32 5D 00 62 F0 EA BF 98 6D 02 FD 90 00 0A [01:14:12]RAPDU: 62 F0 EA BF 98 6D 02 FD 90 00 [01:14:12]wFMCommunicate OK [01:14:12]SAM_PROTO_SignData done [01:14:12]FM_MakeSignedData done [01:14:12]CreateOFDProtocolMessage [01:14:12]wFMCommunicate request_size=4 [01:14:12]MH_SAM_APDU [01:14:12]CAPDU: 80 11 00 00 [01:14:12]Write to MH i2c: E2 08 00 33 5D 80 11 00 00 00 00 00 00 0A [01:14:12]Write i2c OK [01:14:12]MH_I2C_Read... [01:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:14:12]Read from MH i2c: E2 [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: E2 17 00 [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: E2 17 00 33 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5A [01:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [01:14:12]wFMCommunicate OK [01:14:12]CreateOFDProtocolMessage done [01:14:12]OFDSenderStorePacket 95309 [01:14:12]StoreOFDPacket docnum=95309 [01:14:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 F8 3F 08 01 23 9F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 04 00 00 00 F4 03 04 00 EA FD F0 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4D 74 01 00 35 04 06 00 26 9B 0A 51 79 C6 62 F0 EA BF 98 6D 02 FD [01:14:12]CheckFolder [01:14:12]dirname=/storage/ofd_packets [01:14:12]CheckFolder done [01:14:12]ProducePacketName [01:14:12]name=ofd_packets/00095309 [01:14:12]NVStorageSaveData ofd_packets/00095309 [01:14:12]File name is /storage/ofd_packets/00095309 [01:14:12]Write 302 bytes [01:14:12]NVStorageSaveData done [01:14:12]OFDSenderStorePacket done [01:14:12]KKMCreateOFDPacket done [01:14:12]NVStorageSaveData kkm_last_timestamp [01:14:12]File name is /storage/kkm_last_timestamp [01:14:12]Write 4 bytes [01:14:12]NVStorageSaveData done [01:14:12]ExternCall_PrintAddStr [01:14:12]wPrintStart [01:14:12]Write to MH i2c: 01 00 00 34 5D 91 [01:14:12]Write i2c OK [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: 01 [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: 01 07 00 [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: 01 07 00 34 5D 00 80 00 00 00 FF 0F 26 [01:14:12]RasterBufferAndPrint [01:14:12]line Счет N : (1)196283 [01:14:12]line ИНН: 02508201610067 [01:14:12]line Контрольно-Кассовый Чек [01:14:12]line ПРОДАЖА [01:14:12]line ТРК (МРК, ГНК) : 33 [01:14:12]line Товар: 2710124130 [01:14:12]line SUPER 92-К-5 [01:14:12]line 7.830 * 63.90 [01:14:12]line = 500.34 [01:14:12]line НДС 12% НСП 1% [01:14:12]line > о реализуемом товаре [01:14:12]line ОКРУГЛЕНИЕ: -0.34 [01:14:12]line ИТОГО: 500.00 [01:14:12]line Внесено: 500.00 [01:14:12]line СДАЧА: 0.00 [01:14:12]line НСП 1% : 4.43 [01:14:12]line НДС 12% : 53.13 [01:14:12]line Наличными: 500.00 [01:14:12]line Безнал.: 0.00 [01:14:12]line Место: АЗС № 6 "Партнер Нефть" [01:14:12]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [01:14:12]line СНО: Общий режим [01:14:12]line Чек 4 13.03.2024 01:14 [01:14:12]line Смена: 328 ФФД: 1.0 [01:14:12]line ЗНМ: 0300000009 [01:14:12]line РНМ: 0000000000090555 [01:14:12]line Версия ККМ: 001 [01:14:12]line ФМ: 0000000000874811 [01:14:12]line ФД: 95309 [01:14:12]line ФПД: 42447334898118 [01:14:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T011418&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95309&fm=42447334898118&tin=02508201610067®Number=0000000000090555&sum=50000 [01:14:12]OFD Sender: Processing packet 95309 [packets to send 30, broken 29] [01:14:12]ProducePacketName [01:14:12]name=ofd_packets/00095309 [01:14:12]OFD Sender: To server: pG, [01:14:12]CommunicateWithHost lk.salyk.kg:30040 [01:14:12]ConnectInit lk.salyk.kg [01:14:12]written 0, free lines is 4095 [01:14:12]Connected sock=11 [01:14:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 F8 3F 08 01 23 9F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 04 00 00 00 F4 03 04 00 EA FD F0 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4D 74 01 00 35 04 06 00 26 9B 0A 51 79 C6 62 F0 EA BF 98 6D 02 FD [01:14:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 75 23 47 00 2C C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4D 74 01 00 F4 03 04 00 3F A9 F0 65 B6 04 01 00 00 43 6B E7 25 21 5B C4 AE [01:14:13]CommunicateWithHost err = 0 [01:14:13]CheckOFDResponse [01:14:13]1017 (14) - 77093643461234 [01:14:13]1041 (16) - 0000000000874811 [01:14:13]1040 (4) - 95309 [01:14:13]1012 (4) - 12.03.2024 19:13 [01:14:13]1206 (1) - 0 [01:14:13]OFD Sender: Remove packet 95309 [01:14:13]ProducePacketName [01:14:13]name=ofd_packets/00095309 [01:14:13]NVStorageDeleteData [01:14:13]Write to MH i2c: 01 00 00 5F 5D BC [01:14:13]Write i2c OK [01:14:13]MH_I2C_Read... [01:14:13]Read from MH i2c: 01 [01:14:13]MH_I2C_Read... [01:14:13]Read from MH i2c: 01 07 00 [01:14:13]MH_I2C_Read... [01:14:13]Read from MH i2c: 01 07 00 5F 5D 00 80 00 00 00 4E 0D 9E [01:14:13]RasterBufferAndPrint [01:14:13]line [01:14:13]line [01:14:13]line [01:14:13]line [01:14:13]line [01:14:13]written 0, free lines is 3412 [01:14:13]process_action close_receipt done [01:14:13]requested_data is exist [01:14:13]produce_requested_data [01:14:13]requested_item fm.sn is exist - process it [01:14:13]wFMCommunicate request_size=4 [01:14:13]MH_SAM_APDU [01:14:13]CAPDU: 80 11 00 00 [01:14:13]Write to MH i2c: E2 08 00 66 5D 80 11 00 00 00 00 00 00 3D [01:14:13]Write i2c OK [01:14:13]MH_I2C_Read... [01:14:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:14:13]Read from MH i2c: E2 [01:14:13]MH_I2C_Read... [01:14:13]Read from MH i2c: E2 17 00 [01:14:13]MH_I2C_Read... [01:14:13]Read from MH i2c: E2 17 00 66 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8D [01:14:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [01:14:13]wFMCommunicate OK [01:14:13]requested_item fd.num is exist - process it [01:14:13]SAM_PROTO_GetFieldsCounters [01:14:13]wFMCommunicate request_size=4 [01:14:13]MH_SAM_APDU [01:14:13]CAPDU: 80 13 00 00 [01:14:13]Write to MH i2c: E2 08 00 67 5D 80 13 00 00 00 00 00 00 40 [01:14:13]Write i2c OK [01:14:13]MH_I2C_Read... [01:14:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:14:13]Read from MH i2c: E2 [01:14:13]MH_I2C_Read... [01:14:13]Read from MH i2c: E2 62 00 [01:14:13]MH_I2C_Read... [01:14:13]Read from MH i2c: E2 62 00 67 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4D 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [01:14:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4D 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:14:13]wFMCommunicate OK [01:14:13]SAM_PROTO_GetFieldsCounters done [01:14:13]requested_item shift.num is exist - process it [01:14:13]requested_item shift.opened is exist - process it [01:14:13]req_shift_opened [01:14:13]FM_GetShiftState [01:14:13]SAM_PROTO_GetShiftState [01:14:13]wFMCommunicate request_size=4 [01:14:13]MH_SAM_APDU [01:14:13]CAPDU: 80 13 01 00 [01:14:13]Write to MH i2c: E2 08 00 68 5D 80 13 01 00 00 00 00 00 42 [01:14:13]Write i2c OK [01:14:13]MH_I2C_Read... [01:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:14:13]Read from MH i2c: E2 [01:14:13]MH_I2C_Read... [01:14:13]Read from MH i2c: E2 0E 00 [01:14:13]MH_I2C_Read... [01:14:13]Read from MH i2c: E2 0E 00 68 5D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 27 [01:14:13]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [01:14:13]wFMCommunicate OK [01:14:13]SAM_PROTO_GetShiftState done [01:14:13]FM_GetShiftState done [01:14:13]req_shift_opened done [01:14:13]requested_item shift.open_date is exist - process it [01:14:13]req_shift_open_date [01:14:13]req_shift_open_date done [01:14:13]produce_requested_data done [01:14:13]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95309,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [01:14:13]process_action_free close_receipt [01:14:13]json_value_free [01:14:13]json_value_free done [01:14:13]process_json_proto returns [01:14:13]Send response to host [01:14:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95309,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [01:14:13]free response buf [01:14:13]execute_script done [01:14:13]execute_script returns [01:14:13]free content buf [01:14:13]Sock 9.Close socket [01:14:13]Sock 9.Thread stoped [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:50]recv_with_timeout no data received [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:23]recv_with_timeout no data received [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:47]recv_with_timeout no data received [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:20]recv_with_timeout no data received [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:30]recv_with_timeout no data received [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:05]accept exits with 8 [01:30:05]New connection [01:30:05]New thread 3066813796 created [01:30:05]Thread 3066957156 joined [01:30:05]Waiting for new connection... [01:30:05] Sock 8.Parse request [01:30:05]Sock 8.Check first char [01:30:05]Sock 8.First char is OK [01:30:05]request: POST /json_proto HTTP/1.0 [01:30:05]Method: POST [01:30:05]URL: /json_proto [01:30:05]Method is POST - this is cgi request [01:30:05]url: /json_proto [01:30:05]query_string will be loaded in cgi processing [01:30:05]execute_cgi json_proto POST (null) [01:30:05]execute_cgi path=json_proto method=POST [01:30:05]POST find Content-Length [01:30:05]Host: 172.17.62.67:8080 [01:30:05]Content-Length: 817 [01:30:05]Content-Type: application/json [01:30:05] [01:30:05]POST finish read [01:30:05]Found Content-Length = 817 [01:30:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.000, "sum" : 943.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 943.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:30:05]execute_script... [01:30:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.000, "sum" : 943.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 943.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:30:05]POST & json_proto [01:30:05]process_json_proto [01:30:05]json parsed OK: [01:30:05]protocol is kg_v1.0 [01:30:05]action value=close_receipt [01:30:05]process_action close_receipt [01:30:05]cmd_close_receipt [01:30:05]MH_GetDate [01:30:05]Write to MH i2c: F0 00 00 69 5D B5 [01:30:05]Write i2c OK [01:30:05]MH_I2C_Read... [01:30:05]Read from MH i2c: F0 [01:30:05]MH_I2C_Read... [01:30:05]Read from MH i2c: F0 05 00 [01:30:05]MH_I2C_Read... [01:30:05]Read from MH i2c: F0 05 00 69 5D 00 A5 01 F1 65 B6 [01:30:05]GetLastDocTimeStamp 1710292458 [01:30:05]current date 1710293413 [01:30:05]FM_GetShiftState [01:30:05]SAM_PROTO_GetShiftState [01:30:05]wFMCommunicate request_size=4 [01:30:05]MH_SAM_APDU [01:30:05]CAPDU: 80 13 01 00 [01:30:05]Write to MH i2c: E2 08 00 6A 5D 80 13 01 00 00 00 00 00 44 [01:30:05]Write i2c OK [01:30:05]MH_I2C_Read... [01:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:05]Read from MH i2c: E2 [01:30:05]MH_I2C_Read... [01:30:05]Read from MH i2c: E2 0E 00 [01:30:05]MH_I2C_Read... [01:30:05]Read from MH i2c: E2 0E 00 6A 5D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 29 [01:30:05]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [01:30:05]wFMCommunicate OK [01:30:05]SAM_PROTO_GetShiftState done [01:30:05]FM_GetShiftState done [01:30:05]opened in 1710288279 [01:30:05]opened+sec_in_day 1710374679 [01:30:05]quantity*price = 94350 [01:30:05]sum+1 = 94351 [01:30:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 943.50 НСП 1% : 8.35 НДС 12% : 100.19 Наличными: 0.00 Безнал.: 943.50 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 5 13.03.2024 01:30 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95310 ФПД: 240636337324454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T013013&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95310&fm=240636337324454&tin=02508201610067®Number=0000000000090555&sum=94350 [01:30:06]StoreToDocumentArchive [01:30:06]shift 328 fd 95310 [01:30:06]save to /storage/0328/doc_00095310 [01:30:06]save last doc name /storage/0328/doc_00095310 to /storage/kkm_last_doc_name [01:30:06]save OK [01:30:06]Clear old archive folders... [01:30:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:30:06]tlvbuf is 01C08FF0 [01:30:06]SAM_PROTO_ClearQueue [01:30:06]wFMCommunicate request_size=4 [01:30:06]MH_SAM_APDU [01:30:06]CAPDU: 80 09 00 00 [01:30:06]Write to MH i2c: E2 08 00 77 5D 80 09 00 00 00 00 00 00 46 [01:30:06]Write i2c OK [01:30:06]MH_I2C_Read... [01:30:06]Read from MH i2c: E2 [01:30:06]MH_I2C_Read... [01:30:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:30:06]Read from MH i2c: E2 03 00 [01:30:06]MH_I2C_Read... [01:30:06]Read from MH i2c: E2 03 00 77 5D 00 90 00 48 [01:30:06]RAPDU: 90 00 [01:30:06]wFMCommunicate OK [01:30:06]SAM_PROTO_ClearQueue done [01:30:06]KKMCreateOFDPacket [01:30:06]OFDProtocolAddRootSTLVToBuf [01:30:06]FM_MakeSignedData [01:30:06]FM_MakeSignedData [01:30:06]SAM_PROTO_SignData [01:30:06]wFMCommunicate request_size=4 [01:30:06]MH_SAM_APDU [01:30:06]CAPDU: 80 0D 01 02 [01:30:06]Write to MH i2c: E2 08 00 78 5D 80 0D 01 02 00 00 00 00 4E [01:30:06]Write i2c OK [01:30:06]MH_I2C_Read... [01:30:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:30:06]Read from MH i2c: E2 [01:30:06]MH_I2C_Read... [01:30:06]Read from MH i2c: E2 03 00 [01:30:06]MH_I2C_Read... [01:30:06]Read from MH i2c: E2 03 00 78 5D 00 90 00 49 [01:30:06]RAPDU: 90 00 [01:30:06]wFMCommunicate OK [01:30:06]wFMCommunicate request_size=255 [01:30:06]MH_SAM_APDU [01:30:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 8E 70 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E 70 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E 70 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A5 01 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4E 74 01 00 35 04 06 00 DA [01:30:06]Write to MH i2c: E2 02 01 79 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 8E 70 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E 70 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E 70 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A5 01 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4E 74 01 00 35 04 06 00 DA 00 00 44 [01:30:06]Write i2c OK [01:30:06]MH_I2C_Read... [01:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:06]Read from MH i2c: E2 [01:30:06]MH_I2C_Read... [01:30:06]Read from MH i2c: E2 03 00 [01:30:06]MH_I2C_Read... [01:30:06]Read from MH i2c: E2 03 00 79 5D 00 90 00 4A [01:30:06]RAPDU: 90 00 [01:30:06]wFMCommunicate OK [01:30:06]wFMCommunicate request_size=10 [01:30:06]MH_SAM_APDU [01:30:06]CAPDU: 80 0D 02 02 05 DB 83 68 01 A6 [01:30:06]Write to MH i2c: E2 0D 00 7A 5D 80 0D 02 02 05 00 DB 83 68 01 A6 00 00 C8 [01:30:06]Write i2c OK [01:30:06]MH_I2C_Read... [01:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:06]Read from MH i2c: E2 [01:30:06]MH_I2C_Read... [01:30:06]Read from MH i2c: E2 03 00 [01:30:06]MH_I2C_Read... [01:30:06]Read from MH i2c: E2 03 00 7A 5D 00 90 00 4B [01:30:06]RAPDU: 90 00 [01:30:06]wFMCommunicate OK [01:30:06]wFMCommunicate request_size=4 [01:30:06]MH_SAM_APDU [01:30:06]CAPDU: 80 0D 03 02 [01:30:06]Write to MH i2c: E2 08 00 7B 5D 80 0D 03 02 00 00 00 00 53 [01:30:06]Write i2c OK [01:30:06]MH_I2C_Read... [01:30:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:30:06]Read from MH i2c: E2 [01:30:06]MH_I2C_Read... [01:30:06]Read from MH i2c: E2 0B 00 [01:30:06]MH_I2C_Read... [01:30:06]Read from MH i2c: E2 0B 00 7B 5D 00 AD 8A 8A F5 11 77 5C B9 90 00 A7 [01:30:06]RAPDU: AD 8A 8A F5 11 77 5C B9 90 00 [01:30:06]wFMCommunicate OK [01:30:06]SAM_PROTO_SignData done [01:30:06]FM_MakeSignedData done [01:30:06]CreateOFDProtocolMessage [01:30:06]wFMCommunicate request_size=4 [01:30:06]MH_SAM_APDU [01:30:06]CAPDU: 80 11 00 00 [01:30:06]Write to MH i2c: E2 08 00 7C 5D 80 11 00 00 00 00 00 00 53 [01:30:06]Write i2c OK [01:30:06]MH_I2C_Read... [01:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:07]Read from MH i2c: E2 [01:30:07]MH_I2C_Read... [01:30:07]Read from MH i2c: E2 17 00 [01:30:07]MH_I2C_Read... [01:30:07]Read from MH i2c: E2 17 00 7C 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A3 [01:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [01:30:07]wFMCommunicate OK [01:30:07]CreateOFDProtocolMessage done [01:30:07]OFDSenderStorePacket 95310 [01:30:07]StoreOFDPacket docnum=95310 [01:30:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 28 CF 07 01 04 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 8E 70 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E 70 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E 70 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A5 01 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4E 74 01 00 35 04 06 00 DA DB 83 68 01 A6 AD 8A 8A F5 11 77 5C B9 [01:30:07]CheckFolder [01:30:07]dirname=/storage/ofd_packets [01:30:07]CheckFolder done [01:30:07]ProducePacketName [01:30:07]name=ofd_packets/00095310 [01:30:07]NVStorageSaveData ofd_packets/00095310 [01:30:07]File name is /storage/ofd_packets/00095310 [01:30:07]Write 301 bytes [01:30:07]NVStorageSaveData done [01:30:07]OFDSenderStorePacket done [01:30:07]KKMCreateOFDPacket done [01:30:07]NVStorageSaveData kkm_last_timestamp [01:30:07]File name is /storage/kkm_last_timestamp [01:30:07]Write 4 bytes [01:30:07]NVStorageSaveData done [01:30:07]ExternCall_PrintAddStr [01:30:07]wPrintStart [01:30:07]Write to MH i2c: 01 00 00 7D 5D DA [01:30:07]Write i2c OK [01:30:07]MH_I2C_Read... [01:30:07]Read from MH i2c: 01 [01:30:07]MH_I2C_Read... [01:30:07]Read from MH i2c: 01 07 00 [01:30:07]MH_I2C_Read... [01:30:07]Read from MH i2c: 01 07 00 7D 5D 00 80 00 00 00 FF 0F 6F [01:30:07]RasterBufferAndPrint [01:30:07]line Счет N : (1)196284 [01:30:07]line ИНН: 02508201610067 [01:30:07]line Контрольно-Кассовый Чек [01:30:07]line ПРОДАЖА [01:30:07]line ТРК (МРК, ГНК) : 12 [01:30:07]line Товар: 2710124130 [01:30:07]line Аи-92-К-5 [01:30:07]line 15.000 * 62.90 [01:30:07]line = 943.50 [01:30:07]line НДС 12% НСП 1% [01:30:07]line > о реализуемом товаре [01:30:07]line ИТОГО: 943.50 [01:30:07]line НСП 1% : 8.35 [01:30:07]line НДС 12% : 100.19 [01:30:07]line Наличными: 0.00 [01:30:07]line Безнал.: 943.50 [01:30:07]line Место: АЗС № 6 "Партнер Нефть" [01:30:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [01:30:07]line СНО: Общий режим [01:30:07]line Чек 5 13.03.2024 01:30 [01:30:07]line Смена: 328 ФФД: 1.0 [01:30:07]line ЗНМ: 0300000009 [01:30:07]line РНМ: 0000000000090555 [01:30:07]line Версия ККМ: 001 [01:30:07]line Платежная система: Бакай Банк [01:30:07]line ФМ: 0000000000874811 [01:30:07]line ФД: 95310 [01:30:07]line ФПД: 240636337324454 [01:30:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T013013&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95310&fm=240636337324454&tin=02508201610067®Number=0000000000090555&sum=94350 [01:30:07]written 0, free lines is 4095 [01:30:07]OFD Sender: Processing packet 95310 [packets to send 30, broken 29] [01:30:07]ProducePacketName [01:30:07]name=ofd_packets/00095310 [01:30:07]OFD Sender: To server: pG, [01:30:07]CommunicateWithHost lk.salyk.kg:30040 [01:30:07]ConnectInit lk.salyk.kg [01:30:07]Connected sock=10 [01:30:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 28 CF 07 01 04 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 8E 70 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E 70 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E 70 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A5 01 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4E 74 01 00 35 04 06 00 DA DB 83 68 01 A6 AD 8A 8A F5 11 77 5C B9 [01:30:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 35 D4 47 00 7C C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4E 74 01 00 F4 03 04 00 F9 AC F0 65 B6 04 01 00 00 B4 64 F2 B9 B7 89 6B 73 [01:30:07]CommunicateWithHost err = 0 [01:30:07]CheckOFDResponse [01:30:07]1017 (14) - 77093643461234 [01:30:07]1041 (16) - 0000000000874811 [01:30:07]1040 (4) - 95310 [01:30:07]1012 (4) - 12.03.2024 19:28 [01:30:07]1206 (1) - 0 [01:30:07]OFD Sender: Remove packet 95310 [01:30:07]ProducePacketName [01:30:07]name=ofd_packets/00095310 [01:30:07]NVStorageDeleteData [01:30:07]Write to MH i2c: 01 00 00 A7 5D 04 [01:30:07]Write i2c OK [01:30:07]MH_I2C_Read... [01:30:07]Read from MH i2c: 01 [01:30:07]MH_I2C_Read... [01:30:07]Read from MH i2c: 01 07 00 [01:30:07]MH_I2C_Read... [01:30:07]Read from MH i2c: 01 07 00 A7 5D 00 80 00 00 00 61 0D F9 [01:30:07]RasterBufferAndPrint [01:30:07]line [01:30:07]line [01:30:07]line [01:30:07]line [01:30:07]line [01:30:07]written 0, free lines is 3431 [01:30:07]process_action close_receipt done [01:30:07]requested_data is exist [01:30:07]produce_requested_data [01:30:07]requested_item fm.sn is exist - process it [01:30:07]wFMCommunicate request_size=4 [01:30:07]MH_SAM_APDU [01:30:07]CAPDU: 80 11 00 00 [01:30:07]Write to MH i2c: E2 08 00 AE 5D 80 11 00 00 00 00 00 00 85 [01:30:07]Write i2c OK [01:30:07]MH_I2C_Read... [01:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:07]Read from MH i2c: E2 [01:30:07]MH_I2C_Read... [01:30:07]Read from MH i2c: E2 17 00 [01:30:07]MH_I2C_Read... [01:30:07]Read from MH i2c: E2 17 00 AE 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D5 [01:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [01:30:07]wFMCommunicate OK [01:30:07]requested_item fd.num is exist - process it [01:30:07]SAM_PROTO_GetFieldsCounters [01:30:07]wFMCommunicate request_size=4 [01:30:07]MH_SAM_APDU [01:30:07]CAPDU: 80 13 00 00 [01:30:07]Write to MH i2c: E2 08 00 AF 5D 80 13 00 00 00 00 00 00 88 [01:30:07]Write i2c OK [01:30:07]MH_I2C_Read... [01:30:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:30:07]Read from MH i2c: E2 [01:30:07]MH_I2C_Read... [01:30:07]Read from MH i2c: E2 62 00 [01:30:07]MH_I2C_Read... [01:30:07]Read from MH i2c: E2 62 00 AF 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4E 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [01:30:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4E 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:30:07]wFMCommunicate OK [01:30:07]SAM_PROTO_GetFieldsCounters done [01:30:07]requested_item shift.num is exist - process it [01:30:07]requested_item shift.opened is exist - process it [01:30:07]req_shift_opened [01:30:07]FM_GetShiftState [01:30:07]SAM_PROTO_GetShiftState [01:30:07]wFMCommunicate request_size=4 [01:30:07]MH_SAM_APDU [01:30:07]CAPDU: 80 13 01 00 [01:30:07]Write to MH i2c: E2 08 00 B0 5D 80 13 01 00 00 00 00 00 8A [01:30:07]Write i2c OK [01:30:07]MH_I2C_Read... [01:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:07]Read from MH i2c: E2 [01:30:07]MH_I2C_Read... [01:30:07]Read from MH i2c: E2 0E 00 [01:30:07]MH_I2C_Read... [01:30:07]Read from MH i2c: E2 0E 00 B0 5D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 6F [01:30:07]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [01:30:07]wFMCommunicate OK [01:30:07]SAM_PROTO_GetShiftState done [01:30:07]FM_GetShiftState done [01:30:07]req_shift_opened done [01:30:07]requested_item shift.open_date is exist - process it [01:30:07]req_shift_open_date [01:30:07]req_shift_open_date done [01:30:07]produce_requested_data done [01:30:07]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95310,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [01:30:07]process_action_free close_receipt [01:30:07]json_value_free [01:30:07]json_value_free done [01:30:07]process_json_proto returns [01:30:07]Send response to host [01:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95310,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [01:30:07]free response buf [01:30:07]execute_script done [01:30:07]execute_script returns [01:30:07]free content buf [01:30:07]Sock 8.Close socket [01:30:07]Sock 8.Thread stoped [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:47]recv_with_timeout no data received [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]OFD Sender: No OFD packet to send [01:40:58]OFD Sender: No OFD packet to send [01:41:03]OFD Sender: No OFD packet to send [01:41:08]OFD Sender: No OFD packet to send [01:41:13]OFD Sender: No OFD packet to send [01:41:17]recv_with_timeout no data received [01:41:18]OFD Sender: No OFD packet to send [01:41:23]OFD Sender: No OFD packet to send [01:41:28]OFD Sender: No OFD packet to send [01:41:33]OFD Sender: No OFD packet to send [01:41:38]OFD Sender: No OFD packet to send [01:41:43]OFD Sender: No OFD packet to send [01:41:48]OFD Sender: No OFD packet to send [01:41:53]OFD Sender: No OFD packet to send [01:41:58]OFD Sender: No OFD packet to send [01:42:03]OFD Sender: No OFD packet to send [01:42:08]OFD Sender: No OFD packet to send [01:42:13]OFD Sender: No OFD packet to send [01:42:18]OFD Sender: No OFD packet to send [01:42:23]OFD Sender: No OFD packet to send [01:42:28]OFD Sender: No OFD packet to send [01:42:33]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:19]recv_with_timeout no data received [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:33]OFD Sender: No OFD packet to send [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:48]OFD Sender: No OFD packet to send [01:47:53]OFD Sender: No OFD packet to send [01:47:58]OFD Sender: No OFD packet to send [01:48:03]OFD Sender: No OFD packet to send [01:48:08]OFD Sender: No OFD packet to send [01:48:13]OFD Sender: No OFD packet to send [01:48:18]OFD Sender: No OFD packet to send [01:48:23]OFD Sender: No OFD packet to send [01:48:28]OFD Sender: No OFD packet to send [01:48:33]OFD Sender: No OFD packet to send [01:48:38]OFD Sender: No OFD packet to send [01:48:43]OFD Sender: No OFD packet to send [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:13]OFD Sender: No OFD packet to send [01:49:18]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:28]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]recv_with_timeout no data received [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:11]recv_with_timeout no data received [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:39]recv_with_timeout no data received [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:58:59]recv_with_timeout no data received [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:22]recv_with_timeout no data received [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:28]recv_with_timeout no data received [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:21]recv_with_timeout no data received [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:28]recv_with_timeout no data received [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:23]recv_with_timeout no data received [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send